Obtenir tout (factures)

Obtenir tout (factures) #

Obtient une liste de toutes les factures. Une fois qu'une liste de toutes les factures a été récupérée, des détails spécifiques sur les factures peuvent être récupérés à l'aide de Obtenir la facture, Obtenir le détail de la facture ou Obtenez le sommaire de la facture.

GET /v1.0/billingdata

Exemple #

Cette demande permettra d'obtenir une liste de toutes les factures.

Demande #

GET /api/v1.0/billingdata HTTP/1.1
Autorisation : Porteur {TOKEN}

Réponse #

HTTP/1.1 200 OK
Type de contenu : application/json; charset=utf-8
Longueur du contenu : xx
{
	« page_size » : 4,
	« données » : 
		[ {
			« tenantId » :"{RESELLER_TENANT_ID} »,
			« invoiceid » :"{INVOICE_ID»,
			« invoiceNumber » :"{INVOICE_NUMBER} »,
			« customerName » :"Revendeur 1 »,
			« billingPeriodStart » :"2020-01-01T00:00:00.000+00:00 »,
			« billingPeriodEnd » :"2020-01-31T23:59:59.999+00:00 »,
			« invoiceValue » :200.0
		}, 
		{
			« tenantId » :"{RESELLER_TENANT_ID} »,
			« invoiceid » :"{INVOICE_ID»,
			« invoiceNumber » :"{INVOICE_NUMBER} »,
			« customerName » :"Revendeur 1 »,
			« billingPeriodStart » :"2020-02-01T00:00:00.000+00:00 »,
			« billingPeriodEnd » :"2020-02-29T23:59:59.999+00:00 »,
			« invoiceValue » :200.0
		}, 
		{
			« tenantId » :"{RESELLER_TENANT_ID} »,
			« invoiceid » :"{INVOICE_ID»,
			« invoiceNumber » :"{INVOICE_NUMBER} »,
			« customerName » :"Revendeur 1 »,
			« billingPeriodStart » :"2020-03-01T00:00:00.000+00:00 »,
			« billingPeriodEnd » :"2020-03-31T23:59:59.999+00:00 »,
			« invoiceValue » :200.0
		}, 
		{
			« tenantId » :"{RESELLER_TENANT_ID} »,
			« invoiceid » :"{INVOICE_ID»,
			« invoiceNumber » :"{INVOICE_NUMBER} »,
			« customerName » :"Revendeur 1 »,
			« billingPeriodStart » :"2020-04-01T00:00:00.000+00:00 »,
			« billingPeriodEnd » :"2020-04-30T23:59:59.999+00:00 »,
			« invoiceValue » :200.0
		}
	][{
			"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":200.0
		}, 
		{
			"tenantId":"{RESELLER_TENANT_ID}",
			"invoiceid":"{INVOICE_ID}",
			"invoiceNumber":"{INVOICE_NUMBER}",
			"customerName":"Reseller 1",
			"billingPeriodStart":"2020-02-01T00:00:00.000+00:00",
			"billingPeriodEnd":"2020-02-29T23:59:59.999+00:00",
			"invoiceValue":200.0
		}, 
		{
			"tenantId":"{RESELLER_TENANT_ID}",
			"invoiceid":"{INVOICE_ID}",
			"invoiceNumber":"{INVOICE_NUMBER}",
			"customerName":"Reseller 1",
			"billingPeriodStart":"2020-03-01T00:00:00.000+00:00",
			"billingPeriodEnd":"2020-03-31T23:59:59.999+00:00",
			"invoiceValue":200.0
		}, 
		{
			"tenantId":"{RESELLER_TENANT_ID}",
			"invoiceid":"{INVOICE_ID}",
			"invoiceNumber":"{INVOICE_NUMBER}",
			"customerName":"Reseller 1",
			"billingPeriodStart":"2020-04-01T00:00:00.000+00:00",
			"billingPeriodEnd":"2020-04-30T23:59:59.999+00:00",
			"invoiceValue":200.0
		}
	],
	« status » : « succès »,
	« timestamp » : « 2019-05-01T10:00:00.2890319Z »
}

Erreurs #

Non autorisé #

Lorsque le jeton n'est pas fourni, invalide ou expiré

HTTP/1.1 401 Non autorisé