Creating single-product rewards
Send a prepaid card, an Amazon.com gift card, or any other product in our catalog.
If you want to send a Visa card, an Amazon.com gift card, a Venmo payment, or any individual payout method of the 800+ available, you'll want to create a single-product reward. Here’s how to do it:
1) Find the ID of the product to send
There are two ways to do this:
- Query the List Products endpoint to obtain the ID.
- Look up the ID in the Tremendous catalog CSV
For now, below are some product IDs you can use as examples:
# Amazon.com Gift Card: "OKMHM2X2OHYV"
# Virtual Visa Card: "Q24BD9EZ332JT"
# PayPal Transfer: "KV934TZ93NQM"
2) Create an order with a single product specified
Use the product ID in the products
field below:
curl --url 'https://testflight.tremendous.com/api/v2/orders' \
--header 'Authorization: Bearer YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data '
{
"payment": {
"funding_source_id": "BALANCE"
},
"reward": {
"value": {
"denomination": 10
},
"delivery": {
"method": "EMAIL"
},
"recipient": {
"name": "Jane Doe",
"email": "[email protected]"
},
"products": [
"SELECTED-PRODUCT-ID"
]
}
}
'
Updated 3 months ago