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:

Step 1. Get an RDT

  1. Call the createRestrictedDataToken operation.
  2. Save the restrictedDataToken value (the RDT) to use in Step 2. Include the RDT with a call the getShipment operation.

Step 2. Include the RDT with a call the getShipment operation

Call 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.