B2B API Specification

Version version: 3.2.8

production
sandbox

B2B Payment API

Grant Type: Client Credentials or Refresh Token

This endpoint serves multiple purposes. It will grant the initial access token via the

grant_type=client_credentials
parameter, as well as a refresh token via the
grant_type=refresh_token
parameter.

Get Client Credentials or Refresh Token

post /v3/token

For grant_type=client_credentials the client_id should be your PayTrace API username, while the client_id is your PayTrace API password.

For grant_type=refresh_token only a refresh_token is required (it should be the value of the refresh_token provided by a client_credentials call).

Example of the initial client_credentials request:

curl 'https://api.paytrace.com/v3/token' -XPOST \
  -H'Content-Type: application/x-www-form-urlencoded' \
  --data-raw 'grant_type=client_credentials' \
  --data-raw 'client_id=YourApiUsername' \
  --data-raw 'client_secret=YourApiPassword'

Example of the refresh_token request:

curl 'https://api.paytrace.com/v3/token?grant_type=refresh_token' \
  '&refresh_token=<value of your refresh token>' \
  -XPOST
Parameters
X-Integrator-Id
string
Maximum:
12

Loading...

Request Schema
client_id required
string

Loading...

client_secret required
string

Loading...

grant_type required
string
Default:
client_credentials

Loading...

Example Request
{
  "client_id": "string",
  "client_secret": "string",
  "grant_type": "client_credentials"
}
Example Response
201 Successful Response
422 Validation Error

Contact Us

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.