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 API key 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 --location 'https://sandbox.fiatrepublic.com/passport/oauth/token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=PAYMENTS' \
--data-urlencode 'client_id=your_client_id' \
--data-urlencode 'client_secret=your_client_secret'
{
   "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJI...",
   "token_type": "bearer",
   "expires_in": 3599
}