Cancel API

If the customer wants to cancel or void an Order from Arrow you need to call the Cancel API with the order hash as seen below:

  1. Do a POST Request to Cancel API

$ curl https://fly.witharrow.co/api/order/cancel/<order_hash> \
-u '<client_key>:<client_secret>' \
-H 'Content-Type: application/json' \
URL

Variable (Type)

Description

order_hash (String)

Order Hash

Authentication Header

Variable (Type)

Description

client_key (String)

Merchant Client Key

client_secret (Integer)

Merchant Encryption or Secret Key

Response

{
    "success": 1,
    "message": "success",
    "data": {}
}
Error Code

Error Message

Description

Failed to do a cancel transaction

Arrow has an issue voiding the transaction

no order found with this order_id on this merchant

Invalid Order Hash code

Missing Order Hash

You need to pass the order_hash in order to cancel an order

Authentication Header Missing

Make sure to pass Authentication Header with client_key and client_secret

Invalid Merchant Client or Secret Key. Please Try again

You entered the wrong client_key and client_secret combination