Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

/invoice/id

This action returns the unique identifier for the invoice associated with the work order.

Request

FieldDescriptionRequired
report_idUnique identifier for the work orderYes

Example:

{
  "report_id": 3851
}
curl -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ACCESS_TOKEN' \
     -d '{"report_id": 3849}' \
     https://ppw.web/svc/invoice/id

Response

FieldDescriptionType
invoice_idUnique identifier for the work order’s invoicenumber

Example successful response:

{
  "invoice_id": 422
}

Errors

Error TypeDescriptionStatus Code
access_deniedAccess token is invalid or expired401
scope_invalidClient app does not have the required OAuth scope403
wo_invalidWork order is invalid400
invoice_not_foundInvoice does not exist for the work order400