Skip to main content
POST
/
orders
/
{uid}
/
cancel
cURL
curl --request POST \
  --url https://api.unihop.app/v1/orders/{uid}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "message": "Order cancelled successfully",
  "uid": "<string>",
  "data": {
    "status": "Canceled",
    "partner_reference": "<string>",
    "cancelation_fee": {
      "value": 123,
      "currency": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uid
string
required

UID of the order to delete

Response

Order cancelled successfully

message
string
Example:

"Order cancelled successfully"

uid
string

The job ID of the cancelled order

data
object