Access Token
Get a token for our APIs.
Getting Started
Accsess Token
Request Body
Name
Type
Description
{
"refresh": "example refresh token",
"access": "example access"
}{
detail: "No active account found with the given credentials"
}Example: Token request
curl --location --request POST 'https://api.stage.localpayment.com
/api/token/' \
--header 'x-version: LPV3' \
--header 'x-forwarded-for: 1' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "USERNAME_PROVIDED_BY_LOCALPAYMENT",
"password": "PASSWORD_PROVIDED_BY_LOCALPAYMENT"
}'Example: Token response
How to use a Refresh Token
Refresh
Request Body
Name
Type
Description
Example: Refresh Token request
Last updated
Was this helpful?