The WapiPay API uses OAuth 2.0 authentication. This POST request is responsible for exchanging your credentials for a Bearer token.
This request returns a bearer token that must be included in the Authorization header of every subsequent API call as:Bearer {token}.
Tokens expire after one hour. Your application should be designed to handle 401 Unauthorized responses by automatically requesting a new token.
client_id
The unique ID assigned to your application.
client_secret
The secure key used to sign requests.
grant_type
Determines how credentials are sent (e.g., client_credentials).
scope
Defines the level of access requested.
/connect/tokenTarget URL: https://sandbox-test.wapipay.com/connect/token