Difference between revisions of "Get Invoices Updated Between"
From MyMobileWorkers API
m (→Example curl request: url update) |
|||
| Line 73: | Line 73: | ||
== Example curl request == | == Example curl request == | ||
| − | curl "https:// | + | <nowiki>curl "https://api.mymobileworkers.com:8181/api/1/invoices/updated_between?api_keyAPI_KEY&start_date=2015-05-07%2012:50:44&end_date=2015-06-08 12:50:44"</nowiki> |
Revision as of 09:36, 21 September 2016
Summary
| Jobs | ||
|---|---|---|
| URL | https://:base_url/:api_path/:version/invoices/updated_between?api_key=YOUR_KEY&start_date=DATETIME&end_date=DATETIME&status=JOB_COMPLETED | |
| Type | GET | |
| Params: | api_key | required |
| start_date | required | |
| end_date | required | |
| status | ||
| Response | JSON | |
The get invoices method returns an array of invoices between the 'start_date' and 'end_date' value. The status flag is optional and can narrow the search down by the current job status.
Example response
{ "invoices": [ { "address": "BLT Motors,\nUnit 552 East Works,\nWarrington,\nBA27HW\t\t\t", "file": "40/2015/6/1/115283/invoices/invoice_P7YVN9111111111_1_1_2015-06-19_11-58-31.pdf", "total": 0, "notes": "", "job":{"job_number":"15UWVE","external_id":"012345"}, "created_at": "2015-06-19T11:58:32+01:00", "job_status": "JOB_COMPLETED", "valid": true, "payment_received": false, "currency": "gbp", "sub_total": 0, "vat_total": 0, "care_of": "Graham Whistance", "invoice_number": "P7YVN911", "invoice_date": 1434668400000, "account_no": null, "po_no": "", "invoice_items": [ { "description": "B40160202", "quantity": 45, "vat_rate": 0, "price": 0, "unit_price": 0, "vat_amount": 0, "discount_enabled": false, "discount_type": "pc", "discount_amount": 0 } ] } ] }
Example curl request
curl "https://api.mymobileworkers.com:8181/api/1/invoices/updated_between?api_keyAPI_KEY&start_date=2015-05-07%2012:50:44&end_date=2015-06-08 12:50:44"