Get authorization to access shipment information for multiple shipments
Learn how to use the Tokens API to get authorization to access shipment information for multiple shipments.
Learn how to use the Tokens API to get authorization to access shipment information for multiple shipments. You can get an RDT that provides authorization to get shipment information for any of a selling partner's shipments.
Prerequisites
To complete this tutorial, you need:
- Authorization from the selling partner for whom you are making calls. For more information, refer to Authorizing Selling Partner API applications.
- The Direct-to-Consumer Shipping (Restricted) role assigned to your developer profile.
- The Direct-to-Consumer Shipping (Restricted) role selected in the app registration page for your application.
- Shipment IDs for the shipments that you want to get shipment information for.
Step 1. Get an RDT
- Call the
createRestrictedDataToken
operation. - Save the
restrictedDataToken
value (the RDT) to use in Step 2. Include the RDT with a call thegetShipment
operation.
Step 2. Include the RDT with a call the getShipment
operation
getShipment
operationCall the getShipment
operation of the Merchant Fulfillment API, using the generic path that you specified in Step 1. Get an RDT and replacing {shipmentId}
with a real shipment ID from the selling partner. For example, GET /mfn/v0/shipments/FBA1234ABC5D
. Repeat this step for all of the shipments for which you want shipping information, specifying the appropriate shipment ID with each call. Each call must include the RDT from Step 1. Get an RDT in the x-amz-access-token
header.
Note
An RDT remains valid for one hour.
Updated about 10 hours ago