Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8140b80

Browse files
committedDec 9, 2024·
list_shipment_boxes and update_shipment_tracking_details
1 parent 4cb3f1e commit 8140b80

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
 

‎sp_api/api/fulfillment_inbound/fulfillment_inbound.py

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,3 +1570,64 @@ def set_prep_details(self, **kwargs) -> ApiResponse:
15701570

15711571
return self._request(kwargs.pop('path'), data=kwargs)
15721572

1573+
@sp_endpoint('/inbound/fba/<version>/inboundPlans/{}/shipments/{}/boxes', method='GET')
1574+
def list_shipment_boxes(self, inboundPlanId, shipmentId, **kwargs) -> ApiResponse:
1575+
"""
1576+
list_shipment_boxes(self, **kwargs) -> ApiResponse:
1577+
1578+
Provides a paginated list of box packages in a shipment.
1579+
1580+
**Usage Plan:**
1581+
1582+
| Rate (requests per second) | Burst |
1583+
| ---- | ---- |
1584+
| 2 | 30 |
1585+
1586+
The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits in the Selling Partner API.
1587+
Args:
1588+
1589+
pageSize:string | *OPTIONAL Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1590+
paginationToken: | *OPTIONAL A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the pagination returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1591+
1592+
Returns:
1593+
ApiResponse:
1594+
"""
1595+
1596+
return self._request(fill_query_params(kwargs.pop('path'), inboundPlanId, shipmentId), params=kwargs)
1597+
1598+
@sp_endpoint('/inbound/fba/<version>/inboundPlans/{}/shipments/{}/trackingDetails', method='PUT')
1599+
def update_shipment_tracking_details(self, inboundPlanId, shipmentId, **kwargs) -> ApiResponse:
1600+
"""
1601+
update_shipment_tracking_details(self, **kwargs) -> ApiResponse:
1602+
1603+
Updates a shipment's tracking details.
1604+
1605+
**Usage Plan:**
1606+
1607+
| Rate (requests per second) | Burst |
1608+
| ---- | ---- |
1609+
| 2 | 2 |
1610+
1611+
The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits in the Selling Partner API.
1612+
Args:
1613+
1614+
body: | * REQUIRED {
1615+
'trackingDetails': [
1616+
ltlTrackingDetail: [
1617+
billOfLadingNumber: string,
1618+
freightBillNumber: string<array>
1619+
],
1620+
spdTrackingDetail: [
1621+
spdTrackingItems:[
1622+
boxId: string,
1623+
trackingId: string,
1624+
]
1625+
],
1626+
],
1627+
}
1628+
1629+
Returns:
1630+
ApiResponse:
1631+
"""
1632+
1633+
return self._request(fill_query_params(kwargs.pop('path'), inboundPlanId, shipmentId), data=kwargs)

0 commit comments

Comments
 (0)
Please sign in to comment.