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