Get list of user debits/charges
GET/api/gateway/v1/user-billing/debits
Get list of user debits/charges
Request
Query Parameters
Possible values: <= 50
Default value: 25
Number of items per page
Default value: 1
Page number
Default value: DESC
Order of the items
Key of the items
After cursor
Before cursor
Header Parameters
Gateway API key
Responses
- 200
- 400
- 401
List of user debits/charges
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
Possible values: [UNSECURED_BALANCE
, SECURED_BALANCE
]
Possible values: [PENDING
, FINALIZED
, CANCELED
, TEMP_REJECTED
, PERMANENT_REJECTED
]
Possible values: [MIN_LIMIT_EXCEEDED
, MAX_LIMIT_EXCEEDED
, END_OF_BILLING_CYCLE
]
meta
object
Current page number
Number of items per page
Number of returned items
Total number of items
Total number of pages
Has next page
Has previous page
{
"status": 200,
"message": "OK",
"data": [
{
"id": "string",
"userId": "string",
"userName": "string",
"userBalanceType": "UNSECURED_BALANCE",
"externalId": "string",
"serviceCode": "string",
"billingCode": "string",
"amount": 0,
"currency": "string",
"note": "string",
"status": "PENDING",
"originatedEvent": "MIN_LIMIT_EXCEEDED",
"reportedAt": "2024-07-29T15:51:28.071Z",
"createdAt": "2024-07-29T15:51:28.071Z",
"batchCode": "string",
"lastMessage": "string",
"lastProcessedAt": "2024-07-29T15:51:28.071Z",
"lastRetryCount": "string",
"nextRetryDate": "2024-07-29T15:51:28.071Z"
}
],
"meta": {
"page": 1,
"perPage": 10,
"count": 10,
"totalCount": 100,
"totalPages": 10,
"hasNextPage": true,
"hasPrevPage": false
}
}
Invalid query parameters
- application/json
- Schema
- Example (from schema)
Schema
error
object
Error code
Error detail
{
"status": 400,
"message": "Invalid payload",
"error": {
"code": "string",
"detail": "Invalid payload"
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error
object
Error code
Error detail
{
"status": 401,
"message": "Invalid API key",
"error": {
"code": "UNAUTHORIZED",
"detail": "Invalid API key"
}
}