GET /api/v1/invoices
    • 16 Apr 2024
    • PDF

    GET /api/v1/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 governanceAccountId
    controlAccountIdFilter by controlAccountId
    subAccountIdFilter by subAccountId
    subInvoiceIdFilter by subInvoiceId
    periodEnd (yyyy/mm/dd)

    controlInvoiceIdFilter by controlInvoiceId
    wasabiAccountNumberFilter by account wasabiAccountNumber
    idFilter by account id
    latest (true)

    Example

    https://api.wacm.wasabisys.com/api/v1/invoices

    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",
                    "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",
                    "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
                },