Subscriptions
List a subscription's invoices
GET
Lists the invoices of a subscription newest first, 25 per page.
apiKeyheader
AuthorizationBearer <token>An API key of the organization the request acts for, created in the dashboard and sent as "Authorization: Bearer ".
id*stringThe ID of the subscription
Format
uuidExample
"9b2e7c41-5d8a-4f3e-b6c1-0a4d2e8f7b19"cursor?stringThe nextCursor of the previous page
Format
uuidOne page of the invoices, newest first
application/json- response
invoices*array<>nextCursor*|The cursor that returns the next page, or null on the last page
Format
uuidcurl -X GET 'https://api.rapidopagos.com/subscription/9b2e7c41-5d8a-4f3e-b6c1-0a4d2e8f7b19/invoices'Example Response
{ "invoices": [ { "id": "3c8a1f5e-7b2d-4e9a-8c6f-1d0b5a7e9f24", "subscriptionId": "9b2e7c41-5d8a-4f3e-b6c1-0a4d2e8f7b19", "reason": "subscription-start", "status": "open", "subtotal": 0, "itbis": 0, "creditApplied": 0, "total": 0, "exchangeRate": "string", "chargedAmount": 0, "periodStart": "2019-08-24T14:15:22Z", "periodEnd": "2019-08-24T14:15:22Z", "attemptCount": 0, "nextAttemptAt": "2019-08-24T14:15:22Z", "lastIsoCode": "string", "collectionStartedAt": "2019-08-24T14:15:22Z", "heldReason": "unknown-sale", "heldAt": "2019-08-24T14:15:22Z", "paidAt": "2019-08-24T14:15:22Z", "pendingChange": { "items": [ { "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "quantity": 0, "unitAmount": 0, "unitItbis": 0 } ], "recurringInterval": "week", "billingAnchor": "2019-08-24T14:15:22Z" }, "lines": [ { "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "description": "string", "quantity": 0, "unitAmount": 0, "unitItbis": 0, "amount": 0, "itbis": 0, "periodStart": "2019-08-24T14:15:22Z", "periodEnd": "2019-08-24T14:15:22Z", "proration": true } ], "payments": [ { "paymentId": "472e651e-5a1e-424d-8098-23858bf03ad7", "processorReference": "string", "chargedAmount": 0, "approvedAt": "2019-08-24T14:15:22Z", "refunds": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "amount": 0, "itbis": 0, "kind": "refund", "status": "pending", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "53a4a333-2825-45a4-80d2-5f430d088f36"}