Get resend shipping fees by destination
curl --request GET \
--url https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>'import requests
url = "https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption"
headers = {
"x-rr-apikey": "<api-key>",
"x-rr-apitoken": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-rr-apikey': '<api-key>', 'x-rr-apitoken': '<api-key>'}
};
fetch('https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption', 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/Resend/getShippingFeeListByToShippingOption",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rr-apikey", "<api-key>")
req.Header.Add("x-rr-apitoken", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption")
.header("x-rr-apikey", "<api-key>")
.header("x-rr-apitoken", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rr-apikey"] = '<api-key>'
request["x-rr-apitoken"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"serviceTypeCode": "<string>",
"serviceTypeName": "<string>",
"isEnableAutoCreateLabel": true,
"postalCodePair": {
"from": "<string>",
"to": "<string>"
},
"currencyCode": "<string>",
"fee": 123,
"chargeableWeight": 123
}
]
}{
"correlationId": "<string>",
"meta": {
"status": 123,
"data": {},
"errorCode": "<string>",
"error": {}
}
}重寄
依目的地取得 Resend Shipping Fees
GET
/
api
/
Resend
/
getShippingFeeListByToShippingOption
Get resend shipping fees by destination
curl --request GET \
--url https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>'import requests
url = "https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption"
headers = {
"x-rr-apikey": "<api-key>",
"x-rr-apitoken": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-rr-apikey': '<api-key>', 'x-rr-apitoken': '<api-key>'}
};
fetch('https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption', 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/Resend/getShippingFeeListByToShippingOption",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rr-apikey", "<api-key>")
req.Header.Add("x-rr-apitoken", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption")
.header("x-rr-apikey", "<api-key>")
.header("x-rr-apitoken", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.returnshelper.com/uat/user/api/Resend/getShippingFeeListByToShippingOption")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rr-apikey"] = '<api-key>'
request["x-rr-apitoken"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"serviceTypeCode": "<string>",
"serviceTypeName": "<string>",
"isEnableAutoCreateLabel": true,
"postalCodePair": {
"from": "<string>",
"to": "<string>"
},
"currencyCode": "<string>",
"fee": 123,
"chargeableWeight": 123
}
]
}{
"correlationId": "<string>",
"meta": {
"status": 123,
"data": {},
"errorCode": "<string>",
"error": {}
}
}此頁面由 AI 自動翻譯。API 技術規格以英文呈現為標準。如有任何疑問,請參閱英文版本。
本端點僅估算 Resend(出庫)運送費用。若要預覽 Return(入庫)費用,請改用 依起始位置取得 Shipping Fees。
必要參數
returnInventoryIdList— 必填。以逗號分隔的退貨庫存 ID 清單(例如10023,10024),代表要一併重寄的項目。所有 ID 必須屬於同一個 Warehouse,且每個都必須存在,否則請求會驗證失敗。toCountryCode— 必填,小寫 ISO3(例如usa、gbr)。有效值請參閱 取得所有國家。toPostalCode— 必填,且不可為空。limit— 選填。限制回傳的服務類型選項數量;省略時會回傳該目的地所有可用選項。
回應備註
每一筆項目描述一種可用的 Resend 服務類型與其費用:serviceTypeCode/serviceTypeName— 服務識別碼與其顯示名稱。isEnableAutoCreateLabel— 以此服務建立 Resend Order 時是否自動產生面單。postalCodePair— 用於推算費率的from/to郵遞區號區間配對。currencyCode與fee— 估算的費用。chargeableWeight— 承運商實際計費的重量,可能因材積重量進位而高於包裹的實際重量。
相關
- 建立 Resend Order — 使用所選的
serviceTypeCode。 - 取得 重寄訂單 詳情 — 建立後檢視 Resend Order。
- 依起始位置取得 Shipping Fees — Return(入庫)費用預覽的對應端點。
授權
Your API key
Your API token — keep this private
查詢參數
Comma-separated list of return inventory IDs to price the resend for. All IDs must belong to the same warehouse.
ISO3 destination country code
Destination postal code
Maximum number of service-type fee options to return
必填範圍:
x >= 0回應
Success
List of available resend service types with their shipping fee
Show child attributes
Show child attributes