Get Invoice #
Gets a specific invoice.
GET /v1.0/billingdata/{INVOICE_ID}
Example #
This request will get all the child Customer tenants for this Reseller Account.
Request #
GET <https://api.na.myreports.cloud/api/v1.0/billingdata/{INVOICE_ID}> HTTP/1.1
Authorisation: Bearer {TOKEN}
Response #
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: xx
{
"data": {
"tenantId":"{RESELLER_TENANT_ID}"
,"invoiceid":"{INVOICE_ID}"
,"invoiceNumber":"{INVOICE_NUMBER}"
,"customerName":"Reseller 1"
,"billingPeriodStart":"2020-01-01T00:00:00.000+00:00"
,"billingPeriodEnd":"2020-01-31T23:59:59.999+00:00"
,"invoiceValue":0.0
},
"status": "success",
"timestamp": "2019-01-01T10:00:00.2890319Z"
}
Errors #
Unauthorised #
When the token is not provided, invalid or expired
HTTP/1.1 401 Unauthorised
Not Found #
When there are no invoices that have a matching invoice id
HTTP/1.1 404 Not Found
Date: Thu, 06 Feb 2020 12:46:58 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 95
{
"error": 404,
"message": "Not Found",
"status": "error",
"timestamp": "2020-02-06T12:46:58.7669535Z"
}