3) Send your first reward
Exercise your newfound powers.
It is showtime.
Let’s send ourselves a test $50.00 reward. Run the cURL command below, replacing both YOUR-API-KEY
and YOUR-EMAIL-ADDRESS
:
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": 50,
"currency_code": "USD"
},
"delivery": {
"method": "EMAIL"
},
"recipient": {
"name": "Jane Doe",
"email": "[email protected]"
},
"products": [
"OKMHM2X2OHYV",
"KV934TZ93NQM",
"ET0ZVETV5ILN",
"Q24BD9EZ332JT",
"TBAJH7YLFVS5"
]
}
}
'
And now check your email.
You’ll have received a reward sent to you via the Tremendous API. Congratulations, we’re in business!
Updated 3 months ago
Next up