FlexPay employs a Basic HTTP Base64 encoded header authorization format to secure access to its API endpoints.
To initiate a request to any of FlexPay’s endpoints, your HTTPS header request must include the 'Authorization' field with the value "Basic" followed by your API key, as demonstrated in the examples below:
Example Header Request
curl "https://api.flexpay.io/v1/transactions” \
-H "Authorization: Basic kIqCBL40PaoL2Tg28hUxVgtqKgYDTSLnl5J3iwptJH"
curl "https://er.flexpay.io/v1/customers” \
-H "Authorization: Basic kIqCBL40PaoL2Tg28hUxVgtqKgYDTSLnl5J3iwptJH"
Ensure you use the appropriate API keys corresponding to the mode (Sandbox or Live) and merchant account you intend to operate with.