Authentication

The Fiat Republic API uses the OAuth 2.0 client credentials authentication flow and requires a Bearer Token to authenticate requests. All API calls must include a bearer token in the Authorization header.

You can create your Client ID from the Developers section on the Dashboard.

You can request an access token by sending using your Client ID, Client Secret and Scope in the request body of the Create API Token endpoint.

You will also be required to provide the following scope:

  • PAYMENTS
curl --request POST \
     --url https://sandbox.fiatrepublic.com/passport/oauth/token \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/x-www-form-urlencoded' \
     --data '
{
    grant_type: "client_credentials"
    scope: "PAYMENTS"
    client_id: "your_client_id"
    client_secret: "your_client_secret"
}
'
{
   "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJI...",
   "token_type": "bearer",
   "expires_in": "3599"
}

Did this page help you?