requires_action response so you can redirect the cardholder without changing your integration.
The base URL for all Axra Pay API requests is
https://api.useaxra.com/api/v1. All requests must be made over HTTPS.Checkout sessions
Hosted checkout for cards and local rails.
Card payments
Server-to-server card charging.
Local payment methods
Bank transfers, mobile money, and instant EFT settled in USDC.
Charge a card (server-to-server)
POST /business/payment/charge
Use this endpoint to charge a card directly from your server. You must have server-to-server (S2S) charging enabled on your business account. If the card requires a 3DS challenge, the response will contain a requiresAction object instead of an immediate succeeded status — see 3DS authentication for the full flow.
Authentication
Pass your API key in thex-api-key header, or include a valid JWT Authorization: Bearer <token> header on every request.
Request parameters
Card details — provide eithercard or savedTokenId, not both.
Raw card details. Required if
savedTokenId is not provided. Supply this object only over a server-to-server connection — never expose card data on the client.A previously saved card token. Required if
card is not provided. Tokens are created when saveCard: true is included in a prior charge request.A short description of the payment (e.g.,
"Order #1042"). Stored on the payment record and visible in your dashboard.Customer’s IP address. Recommended — Axra Pay’s fraud scoring engine uses this signal to assess risk.
URL to redirect the customer to after they complete (or cancel) a 3DS challenge. Required if your cards may trigger 3DS. After 3DS the payer returns via Axra’s page; we append
3ds=complete or 3ds=failed and paymentId. This URL is never shared with the card processor.Customer billing address. Improves authorization rates and is required by some card networks for address verification.
When
true, Axra Pay tokenizes the card and returns a savedTokenId you can use for future charges without requiring the customer to re-enter card details.Arbitrary key-value pairs (string keys, string or number values). Stored on the payment and returned in webhook events. Useful for attaching internal order IDs or customer references.
Responses
Immediate success —status: "succeeded"
What the customer’s card was charged. May exceed
amount by serviceFee. The customer’s
statement shows this figure. Equals amount when there is no service fee.Service fee added on top of
amount. chargedAmount = amount + serviceFee. Zero when there
is no uplift. Always present.Axra transaction reference for this charge. Required when calling
POST /business/payment/confirm-3ds.status: "requires_action"
"requires_action" — the card issuer requires an additional authentication step before completing the charge.Example
S2S
returnUrl is still honoured as the payer’s destination after 3DS. The payer returns via Axra’s page; we append 3ds=complete or 3ds=failed and paymentId. The URL is never shared with the card processor.Confirm a 3DS challenge
POST /business/payment/confirm-3ds
After a customer completes a 3DS challenge they return via Axra’s page, then to your returnUrl (with 3ds=complete|failed and paymentId). Call this endpoint with the transactionId from the original charge response to finalize the payment. Your returnUrl is never shared with the card processor.
Call this endpoint after the customer has completed the 3DS challenge in their browser. Calling it prematurely will result in a failed confirmation.
Request parameters
The
transactionId returned in the original POST /business/payment/charge response when status was "requires_action".Response fields
Example
Get a payment
GET /business/payment/:paymentId
Retrieve the full details of a single payment by its ID. Use this endpoint to check the current status of a payment, inspect fee breakdowns, or confirm settlement.
Path parameters
Response fields
Payment lifecycle status.
"COMPLETED" means the payment has been confirmed and funds are allocated for settlement. Other possible values: "PENDING", "FAILED", "REFUNDED".Axra transaction reference for the charge. Use when contacting support about a specific payment.
All metadata key-value pairs submitted with the original charge, plus an Axra-generated
feeBreakdown object showing processing fees.Example
List payments
GET /business/payments
Retrieve a paginated list of all payments for your business, ordered by creation time (most recent first).
Query parameters
Response fields
Array of payment objects. Each object has the same structure as the Get a payment response.
Example
Refund a payment
POST /business/payment/:paymentId/refund
Issue a full refund for a completed payment. The refund is applied to the original card and the payment status is updated to "REFUNDED".
Path parameters
Response fields
Example
Error responses
Idempotency
Axra Pay automatically deduplicates charge requests to prevent accidental double charges. If two requests are made within the same one-minute window with the same combination of:- Business ID
- Card last four digits (or
savedTokenId) amountcurrency
Rate limiting
When you exceed a rate limit, the API returns a
429 Too Many Requests response. Implement exponential backoff before retrying.