Récupérer vos factures

GET

/account/invoice

Exemples


GET /account/invoice HTTP/1.1
Host: api.smsvendor.com
Authorization: Bearer your.token
Accept: application/json
          
        

Format de la réponse


{
    "status": 1,
    "message": "OK",
    "invoices": [
      {
        "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"
          }
        ]
      },
      {
        "id": "779",
        "name": "F020523-27778.pdf",
        "creation": "2018-11-11 17:00:00",
        "validation": "2018-06-06 17:02:20",
        "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.pdf</name>
    <creation>2018-11-11 16:00:00</creation>
    <validation>2018-06-06 16:02:20</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.pdf</name>
    <creation>2018-11-11 17:00:00</creation>
    <validation>2018-06-06 17:02:20</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>