Use the Try It Interface

📘

BEARER TOKEN LIFESPAN

The lifespan of a Bearer token is one hour (3600 seconds) for both sandbox and production environments.

Interactive Try It interface

Use the API reference's Try It interface as shown below by using our sandbox predefined values to familiarize yourself with our APIs.

  1. For example, to generate a bearer token, click API Tools in the developer portal.
  2. Click /apip/auth/v2/token .
  3. Use your sandbox client Id and client secret in their respective fields, and use client_credentials in the grant_type field and click Try It.

or

  1. Click and select the pre-populated values and click Try It.
  2. Click 200, highlighted in the following figure, to view the sample response contents.

2174

Try It Feature


2066

API Response Sample

👍

IMPORTANT

For sandbox usage, all fields must have the correct predefined values to obtain a successful response. Inventing new PMI values or using real-world PMI values will result in errors. Please provide all of the values, such as tradingPartnerServiceId, controlNumber, subscriber, and so on marked as required (R) (see example) in your API requests.

HTTP Response Codes

API Response Codes

API Response Codes

Related Topics