Avoir sur une facture
POST /firms/FIRM_ID/invoices/ID/refund.json
Effectue un avoir de la facture n° ID
Paramètres optionnels
api_id
: mémorisation d’un ID spécifique pour l’avoirapi_custom
: mémorisation d’une information libre pour l’avoir
Requête
curl -i -S -u IdentifiantApi:CleApi -H 'User-Agent: MonApp (patrick@camping.test)' \
-H 'Content-Type: application/json; charset=utf-8' \
-X POST "https://www.facturation.pro/firms/FIRM_ID/invoices/ID/refund.json?api_id=32&api_custom=remboursement+suite+plainte+client"
Réponse
{
"api_custom": 'remboursement suite plainte client',
"api_id": 32,
"category_id": null,
"currency": "EUR",
"customer_id": 180366,
"external_ref": null,
"discount": "0.0",
"draft": false,
"id": 411589,
"information": null,
"invoice_ref": "201307-5",
"invoiced_on": "2013-07-29",
"language": "fr",
"paid_on": "2013-07-29",
"pay_before": "60fm",
"payment_mode": 99,
"payment_ref": null,
"penalty": "0.0",
"precompte": null,
"quote_id": null,
"rebate_percentage": "0.0",
"service_personne": false,
"tax_percent": null,
"tax_title": null,
"term_on": "2013-09-30",
"title": "Facturation mensuelle",
"total": "-700.0",
"paid_in_main_currency": "-837.2",
"vat_exemption": null
}