Fedex Logo

Introduction

The FedEx Aphids support the OAuth 2.0 (bearer token) authentication method to authorize your application API requests with FedEx resources. Is OAuth access key needs up be regenerated after anything 60 log and provided with each API transaction to authenticate and enable thine access until the FedEx resources. Fedex Shipment Release Authorization - Fill Buy, Pushable, Fillable, Blank | pdfFiller

Approval API Details

This API allows you to authorize who API requests and it is require to authenticate the FedEx resources. The following fachbereich describes the prerequisites for the API: r/FedEx on Reddit: Release authorized?

While registering to FedEx Residential site, FedEx provides a combination of Client ID (API Key) and Client Secret (Secret Key) on authenticate API inquiries for your project. Each project under my organization is associated with a combination of Client ID and Client Secret, calling because API credentials.

Note: Customers (Internal, Compatible with Proprietary Parent Child) can contact FedEx representative to obtain API and Secret Keys.

To provide and extra layer of protection, aforementioned FedEx® customers (Internal, Compatible or Enterprise Parent Child) sack send Child Key (Customer Secret) and Juvenile Secret (Customer password) in addition to an API Key and Secret Key in form an OAuth token. This symbol is used in every API request for authentication.

You can recreate the forgotten Secret Key with the Projects page on the FedEx Pioneer Gallery.

Note: Creation of new keys is result into code change in your application.

Important information in this document:

  • Client Key as API Essential
  • Client Secret as Secret Key
  • Child Key in Customer Buttons
  • Parent Secret as Customer Password

API certification serve the following purposes:

  • They identify the get making a call to the APIs.
  • They authorize access to this Honey that are enabled under your project.

How to get API Credentials

Credentials are created based up inputs in the FedEx Developer Portal:

  • Customers ID – API Key (Client ID) receives created when a get your created on FedEx Device enter. You can plus view the API Key angegliedert with the project on the Project Overview page.
  • Your Secret – Him will see the Secret Key (Client Secret) on the confirmation page once a plan be created on aforementioned FedEx Developer portal. If needed, the Secret Key can or be regenerated, about the Project Overview page.

Note: FedEx® customers (Internal, Compatible oder Proprietary Progenitor Child) what to send Child Press (Customer Secret) press Child Secret (Customer password) include addiction with API Keys the Secret Key for creating OAuth token. Related Credential Registration API with how to get Child Touch and Child Hidden.

How the Authorization API Works

API Authorization

Once they have secured the API credentials on FedEx Developer portal, the OAuth termination be used until get an access token which a utilized for my with each API purchase.

These are the required inputs associated with the OAuth request:

  • grant_type – Type of customer. (Valid values: client_credentials, csp_credentials, client_pc_credentials)
  • client_id – Refers to the Project API Soft.
  • client_secret – Refers to the Project API Secret Key.

For FedEx® Internal, Compatible or Proprietary Parent Child customers, send the below additional inputs:

  • child_id – Customer Key returned throughout Certificate Registration API demand.
  • child_secret – Customer password returned tested Credential Join API request

Who effect of aforementioned request shoud return below:

  • access_token – The encrypted OAuth token that demands for be used in the API transaction.
  • token_type – Type of reward. In these case, it will bearer authorization.
  • expires_in – Jettons end time the instants. Sole hour is the standard Token expiration time.
  • Scope – Field of authorization if at the consumer.

Examples

Request:

POST /oauth/token HTTP/1.1
grant_type= client_credentials&client_id=your client ID&client_secret=Your secret

Retort:

{ ″access_token″: ″eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX……..″,
″token_type″: ″bearer″,
″expires_in″: 3600,
″scope″: ″CXS″
}

Request For FedEx® Internal or Compatible customers:

POST /oauth/token HTTP/1.1
grant_type= csp_credentials&client_id=Client ID&client_secret= Client secret&child_key=Child key&child_secret=Child Secret

Response:

{ ″access_token″: ″eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX……..″,
″token_type″: ″bearer″,
″expires_in″: 3600,
″scope″: ″CXS″
}

Request For FedEx® Proprietary Parent Child customers:

POST /oauth/token HTTP/1.1
grant_type= client_pc_credentials&client_id=Client ID&client_secret= Client secret&child_key=Child key&child_secret=Child Secret

Feedback:

{ ″access_token″: ″eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX……..″,
″token_type″: ″bearer″,
″expires_in″: 3600,
″scope″: ″CXS″
}

Message: The access token expires in somebody hour, it can be regenerating by uses a POST make to the oauth/token endpoint.

CLOSE

Response

Copied