purchase_order

Purchase Order - Get Closed With Items

Retrieve closed purchase orders with their full item details included.

get/purchase_order/get_closed_with_items

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

Changed in 3 of the 13 revisions of this API.519

    • the query request parameter end became required

      request-parameter-became-required

    • the query request parameter start became required

      request-parameter-became-required

    • api operation id get_purchase_order_get_closed_with_items was added

      api-operation-id-added

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

      response-media-type-added

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

      response-media-type-added

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

      response-media-type-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

  • 08cd9cfa14dd22See the full diff
    • for the query request parameter end, the type/format was changed from string/ to string/date

      request-parameter-type-changed

    • for the query request parameter start, the type/format was changed from string/ to string/date

      request-parameter-type-changed

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 401

      response-non-success-status-added

  • 46ceda528000110See the full diff
    • removed the media type application/json for the response with the status 200

      response-media-type-removed

    • api operation id get_purchase_order_get_closed_with_items removed and replaced with

      api-operation-id-removed

    • the query request parameter end became optional

      request-parameter-became-optional

    • the query request parameter start became optional

      request-parameter-became-optional

    • for the query request parameter end, the type/format was generalized from string/date to string/

      request-parameter-type-generalized

    • for the query request parameter start, the type/format was generalized from string/date to string/

      request-parameter-type-generalized

    • removed the non-success response with the status 400

      response-non-success-status-removed

    • removed the non-success response with the status 401

      response-non-success-status-removed

    • removed the non-success response with the status 403

      response-non-success-status-removed

    • removed the non-success response with the status 429

      response-non-success-status-removed

    • removed the non-success response with the status 500

      response-non-success-status-removed

    This revision also has 85 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog