GET invoices
    • 09 Sep 2024
    • 1 Minute to read
    • PDF

    GET invoices

    • PDF

    Article summary

    Get Sub-Account Invoices

    Returns all the sub-account invoices associated with the Governance Account or Control Account.

    URL (GET)

    /api/v1/invoices

    Parameters

    Key NameDescriptionRequired
    pageList page number
    sizeList page size
    from (yyyy/mm/dd)Date range from year, month, day
    to (yyyy/mm/dd)Date range to year, month, day
    governanceAccountIdFilter by governance account Id
    controlAccountIdFilter by control account Id
    channelAccountIdFilter by channel account Id 
    subAccountIdFilter by sub Account Id 
    subInvoiceIdFilter by sub Invoice Id
    periodEnd (yyyy/mm/dd)

    controlInvoiceIdFilter by control invoice Id
    wasabiAccountNumberFilter by account wasabi account number
    idFilter by account Id
    latest (true)

    Request Body

    None

    Response

    {
        "success": true,
        "message": "Successfully read!",
        "data": {
            "items": [
                {
                    "id": 1,
                    "subInvoiceId": 6405,
                    "subAccountId": 1,
                    "subAccountName": "Sub-Account Example",
                    "subAccountEmail": "example@wasabi.com",
                    "controlAccountId": 3732,
                    "controlAccountName": "Control Account Example",
                    "controlAccountEmail": "caexample@wasabi.com",
                    "channelAccountId": 12345,
                    "governanceAccountId": 25843,
                    "governanceAccountName": "Governance Account Example",
                    "controlInvoiceId": 286946,
                    "periodStart": "2020-08-03",
                    "periodEnd": "2020-08-04",
                    "totalStorage": 0.2,
                    "activeStorage": 0,
                    "activeStorageUnitCost": 0.00019499,
                    "activeStorageTotalCost": 0,
                    "deletedStorage": 0,
                    "deletedStorageUnitCost": 0.00019499,
                    "deletedStorageTotalCost": 0,
                    "apiCalls": 0,
                    "apiCallsUnitCost": 0,
                    "apiCallsTotalCost": 0,
                    "ingress": 0,
                    "ingressUnitCost": 0,
                    "ingressTotalCost": 0,
                    "egress": 0,
                    "egressUnitCost": 0,
                    "egressTotalCost": 0,
                    "minimumActiveStorage": 0.0333333,
                    "minimumActiveStorageUnitCost": 5.99,
                    "minimumActiveStorageTotalCost": 0.2,
                    "wasabiAccountNumber": 182760
                },
                {
                    "id": 2,
                    "subInvoiceId": 7720,
                    "subAccountId": 1,
                    "subAccountName": "Sub-Account Example 2",
                    "subAccountEmail": "example2@wasabi.com",
                    "controlAccountId": 3732,
                    "controlAccountName": "Control Account Example",
                    "controlAccountEmail": "caexample@wasabi.com",
                    "channelAccountId": 12345,
                    "governanceAccountId": 25843,
                    "governanceAccountName": "Account Governance Example",
                    "controlInvoiceId": 332439,
                    "periodStart": "2020-08-04",
                    "periodEnd": "2020-09-03",
                    "totalStorage": 5.99,
                    "activeStorage": 0,
                    "activeStorageUnitCost": 0,
                    "activeStorageTotalCost": 0,
                    "deletedStorage": 0,
                    "deletedStorageUnitCost": 0,
                    "deletedStorageTotalCost": 0,
                    "apiCalls": 0,
                    "apiCallsUnitCost": 0,
                    "apiCallsTotalCost": 0,
                    "ingress": 0,
                    "ingressUnitCost": 0,
                    "ingressTotalCost": 0,
                    "egress": 0,
                    "egressUnitCost": 0,
                    "egressTotalCost": 0,
                    "minimumActiveStorage": 0.999985,
                    "minimumActiveStorageUnitCost": 5.99,
                    "minimumActiveStorageTotalCost": 5.99,
                    "wasabiAccountNumber": 182760
                },