- A+ Content Management
- searchContentDocumentsGET
- createContentDocumentPOST
- getContentDocumentGET
- updateContentDocumentPOST
- listContentDocumentAsinRelationsGET
- postContentDocumentAsinRelationsPOST
- validateContentDocumentAsinRelationsPOST
- searchContentPublishRecordsGET
- postContentDocumentApprovalSubmissionPOST
- postContentDocumentSuspendSubmissionPOST
- Application Management
- The AWD
- Catalog Items V0
- Catalog Items 2020-12-01
- Catalog Items 2022-04-01
- Data Kiosk
- Product Type Definitions
- Easy Ship
- FBA Inbound Eligibilty
- FBA Inventory
- Finances
- Fulfillment Inbound V0
- Listings Restrictions
- Merchant Fulfillment
- Messaging
- Notifications
- Orders
- Product Fees
- Pricing V0
- Pricing 2022-05-01
- Replenishment
- Sales
- Sellers
- Services
- getServiceJobByServiceJobId
- cancelServiceJobByServiceJobId
- completeServiceJobByServiceJobId
- getServiceJobs
- addAppointmentForServiceJobByServiceJobId
- rescheduleAppointmentForServiceJobByServiceJobId
- assignAppointmentResources
- setAppointmentFulfillmentData
- getRangeSlotCapacity
- getFixedSlotCapacity
- updateSchedule
- createReservation
- updateReservation
- cancelReservation
- getAppointmmentSlotsByJobId
- getAppointmentSlots
- createServiceDocumentUploadDestination
- Shipment Invoicing
- Shipping
- Amazon Shipping API V2
- getRatesPOST
- directPurchaseShipmentPOST
- purchaseShipmentPOST
- oneClickShipmentPOST
- getTrackingGET
- getShipmentDocumentsGET
- cancelShipmentPUT
- getAdditionalInputsGET
- getCarrierAccountFormInputsGET
- getCarrierAccountsPUT
- linkCarrierAccountPUT
- unlinkCarrierAccountPUT
- generateCollectionFormPOST
- getCollectionFormHistoryPUT
- getUnmanifestedShipmentsPUT
- getCollectionFormGET
- getAccessPointsGET
- Solicitations
- Supply Sources
- Tokens
- Uploads
- FBA inbound operations. 2024-03-20
- listInboundPlans
- createInboundPlan
- getInboundPlan
- listInboundPlanBoxes
- cancelInboundPlan
- listInboundPlanItems
- updateInboundPlanName
- listPackingGroupBoxes
- listPackingGroupItems
- setPackingInformation
- listPackingOptions
- generatePackingOptions
- confirmPackingOption
- listInboundPlanPallets
- listPlacementOptions
- generatePlacementOptions
- confirmPlacementOption
- getShipment
- listShipmentBoxes
- listShipmentContentUpdatePreviews
- generateShipmentContentUpdatePreviews
- getShipmentContentUpdatePreview
- confirmShipmentContentUpdatePreview
- getDeliveryChallanDocument
- listDeliveryWindowOptions
- generateDeliveryWindowOptions
- confirmDeliveryWindowOptions
- listShipmentItems
- updateShipmentName
- listShipmentPallets
- cancelSelfShipAppointment
- getSelfShipAppointmentSlots
- generateSelfShipAppointmentSlots
- scheduleSelfShipAppointment
- updateShipmentSourceAddress
- updateShipmentTrackingDetails
- listTransportationOptions
- generateTransportationOptions
- confirmTransportationOptions
- listItemComplianceDetails
- updateItemComplianceDetails
- createMarketplaceItemLabels
- getInboundOperationStatus
- Fulfillment Outbound
- Reports 2020-09-04
- Reports 2021-06-30
- Feeds 2020-09-04
- Feeds 2021-06-30
- Listings Items 2020-09-01
- Listings Items 2021-08-01
- Direct Fulfillment Inventory Updates
- Direct Fulfillment Orders V1
- Direct Fulfillment Orders 2021-12-28
- Direct Fulfillment Payments
- Vendor Direct Fulfillment Sandbox Test Data
- Direct Fulfillment Shipping V1
- Direct Fulfillment Shipping 2021-12-28
- Direct Fulfillment Transaction Status V1
- Direct Fulfillment Transaction Status 2021-12-28
- Retail Procurement Payments
- Retail Procurement Orders
- Retail Procurement Shipments
- Retail Procurement Transaction Status
getRates
北美(North America)
北美(North America)
POST
https://sellingpartnerapi-na.amazon.com/shipping/v2/shipments/rates
Amazon Shipping API V2
速率(每秒请求数) | 突发 |
---|---|
80 | 100 |
x-amzn-RateLimit-Limit
响应头返回适用于请求操作的使用计划速率限制(如果可用)。上表指示了此操作的默认速率和突发值。业务需求要求更高吞吐量的销售合作伙伴可能会看到比这里显示的更高的速率和突发值。有关更多信息,请参阅 Selling Partner API 中的使用计划和速率限制。请求参数
Header 参数
x-amzn-shipping-business-id
enum<string>
可选
枚举值:
AmazonShipping_USAmazonShipping_INAmazonShipping_UKAmazonShipping_UAEAmazonShipping_SAAmazonShipping_EGAmazonShipping_ITAmazonShipping_ESAmazonShipping_FRAmazonShipping_JP
Body 参数application/json
getRates操作的请求模式。当channelType为Amazon时,shipTo地址不是必需的,将被忽略。
shipTo
object (Address)
地址。
name
string
必需
>= 1 字符<= 50 字符
addressLine1
string
地址的第一行。
>= 1 字符<= 60 字符
addressLine2
string
可选
>= 1 字符<= 60 字符
addressLine3
string
可选
>= 1 字符<= 60 字符
companyName
string
可选
stateOrRegion
string
必需
city
string
必需
countryCode
string
必需
postalCode
string
必需
email
string
可选
<= 64 字符
phoneNumber
string
可选
>= 1 字符<= 20 字符
geocode
object (Geocode)
可选
shipFrom
object (Address)
地址。
returnTo
object (Address)
地址。
shipDate
string <date-time>
可选
shipperInstruction
object (ShipperInstruction)
发货人指示。
deliveryNotes
string
运输的交货单
<= 256 字符
packages
array[object (Package) {8}]
必需
dimensions
object (Dimensions)
必需
weight
object (Weight)
所示单位中的重量。
insuredValue
object (Currency)
必需
isHazmat
boolean
可选
sellerDisplayName
string
可选
charges
array[object (ChargeComponent) {2}]
可选
packageClientReferenceId
string
必需
items
array[object (Item) {12}]
一份物品清单。
valueAddedServices
object (ValueAddedServiceDetails)
可选
collectOnDelivery
object (CollectOnDelivery)
货到付款的金额。
taxDetails
array[object (TaxDetail) {2}]
税务详细信息列表。
taxType
enum<string>
指示税种类型。
枚举值:
GST
taxRegistrationNumber
string
必需
channelDetails
object (ChannelDetails)
必需
channelType
enum<string>
必需
枚举值:
AMAZONEXTERNAL
amazonOrderDetails
object (AmazonOrderDetails)
可选
amazonShipmentDetails
object (AmazonShipmentDetails)
亚马逊运输信息。
clientReferenceDetails
array[object (ClientReferenceDetail) {2}]
可选
clientReferenceType
enum<string>
客户参考类型。
枚举值:
IntegratorShipperIdIntegratorMerchantId
clientReferenceId
string
客户参考 ID。
shipmentType
enum<string>
运输类型。
枚举值:
FORWARDRETURNS
destinationAccessPointDetails
object (AccessPointDetails)
可选
accessPointId
string
接入点的唯一标识符
示例
{
"shipTo": {
"name": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"companyName": "string",
"stateOrRegion": "string",
"city": "string",
"countryCode": "string",
"postalCode": "string",
"email": "string",
"phoneNumber": "string",
"geocode": {
"latitude": "string",
"longitude": "string"
}
},
"shipFrom": {
"name": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"companyName": "string",
"stateOrRegion": "string",
"city": "string",
"countryCode": "string",
"postalCode": "string",
"email": "string",
"phoneNumber": "string",
"geocode": {
"latitude": "string",
"longitude": "string"
}
},
"returnTo": {
"name": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"companyName": "string",
"stateOrRegion": "string",
"city": "string",
"countryCode": "string",
"postalCode": "string",
"email": "string",
"phoneNumber": "string",
"geocode": {
"latitude": "string",
"longitude": "string"
}
},
"shipDate": "2019-08-24T14:15:22Z",
"shipperInstruction": {
"deliveryNotes": "string"
},
"packages": [
{
"dimensions": {
"length": 0,
"width": 0,
"height": 0,
"unit": "INCH"
},
"weight": {
"unit": "GRAM",
"value": 0
},
"insuredValue": {
"value": 0,
"unit": "str"
},
"isHazmat": true,
"sellerDisplayName": "string",
"charges": [
{
"amount": {
"value": 0,
"unit": "str"
},
"chargeType": "TAX"
}
],
"packageClientReferenceId": "string",
"items": [
{
"itemValue": {
"value": 0,
"unit": "str"
},
"description": "string",
"itemIdentifier": "string",
"quantity": 0,
"weight": {
"unit": "GRAM",
"value": 0
},
"liquidVolume": {
"unit": "ML",
"value": 0
},
"isHazmat": true,
"dangerousGoodsDetails": {
"unitedNationsRegulatoryId": "string",
"transportationRegulatoryClass": "string",
"packingGroup": "I",
"packingInstruction": "PI965_SECTION_IA"
},
"productType": "string",
"invoiceDetails": {
"invoiceNumber": "string",
"invoiceDate": "2019-08-24T14:15:22Z"
},
"serialNumbers": [
"string"
],
"directFulfillmentItemIdentifiers": {
"lineItemID": "string",
"pieceNumber": "string"
}
}
]
}
],
"valueAddedServices": {
"collectOnDelivery": {
"amount": {
"value": 0,
"unit": "str"
}
}
},
"taxDetails": [
{
"taxType": "GST",
"taxRegistrationNumber": "string"
}
],
"channelDetails": {
"channelType": "AMAZON",
"amazonOrderDetails": {
"orderId": "string"
},
"amazonShipmentDetails": {
"shipmentId": "string"
}
},
"clientReferenceDetails": [
{
"clientReferenceType": "IntegratorShipperId",
"clientReferenceId": "string"
}
],
"shipmentType": "FORWARD",
"destinationAccessPointDetails": {
"accessPointId": "string"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sellingpartnerapi-na.amazon.com/shipping/v2/shipments/rates' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Headers
x-amzn-RateLimit-Limit
string
可选
x-amzn-RequestId
string
可选
Body
getRates 操作的响应模式。
payload
object (GetRatesResult)
可选
requestToken
string
必需
rates
array[object (Rate) {14}]
必需
ineligibleRates
array[object (IneligibleRate) {5}]
可选
示例
{
"requestToken": "6DCCEDD3FF961C15FEB94F342D41C",
"rates": [
{
"rateId": "F4B68849F969E239FF9FCA9C12E35",
"carrierId": "FOOSHIPGRD",
"carrierName": "FOO SHIP GRD",
"billedWeight": {
"value": 5,
"unit": "GRAMS"
},
"totalCharge": {
"value": 7,
"unit": "USD"
},
"serviceId": "FOORSID",
"serviceName": "FOO RS ID",
"promise": {
"deliveryWindow": {
"start": "2018-08-24T08:22:30.737Z",
"end": "2018-08-24T20:22:30.737Z"
},
"pickupWindow": {
"start": "2018-08-23T08:22:30.737Z",
"end": "2018-08-23T20:22:30.737Z"
}
},
"supportedDocumentSpecifications": [
{
"format": "PNG",
"size": {
"length": 6,
"width": 4,
"unit": "INCH"
},
"printOptions": [
{
"supportedDPIs": [
300,
203
],
"supportedPageLayouts": [
"LEFT",
"RIGHT"
],
"supportedFileJoiningOptions": [
true,
false
],
"supportedDocumentDetails": [
{
"name": "LABEL",
"isMandatory": true
}
]
}
]
},
{
"format": "ZPL",
"size": {
"length": 6,
"width": 4,
"unit": "INCH"
},
"printOptions": [
{
"supportedDPIs": [
300,
203
],
"supportedPageLayouts": [
"LEFT",
"RIGHT"
],
"supportedFileJoiningOptions": [
true,
false
],
"supportedDocumentDetails": [
{
"name": "LABEL",
"isMandatory": true
}
]
}
]
}
],
"availableValueAddedServiceGroups": [
{
"groupId": "SIG_VERIFICATION",
"groupDescription": "Signature Verification",
"isRequired": true,
"valueAddedServices": [
{
"id": "CUST_SIG_VERIFICATION",
"name": "Customer Signature Verification",
"cost": {
"unit": "USD",
"value": 2
}
}
]
}
],
"requiresAdditionalInputs": false,
"rateItemList": [
{
"rateItemCharge": {
"unit": "INR",
"value": "2.00000"
},
"rateItemID": "BASE_RATE",
"rateItemNameLocalization": "Base Rate",
"rateItemType": "MANDATORY"
},
{
"rateItemCharge": {
"unit": "INR",
"value": "1.20000"
},
"rateItemID": "DELIVERY_CONFIRMATION",
"rateItemNameLocalization": "Delivery Confirmation",
"rateItemType": "INCLUDED"
},
{
"rateItemCharge": {
"unit": "INR",
"value": "2.00"
},
"rateItemID": "VAT",
"rateItemNameLocalization": "VAT",
"rateItemType": "MANDATORY"
}
],
"paymentType": "PAY_THROUGH_AMAZON"
}
],
"ineligibleRates": [
{
"carrierId": "FOOSTDGRD",
"serviceId": "FOO8420430",
"carrierName": "FOOSTDGRD",
"serviceName": "FOO8420430",
"ineligibilityReasons": [
{
"code": "NO_COVERAGE",
"message": "Required shipping network coverage doesn't exist for the offering"
}
]
}
]
}
🟠400请求有误
🟠401没有权限
🟠403禁止访问
🟠404记录不存在
🟠413413
🟠415415
🟠429429
🔴500服务器错误
🔴503服务器故障

技术咨询扫码联系作者
SP-API技术咨询,开发者申请,Amazon ERP源码


修改于 2025-03-15 12:29:41