Authentication (OAuth)
To access all of our services, you must obtain an authentication token. This token must be used in the request header.
Authentication Route
Endpoints:
- Staging:
POSThttps://identity-staging.pay2freetech.com/oauth2/token - Production:
POSThttps://{BASEURL}/oauth2/token
Headers:
- Authorization:
TOKEN_AUTHENTICATION - Content-Type:
application/x-www-form-urlencoded
Body (URL Encoded):
client_id = CUSTOMER ID
client_secret = CUSTOMER KEY
grant_type = client_credentials
Response:
{
"access_token": "TOKEN_AUTHENTICATION",
"expires_in": 3600,
"token_type": "Bearer"
}