FORMAX DEVELOPER API
  1. Prepaid Card SDK
FORMAX DEVELOPER API
  • Prepaid Card SDK
    • Get Authorization API
      POST
    • Web SDK Redirect URL
      GET
  • PPI Fund Transfer API
  1. Prepaid Card SDK

Get Authorization API

POST
http://api.formaxpay.com/api/prepaid_card/get_authorization
This API is used to authenticate the client and generate an access token for Web SDK integration. It also accepts a redirect URL parameter, which will be used by the SDK to redirect the user after successful authentication.

Request

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://api.formaxpay.com/api/prepaid_card/get_authorization' \
--header 'Authorization: Basic eFZ0UEtwSzQxSXhmbE9UbXM4U05JZEFVSTZTaTdJWmk6NyooKzg7I0gtYU5RJyEkdUMpNWA=' \
--header 'Content-Type: application/json' \
--data-raw '{
    "outlet_id": "PM2546386719"
}'
Response Response Example
{
    "status": "SUCCESS",
    "message": "Authorization token generated",
    "data": {
        "authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvdXRsZXRfaWQiOiJQTTI1NDYzODY3MTkiLCJpYXQiOjE3NDk3MTQ2MDIsImV4cCI6MTc0OTgwMTAwMn0.1qyI3QFtBaJOCD1yPY34vnn7cz8I30qv9X-gRNmniXE"
    }
}
Modified at 2025-06-12 13:08:46
Next
Web SDK Redirect URL
Built with