Payments
Process a payment
Customers
Wallets
Invoices
Entitlements
Environments
Events
Features
Payments
Integrations
Subscriptions
Tenants
Users
Payments
Process a payment
Process a payment
POST
/
payments
/
{id}
/
process
curl --request POST \
--url https://api.cloud.flexprice.io/v1/payments/{id}/process \
--header 'x-api-key: <api-key>'
{
"amount": 123,
"attempts": [
{
"attempt_number": 123,
"created_at": "<string>",
"created_by": "<string>",
"error_message": "<string>",
"id": "<string>",
"metadata": {},
"payment_id": "<string>",
"tenant_id": "<string>",
"updated_at": "<string>",
"updated_by": "<string>"
}
],
"created_at": "<string>",
"created_by": "<string>",
"currency": "<string>",
"destination_id": "<string>",
"destination_type": "INVOICE",
"error_message": "<string>",
"failed_at": "<string>",
"id": "<string>",
"idempotency_key": "<string>",
"invoice_number": "<string>",
"metadata": {},
"payment_method_id": "<string>",
"payment_method_type": "CARD",
"payment_status": "PENDING",
"refunded_at": "<string>",
"succeeded_at": "<string>",
"tenant_id": "<string>",
"track_attempts": true,
"updated_at": "<string>",
"updated_by": "<string>"
}
Authorizations
Enter your API key in the format x-api-key <api-key>*
Path Parameters
Payment ID
Response
200
application/json
OK
The response is of type object
.
curl --request POST \
--url https://api.cloud.flexprice.io/v1/payments/{id}/process \
--header 'x-api-key: <api-key>'
{
"amount": 123,
"attempts": [
{
"attempt_number": 123,
"created_at": "<string>",
"created_by": "<string>",
"error_message": "<string>",
"id": "<string>",
"metadata": {},
"payment_id": "<string>",
"tenant_id": "<string>",
"updated_at": "<string>",
"updated_by": "<string>"
}
],
"created_at": "<string>",
"created_by": "<string>",
"currency": "<string>",
"destination_id": "<string>",
"destination_type": "INVOICE",
"error_message": "<string>",
"failed_at": "<string>",
"id": "<string>",
"idempotency_key": "<string>",
"invoice_number": "<string>",
"metadata": {},
"payment_method_id": "<string>",
"payment_method_type": "CARD",
"payment_status": "PENDING",
"refunded_at": "<string>",
"succeeded_at": "<string>",
"tenant_id": "<string>",
"track_attempts": true,
"updated_at": "<string>",
"updated_by": "<string>"
}