Difference between revisions of "Update PO Number & Invoice Number"

From MyMobileWorkers API
Jump to: navigation, search
(Created page with "== Summary == {| border="1" class="wikitable" ! Update PO Number & Invoice Number ! colspan="2" | |- ! URL | colspan="2" | https://:base_url/:api_path/:version/jobs//job/st...")
 
(→‎Example curl request)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
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.
 +
 
== Summary ==
 
== Summary ==
 
{| border="1" class="wikitable"
 
{| border="1" class="wikitable"
Line 6: Line 9:
 
|-
 
|-
 
! URL
 
! URL
−
| colspan="2" |  https://:base_url/:api_path/:version/jobs//job/status/update?api_key=YOUR_KEY&&job_number=JOB_NUMBER&po_number=PO_NUMBER&invoice_number=INVOICE_NUMBER
+
| colspan="2" |  https://:base_url/:api_path/:version/jobs/job/status/update_invoice?api_key=YOUR_KEY&&job_number=JOB_NUMBER&po_no=PO_NUMBER&invoice_number=INVOICE_NUMBER
 
|-
 
|-
 
! Type
 
! Type
Line 18: Line 21:
 
|-
 
|-
 
!  
 
!  
−
| po_number || required
+
| po_no || optional
 
|-
 
|-
 
!
 
!
−
| invoice_number || required
+
| invoice_number || optional
 
|-
 
|-
 
! Response
 
! Response
 
| colspan="2" | JSON
 
| colspan="2" | JSON
 
|}
 
|}
 +
 +
== Example curl request ==
 +
 +
curl -X POST "<nowiki>https://api.mymobileworkers.com:8181/api/1/jobs/job/status/update_invoice?api_key=APIKEY&job_number=JOB_NUM&po_no=PO_NUM&invoice_number=INVOICE_NUM</nowiki>"

Latest revision as of 13:09, 21 April 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.

[edit] Summary

Update PO Number & Invoice Number
URL https://:base_url/:api_path/:version/jobs/job/status/update_invoice?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

[edit] Example curl request

curl -X POST "https://api.mymobileworkers.com:8181/api/1/jobs/job/status/update_invoice?api_key=APIKEY&job_number=JOB_NUM&po_no=PO_NUM&invoice_number=INVOICE_NUM"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox