Get Invoice
curl --request GET \
--url https://connect.withvayu.com/invoices/{invoiceId} \
--header 'Authorization: Bearer <token>'{
"invoice": {
"customerId": "<string>",
"name": "<string>",
"billingCycle": {
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z"
},
"revenueBreakdown": {
"total": 123,
"subtotal": 123,
"overage": 123,
"discount": 123,
"creditsUsed": 123,
"tax": 123
},
"dueDate": "2023-11-07T05:31:56Z",
"accountId": "<string>",
"lineItems": [
{
"invoiceId": "<string>",
"revenueBreakdown": {
"total": 123,
"subtotal": 123,
"overage": 123,
"discount": 123,
"creditsUsed": 123,
"tax": 123
}
}
],
"amount": 123,
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"contractId": "<string>",
"paymentInfo": {
"transactionId": "<string>",
"date": "2023-11-07T05:31:56Z",
"paymentMethod": "<string>",
"paymentMethodId": "<string>",
"amount": 1,
"status": "<string>",
"note": "<string>",
"customerId": "<string>",
"depositTo": {
"name": "<string>",
"id": "<string>"
}
}
}
}Invoices
Get Invoice
Get a Invoice by id.
GET
/
invoices
/
{invoiceId}
Get Invoice
curl --request GET \
--url https://connect.withvayu.com/invoices/{invoiceId} \
--header 'Authorization: Bearer <token>'{
"invoice": {
"customerId": "<string>",
"name": "<string>",
"billingCycle": {
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z"
},
"revenueBreakdown": {
"total": 123,
"subtotal": 123,
"overage": 123,
"discount": 123,
"creditsUsed": 123,
"tax": 123
},
"dueDate": "2023-11-07T05:31:56Z",
"accountId": "<string>",
"lineItems": [
{
"invoiceId": "<string>",
"revenueBreakdown": {
"total": 123,
"subtotal": 123,
"overage": 123,
"discount": 123,
"creditsUsed": 123,
"tax": 123
}
}
],
"amount": 123,
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"contractId": "<string>",
"paymentInfo": {
"transactionId": "<string>",
"date": "2023-11-07T05:31:56Z",
"paymentMethod": "<string>",
"paymentMethodId": "<string>",
"amount": 1,
"status": "<string>",
"note": "<string>",
"customerId": "<string>",
"depositTo": {
"name": "<string>",
"id": "<string>"
}
}
}
}⌘I
