Infos

GET /account.json

Affiche les informations sur le compte de l'utilisateur

Requête

curl -i -S -u login:password -H 'User-Agent: MonApp (moi@exemple.com)' \
 https://www.facturation.pro/account.json

Réponse

{
    "id":1,
    "email": "moi@google.com",
    "firms" : [
      {
        "id":1,
        "name": "Ma petite entreprise"
      },
      {
        "id":2,
        "name": "Ma grosse entreprise"
      }
    ]
  }

Abonnements

GET /firms/ID/orders.json

Retourne la liste des factures abonnements payées pour la société ID

Requête

curl -i -S -u login:password -H 'User-Agent: MonApp (moi@exemple.com)' \
 https://www.facturation.pro/firms/1/orders.json

Réponse

[
  {
    "title": "Abonnement Entreprise - 12 mois - Gold",
    "amount": 40.00,
    "payment_date": "2018-01-01",
    "invoice_url": "/firms/ID/orders/11111111-4c0e-455d-9801-6aa2a9afcf34.pdf",
    "refunded": false
  },
  {
    "title": "Abonnement Entreprise - 12 mois - Gold",
    "amount": 40.00,
    "payment_date": "2017-01-01",
    "invoice_url": "/firms/ID/orders/11111111-6acb-479e-937f-2889dc4c3f59.pdf",
    "refunded": false
  }
]