Delete

[POST] .../v1/docwholesale/delete

Deletion partner shipment document. Deletion is available when the document is marked with deleted_mark = true, for marking on deletion used method DocWholeSale/DeleteMark Use this destructive method after DocWholeSale/DeleteMark to permanently delete a shipment-to-partner document that is already marked with deleted_mark = true. The request body must contain id and the response returns row_affected for the soft-deleted document row. The document must be locked by the current request user, not posted, not already deleted and the caller must have delete permission; missing id, denied access, lock conflicts, missing delete mark, tariff restrictions, no affected rows, database failures or webhook/persistence errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Shipment-to-partner document ID.

Request Example

{
  "id": 5601
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1
  }
}