VendorShipments#

class sp_api.api.VendorShipments(marketplace: ~sp_api.base.marketplaces.Marketplaces = Marketplaces.US, *, refresh_token=None, account='default', credentials=None, restricted_data_token=None, proxies=None, verify=True, timeout=None, version=None, credential_providers=None, auth_token_client_class=<class 'sp_api.auth.access_token_client.AccessTokenClient'>)#

VendorShipments SP-API Client :link:

The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.

submit_shipment_confirmations(self, **kwargs) ApiResponse#

Submits one or more shipment confirmations for vendor orders.

Usage Plan:

Rate (requests per second)

Burst

10

10

For more information, see “Usage Plans and Rate Limits” in the Selling Partner API documentation.

Examples

literal blocks:

VendorShipments().submit_shipment_confirmations()
Parameters:

body – SubmitShipmentConfirmationsRequest | required A request to submit shipment confirmation.

Returns:

ApiResponse

submit_shipments(self, **kwargs) ApiResponse#

Submits one or more shipment request for vendor Orders.

Usage Plan:

Rate (requests per second)

Burst

10

10

For more information, see “Usage Plans and Rate Limits” in the Selling Partner API documentation.

Examples

literal blocks:

VendorShipments().submit_shipments()
Parameters:

body – SubmitShipments | required A request to submit shipment request.

Returns:

ApiResponse

get_shipment_details(self, **kwargs) ApiResponse#

Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify.

Usage Plan:

Rate (requests per second)

Burst

10

10

For more information, see “Usage Plans and Rate Limits” in the Selling Partner API documentation.

Examples

literal blocks:

VendorShipments().get_shipment_details()
Parameters:
Returns:

ApiResponse

submit_shipment_confirmation(self, **kwargs) ApiResponse#

Submits one shipment confirmation for vendor orders and get response immediately.

Usage Plan:

Rate (requests per second)

Burst

10

10

For more information, see “Usage Plans and Rate Limits” in the Selling Partner API documentation.

Examples

literal blocks:

VendorShipments().submit_shipment_confirmation()
Parameters:

body – SubmitShipmentConfirmationRequest | required A request to submit shipment confirmation.

Returns:

ApiResponse

get_shipment_labels(self, **kwargs) ApiResponse#

Returns small parcel shipment labels based on the filters that you specify.

Usage Plan:

Rate (requests per second)

Burst

10

10

For more information, see “Usage Plans and Rate Limits” in the Selling Partner API documentation.

Examples

literal blocks:

VendorShipments().get_shipment_labels()
Parameters:
  • limit (key) – object | The limit to the number of records returned. Default value is 50 records.

  • sortOrder (key) – object | Sort the list by shipment label creation date in ascending or descending order.

  • nextToken (key) – object | A token that you use to retrieve the next page of results. The response includes nextToken when the number of results exceeds the specified pageSize value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until nextToken is null. Note that this operation can return empty pages.

  • labelCreatedAfter (key) – object | Shipment labels created after this time will be included in the result. This field must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) datetime format.

  • labelCreatedBefore (key) – object | Shipment labels created before this time will be included in the result. This field must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) datetime format.

  • buyerReferenceNumber (key) – object | Get Shipment labels by passing buyer reference number.

  • vendorShipmentIdentifier (key) – object | Get Shipment labels by passing vendor shipment identifier.

  • sellerWarehouseCode (key) – object | Get Shipping labels based on vendor warehouse code. This value must be same as the sellingParty.partyId in the shipment.

Returns:

ApiResponse