Payments
Payment objects represent your customer's payment transactions. You can use them in conjunction with Payment Intents to process payments, or store them on Customer objects to retain transaction details and track any future changes, such as status updates.
Get all payments
This method retrieves a list of all payment transactions, including those that are completed, failed, or still in the post-initiation stage, providing an overview of all payment statuses.
get
Authorizations
Query parameters
pageintegerOptional
A page number within the paginated result set.
Responses
200Success
application/json
get
GET /v1/transaction/payment/ HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2",
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"amount": "text",
"fee": "text",
"refunded": "text",
"currency": "text",
"status": "pending",
"refund": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"amount": "text",
"currency": "text",
"payment": "123e4567-e89b-12d3-a456-426614174000",
"gateway_id": "text",
"created": "2025-06-26T10:12:50.047Z"
}
],
"created": "2025-06-26T10:12:50.047Z"
}
]
}
Get payment
This method fetches detailed information about a specific payment transaction using its unique identifier, allowing you to retrieve the current status, amount, and other relevant details for that payment.
get
Authorizations
Path parameters
idstringRequired
Responses
200Success
application/json
get
GET /v1/transaction/payment/{id}/ HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"amount": "text",
"fee": "text",
"refunded": "text",
"currency": "text",
"status": "pending",
"refund": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"amount": "text",
"currency": "text",
"payment": "123e4567-e89b-12d3-a456-426614174000",
"gateway_id": "text",
"created": "2025-06-26T10:12:50.047Z"
}
],
"created": "2025-06-26T10:12:50.047Z"
}
Last updated