Skip to content

shortClosePurchaseReturnOrderLine

WRITE

Short-close ("stop expecting") a supplier return line — the shortClosePurchaseOrderLine mechanic.

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

Parameters

ParameterType
"close""reopen"

Input schema

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