速率(每秒请求数) | 突发 |
---|---|
80 | 100 |
x-amzn-RateLimit-Limit
响应头返回适用于请求操作的使用计划速率限制(如果可用)。上表指示了此操作的默认速率和突发值。业务需求要求更高吞吐量的销售合作伙伴可能会看到比这里显示的更高的速率和突发值。有关更多信息,请参阅 Selling Partner API 中的使用计划和速率限制。{
"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"
}
}
curl --location --request POST 'https://sellingpartnerapi-na.amazon.com/shipping/v2/shipments/rates' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
}'
{
"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"
}
]
}
]
}
技术咨询扫码联系作者
SP-API技术咨询,开发者申请,Amazon ERP源码