purchase_order

Purchase Order - Get Single

Changed on

Retrieve a single purchase order by its ID.

get/purchase_order/get_single

Request

  • Base URL
    https://api.skulabs.com
  • URL
    https://api.skulabs.com/purchase_order/get_single
  • Auth
    HTTP bearer

Query parameters

idstring required

Purchase order ID

fieldsobject

Projection fields object, e.g. { "name": 1 }

optionsobject

Additional options

Response

Single purchase order

Example response

{
  "purchase_order": {
    "_id": "507f1f77bcf86cd799439011",
    "log": [
      {
        "user_id": "507f1f77bcf86cd799439011",
        "time": "2025-01-15T12:00:00.000Z"
      }
    ],
    "due_date": "2025-01-15",
    "arrival_date": "2025-01-15",
    "closed_date": "2025-01-15",
    "tags": [
      "507f1f77bcf86cd799439011",
      "507f1f77bcf86cd799439012"
    ],
    "store_id": "507f1f77bcf86cd799439011"
  }
}

Changes

    • breaking

      the query request parameter id became required

    • info

      api operation id get_purchase_order_get_single was added

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • breaking

      for the query request parameter fields, the type changed from array to object