Return all sub-invoices associated with a specific sub-account. (See Billing, regarding billing policies associated with the Wasabi Account Control API.)
URL (GET)
GET /v1/accounts/<AcctNum>/invoices
Sub-invoices across all sub-accounts are rolled up into a single invoice that is charged to the Control Account.
Query Parameters
Name | Description | Required |
---|---|---|
from | Use the from date to limit the sub-invoices returned using the “PeriodEnd" date. If no from date is used, all sub-invoices are returned. | No |
from and to | Use the from and to dates together to limit the sub-invoices returned within that date range. | No |
Sample
Request: GET /v1/accounts/7363/invoices
Response-JSON:
[
{
"SubInvoiceNum": 6596,
"InvoiceNum": 9189,
"AcctNum": 7363,
"ParentAcctNum": 7041,
"AcctPlanNum": 7977,
"CreateTime": "2019-12-15T05:46:26Z",
"PeriodStart": "2019-11-14T00:00:00Z",
"PeriodEnd": "2019-12-14T00:00:00Z",
"Total": 3.99,
"Currency": "usd",
"Status": "sub-invoice"
};
{
"SubInvoiceNum": 6596,
"InvoiceNum": 9190,
"AcctNum": 7363,
"ParentAcctNum": 7041,
"AcctPlanNum": 7977,
"CreateTime": "2019-12-15T06:46:26Z",
"PeriodStart": "2019-11-14T00:00:00Z",
"PeriodEnd": "2019-12-14T00:00:00Z",
"Total": 3.99,
"Currency": "usd",
"Status": "sub-invoice"
}
]