- Overview
- Authorization Workflow
- Permissions
- Sandbox
- API Models
- Available API Models
- Request Apidog Access
- OPENAPI SPECIFICATION
- Research Docs
- Amazon Warehousing and Distribution
- Authorization
- Catalog Items
- Catalog [Deprecated]
- Definitions
- Easy Ship
- FBAInbound
- 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
- listPrepDetails
- setPrepDetails
- getInboundOperationStatus
- getItemEligibilityPreview
- FBAInventory
- FBAOutbound
- Feeds
- Fees
- Finance
- Invoices [Brazil]
- Listings Items
- Merchant Fulfillment
- Orders
- ProductPricing
- Reports
- Sales
- Sellers
- Service
- getServiceJobByServiceJobId
- cancelServiceJobByServiceJobId
- completeServiceJobByServiceJobId
- getServiceJobs
- addAppointmentForServiceJobByServiceJobId
- rescheduleAppointmentForServiceJobByServiceJobId
- assignAppointmentResources
- setAppointmentFulfillmentData
- getRangeSlotCapacity
- getFixedSlotCapacity
- updateSchedule
- createReservation
- updateReservation
- cancelReservation
- getAppointmmentSlotsByJobId
- getAppointmentSlots
- createServiceDocumentUploadDestination
- ShipmentInvoice[Brazil]
- Shipping
- getRatesPOST
- createShipmentPOST
- directPurchaseShipmentPOST
- getShipmentGET
- purchaseShipmentPOST
- cancelShipmentPOST
- oneClickShipmentPOST
- purchaseLabelsPOST
- getTrackingGET
- retrieveShippingLabelPOST
- getShipmentDocumentsGET
- purchaseShipmentPOST
- cancelShipmentPUT
- getRatesPOST
- getAdditionalInputsGET
- getAccountGET
- getCarrierAccountFormInputsGET
- getTrackingInformationGET
- getCarrierAccountsPUT
- linkCarrierAccountPUT
- unlinkCarrierAccountPUT
- generateCollectionFormPOST
- getCollectionFormHistoryPUT
- getUnmanifestedShipmentsPUT
- getCollectionFormGET
- getAccessPointsGET
- Supply Sources
- Tokens
- Uploads
- Notifications
getRates
Pending
POST
/shipping/v2/shipments/rates
shipping
Last modified:2024-11-28 09:36:30
Maintainer:Not configured
Rate (requests per second) | Burst |
---|---|
80 | 100 |
x-amzn-RateLimit-Limit
response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.Request
Header Params
x-amzn-shipping-business-id
enum<string>Â
optional
Allowed values:
AmazonShipping_USAmazonShipping_INAmazonShipping_UKAmazonShipping_UAEAmazonShipping_SAAmazonShipping_EGAmazonShipping_ITAmazonShipping_ESAmazonShipping_FRAmazonShipping_JP
Body Params application/json
The payload schema for the getRates operation.
shipTo
object (Address)Â
required
Example:
{"addressLine1":"address_1","addressLine2":"address_2","addressLine3":"address_3","city":"Seattle","countryCode":"US","county":"Washington","district":"District1","name":"address_name","phoneNumber":"+14155552671","postalCode":"123456","stateOrRegion":"Washington"}
addressLine1
stringÂ
required
addressLine2
stringÂ
optional
addressLine3
stringÂ
optional
city
stringÂ
optional
countryCode
stringÂ
required
county
stringÂ
optional
Example:
Washington
district
stringÂ
optional
name
stringÂ
required
phoneNumber
stringÂ
optional
Example:
+14155552671
postalCode
stringÂ
optional
stateOrRegion
stringÂ
required
shipFrom
object (Address)Â
required
Example:
{"addressLine1":"address_1","addressLine2":"address_2","addressLine3":"address_3","city":"Seattle","countryCode":"US","county":"Washington","district":"District1","name":"address_name","phoneNumber":"+14155552671","postalCode":"123456","stateOrRegion":"Washington"}
serviceTypes
array[string]
required
Allowed values:
Amazon Shipping GroundAmazon Shipping StandardAmazon Shipping Premium
shipDate
string <date-time>
optional
containerSpecifications
array[object (ContainerSpecification) {2}]Â
required
dimensions
object (Dimensions)Â
required
weight
object (Weight)Â
required
Example
{
"shipTo": {
"addressLine1": "address_1",
"addressLine2": "address_2",
"addressLine3": "address_3",
"city": "Seattle",
"countryCode": "US",
"county": "Washington",
"district": "District1",
"name": "address_name",
"phoneNumber": "+14155552671",
"postalCode": "123456",
"stateOrRegion": "Washington"
},
"shipFrom": {
"addressLine1": "address_1",
"addressLine2": "address_2",
"addressLine3": "address_3",
"city": "Seattle",
"countryCode": "US",
"county": "Washington",
"district": "District1",
"name": "address_name",
"phoneNumber": "+14155552671",
"postalCode": "123456",
"stateOrRegion": "Washington"
},
"serviceTypes": [
"Amazon Shipping Ground"
],
"shipDate": "2019-08-24T14:15:22Z",
"containerSpecifications": [
{
"dimensions": {
"height": {
"unit": "string",
"value": 0
},
"length": {
"unit": "string",
"value": 0
},
"weight": {
"unit": "string",
"value": 0
},
"width": {
"unit": "string",
"value": 0
}
},
"weight": {
"value": 11,
"unit": "Grams"
}
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox.sellingpartnerapi-na.amazon.com/shipping/v2/shipments/rates' \
--header 'Content-Type: application/json' \
--data-raw '{
"shipTo": {
"addressLine1": "address_1",
"addressLine2": "address_2",
"addressLine3": "address_3",
"city": "Seattle",
"countryCode": "US",
"county": "Washington",
"district": "District1",
"name": "address_name",
"phoneNumber": "+14155552671",
"postalCode": "123456",
"stateOrRegion": "Washington"
},
"shipFrom": {
"addressLine1": "address_1",
"addressLine2": "address_2",
"addressLine3": "address_3",
"city": "Seattle",
"countryCode": "US",
"county": "Washington",
"district": "District1",
"name": "address_name",
"phoneNumber": "+14155552671",
"postalCode": "123456",
"stateOrRegion": "Washington"
},
"serviceTypes": [
"Amazon Shipping Ground"
],
"shipDate": "2019-08-24T14:15:22Z",
"containerSpecifications": [
{
"dimensions": {
"height": {
"unit": "string",
"value": 0
},
"length": {
"unit": "string",
"value": 0
},
"weight": {
"unit": "string",
"value": 0
},
"width": {
"unit": "string",
"value": 0
}
},
"weight": {
"value": 11,
"unit": "Grams"
}
}
]
}'
Responses
🟢200OK
application/json
Headers
x-amzn-RateLimit-Limit
stringÂ
optional
x-amzn-RequestId
stringÂ
optional
Body
The response schema for the getRates operation.
payload
object (GetRatesResult)Â
optional
serviceRates
array[object (ServiceRate) {4}]Â
required
errors
array[object (Error) {3}]Â
optional
code
stringÂ
required
message
stringÂ
required
details
stringÂ
optional
Example
{
"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"
}
]
}
]
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠413413
🟠415415
🟠429429
🔴500Server Error
🔴503Service Unavailable