Purchase Order Status History

The purchase order status history resource.

Basehttps://rest.carbon.ms/purchaseOrderStatusHistory
GET/purchaseOrderStatusHistory

List purchase order status historys

Retrieve a paginated list of purchase order status historys. Filter, order, and select columns with PostgREST query parameters.

Query parameters

selectstring

Comma-separated columns to return. Defaults to all.

orderstring

Column to sort by, e.g. `createdAt.desc`.

limitinteger

Maximum rows to return.

offsetinteger

Rows to skip, for pagination.

GEThttps://rest.carbon.ms/purchaseOrderStatusHistory
curl --request GET \
  --url 'https://rest.carbon.ms/purchaseOrderStatusHistory?select=*&limit=10' \
  --header 'Authorization: Bearer <api-key>'
Response
[
  {
    "id": "abc123def456",
    "purchaseOrderId": "xyz789",
    "status": "string",
    "createdAt": "2026-01-01T00:00:00Z",
    "createdBy": "string"
  }
]
GET/purchaseOrderStatusHistory

Retrieve a purchase order status history

Fetch a single purchase order status history by filtering on `id`.

Query parameters

idstring

Match on the purchase order status history's `id`, e.g. `eq.{id}`.

GEThttps://rest.carbon.ms/purchaseOrderStatusHistory
curl --request GET \
  --url 'https://rest.carbon.ms/purchaseOrderStatusHistory?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
Response
{
  "id": "abc123def456",
  "purchaseOrderId": "xyz789",
  "status": "string",
  "createdAt": "2026-01-01T00:00:00Z",
  "createdBy": "string"
}
POST/purchaseOrderStatusHistory

Create a purchase order status history

Create a new purchase order status history.

Body parameters

purchaseOrderIdstringrequired

References purchaseOrder.id

statuspurchaseOrderStatusrequired
POSThttps://rest.carbon.ms/purchaseOrderStatusHistory
curl --request POST \
  --url https://rest.carbon.ms/purchaseOrderStatusHistory \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"purchaseOrderId":"xyz789","status":"string"}'
Response
{
  "id": "abc123def456",
  "purchaseOrderId": "xyz789",
  "status": "string",
  "createdAt": "2026-01-01T00:00:00Z",
  "createdBy": "string"
}
PATCH/purchaseOrderStatusHistory

Update a purchase order status history

Update an existing purchase order status history, matched on `id`.

Body parameters

purchaseOrderIdstringrequired

References purchaseOrder.id

statuspurchaseOrderStatusrequired
PATCHhttps://rest.carbon.ms/purchaseOrderStatusHistory
curl --request PATCH \
  --url 'https://rest.carbon.ms/purchaseOrderStatusHistory?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"purchaseOrderId":"xyz789"}'
Response
{
  "id": "abc123def456",
  "purchaseOrderId": "xyz789",
  "status": "string",
  "createdAt": "2026-01-01T00:00:00Z",
  "createdBy": "string"
}
DELETE/purchaseOrderStatusHistory

Delete a purchase order status history

Delete a purchase order status history, matched on `id`. Returns 204 No Content.

Query parameters

idstring

The `id` of the purchase order status history to delete, e.g. `eq.{id}`.

DELETEhttps://rest.carbon.ms/purchaseOrderStatusHistory
curl --request DELETE \
  --url 'https://rest.carbon.ms/purchaseOrderStatusHistory?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
204 No Content