Récupérer une facture

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.smsvendor.com
Authorization: Bearer your.token
Accept: application/json
        
      

Format de la réponse


{
  "status": 1,
  "message": "OK",
  "invoice": {
    "id": "778",
    "name": "F020522-27778.pdf",
    "creation": "2018-11-11 16:00:00",
    "validation": "2018-06-06 16:02:20",
    "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.pdf</name>
    <creation>2018-11-11 16:00:00</creation>
    <validation>2018-06-06 16:02:20</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>