Create sell order
curl --request POST \
--url https://api.sendpadi.com/api/v1/merchant/gift-cards/sell/orders \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"giftCardName": "Amazon",
"amount": 50,
"countryName": "United States",
"offerId": "offer_001",
"versionKey": "vk_001",
"cardCode": "XXXX-XXXX"
}
'const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'Idempotency-Key': '<idempotency-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
giftCardName: 'Amazon',
amount: 50,
countryName: 'United States',
offerId: 'offer_001',
versionKey: 'vk_001',
cardCode: 'XXXX-XXXX'
})
};
fetch('https://api.sendpadi.com/api/v1/merchant/gift-cards/sell/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendpadi.com/api/v1/merchant/gift-cards/sell/orders"
payload = {
"giftCardName": "Amazon",
"amount": 50,
"countryName": "United States",
"offerId": "offer_001",
"versionKey": "vk_001",
"cardCode": "XXXX-XXXX"
}
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"Idempotency-Key": "<idempotency-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "OK",
"data": {
"transactionId": "gcs_001",
"status": "processing"
}
}Gift cards
Create sell order
Sell a gift card for NGN wallet credit. Scope: gift-cards:write. Requires Idempotency-Key.
POST
/
api
/
v1
/
merchant
/
gift-cards
/
sell
/
orders
Create sell order
curl --request POST \
--url https://api.sendpadi.com/api/v1/merchant/gift-cards/sell/orders \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"giftCardName": "Amazon",
"amount": 50,
"countryName": "United States",
"offerId": "offer_001",
"versionKey": "vk_001",
"cardCode": "XXXX-XXXX"
}
'const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'Idempotency-Key': '<idempotency-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
giftCardName: 'Amazon',
amount: 50,
countryName: 'United States',
offerId: 'offer_001',
versionKey: 'vk_001',
cardCode: 'XXXX-XXXX'
})
};
fetch('https://api.sendpadi.com/api/v1/merchant/gift-cards/sell/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendpadi.com/api/v1/merchant/gift-cards/sell/orders"
payload = {
"giftCardName": "Amazon",
"amount": 50,
"countryName": "United States",
"offerId": "offer_001",
"versionKey": "vk_001",
"cardCode": "XXXX-XXXX"
}
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"Idempotency-Key": "<idempotency-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "OK",
"data": {
"transactionId": "gcs_001",
"status": "processing"
}
}Authorizations
API key id (sp_test_… / sp_live_…)
Headers
Unix time in seconds
HMAC-SHA256 signature
UUID. Required on money-moving writes.
Body
application/json
Response
200 - application/json
OK
The response is of type object.

