Tout récupérer (factures)

Tout récupérer (factures) #

Obtient la 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 Récupérer la facture, Obtenir les détails de la facture ou Obtenir le récapitulatif de la facture.

GET /v1.0/billingdata

Exemple #

Cette demande obtiendra une liste de toutes les factures.

Demander #

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

Réponse #

HTTP/1.1 200 OK
Type de contenu : application/json ; jeu de caractères=utf-8
Contenu-Longueur : 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 »,
			« ValeurFacture » :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 »,
			« ValeurFacture » :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 »,
			« ValeurFacture » :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 »,
			« ValeurFacture » :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ée #

Lorsque le jeton n'est pas fourni, qu'il n'est pas valide ou qu'il a expiré

HTTP/1.1 401 Non autorisé