Cancel an order
curl --request POST \
--url https://api.recadd.com/v1/orders/{id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: <idempotency-key>'import requests
url = "https://api.recadd.com/v1/orders/{id}/cancel"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.recadd.com/v1/orders/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.recadd.com/v1/orders/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.recadd.com/v1/orders/{id}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.recadd.com/v1/orders/{id}/cancel")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recadd.com/v1/orders/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "ord_01ka5krkayfxg8m6sc7n75ytkv",
"status": "cancelled",
"failure_reason": "customer_cancelled",
"channel": "api",
"pay_from": "ngn_wallet",
"total": {
"amount_minor": 1030,
"currency": "USD",
"display": "$10.30"
},
"quantity": 1,
"display_name": "PlayStation 10 USD US",
"client_reference": "po-1001",
"created_at": "2026-11-17T10:00:00+00:00",
"settled_at": "2026-11-17T10:00:02+00:00",
"product_id": "prd_01ka5krkayfxg8m6sc7n75ytky",
"brand": "playstation",
"country": "US",
"face_value": "10.00",
"face_unit": "USD",
"unit_price": {
"amount_minor": 1030,
"currency": "USD",
"display": "$10.30"
},
"pricing_tier": "default",
"supplier": "likecard",
"supplier_mode": "live",
"cards": {
"delivered": 0,
"rejected": 0,
"pending": 1,
"unknown": 0,
"refunded": 0
},
"captured": null,
"conversion": {
"id": "fxc_01ka5krkayfxg8m6sc7n75ytkz",
"ngn": {
"amount_minor": 1583625,
"currency": "NGN",
"display": "₦15,836.25"
},
"sell_rate": "1537.500000000000",
"approval_mode": "manual"
},
"refunded": {
"amount_minor": 0,
"currency": "USD",
"display": "$0.00"
}
}Orders
Cancel an order
Cancels an order in the API key’s business and mode while it awaits FX approval and the conversion is cancellable. The order becomes cancelled with failure_reason customer_cancelled and the NGN hold is released. If approval wins the race, cancel returns 409 order_not_cancellable. A malformed, unknown, foreign-business or other-mode id returns the same 404 not_found. The same Idempotency-Key and request replay the first response for 24 hours. Responses carry Cache-Control: private, no-store.
POST
/
v1
/
orders
/
{id}
/
cancel
Cancel an order
curl --request POST \
--url https://api.recadd.com/v1/orders/{id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: <idempotency-key>'import requests
url = "https://api.recadd.com/v1/orders/{id}/cancel"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.recadd.com/v1/orders/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.recadd.com/v1/orders/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.recadd.com/v1/orders/{id}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.recadd.com/v1/orders/{id}/cancel")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recadd.com/v1/orders/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "ord_01ka5krkayfxg8m6sc7n75ytkv",
"status": "cancelled",
"failure_reason": "customer_cancelled",
"channel": "api",
"pay_from": "ngn_wallet",
"total": {
"amount_minor": 1030,
"currency": "USD",
"display": "$10.30"
},
"quantity": 1,
"display_name": "PlayStation 10 USD US",
"client_reference": "po-1001",
"created_at": "2026-11-17T10:00:00+00:00",
"settled_at": "2026-11-17T10:00:02+00:00",
"product_id": "prd_01ka5krkayfxg8m6sc7n75ytky",
"brand": "playstation",
"country": "US",
"face_value": "10.00",
"face_unit": "USD",
"unit_price": {
"amount_minor": 1030,
"currency": "USD",
"display": "$10.30"
},
"pricing_tier": "default",
"supplier": "likecard",
"supplier_mode": "live",
"cards": {
"delivered": 0,
"rejected": 0,
"pending": 1,
"unknown": 0,
"refunded": 0
},
"captured": null,
"conversion": {
"id": "fxc_01ka5krkayfxg8m6sc7n75ytkz",
"ngn": {
"amount_minor": 1583625,
"currency": "NGN",
"display": "₦15,836.25"
},
"sell_rate": "1537.500000000000",
"approval_mode": "manual"
},
"refunded": {
"amount_minor": 0,
"currency": "USD",
"display": "$0.00"
}
}Authorizations
Headers
Response
The order and its conversion have been cancelled.