Update ship-to information of consolidate shipping order
curl --request POST \
--url https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation \
--header 'Content-Type: application/json' \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>' \
--data '
{
"consolidateShippingOrderId": "<string>",
"shipTo": {
"shipToCountry": "<string>",
"shipToContactName": "<string>",
"shipToPhone": "<string>",
"shipToEmail": "jsmith@example.com",
"shipToCompanyName": "<string>",
"shipToStreet1": "<string>",
"shipToCity": "<string>",
"shipToState": "<string>",
"shipToPostalCode": "<string>",
"shipToType": "<string>",
"shipToFax": "<string>",
"shipToStreet2": "<string>",
"shipToStreet3": "<string>"
}
}
'import requests
url = "https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation"
payload = {
"consolidateShippingOrderId": "<string>",
"shipTo": {
"shipToCountry": "<string>",
"shipToContactName": "<string>",
"shipToPhone": "<string>",
"shipToEmail": "jsmith@example.com",
"shipToCompanyName": "<string>",
"shipToStreet1": "<string>",
"shipToCity": "<string>",
"shipToState": "<string>",
"shipToPostalCode": "<string>",
"shipToType": "<string>",
"shipToFax": "<string>",
"shipToStreet2": "<string>",
"shipToStreet3": "<string>"
}
}
headers = {
"x-rr-apikey": "<api-key>",
"x-rr-apitoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-rr-apikey': '<api-key>',
'x-rr-apitoken': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
consolidateShippingOrderId: '<string>',
shipTo: {
shipToCountry: '<string>',
shipToContactName: '<string>',
shipToPhone: '<string>',
shipToEmail: 'jsmith@example.com',
shipToCompanyName: '<string>',
shipToStreet1: '<string>',
shipToCity: '<string>',
shipToState: '<string>',
shipToPostalCode: '<string>',
shipToType: '<string>',
shipToFax: '<string>',
shipToStreet2: '<string>',
shipToStreet3: '<string>'
}
})
};
fetch('https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation', 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.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'consolidateShippingOrderId' => '<string>',
'shipTo' => [
'shipToCountry' => '<string>',
'shipToContactName' => '<string>',
'shipToPhone' => '<string>',
'shipToEmail' => 'jsmith@example.com',
'shipToCompanyName' => '<string>',
'shipToStreet1' => '<string>',
'shipToCity' => '<string>',
'shipToState' => '<string>',
'shipToPostalCode' => '<string>',
'shipToType' => '<string>',
'shipToFax' => '<string>',
'shipToStreet2' => '<string>',
'shipToStreet3' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-rr-apikey: <api-key>",
"x-rr-apitoken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation"
payload := strings.NewReader("{\n \"consolidateShippingOrderId\": \"<string>\",\n \"shipTo\": {\n \"shipToCountry\": \"<string>\",\n \"shipToContactName\": \"<string>\",\n \"shipToPhone\": \"<string>\",\n \"shipToEmail\": \"jsmith@example.com\",\n \"shipToCompanyName\": \"<string>\",\n \"shipToStreet1\": \"<string>\",\n \"shipToCity\": \"<string>\",\n \"shipToState\": \"<string>\",\n \"shipToPostalCode\": \"<string>\",\n \"shipToType\": \"<string>\",\n \"shipToFax\": \"<string>\",\n \"shipToStreet2\": \"<string>\",\n \"shipToStreet3\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-rr-apikey", "<api-key>")
req.Header.Add("x-rr-apitoken", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation")
.header("x-rr-apikey", "<api-key>")
.header("x-rr-apitoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"consolidateShippingOrderId\": \"<string>\",\n \"shipTo\": {\n \"shipToCountry\": \"<string>\",\n \"shipToContactName\": \"<string>\",\n \"shipToPhone\": \"<string>\",\n \"shipToEmail\": \"jsmith@example.com\",\n \"shipToCompanyName\": \"<string>\",\n \"shipToStreet1\": \"<string>\",\n \"shipToCity\": \"<string>\",\n \"shipToState\": \"<string>\",\n \"shipToPostalCode\": \"<string>\",\n \"shipToType\": \"<string>\",\n \"shipToFax\": \"<string>\",\n \"shipToStreet2\": \"<string>\",\n \"shipToStreet3\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-rr-apikey"] = '<api-key>'
request["x-rr-apitoken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"consolidateShippingOrderId\": \"<string>\",\n \"shipTo\": {\n \"shipToCountry\": \"<string>\",\n \"shipToContactName\": \"<string>\",\n \"shipToPhone\": \"<string>\",\n \"shipToEmail\": \"jsmith@example.com\",\n \"shipToCompanyName\": \"<string>\",\n \"shipToStreet1\": \"<string>\",\n \"shipToCity\": \"<string>\",\n \"shipToState\": \"<string>\",\n \"shipToPostalCode\": \"<string>\",\n \"shipToType\": \"<string>\",\n \"shipToFax\": \"<string>\",\n \"shipToStreet2\": \"<string>\",\n \"shipToStreet3\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"consolidateShippingOrderId": "<string>",
"consolidateShippingOrderNumber": "<string>",
"outboundWarehouseId": 123,
"shippingMethod": "<string>",
"shippingFee": 123,
"deliveryInstructions": "<string>",
"consolidateShippingOrderStatus": "<string>",
"shipTo": {
"shipToCountry": "<string>",
"shipToContactName": "<string>",
"shipToPhone": "<string>",
"shipToFax": "<string>",
"shipToEmail": "jsmith@example.com",
"shipToCompanyName": "<string>",
"shipToStreet1": "<string>",
"shipToStreet2": "<string>",
"shipToStreet3": "<string>",
"shipToCity": "<string>",
"shipToState": "<string>",
"shipToPostalCode": "<string>",
"shipToType": "<string>"
},
"consolidateShippingShipmentList": [
{
"consolidateShippingShipmentId": "<string>",
"consolidateShippingShipmentNumber": "<string>",
"consolidateShippingOrderId": "<string>",
"consolidateShippingShipmentStatus": "<string>",
"currencyCode": "<string>",
"shippingFee": 123,
"awb": "<string>",
"serviceProvider": "<string>",
"shipDate": "2023-11-07T05:31:56Z",
"consolidateShippingShipmentBoxList": [
{
"consolidateShippingShipmentBoxId": "<string>",
"consolidateShippingShipmentId": "<string>",
"consolidateShippingShipmentBoxStatus": "<string>",
"boxNumber": "<string>",
"boxType": "<string>",
"invoiceFileKey": "<string>",
"weight": 123,
"dimension1": 123,
"dimension2": 123,
"dimension3": 123
}
]
}
],
"customFieldMap": {},
"createOn": "2023-11-07T05:31:56Z",
"modifyOn": "2023-11-07T05:31:56Z"
}{
"correlationId": "<string>",
"meta": {
"status": 123,
"data": {},
"errorCode": "<string>",
"error": {}
}
}订单
更新 收件信息 Of 合并运输订单
POST
/
api
/
outbound
/
consolidateShipping
/
order
/
updateShipToInformation
Update ship-to information of consolidate shipping order
curl --request POST \
--url https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation \
--header 'Content-Type: application/json' \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>' \
--data '
{
"consolidateShippingOrderId": "<string>",
"shipTo": {
"shipToCountry": "<string>",
"shipToContactName": "<string>",
"shipToPhone": "<string>",
"shipToEmail": "jsmith@example.com",
"shipToCompanyName": "<string>",
"shipToStreet1": "<string>",
"shipToCity": "<string>",
"shipToState": "<string>",
"shipToPostalCode": "<string>",
"shipToType": "<string>",
"shipToFax": "<string>",
"shipToStreet2": "<string>",
"shipToStreet3": "<string>"
}
}
'import requests
url = "https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation"
payload = {
"consolidateShippingOrderId": "<string>",
"shipTo": {
"shipToCountry": "<string>",
"shipToContactName": "<string>",
"shipToPhone": "<string>",
"shipToEmail": "jsmith@example.com",
"shipToCompanyName": "<string>",
"shipToStreet1": "<string>",
"shipToCity": "<string>",
"shipToState": "<string>",
"shipToPostalCode": "<string>",
"shipToType": "<string>",
"shipToFax": "<string>",
"shipToStreet2": "<string>",
"shipToStreet3": "<string>"
}
}
headers = {
"x-rr-apikey": "<api-key>",
"x-rr-apitoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-rr-apikey': '<api-key>',
'x-rr-apitoken': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
consolidateShippingOrderId: '<string>',
shipTo: {
shipToCountry: '<string>',
shipToContactName: '<string>',
shipToPhone: '<string>',
shipToEmail: 'jsmith@example.com',
shipToCompanyName: '<string>',
shipToStreet1: '<string>',
shipToCity: '<string>',
shipToState: '<string>',
shipToPostalCode: '<string>',
shipToType: '<string>',
shipToFax: '<string>',
shipToStreet2: '<string>',
shipToStreet3: '<string>'
}
})
};
fetch('https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation', 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.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'consolidateShippingOrderId' => '<string>',
'shipTo' => [
'shipToCountry' => '<string>',
'shipToContactName' => '<string>',
'shipToPhone' => '<string>',
'shipToEmail' => 'jsmith@example.com',
'shipToCompanyName' => '<string>',
'shipToStreet1' => '<string>',
'shipToCity' => '<string>',
'shipToState' => '<string>',
'shipToPostalCode' => '<string>',
'shipToType' => '<string>',
'shipToFax' => '<string>',
'shipToStreet2' => '<string>',
'shipToStreet3' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-rr-apikey: <api-key>",
"x-rr-apitoken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation"
payload := strings.NewReader("{\n \"consolidateShippingOrderId\": \"<string>\",\n \"shipTo\": {\n \"shipToCountry\": \"<string>\",\n \"shipToContactName\": \"<string>\",\n \"shipToPhone\": \"<string>\",\n \"shipToEmail\": \"jsmith@example.com\",\n \"shipToCompanyName\": \"<string>\",\n \"shipToStreet1\": \"<string>\",\n \"shipToCity\": \"<string>\",\n \"shipToState\": \"<string>\",\n \"shipToPostalCode\": \"<string>\",\n \"shipToType\": \"<string>\",\n \"shipToFax\": \"<string>\",\n \"shipToStreet2\": \"<string>\",\n \"shipToStreet3\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-rr-apikey", "<api-key>")
req.Header.Add("x-rr-apitoken", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation")
.header("x-rr-apikey", "<api-key>")
.header("x-rr-apitoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"consolidateShippingOrderId\": \"<string>\",\n \"shipTo\": {\n \"shipToCountry\": \"<string>\",\n \"shipToContactName\": \"<string>\",\n \"shipToPhone\": \"<string>\",\n \"shipToEmail\": \"jsmith@example.com\",\n \"shipToCompanyName\": \"<string>\",\n \"shipToStreet1\": \"<string>\",\n \"shipToCity\": \"<string>\",\n \"shipToState\": \"<string>\",\n \"shipToPostalCode\": \"<string>\",\n \"shipToType\": \"<string>\",\n \"shipToFax\": \"<string>\",\n \"shipToStreet2\": \"<string>\",\n \"shipToStreet3\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.returnshelper.com/uat/user/api/outbound/consolidateShipping/order/updateShipToInformation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-rr-apikey"] = '<api-key>'
request["x-rr-apitoken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"consolidateShippingOrderId\": \"<string>\",\n \"shipTo\": {\n \"shipToCountry\": \"<string>\",\n \"shipToContactName\": \"<string>\",\n \"shipToPhone\": \"<string>\",\n \"shipToEmail\": \"jsmith@example.com\",\n \"shipToCompanyName\": \"<string>\",\n \"shipToStreet1\": \"<string>\",\n \"shipToCity\": \"<string>\",\n \"shipToState\": \"<string>\",\n \"shipToPostalCode\": \"<string>\",\n \"shipToType\": \"<string>\",\n \"shipToFax\": \"<string>\",\n \"shipToStreet2\": \"<string>\",\n \"shipToStreet3\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"consolidateShippingOrderId": "<string>",
"consolidateShippingOrderNumber": "<string>",
"outboundWarehouseId": 123,
"shippingMethod": "<string>",
"shippingFee": 123,
"deliveryInstructions": "<string>",
"consolidateShippingOrderStatus": "<string>",
"shipTo": {
"shipToCountry": "<string>",
"shipToContactName": "<string>",
"shipToPhone": "<string>",
"shipToFax": "<string>",
"shipToEmail": "jsmith@example.com",
"shipToCompanyName": "<string>",
"shipToStreet1": "<string>",
"shipToStreet2": "<string>",
"shipToStreet3": "<string>",
"shipToCity": "<string>",
"shipToState": "<string>",
"shipToPostalCode": "<string>",
"shipToType": "<string>"
},
"consolidateShippingShipmentList": [
{
"consolidateShippingShipmentId": "<string>",
"consolidateShippingShipmentNumber": "<string>",
"consolidateShippingOrderId": "<string>",
"consolidateShippingShipmentStatus": "<string>",
"currencyCode": "<string>",
"shippingFee": 123,
"awb": "<string>",
"serviceProvider": "<string>",
"shipDate": "2023-11-07T05:31:56Z",
"consolidateShippingShipmentBoxList": [
{
"consolidateShippingShipmentBoxId": "<string>",
"consolidateShippingShipmentId": "<string>",
"consolidateShippingShipmentBoxStatus": "<string>",
"boxNumber": "<string>",
"boxType": "<string>",
"invoiceFileKey": "<string>",
"weight": 123,
"dimension1": 123,
"dimension2": 123,
"dimension3": 123
}
]
}
],
"customFieldMap": {},
"createOn": "2023-11-07T05:31:56Z",
"modifyOn": "2023-11-07T05:31:56Z"
}{
"correlationId": "<string>",
"meta": {
"status": 123,
"data": {},
"errorCode": "<string>",
"error": {}
}
}此页面由 AI 自动翻译。API 技术规格以英文呈现为标准。如有任何疑问,请参阅英文版本。
授权
Your API key
Your API token — keep this private
请求体
application/json
响应
Success
ULID
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I