Invoice

The "Invoice" section allows clients to access their invoice history, providing details on all past invoices. Additionally, users can retrieve information about their latest invoice, facilitating easy tracking of financial transactions and ensuring transparency in billing.

Get last invoice

GET {{BASE_URL}}/api/teams/{id}/last-invoice

Get information about your last bill.

Path Parameters

NameTypeDescription

id*

String

Team ID

Headers

NameTypeDescription

Authorization*

String

Bearer Token

{
    "_id": "65490130ff600e06af2a9694",
    "invoiceId": "in_1O9UOhA0ZUrt0vQJoum7M20X",
    "user": "6548a41138406c14db33b606",
    "status": "paid",
    "amount": 3300,
    "invoicePdf": "https://pay.stripe.com/invoice/acct_1NOaelA0ZUrt0vQJ/test_YWNjdF8xTk9hZWxBMFpVcnQwdlFKLF9PeFBENUF5elR4cDU3bU5ycVVreUVuVVd3dm5hTmhnLDg5ODI0MDY202009yaqn40z/pdf?s=ap",
    "createdAt": "2023-11-06T15:07:28.550Z",
    "updatedAt": "2023-11-06T15:07:46.295Z"
}

Get billing history

GET {{BASE_URL}}/api/teams/{id}/billing-history

Get all invoices for a specific team.

Path Parameters

NameTypeDescription

id*

String

Team ID

Query Parameters

NameTypeDescription

page

String

page number

Headers

NameTypeDescription

Authorization*

String

Bearer Token

{
    "docs": [
        {
            "_id": "65490130ff600e06af2a9694",
            "status": "paid",
            "amount": 3300,
            "invoicePdf": "https://pay.stripe.com/invoice/acct_1NOaelA0ZUrt0vQJ/test_YWNjdF8xTk9hZWxBMFpVcnQwdlFKLF9PeFBENUF5elR4cDU3bU5ycVVreUVuVVd3dm5hTmhnLDg5ODI0MDY202009yaqn40z/pdf?s=ap"
        }
    ],
    "totalDocs": 1,
    "limit": 10,
    "totalPages": 1,
    "page": 1,
    "pagingCounter": 1,
    "hasPrevPage": false,
    "hasNextPage": false,
    "prevPage": null,
    "nextPage": null
}

Last updated