curl --location --request POST '/api/v1/checkout-sessions' \
--header 'x-business-id;' \
--header 'Idempotency-Key;' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"toCurrency": "NGN",
"toAmount": 500000,
"customerEmail": "user@example.com",
"customerName": "string",
"metadata": {}
}'
{
"success": true,
"data": {
"id": "sess_123",
"status": "created",
"authToken": "eyJhbGciOi...",
"toCurrency": "NGN",
"toAmount": 500000,
"createdAt": "2025-01-01T12:00:00Z",
"updatedAt": "2025-01-01T12:00:00Z"
}
}