Skip to content

Non Conformance Purchase Return Order Line

The non conformance purchase return order line resource.

Base/nonConformancePurchaseReturnOrderLine
GET/nonConformancePurchaseReturnOrderLine

List non conformance purchase return order lines

Retrieve a paginated list of non conformance purchase return order lines. 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.

GET/nonConformancePurchaseReturnOrderLine
curl --request GET \
  --url '<your-host>/nonConformancePurchaseReturnOrderLine?select=*&limit=10' \
  --header 'Authorization: Bearer <api-key>'
Response
[
  {
    "id": "abc123def456",
    "companyId": "xyz789",
    "nonConformanceId": "xyz789",
    "purchaseReturnOrderLineId": "xyz789",
    "purchaseReturnOrderId": "xyz789",
    "purchaseReturnOrderReadableId": "xyz789",
    "quantity": 10,
    "createdAt": "2026-01-01T00:00:00Z"
  }
]
GET/nonConformancePurchaseReturnOrderLine

Retrieve a non conformance purchase return order line

Fetch a single non conformance purchase return order line by filtering on `id`.

Query parameters

idstring

Match on the non conformance purchase return order line's `id`, e.g. `eq.{id}`.

GET/nonConformancePurchaseReturnOrderLine
curl --request GET \
  --url '<your-host>/nonConformancePurchaseReturnOrderLine?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
Response
{
  "id": "abc123def456",
  "companyId": "xyz789",
  "nonConformanceId": "xyz789",
  "purchaseReturnOrderLineId": "xyz789",
  "purchaseReturnOrderId": "xyz789",
  "purchaseReturnOrderReadableId": "xyz789",
  "quantity": 10,
  "createdAt": "2026-01-01T00:00:00Z"
}
POST/nonConformancePurchaseReturnOrderLine

Create a non conformance purchase return order line

Create a new non conformance purchase return order line.

Body parameters

nonConformanceIdstringrequired

References nonConformance.id

purchaseReturnOrderLineIdstringrequired
purchaseReturnOrderIdstringrequired
purchaseReturnOrderReadableIdstringrequired
quantitynumberrequired
POST/nonConformancePurchaseReturnOrderLine
curl --request POST \
  --url <your-host>/nonConformancePurchaseReturnOrderLine \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"nonConformanceId":"xyz789","purchaseReturnOrderLineId":"xyz789","purchaseReturnOrderId":"xyz789","purchaseReturnOrderReadableId":"xyz789","quantity":10}'
Response
{
  "id": "abc123def456",
  "companyId": "xyz789",
  "nonConformanceId": "xyz789",
  "purchaseReturnOrderLineId": "xyz789",
  "purchaseReturnOrderId": "xyz789",
  "purchaseReturnOrderReadableId": "xyz789",
  "quantity": 10,
  "createdAt": "2026-01-01T00:00:00Z"
}
PATCH/nonConformancePurchaseReturnOrderLine

Update a non conformance purchase return order line

Update an existing non conformance purchase return order line, matched on `id`.

Body parameters

nonConformanceIdstringrequired

References nonConformance.id

purchaseReturnOrderLineIdstringrequired
purchaseReturnOrderIdstringrequired
purchaseReturnOrderReadableIdstringrequired
quantitynumberrequired
PATCH/nonConformancePurchaseReturnOrderLine
curl --request PATCH \
  --url '<your-host>/nonConformancePurchaseReturnOrderLine?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"nonConformanceId":"xyz789"}'
Response
{
  "id": "abc123def456",
  "companyId": "xyz789",
  "nonConformanceId": "xyz789",
  "purchaseReturnOrderLineId": "xyz789",
  "purchaseReturnOrderId": "xyz789",
  "purchaseReturnOrderReadableId": "xyz789",
  "quantity": 10,
  "createdAt": "2026-01-01T00:00:00Z"
}
DELETE/nonConformancePurchaseReturnOrderLine

Delete a non conformance purchase return order line

Delete a non conformance purchase return order line, matched on `id`. Returns 204 No Content.

Query parameters

idstring

The `id` of the non conformance purchase return order line to delete, e.g. `eq.{id}`.

DELETE/nonConformancePurchaseReturnOrderLine
curl --request DELETE \
  --url '<your-host>/nonConformancePurchaseReturnOrderLine?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
204 No Content