Triple REST API
Offer Filters
Get Filter
1min
code examples curl location globoff 'https //api tripleup dev/partner/offer filters/{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/offer filters/{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/offer filters/{id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // offer display rule { "created at" "2021 12 01t01 59 59 000z", "description" "exclude all offers in the food or travel categories \n", "id" "triple abc 123", "is activated" false, "name" "exclude food & travel", "offer condition" { "offer categories" \[ "" ], "content provider ids" \[ "" ], "merchant ids" \[ "" ], "offer ids" \[ "" ] }, "updated at" "2021 12 01t01 59 59 000z" }// 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" "" } }