Offsys documentatie
Statistieken
Statistieken
Haal statistieken op.
List
| Veld | Waarde | Omschrijving |
|---|---|---|
| type | 'delivery' of 'invoice' | Filter op basis van factuurdatum of leverdatum. Standaard: invoice |
| startDate | Date | |
| endDate | Date | |
| daily | '0' of '1' | Standaardwaarde: '0'. Laat apart de statistieken per dag zien |
Voorbeeld:
curl "https://api.offsys.nl/statistics" \-X GET \-H "Authorization: 37d37675-59cd-431c-8d28-9553de7bae4d"-d "startDate=2021-01-01" \-d "endDate=2021-01-02"Resultaat:
{ "status": "success", "customer": { "total": "", "received": "", "invoices": "", "quotations": "", "invoices_unpaid": "", "quotations_accepted": "", "requests_open": "", "daily": [ "2021-01-01": { "amount": "", "orders: "", }, "2021-01-02": { "amount": "", "orders: "", } ], }}