Eine Rechnung abrufen
Mit dieser Methode können Sie eine bestimmte Rechnung abrufen.
GET
/account/invoice/:id
Abfrage-Parameter
id
notwendig
|
ID der Rechnung |
Beispiele
GET /account/invoice/778 HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
Ergebnisformat
{
"status": 1,
"message": "OK",
"invoice": {
"id": "778",
"name": "F020522-27778",
"creation": "2024-12-01 10:46:21",
"validation": "2024-12-01 10:46:21",
"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-01 10:46:21</creation>
<validation>2024-12-01 10:46:21</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>