GET
/
v1
/
purchase-order
/
{id}
Get a purchase order by ID
curl --request GET \
  --url http://localhost:3001/v1/purchase-order/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "purchaseOrderNumber": "<string>",
  "externalId": "<string>",
  "orderDate": "2023-11-07T05:31:56Z",
  "deliveryDate": "2023-11-07T05:31:56Z",
  "supplierId": "<string>",
  "lineItems": [
    {
      "id": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "productCode": 123,
      "title": "<string>",
      "description": "<string>",
      "quantity": 123,
      "unit": 123,
      "unitPrice": 123,
      "totalPrice": 123,
      "discount": 123,
      "taxRate": 123,
      "taxAmount": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

200 - application/json

The response is of type object.