Triple REST API
Rewards

Get the details of a reward.

1min
code examples curl location globoff 'https //api tripleup dev/partner/rewards/{id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api tripleup dev/partner/rewards/{id}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));import requests import json url = "https //api tripleup dev/partner/rewards/{id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // the reward resulting from a matched offer and transaction { "reward id" "triple abc 123", "transaction id" "triple abc 123", "offer id" "triple abc 123", "offer external id" "id for entity", "transaction timestamp" "2021 12 01t01 59 59 000z", "card bin" "444789", "card last 4" "0001", "transaction amount" {}, "transaction currency code" "usd", "reward amount" "", "reward currency code" "usd", "offer headline" "", "merchant name" "", "merchant complete address" "7370 baker st, ste 100\npittsburgh, pa 15206", "status" "" }// tripleinvalidpatherror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleunprocessableentity { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }