/billing/v1/invoices/{invoiceId}This handler get the invoice details based on the invoice ID
invoiceIdstringrequired
invoiceId for which the details are supposed to be extracted
Invoice Details based on the invoice ID
{
"data": {
"id": "string",
"paymentProfileId": "string",
"network": "string",
"pdfUrl": "string",
"status": "DRAFT",
"totalPaymentAttempts": 123.0,
"subTotal": 123.0,
"taxTotal": 123.0,
"currency": "string",
"invoiceItems": [
"string"
],
"subscriptionItems": [
{
"id": "string",
"network": "string",
"total": 123.0,
"currency": "string",
"paymentProfileId": "string",
"priceId": "string",
"invoiceId": "string",
"subscriptionId": "string",
"description": "string",
"createdAt": "string",
"updatedAt": "string"
}
],
"lastPaymentAttemptDate": "2023-06-07T17:32:28Z",
"periodStart": "2023-06-07T17:32:28Z",
"periodEnd": "2023-06-07T17:32:28Z",
"createdAt": "2023-06-07T17:32:28Z"
}
}/billing/v1/invoicesThis endpoint retrieves a list of all invoices
limitstringThe maximum number of invoices to return (default 20, maximum 100)
startingAfterstringThe ID of the last invoice in the previous page of results. Results will start after this invoice
A list of invoices
{
"data": {
"hasMore": true,
"items": [
{
"id": "string",
"paymentProfileId": "string",
"network": "string",
"pdfUrl": "string",
"status": "DRAFT",
"totalPaymentAttempts": 123.0,
"subTotal": 123.0,
"taxTotal": 123.0,
"currency": "string",
"invoiceItems": [
"string"
],
"subscriptionItems": [
{
"id": "string",
"network": "string",
"total": 123.0,
"currency": "string",
"paymentProfileId": "string",
"priceId": "string",
"invoiceId": "string",
"subscriptionId": "string",
"description": "string",
"createdAt": "string",
"updatedAt": "string"
}
],
"lastPaymentAttemptDate": "2023-06-07T17:32:28Z",
"periodStart": "2023-06-07T17:32:28Z",
"periodEnd": "2023-06-07T17:32:28Z",
"createdAt": "2023-06-07T17:32:28Z"
}
]
}
}Was this page helpful?