Difference between revisions of "Update PO Number & Invoice Number"
| Line 4: | Line 4: | ||
Please note that this endpoint may change in the near future. | Please note that this endpoint may change in the near future. | ||
| − | If your company has the custom statuses JOB_INVOICE_CREATED and JOB_INVOICE_SENT, this will automatically change job status to JOB_INVOICE_CREATED. | + | In order for this endpoint to work the job status need to be JOB_VERIFIED or specific custom statuses. If the status is JOB_VERIFIED then the status will be changed to SAGE_UPDATED once the call has been made. |
| + | |||
| + | If your company has the custom statuses JOB_INVOICE_CREATED and JOB_INVOICE_SENT, this will automatically change job status to JOB_INVOICE_CREATED. | ||
== Summary == | == Summary == | ||
Revision as of 09:42, 28 March 2017
Provided you have the relevant job number, you can update both the PO Number & Invoice Number for said job.
This, in turn, creates an entry in our jobs_invoicing table, which will contain the job_id, po_number & invoice_number.
Please note that this endpoint may change in the near future.
In order for this endpoint to work the job status need to be JOB_VERIFIED or specific custom statuses. If the status is JOB_VERIFIED then the status will be changed to SAGE_UPDATED once the call has been made.
If your company has the custom statuses JOB_INVOICE_CREATED and JOB_INVOICE_SENT, this will automatically change job status to JOB_INVOICE_CREATED.
Summary
| Update PO Number & Invoice Number | ||
|---|---|---|
| URL | https://:base_url/:api_path/:version/jobs/job/status/invoicing?api_key=YOUR_KEY&&job_number=JOB_NUMBER&po_no=PO_NUMBER&invoice_number=INVOICE_NUMBER | |
| Type | POST | |
| Params: | api_key | required |
| job_number | required | |
| po_no | optional | |
| invoice_number | optional | |
| Response | JSON | |
Example curl request
curl -X POST "https://api.mymobileworkers.com:8181/api/1/jobs/job/status/invoicing?api_key=APIKEY&job_number=JOB_NUM&po_no=PO_NUM&invoice_number=INVOICE_NUM"