Authentication
Generate a bearer token
Important: A new Bearer token should be generated for each request to ensure that every API call is properly authenticated.
Environments
https://api.aplazo.net/api
Generates a Bearer token for merchants to authenticate and access subsequent API operations.
Body
apiTokenstringRequiredExample:
API token provided to the merchant for accessing BNPL features.
93e28f44-e452-42df-af85-7a9ffb9f5734
merchantIdintegerRequiredExample:
Unique identifier for the BNPL merchant.
4321
Responses
200
Successfully generated the Bearer token.
application/json
400
Bad request. Missing required fields (apiToken or merchantId).
application/json
404
Invalid apiToken or merchantId.
application/json
post
POST /auth HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"apiToken": "93e28f44-e452-42df-af85-7a9ffb9f5734",
"merchantId": 4321
}
{
"Authentication": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJwcm9kdWN0X3NvbHV0aW9uX2VuZ19vbmxpbmUrYXBsYXpvQGdtYWlsLmNvbSIsInJvbGUiOiJST0xFX01FUkNIQU5UIiwic2Vzc2lvbklkIjoiYjc0YTA0YzgtOTE2Ni00MjE4LWE5N2QtMTk1ZTllYWY0ZTM3IiwiZXhwIjoxNzM1MzIyMDUxfQ.bFfU7OX1Fh5BY767EutTRbeJXJxBg9ZThTZnseO0ijmeaHe-v0ifC5M1hDNkQc__WfPW66ZbTqoO4s2sPzf2mQ"
}
Response Examples
Last updated
Was this helpful?