Get invoices
This method allows you to retrieve your invoices.
GET
/account/invoice
Examples
GET /account/invoice HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
Result Format
{
"status": 1,
"message": "OK",
"invoices": [
{
"id": "778",
"name": "F020522-27778",
"creation": "2024-12-01 10:47:17",
"validation": "2024-12-01 10:47:17",
"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"
}
]
},
{
"id": "779",
"name": "F020523-27778",
"creation": "2024-11-11 10:47:17",
"validation": "2024-11-11 10:47:17",
"price": "14",
"vat": "2.8",
"total": "16.8",
"currency": "eur",
"status": "waiting_for_payment",
"payment_type": "transfer",
"products": [
{
"description": "Baguette",
"unit_price": "0.30",
"quantities": "10",
"price": "3"
}
]
}
]
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>1</status>
<message>OK</message>
<invoices>
<id>778</id>
<name>F020522-27778</name>
<creation>2024-12-01 10:47:17</creation>
<validation>2024-12-01 10:47:17</validation>
<vat>14</vat>
<total>45.6</total>
<currency>EUR</currency>
<status>waiting_for_payment</status>
<payment_type>transfer</payment_type>
<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>
</invoices>
<invoices>
<id>779</id>
<name>F020523-27778</name>
<creation>2024-11-11 10:47:17</creation>
<validation>2024-11-11 10:47:17</validation>
<vat>14</vat>
<total>9.12</total>
<currency>EUR</currency>
<status>paid</status>
<payment_type>card</payment_type>
<products>
<description>Baguette</description>
<unit_price>0.30</unit_price>
<quantities>10</quantities>
<price>3</price>
</products>
</invoices>