要获取 Zonos 系统中国际订单的详情,您可以查询 GraphQL API。这样您可以检索订单详情和与订单相关的任何适用信息,如配送评级、落地成本报价等。
首先,注册 Zonos 账户并在 Zonos Dashboard 中配置您的账户。然后,您将能够获取 API 密钥, 这将允许您使用 Zonos API 进行身份验证。
由于 GraphQL 的工作方式,您可以仅请求您感兴趣的字段,或者选择请求系统中与订单相关的所有信息——选择权由您决定。请参阅 GraphQL API 参考 以了解可用字段。
与订单相关的信息,如 落地成本报价详情、配送评级详情、购物车详情等,可以通过在 order 查询中添加来自这些对象的字段来查询。
order
最少您需要订单号才能查询 API。这通过 GraphQL 请求中变量中的 orderId 字段传递。
orderId
query order($orderId: String!) {
order(orderId: $orderId) {
# ... other field names here
}
现在您已经构建并配置了您的请求,您可以向 Zonos API 发送 POST 请求。确保使用您的 API 密钥进行身份验证,并在请求中提供正确的版本标头。
POST
POST https://api.zonos.com/graphql
https://api.zonos.com/graphql
accountOrderNumber
amountSubtotals {
duties
taxes
fees
shipping
items
landedCosts {
id
rootId
tariffRate
duties {
amount
currency
formula
item {
description
exchangeRate {
rate
sourceCurrencyCode
targetCurrencyCode
fees {
note
type
taxes {
deMinimis {
method
threshold
shipmentRating {
currencyCode
displayName
minTransitAt
maxTransitAt
details {
carrierCode
amountSubtotals
fuelSurcharge
insuranceCost
otherSurcharge
shipmentRatingCartons
chargeableWeight
carton
length
width
height
weight
shippingProfile
customServiceLevelCode
landedCostMethod
serviceLevel
code
获取订单详情
获取订单详情
使用 GraphQL 获取您的订单详情。要获取 Zonos 系统中国际订单的详情,您可以查询 GraphQL API。这样您可以检索订单详情和与订单相关的任何适用信息,如配送评级、落地成本报价等。
获取 API 密钥
首先,注册 Zonos 账户并在 Zonos Dashboard 中配置您的账户。然后,您将能够获取 API 密钥, 这将允许您使用 Zonos API 进行身份验证。
决定要检索哪些详情
由于 GraphQL 的工作方式,您可以仅请求您感兴趣的字段,或者选择请求系统中与订单相关的所有信息——选择权由您决定。请参阅 GraphQL API 参考 以了解可用字段。
与订单相关的信息,如 落地成本报价详情、配送评级详情、购物车详情等,可以通过在
order查询中添加来自这些对象的字段来查询。最少您需要订单号才能查询 API。这通过 GraphQL 请求中变量中的
orderId字段传递。query order($orderId: String!) {order(orderId: $orderId) {# ... other field names here}}发送您的请求
现在您已经构建并配置了您的请求,您可以向 Zonos API 发送
POST请求。确保使用您的 API 密钥进行身份验证,并在请求中提供正确的版本标头。POST
https://api.zonos.com/graphqlquery order($orderId: String!) {order(orderId: $orderId) {accountOrderNumberamountSubtotals {dutiestaxesfeesshippingitems}landedCosts {idrootIdtariffRateduties {amountcurrencyformulaitem {iddescription}exchangeRate {ratesourceCurrencyCodetargetCurrencyCode}}fees {amountcurrencydescriptionnoteformulatypeitem {iddescription}exchangeRate {rate}}taxes {amountcurrencyformulaitem {iddescription}exchangeRate {rate}}deMinimis {formulamethodnotethresholdtype}shipmentRating {idamountcurrencyCodedisplayNameminTransitAtmaxTransitAtdetails {amountcarrierCodeamountSubtotalsshippingfuelSurchargeinsuranceCostotherSurchargeshipmentRatingCartonschargeableWeightcartonlengthwidthheightweightshippingProfileidcustomServiceLevelCodelandedCostMethodserviceLevelcode这个页面有帮助吗?