- 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
cancelShipment
Pending
POST
/shipping/v1/shipments/{shipmentId}/cancel
shipping
Last modified:2024-11-28 09:36:30
Maintainer:Not configured
Rate (requests per second) | Burst |
---|---|
5 | 15 |
Request
Path Params
shipmentId
stringÂ
required
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/v1/shipments//cancel'
Responses
🟢200OK
application/json
Headers
x-amzn-RateLimit-Limit
stringÂ
optional
x-amzn-RequestId
stringÂ
optional
Body
Response schema.
payload
object (Shipment)Â
optional
Example:
{"destination":{"destinationType":"AMAZON_OPTIMIZED"},"freightInformation":{"declaredValue":{"amount":5.5,"code":"CAD"},"freightClass":"FC_50"},"inboundPlanId":"wf1234abcd-1234-abcd-5678-1234abcd5678","placementOptionId":"pl1234abcd-1234-abcd-5678-1234abcd5678","selectedDeliveryWindow":{"availabilityType":"AVAILABLE","deliveryWindowOptionId":"dw1234abcd-1234-abcd-5678-1234abcd5678","editableUntil":"2024-01-05T20:00:00.000Z","endDate":"2024-01-05T20:00:00.000Z","startDate":"2024-01-05T14:00:00.000Z"},"shipmentConfirmationId":"shipmentConfirmationId","shipmentId":"sh1234abcd-1234-abcd-5678-1234abcd5678","source":{"sourceType":"SELLER_FACILITY"}}
amazonReferenceId
stringÂ
optional
>= 1 characters<= 1024 characters
contactInformation
object (ContactInformation)Â
optional
Example:
{"email":"email@email.com","name":"name","phoneNumber":"1234567890"}
dates
object (Dates)Â
optional
Example:
{"readyToShipWindow":{"end":"2024-01-06T14:48:00.000Z","start":"2024-01-05T14:48:00.000Z"}}
destination
object (ShipmentDestination)Â
required
freightInformation
object (FreightInformation)Â
optional
Example:
{"declaredValue":{"amount":5.5,"code":"CAD"},"freightClass":"FC_50"}
name
stringÂ
optional
placementOptionId
stringÂ
required
>= 38 characters<= 38 characters
Match pattern:
^[a-zA-Z0-9-]*$
selectedDeliveryWindow
object (SelectedDeliveryWindow)Â
optional
Example:
{"availabilityType":"AVAILABLE","deliveryWindowOptionId":"dw1234abcd-1234-abcd-5678-1234abcd5678","editableUntil":"2024-01-05T20:00:00.000Z","endDate":"2024-01-05T20:00:00.000Z","startDate":"2024-01-05T14:00:00.000Z"}
selectedTransportationOptionId
stringÂ
optional
>= 38 characters<= 38 characters
Match pattern:
^[a-zA-Z0-9-]*$
selfShipAppointmentDetails
array[object (SelfShipAppointmentDetails) {3}]Â
optional
shipmentConfirmationId
stringÂ
optional
FBA1234ABCD
).>= 1 characters<= 1024 characters
shipmentId
stringÂ
required
>= 38 characters<= 38 characters
Match pattern:
^[a-zA-Z0-9-]*$
source
object (ShipmentSource)Â
required
status
stringÂ
optional
UNCONFIRMED
, then transition to WORKING
after a placement option has been confirmed, and then to READY_TO_SHIP
once labels are generated.ABANDONED
, CANCELLED
, CHECKED_IN
, CLOSED
, DELETED
, DELIVERED
, IN_TRANSIT
, MIXED
, READY_TO_SHIP
, RECEIVING
, SHIPPED
, UNCONFIRMED
, WORKING
>= 1 characters<= 1024 characters
trackingDetails
object (TrackingDetails)Â
optional
errors
array[object (Error) {3}]Â
optional
code
stringÂ
required
message
stringÂ
required
details
stringÂ
optional
Example
{
"payload": {
"destination": {
"destinationType": "AMAZON_OPTIMIZED"
},
"freightInformation": {
"declaredValue": {
"amount": 5.5,
"code": "CAD"
},
"freightClass": "FC_50"
},
"inboundPlanId": "wf1234abcd-1234-abcd-5678-1234abcd5678",
"placementOptionId": "pl1234abcd-1234-abcd-5678-1234abcd5678",
"selectedDeliveryWindow": {
"availabilityType": "AVAILABLE",
"deliveryWindowOptionId": "dw1234abcd-1234-abcd-5678-1234abcd5678",
"editableUntil": "2024-01-05T20:00:00.000Z",
"endDate": "2024-01-05T20:00:00.000Z",
"startDate": "2024-01-05T14:00:00.000Z"
},
"shipmentConfirmationId": "shipmentConfirmationId",
"shipmentId": "sh1234abcd-1234-abcd-5678-1234abcd5678",
"source": {
"sourceType": "SELLER_FACILITY"
}
},
"errors": [
{
"code": "string",
"message": "string",
"details": "string"
}
]
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠429429
🔴500Server Error
🔴503Service Unavailable