Skip to content

Commit 1d472d2

Browse files
committed
added update_shipment_name function to FulfillmentInbound SP-API Client
1 parent 1df020b commit 1d472d2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

sp_api/api/fulfillment_inbound/fulfillment_inbound.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,39 @@ def update_shipment(self, shipment_id, data, **kwargs):
197197
fill_query_params(kwargs.pop("path"), shipment_id), data={**data, **kwargs}
198198
)
199199

200+
@sp_endpoint(
201+
"/inbound/fba/<version>/inboundPlans/{}/shipments/{}/name", method="PUT"
202+
)
203+
def update_shipment_name(self, inboundPlanId, shipmentId, **kwargs):
204+
"""
205+
update_shipment_name(self, inboundPlanId, shipmentId, **kwargs) -> ApiResponse
206+
207+
Updates the name of an existing shipment.
208+
209+
**Usage Plan:**
210+
211+
| Rate (requests per second) | Burst |
212+
| ---- | ---- |
213+
| 2 | 30 |
214+
215+
The `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 than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
216+
217+
Args:
218+
219+
inboundPlanId:string | * REQUIRED Identifier to an inbound plan.
220+
221+
shipmentId:string | * REQUIRED Identifier to a shipment. A shipment contains the boxes and units being inbounded.
222+
223+
body: | * REQUIRED {'name': {'description': 'A human-readable name to update the shipment name to.'}, 'type': 'string'}
224+
225+
Returns:
226+
ApiResponse:
227+
"""
228+
return self._request(
229+
fill_query_params(kwargs.pop("path"), inboundPlanId, shipmentId),
230+
data=kwargs,
231+
)
232+
200233
@sp_endpoint("/fba/inbound/<version>/shipments/{}/preorder")
201234
def preorder(self, shipment_id, **kwargs):
202235
"""

0 commit comments

Comments
 (0)