curl --request POST \
--url http://localhost:3001/api/v1/business/payment \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"amount": 49.99,
"currency": "usd",
"email": "customer@example.com",
"description": "Premium plan subscription",
"metadata": {
"orderId": "ORD-123",
"sku": "PLAN-PRO"
}
}
'{
"success": true,
"data": {
"paymentId": "<string>",
"status": "pending",
"amount": 123,
"currency": "<string>",
"transactionId": "<string>",
"paymentUrl": {},
"refundId": "<string>",
"requiresAction": {},
"createdAt": "2023-11-07T05:31:56Z"
}
}curl --request POST \
--url http://localhost:3001/api/v1/business/payment \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"amount": 49.99,
"currency": "usd",
"email": "customer@example.com",
"description": "Premium plan subscription",
"metadata": {
"orderId": "ORD-123",
"sku": "PLAN-PRO"
}
}
'{
"success": true,
"data": {
"paymentId": "<string>",
"status": "pending",
"amount": 123,
"currency": "<string>",
"transactionId": "<string>",
"paymentUrl": {},
"refundId": "<string>",
"requiresAction": {},
"createdAt": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.useaxra.com/llms.txt
Use this file to discover all available pages before exploring further.
Payment amount
49.99
ISO 4217 currency code
"usd"
Customer email for receipts
"customer@example.com"
Payment description shown to customer
"Premium plan subscription"
Arbitrary metadata attached to the payment
{ "orderId": "ORD-123", "sku": "PLAN-PRO" }