Update shipping information for FBA replenishment
curl --request POST \
--url https://api.returnshelper.com/uat/user/api/Fba/FbaInstructionReplenish/updateShippingInfo \
--header 'Content-Type: application/json' \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>' \
--data '
{
"fbaInstructionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"newShipmentReferenceId": "<string>",
"newShipmentFbaName": "<string>",
"newShipmentStreet1": "<string>",
"newShipmentStreet2": "<string>",
"newShipmentState": "<string>",
"newShipmentCity": "<string>",
"newShipmentPostalCode": "<string>",
"provideLabel": true,
"newShipmentStreet3": "<string>",
"newShipmentCountryCode": "<string>",
"filename": "<string>",
"fileKey": "<string>"
}
'import requests
url = "https://api.returnshelper.com/uat/user/api/Fba/FbaInstructionReplenish/updateShippingInfo"
payload = {
"fbaInstructionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"newShipmentReferenceId": "<string>",
"newShipmentFbaName": "<string>",
"newShipmentStreet1": "<string>",
"newShipmentStreet2": "<string>",
"newShipmentState": "<string>",
"newShipmentCity": "<string>",
"newShipmentPostalCode": "<string>",
"provideLabel": True,
"newShipmentStreet3": "<string>",
"newShipmentCountryCode": "<string>",
"filename": "<string>",
"fileKey": "<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({
fbaInstructionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
newShipmentReferenceId: '<string>',
newShipmentFbaName: '<string>',
newShipmentStreet1: '<string>',
newShipmentStreet2: '<string>',
newShipmentState: '<string>',
newShipmentCity: '<string>',
newShipmentPostalCode: '<string>',
provideLabel: true,
newShipmentStreet3: '<string>',
newShipmentCountryCode: '<string>',
filename: '<string>',
fileKey: '<string>'
})
};
fetch('https://api.returnshelper.com/uat/user/api/Fba/FbaInstructionReplenish/updateShippingInfo', 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/Fba/FbaInstructionReplenish/updateShippingInfo",
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([
'fbaInstructionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'newShipmentReferenceId' => '<string>',
'newShipmentFbaName' => '<string>',
'newShipmentStreet1' => '<string>',
'newShipmentStreet2' => '<string>',
'newShipmentState' => '<string>',
'newShipmentCity' => '<string>',
'newShipmentPostalCode' => '<string>',
'provideLabel' => true,
'newShipmentStreet3' => '<string>',
'newShipmentCountryCode' => '<string>',
'filename' => '<string>',
'fileKey' => '<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/Fba/FbaInstructionReplenish/updateShippingInfo"
payload := strings.NewReader("{\n \"fbaInstructionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"newShipmentReferenceId\": \"<string>\",\n \"newShipmentFbaName\": \"<string>\",\n \"newShipmentStreet1\": \"<string>\",\n \"newShipmentStreet2\": \"<string>\",\n \"newShipmentState\": \"<string>\",\n \"newShipmentCity\": \"<string>\",\n \"newShipmentPostalCode\": \"<string>\",\n \"provideLabel\": true,\n \"newShipmentStreet3\": \"<string>\",\n \"newShipmentCountryCode\": \"<string>\",\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\"\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/Fba/FbaInstructionReplenish/updateShippingInfo")
.header("x-rr-apikey", "<api-key>")
.header("x-rr-apitoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fbaInstructionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"newShipmentReferenceId\": \"<string>\",\n \"newShipmentFbaName\": \"<string>\",\n \"newShipmentStreet1\": \"<string>\",\n \"newShipmentStreet2\": \"<string>\",\n \"newShipmentState\": \"<string>\",\n \"newShipmentCity\": \"<string>\",\n \"newShipmentPostalCode\": \"<string>\",\n \"provideLabel\": true,\n \"newShipmentStreet3\": \"<string>\",\n \"newShipmentCountryCode\": \"<string>\",\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.returnshelper.com/uat/user/api/Fba/FbaInstructionReplenish/updateShippingInfo")
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 \"fbaInstructionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"newShipmentReferenceId\": \"<string>\",\n \"newShipmentFbaName\": \"<string>\",\n \"newShipmentStreet1\": \"<string>\",\n \"newShipmentStreet2\": \"<string>\",\n \"newShipmentState\": \"<string>\",\n \"newShipmentCity\": \"<string>\",\n \"newShipmentPostalCode\": \"<string>\",\n \"provideLabel\": true,\n \"newShipmentStreet3\": \"<string>\",\n \"newShipmentCountryCode\": \"<string>\",\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"fbaInstructionReplenishId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fbaInstructionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"handlingStatusCode": "<string>",
"replenishStatusCode": "<string>",
"provideLabel": true,
"newShipmentFbaName": "<string>",
"newShipmentStreet1": "<string>",
"newShipmentStreet2": "<string>",
"newShipmentStreet3": "<string>",
"newShipmentState": "<string>",
"newShipmentCity": "<string>",
"newShipmentPostalCode": "<string>",
"newShipmentCountryCode": "<string>",
"newShipmentReferenceId": "<string>",
"filename": "<string>",
"fileKey": "<string>"
}
}{
"correlationId": "<string>",
"meta": {
"status": 123,
"data": {},
"errorCode": "<string>",
"error": {}
}
}指示 — 補貨
更新 運輸資訊 的 Fba Replenishment
POST
/
api
/
Fba
/
FbaInstructionReplenish
/
updateShippingInfo
Update shipping information for FBA replenishment
curl --request POST \
--url https://api.returnshelper.com/uat/user/api/Fba/FbaInstructionReplenish/updateShippingInfo \
--header 'Content-Type: application/json' \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>' \
--data '
{
"fbaInstructionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"newShipmentReferenceId": "<string>",
"newShipmentFbaName": "<string>",
"newShipmentStreet1": "<string>",
"newShipmentStreet2": "<string>",
"newShipmentState": "<string>",
"newShipmentCity": "<string>",
"newShipmentPostalCode": "<string>",
"provideLabel": true,
"newShipmentStreet3": "<string>",
"newShipmentCountryCode": "<string>",
"filename": "<string>",
"fileKey": "<string>"
}
'import requests
url = "https://api.returnshelper.com/uat/user/api/Fba/FbaInstructionReplenish/updateShippingInfo"
payload = {
"fbaInstructionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"newShipmentReferenceId": "<string>",
"newShipmentFbaName": "<string>",
"newShipmentStreet1": "<string>",
"newShipmentStreet2": "<string>",
"newShipmentState": "<string>",
"newShipmentCity": "<string>",
"newShipmentPostalCode": "<string>",
"provideLabel": True,
"newShipmentStreet3": "<string>",
"newShipmentCountryCode": "<string>",
"filename": "<string>",
"fileKey": "<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({
fbaInstructionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
newShipmentReferenceId: '<string>',
newShipmentFbaName: '<string>',
newShipmentStreet1: '<string>',
newShipmentStreet2: '<string>',
newShipmentState: '<string>',
newShipmentCity: '<string>',
newShipmentPostalCode: '<string>',
provideLabel: true,
newShipmentStreet3: '<string>',
newShipmentCountryCode: '<string>',
filename: '<string>',
fileKey: '<string>'
})
};
fetch('https://api.returnshelper.com/uat/user/api/Fba/FbaInstructionReplenish/updateShippingInfo', 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/Fba/FbaInstructionReplenish/updateShippingInfo",
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([
'fbaInstructionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'newShipmentReferenceId' => '<string>',
'newShipmentFbaName' => '<string>',
'newShipmentStreet1' => '<string>',
'newShipmentStreet2' => '<string>',
'newShipmentState' => '<string>',
'newShipmentCity' => '<string>',
'newShipmentPostalCode' => '<string>',
'provideLabel' => true,
'newShipmentStreet3' => '<string>',
'newShipmentCountryCode' => '<string>',
'filename' => '<string>',
'fileKey' => '<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/Fba/FbaInstructionReplenish/updateShippingInfo"
payload := strings.NewReader("{\n \"fbaInstructionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"newShipmentReferenceId\": \"<string>\",\n \"newShipmentFbaName\": \"<string>\",\n \"newShipmentStreet1\": \"<string>\",\n \"newShipmentStreet2\": \"<string>\",\n \"newShipmentState\": \"<string>\",\n \"newShipmentCity\": \"<string>\",\n \"newShipmentPostalCode\": \"<string>\",\n \"provideLabel\": true,\n \"newShipmentStreet3\": \"<string>\",\n \"newShipmentCountryCode\": \"<string>\",\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\"\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/Fba/FbaInstructionReplenish/updateShippingInfo")
.header("x-rr-apikey", "<api-key>")
.header("x-rr-apitoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fbaInstructionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"newShipmentReferenceId\": \"<string>\",\n \"newShipmentFbaName\": \"<string>\",\n \"newShipmentStreet1\": \"<string>\",\n \"newShipmentStreet2\": \"<string>\",\n \"newShipmentState\": \"<string>\",\n \"newShipmentCity\": \"<string>\",\n \"newShipmentPostalCode\": \"<string>\",\n \"provideLabel\": true,\n \"newShipmentStreet3\": \"<string>\",\n \"newShipmentCountryCode\": \"<string>\",\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.returnshelper.com/uat/user/api/Fba/FbaInstructionReplenish/updateShippingInfo")
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 \"fbaInstructionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"newShipmentReferenceId\": \"<string>\",\n \"newShipmentFbaName\": \"<string>\",\n \"newShipmentStreet1\": \"<string>\",\n \"newShipmentStreet2\": \"<string>\",\n \"newShipmentState\": \"<string>\",\n \"newShipmentCity\": \"<string>\",\n \"newShipmentPostalCode\": \"<string>\",\n \"provideLabel\": true,\n \"newShipmentStreet3\": \"<string>\",\n \"newShipmentCountryCode\": \"<string>\",\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"fbaInstructionReplenishId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fbaInstructionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"handlingStatusCode": "<string>",
"replenishStatusCode": "<string>",
"provideLabel": true,
"newShipmentFbaName": "<string>",
"newShipmentStreet1": "<string>",
"newShipmentStreet2": "<string>",
"newShipmentStreet3": "<string>",
"newShipmentState": "<string>",
"newShipmentCity": "<string>",
"newShipmentPostalCode": "<string>",
"newShipmentCountryCode": "<string>",
"newShipmentReferenceId": "<string>",
"filename": "<string>",
"fileKey": "<string>"
}
}{
"correlationId": "<string>",
"meta": {
"status": 123,
"data": {},
"errorCode": "<string>",
"error": {}
}
}此頁面由 AI 自動翻譯。API 技術規格以英文呈現為標準。如有任何疑問,請參閱英文版本。
授權
Your API key
Your API token — keep this private
主體
application/json
FBA instruction identifier
New shipment reference / FBA shipment ID
Recipient name for the new FBA shipment
Address line 1
Address line 2
State / province
City
Postal code
Whether to provide a label for the new shipment
Address line 3 (optional)
ISO3 country code (e.g. GBR, USA)
Label file name (if providing own label)
Label file key (if providing own label)
回應
Success
Updated shipping information
Show child attributes
Show child attributes
⌘I