purchase_order

Purchase Order - Get Closed With Items

Changed on

Retrieve closed purchase orders with their full item details included.

get/purchase_order/get_closed_with_items

Request

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

Query parameters

startstring date required

Start date

Example:2025-01-15
endstring date required

End date

Example:2025-01-15

Response

Closed purchase orders with item details

Example response

{
  "purchase_orders": [
    {
      "_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

    • info

      added the optional property //// to the response with the status

    • breaking

      the query request parameter end became required

    • breaking

      the query request parameter start became required

    • info

      api operation id get_purchase_order_get_closed_with_items 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