Get subscription payments
METHOD | URL |
---|---|
GET | /subscriptions/{subscriptionId}/payments?page={page}&pageSize={pageSize} |
EXAMPLE | https://test.api.macropay.com/v2/subscriptions/{subscriptionId}/payments?page={page}&pageSize={pageSize} |
Endpoint to get subscription payments.
SUCCESS RESPONSES - GET SUBSCRIPTION PAYMENTS
HTTP CODE | DESCRIPTION |
---|---|
200 | Subscription payments are provided in the body in JSON format. |
SUCCESS RESPONSE EXAMPLE - GET SUBSCRIPTION PAYMENTS
{
"payments": [
{
"paymentId": "0195146c-7640-7670-a201-d41915357d91",
"paymentType": "initial",
"paymentCycle": 0,
"numAttempt": 0,
"status": "accepted",
"dueDate": "2025-02-17T14:59:35.754Z",
"cycleReferenceDate": "2025-02-17T14:59:35.754Z",
"amount": 15.5,
"currency": "EUR",
"transactions": [
{
"transactionId": "e34c0fde-a308-4f8f-8bfd-33828379b96c",
"transactionDate": "2025-02-17T14:59:39.267Z"
}
]
},
{
"paymentId": "0195146c-a0c0-7462-8de2-d8b278868065",
"paymentType": "renewal",
"paymentCycle": 1,
"numAttempt": 0,
"status": "paying",
"dueDate": "2025-02-24T17:45:00Z",
"cycleReferenceDate": "2025-02-24T17:45:00Z",
"amount": 30.0,
"currency": "EUR"
}
],
"pagination": {
"totalRecords": 2,
"currentPage": 1,
"pageSize": 10,
"totalPages": 1
}
}
ERROR RESPONSES - GET SUBSCRIPTIONS
HTTP CODE | ERROR CODE | ERROR MESSAGE | DESCRIPTION |
---|---|---|---|
500 | 0900 | Internal Server Error | The server experienced an unexpected error. |