Récupérer une facture
Cette méthode vous permet de récupérer une facture spécifique.
GET
/account/invoice/:id
Paramètres de requête
id
requis
|
L'id de la facture |
Exemples
GET /account/invoice/778 HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
Format de la réponse
{
"status": 1,
"message": "OK",
"invoice": {
"id": "778",
"name": "F020522-27778",
"creation": "2024-12-11 10:55:51",
"validation": "2024-12-11 10:55:51",
"price": "31.6",
"vat": "6.32",
"total": "37.92",
"currency": "eur",
"status": "paid",
"payment_type": "card",
"products": [
{
"description": "Nimbus 2000",
"unit_price": "0.80",
"quantities": "10",
"price": "8"
},
{
"description": "Vif d'or",
"unit_price": "0.8000",
"quantities": "40",
"price": "32.00"
}
]
}
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>1</status>
<message>OK</message>
<invoice>
<id>778</id>
<name>F020522-27778</name>
<creation>2024-12-11 10:55:51</creation>
<validation>2024-12-11 10:55:51</validation>
<price>31.6</price>
<vat>6.32</vat>
<total>37.92</total>
<currency>eur</currency>
<status>waiting_for_payment</status>
<type_payment>transfer</type_payment>
<products>
<description>Nimbus 2000</description>
<unit_price>0.8000</unit_price>
<quantities>10</quantities>
<price>8</price>
</products>
<products>
<description>Vif d'or</description>
<unit_price>0.8000</unit_price>
<quantities>40</quantities>
<price>32</price>
</products>
</invoice>