Skip to main content
DELETE
Cancel Product Delivery
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

/product//deliveries/ Description: Cancel a pending or in-progress delivery. The delivery must be in a cancellable state. Authorization:
  • Required role: admin or higher
Method: DELETE Path Parameters: Request Payload: Cancellable Statuses:
  • pending
  • retry
  • processing

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Product ID

deliveryId
string
required

Delivery ID

Body

application/json
reason
string

Optional cancellation reason

Response

Delivery cancelled successfully

status
string
Example:

"success"

message
string
Example:

"Delivery cancelled successfully"

data
object