Triple REST API
Offer Providers

Get an Offer

1min
code examples curl location globoff 'https //api tripleup dev/partner/offers/{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/offers/{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/offers/{id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // offer { "activation duration in days" 0, "activation required" false, "campaign ends on" "2021 12 01", "category" "", "category tags" "", "created at" "2021 12 01t01 59 59 000z", "currency code" {}, "description" "", "effective date" "2021 12 01", "excluded dates" \[ "" ], "expiration date" "2021 12 31", "external id" {}, "headline" "", "id" "triple abc 123", "invalid day parts" {}, "marketing fee currency code" {}, "marketing fee rate" "", "marketing fee type" "", "marketing fee value" "", "maximum redemptions" "1/3m", "maximum reward cumulative" "1/3m", "maximum reward per transaction" "", "merchant category codes" \[ "" ], "merchant external id" {}, "merchant website" "https //merchant website com", "minimum spend" "", "mode" "", "offer budget" { "currency code" "usd", "estimated allocation" "", "excluded from search" false, "limit" 0 }, "offer type" "", "reward rate" "", "reward type" "", "reward value" "", "terms" "", "updated at" "2021 12 01t01 59 59 000z", "valid day parts" {} }// triplebadrequesterror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// triplenotauthenticatederror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleinvalidpatherror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleintegrityerror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleunsupportedmediatype { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleunprocessableentity { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleinternalservererror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// triplenotimplementederror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleserviceunavailable { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }