Skip to main content

Billing Breakdown

Get a billing breakdown per tenant details and customer details.

Headers

PropertyValue
Request TypeGET
Content Typeapplication-json
URL{{EnvironmentURL}}/api/services/app/Invoices/GetBillingBreakdownPerTenant

Please see Environments under Getting Started for test and production environment URLs.

Additional Headers

PropertyTypeValueRequired
accountNumberstringAccount number for the partner. Partner name will not be used for extra security purposes.

Request Parameters

PropertyTypeDescriptionRequired
customerstringFilter for a specific customer. Will return all customers linked to your account if left blank.
yearintThe year for the billing to retrieve.
monthintThe month for the billing to retrieve.

Sample Request

{
"exportOptions":{"reportType":2},
"year":2024,
"month":5,
"identifier":"0",
"market":2
}

Response Parameters

PropertyTypeDescription
customerNamestringName of the customer.
invoiceTypestringInvoice type for Microsoft.
chargeTypestringHow the billing will be charged.
productNamestringName of the product invoiced.
chargeStartDatestringBilling charge start date.
chargeEndDatestringBilling charge end date.
quantityintQuantity for the product invoiced.
resellerNamestringTenant name in Axiz Digital.
tier2MpnIdintMpnId for the customer.
accountNumberstringTenant account number.
sellCurrencystringSell currency for the invoice.
billingCyclestringBilling cycle which the billing will run.
microsoftInvoiceDatestringDate for the Microsoft account.
microsoftCustomerIdstringCustomer id on Microsoft account.
sellPriceintSell price for the product.
roeintRate of exchange (ROE) used for the conversion.
regionCodestringCode of a region. Will be either MEA or WECA. See region codes under constants for designations.
productTypeNamestringProduct type for the product bought (NCE etc).
microsoftInvoiceIdstringInvoice ID

Sample Response (1 cutomer)

{
"result": [
{
"customerName": "KohdeTestAccountQA",
"invoiceType": "ONETIME",
"chargeType": "new",
"productName": "Office 365 E1-new",
"chargeStartDate": "2024-03-18T00:00:00",
"chargeEndDate": "2024-04-17T00:00:00",
"quantity": 1.00000000,
"resellerName": "AXIZ PTY LTD-TEST ACCOUNT",
"tier2MpnId": 1604043,
"accountNumber": "SJAXI9986",
"sellCurrency": "ZAR",
"billingCycle": "OneTime",
"microsoftInvoiceDate": "2024-04-06T05:05:23.4927984",
"microsoftCustomerId": "eb0f51fc-86c2-4668-9729-75faa9789245",
"sellPrice": 192.24,
"roe": 19.25,
"regionCode": "MEA",
"productTypeName": "OnlineServicesNCE",
"microsoftInvoiceId": null
}
],
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}