Skip to content

shortClosePurchaseOrderLine

WRITE

Short-close ("stop receiving") or reopen a purchase order line whose remaining quantity will never arrive.

POST /api/v1/purchasing/shortClosePurchaseOrderLine
curl -X POST '<your-host>/api/v1/purchasing/shortClosePurchaseOrderLine' \
  -H 'Authorization: Bearer <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
    "lineId": "string",
    "purchaseOrderId": "string",
    "intent": "close"
  }'

Parameters

ParameterType
"close""reopen"

Input schema

schema
{
  "type": "object",
  "properties": {
    "lineId": {
      "type": "string"
    },
    "purchaseOrderId": {
      "type": "string"
    },
    "intent": {
      "type": "string",
      "enum": [
        "close",
        "reopen"
      ]
    }
  },
  "required": [
    "lineId",
    "purchaseOrderId",
    "intent"
  ]
}