GET Details for a Sub-Invoice
- 24 Jun 2024
- 1 Minute to read
- Print
- PDF
GET Details for a Sub-Invoice
- Updated on 24 Jun 2024
- 1 Minute to read
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Return the details regarding a specific sub-invoice.
URL (GET)
GET /v1/accounts/<AcctNum>/invoices/<SubInvoiceNum>
If a sub-account has buckets in regions that have different prices, the Unit Cost shown in the sub-invoice will be the weighted average Unit Cost of the resource across the regions. A new API endpoint introduced with this release provides the detailed output for all the different regions. Wasabi encourages partners to use this new endpoint going forward as we intend to deprecate this endpoint in the future. Refer to GET /v1/accounts//invoices/regional.
Sample
The following is sample output only. Weighted average Unit Cost will be displayed in a sub-invoice if a sub-account has buckets in regions that have a different price.
Request:GET/v1/accounts/509548/invoices/585365
Response-JSON:
{
"SubInvoice": {
"SubInvoiceNum": 585365,
"InvoiceNum": 768052,
"AcctNum": 509548,
"ParentAcctNum": 509545,
"AcctPlanNum": 516123,
"CreateTime": "2021-06-14T14:37:51Z",
"PeriodStart": "2021-05-10T00:00:00Z",
"PeriodEnd": "2021-06-09T00:00:00Z",
"Total": 909.2,
"Currency": "usd",
"Status": "sub-invoice"
},
"SubInvoiceItems": [
{
"SubInvoiceItemNum": 3645602,
"SubInvoiceNum": 585365,
"Type": "storage",
"DisplayName": "Timed Active Storage ",
"Description": "Total storage size: 1800000.000 GB-days",
"Qty": 1800000,
"UnitCost": 0.00018413333,
"Total": 331.44,
"Currency": "usd"
}
{
"SubInvoiceItemNum": 3645605,
"SubInvoiceNum": 585365,
"Type": "deleted-object-storage",
"DisplayName": "Timed Deleted Storage (applicable for deleted storage <30 days) ",
"Description": "Total storage size: 900000.000 GB-days",
"Qty": 900000,
"UnitCost": 0.00018413333,
"Total": 165.72,
"Currency": "usd"
}
{
"SubInvoiceItemNum": 3645606,
"SubInvoiceNum": 585365,
"Type": "data-ingress",
"DisplayName": "Data Transfer (in) (all regions)",
"Description": "Total data ingress: 0.001 GB",
"Qty": 0.000793105,
"UnitCost": 4.99,
"Total": 0,
"Currency": "usd"
},
{
"SubInvoiceItemNum": 3645609,
"SubInvoiceNum": 585365,
"Type": "data-egress",
"DisplayName": "Data Transfer (out) ",
"Description": "Total data egress: 10300.900 GB",
"Qty": 10300.9,
"UnitCost": 0.040000383,
"Total": 412.03998,
"Currency": "usd"
},
{
"SubInvoiceItemNum": 3645610,
"SubInvoiceNum": 585365,
"Type": "api-calls",
"DisplayName": "API Requests",
"Description": "API Requests",
"Qty": 0.069,
"UnitCost": 0,
"Total": 0,
"Currency": "usd"
},
{
"SubInvoiceItemNum": 3645611,
"SubInvoiceNum": 585365,
"Type": "minimum-storage-charge",
"DisplayName": "Minimum Active Storage (applicable if Timed Active Storage <1 TB)",
"Description": "Minimum Active Storage (applicable if Timed Active Storage <1 TB)",
"Qty": 0,
"UnitCost": 0,
"Total": 0,
"Currency": "usd"
},
{
"SubInvoiceItemNum": 3645612,
"SubInvoiceNum": 585365,
"Type": "support-charge",
"DisplayName": "Support Charge",
"Description": "Support Charge",
"Qty": 30,
"UnitCost": 0,
"Total": 0,
"Currency": "usd"
},
{
"SubInvoiceItemNum": 3645613,
"SubInvoiceNum": 585365,
"Type": "discount",
"DisplayName": "Service Charge Discount",
"Description": "Service Charge Discount",
"Qty": 909.2,
"UnitCost": 0,
"Total": 0,
"Currency": "usd"
}
]
}