Cancel Order

Cancel a confirmed order

Endpoint

POST https://partners.waffarx.com/api/ValuCheckout/cancelorder

Request Headers

Header

Description

wxc-id

Your WaffarX Client Id

wxc-auth

Signature auth header for the request

wxc-date

UTC timestamp of the request, e.g. 2025-04-30T15:00:00Z

Accept-Language

Response language preference (e.g. en | ar)

Content-Type

Must be application/json

Note

wxc-id: The WaffarX client ID specified in your integration data.

Request Parameters

Name

Type

Required

Description

confirmedOrderId

String

Required

Identifier of the confirmed order that user want to cancel.

Request Body

Example Request Body
 {
   "confirmedOrderId": "68d527a17a64b9f3652e6bbb"
 }

cURL Example

curl --location 'https://partners.waffarx.com/api/ValuCheckout/cancelorder' \
     --header 'Content-Type: application/json' \
     --header 'Accept-Language: en' \
     --header 'wxc-id: {YOUR_CLIENT_ID}'  \
     --header 'wxc-date: 2025-09-19T00:56:05Z' \
     --header 'wxc-auth: b4f3aab235faf27ee5f9ce2802dd974a3237f95422a0b14676f0644a2400a907' \
     --data '{"confirmedOrderId": "68d527a17a64b9f3652e6bbb"}'

Responses

Success (HTTP 200)

Success Response Example
   {
     "status": "Success",
     "data": true,
     "message": null,
     "errors": null
   }

Error (HTTP 4XX/5XX)

Error Response Example
   {
     "Status": "Error",
     "Data": null,
     "Message": null,
     "Errors": []
   }