Tokens API

Learn how to use the Tokens API.

You use the Tokens API to get a Restricted Data Token (RDT) for restricted resources.

Current versionLegacy versionsAvailabilitySandbox
v2021-03-01 (Reference | Model)NoneSellers and VendorsStatic
Release notes

To learn more about the terms that are used in this guide, refer to Terminology.

Restricted operations

Restricted operations return customers' Personally Identifiable Information (PII). You need an RDT to call a restricted operation.

You can call the createRestrictedDataToken operation of the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. Or, if you have a delegatee application, you can get an RDT from a delegator application owned by a developer that you work closely with. In either case, an RDT authorizes you to make calls to operations that return restricted data.

List of restricted operations

Direct Fulfillment Orders API:

  • getOrders
  • getOrder

Direct Fulfillment Orders API v2021-12-28

  • getOrders
  • getOrder

Direct Fulfillment Shipping API:

  • getShippingLabel
  • getShippingLabels
  • getPackingSlip
  • getPackingSlips
  • getCustomerInvoice
  • getCustomerInvoices
  • createShippingLabels

Direct Fulfillment Shipping API v2021-12-28

  • getShippingLabel
  • getCustomerInvoices
  • getCustomerInvoice
  • getPackingSlips
  • getPackingSlip

Easy Ship API v2022-03-23

  • createScheduledPackageBulk

Merchant Fulfillment API:

  • getShipment
  • cancelShipment
  • cancelShipmentOld
  • createShipment

Orders API:

  • getOrders
  • getOrder
  • getOrderItems
  • getOrderRegulatedInfo
  • getOrderAddress
  • getOrderBuyerInfo
  • getOrderItemsBuyerInfo

Reports API:

  • getReportDocument

Shipment Invoicing:

  • getShipmentDetails

Shipping API:

  • getShipment

Use cases

The following use case examples are available for the Tokens API:

Roles for the Tokens API v2021-03-01

createRestrictedDataToken