purchase orders retrieve
GET {{baseUrl}}/purchase-orders/:id
Returns a PurchaseOrder
object with the given id
.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
expand | string | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | |
include_remote_data | boolean | Whether to include the original data Merge fetched from the third-party to produce these models. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Account-Token | string | (Required) Token identifying the end user. | |
Accept | string |
RESPONSES
status: OK
{"id":"0048ea5b-911e-4dff-9364-92070dea62ff","remote_id":"239741","status":"DRAFT","issue_date":"1974-06-21T08:16:09.188Z","delivery_date":"2020-04-15T00:00:00Z","delivery_address":"urn:uuid:7f76ed70-a77c-7a27-501a-5e45e50e5cac","total_amount":260,"currency":"UYP","line_items":[{"description":"Pickleball paddles","unit_price":25,"quantity":10,"item":"0958cbc6-6040-430a-848e-aafacbadf4ae"},{"description":"Pickleball Balls","unit_price":1,"quantity":10,"item":"249c9faa-3045-4a31-953b-8f22d3613301"}],"remote_created_at":"2020-03-31T00:00:00Z","remote_updated_at":"2020-03-31T00:00:00Z"}