Giftcards can be sent to recipients via the API.
Query the available giftcard brands and amounts
curl -X GET "https://api.thanks.io/api/v2/giftcard-brands" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY"
Select Giftcard Brand and Amount
Send Giftcard
curl -X POST "https://api.thanks.io/api/v2/send/giftcard" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "giftcard_brand": "GIFT_CARD_BRAND_ID_FROM_PREVIOUS_STEP", "giftcard_amount_in_cents": "GIFT_CARD_AMOUNT_IN_CENTS_FROM_PREVIOUS_STEP", "front_image_url": "https://d2md0c8rpvzmz5.cloudfront.net/notecard-inspirations/note1.png", "message": "Hey %FIRST_NAME%!,\n\nTHANK YOU for allowing us the opportunity to HELP you with your plan!", "recipients": [ { "name": "Jane Doe", "address": "456 Another St", "city": "Fake City", "province": "NY", "postal_code": "55555", "country": "US" } ] }'
Was this page helpful?