Skip to content

List Purchase Orders ​

Returns a paginated list of purchase orders.

Required license

This endpoint requires the Stock management add-on.

Note: This endpoint returns open purchase orders only. A completed purchase order is deleted — there is no history of completed orders. A completed order simply disappears from the results, without its own event. Run a periodic full sync: any purchase order that is missing from the full sync, but was present before, counts as completed.

Request ​

GET /api/oauth/v2/resource/wares/purchases

HeaderValue
AuthorizationBearer {access_token}

Query parameters ​

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0)
limitintegerNoNumber of results (default: 50, max: 200)
wareIdstring (UUID)NoFilter by a specific ware
createdSincestring (ISO 8601)NoOnly purchase orders created at or after this timestamp (createdAt >=)
createdUntilstring (ISO 8601)NoOnly purchase orders created at or before this timestamp (createdAt <=)
updatedSincestring (ISO 8601)NoOnly purchase orders updated at or after this timestamp (updatedAt >=)
updatedUntilstring (ISO 8601)NoOnly purchase orders updated at or before this timestamp (updatedAt <=)

Note: deletedSince is not supported on this endpoint and is silently ignored. Since completed purchase orders are deleted and leave no history, you can only detect completion through a periodic full sync — see the note above.

Response ​

Success (200 OK) ​

json
{
  "data": [
    {
      "id": "e5f6a7b8-c9d0-1234-efab-234567890123",
      "amount": 50,
      "notice": "Nachbestellung Q3",
      "createdAt": "2026-08-10T08:30:00+02:00",
      "updatedAt": "2026-08-10T08:30:00+02:00",
      "createdBy": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "updatedBy": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "ware": "c3d4e5f6-a7b8-9012-cdef-012345678901"
    }
  ],
  "meta": {
    "total": 6,
    "offset": 0,
    "limit": 50
  }
}

Response fields ​

FieldTypeDescription
dataArrayList of open purchase orders
data[].idstring (UUID)Unique ID of the purchase order
data[].amountnumberOrdered quantity
data[].noticestring | nullFree-text note
data[].createdAtstring (ISO 8601)Creation timestamp
data[].updatedAtstring (ISO 8601)Last update timestamp
data[].createdBystring (UUID) | nullID of the user who created the order
data[].updatedBystring (UUID) | nullID of the user who last updated the order
data[].warestring (UUID) | nullID of the ordered ware, loadable via Get Ware
meta.totalintegerTotal number of open purchase orders
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned entries
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/wares/purchases?offset=0&limit=50&wareId=b2c3d4e5-f6a7-8901-bcde-f01234567890&createdSince=beispiel&createdUntil=beispiel&updatedSince=2026-04-15T10%3A00%3A00&updatedUntil=2026-04-15T10%3A00%3A00" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors ​

StatusCodeDescription
400validation_errorInvalid wareId, or a timestamp filter has an invalid value
400validation_errorcreatedSince is after createdUntil, or updatedSince is after updatedUntil
401invalid_clientInvalid or missing access token
403insufficient_scopeScope wares not present, or Stock management add-on not licensed
404not_foundWare for wareId not found or not permitted

Offisy GmbH