Get order cards (PIN)
curl --request GET \
--url https://api.sendpadi.com/api/v1/merchant/gift-cards/orders/{id}/cards \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>'const options = {
method: 'GET',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Api-Key': '<api-key>'
}
};
fetch('https://api.sendpadi.com/api/v1/merchant/gift-cards/orders/{id}/cards', 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/orders/{id}/cards"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"message": "OK",
"data": {
"cards": [
{
"number": "XXXX",
"pin": "****"
}
]
}
}Gift cards
Get order cards (PIN)
Retrieve redeemed card codes/PINs for a completed order. Scope: gift-cards:read.
GET
/
api
/
v1
/
merchant
/
gift-cards
/
orders
/
{id}
/
cards
Get order cards (PIN)
curl --request GET \
--url https://api.sendpadi.com/api/v1/merchant/gift-cards/orders/{id}/cards \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>'const options = {
method: 'GET',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Api-Key': '<api-key>'
}
};
fetch('https://api.sendpadi.com/api/v1/merchant/gift-cards/orders/{id}/cards', 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/orders/{id}/cards"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"message": "OK",
"data": {
"cards": [
{
"number": "XXXX",
"pin": "****"
}
]
}
}
