Assign a ShipDay order to a driver
curl --request PUT \
--url https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Assign a ShipDay order to a driver",
"data": {
"success": true,
"response": "Order assigned to carrier successfully"
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}Shipday
Assign a ShipDay order to a driver
Assign a ShipDay order to a driver. Requires the WRITE_SHIPDAY scope.
PUT
/
shipday
/
assign
/
{shipdayOrderId}
/
{carrierId}
Assign a ShipDay order to a driver
curl --request PUT \
--url https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/shipday/assign/{shipdayOrderId}/{carrierId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Assign a ShipDay order to a driver",
"data": {
"success": true,
"response": "Order assigned to carrier successfully"
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}Assigns the given ShipDay order to the specified carrier (driver) in the store’s connected ShipDay account. No request body. The response is passed through from ShipDay’s external API. Requires the
WRITE_SHIPDAY scope.Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.
Path Parameters
The ShipDay order id.
The ShipDay carrier (driver) id to assign.
Response
Assign a ShipDay order to a driver.
Standard Salesive response envelope. The operation-specific payload is carried in data.
Was this page helpful?

