Submit Member Status Match Application
1 min
code examples curl request post \\ \ url https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/status match/applications \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'x original client ip 172 56 199 152' \\ \ data '{ "externalprogram" "luminaryrewards", "externalprogramstatus" "radiance", "images" \[ { "imageid" 20087 } ] }'require "uri" require "json" require "net/http" url = uri("https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/status match/applications") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["x original client ip"] = "172 56 199 152" request body = json dump({ "externalprogram" "luminaryrewards", "externalprogramstatus" "radiance", "images" \[ { "imageid" 20087 } ] }) response = https request(request) puts response read body import requests import json url = "https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/status match/applications" payload = json dumps({ "externalprogram" "luminaryrewards", "externalprogramstatus" "radiance", "images" \[ { "imageid" 20087 } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json', 'x original client ip' '172 56 199 152' } response = requests request("post", url, headers=headers, data=payload) print(response text) okhttpclient client = new okhttpclient() newbuilder() build(); mediatype mediatype = mediatype parse("application/json"); requestbody body = requestbody create(mediatype, "{\n \\"externalprogram\\" \\"luminaryrewards\\",\n \\"externalprogramstatus\\" \\"radiance\\",\n \\"images\\" \[\n {\n \\"imageid\\" 20087\n }\n ]\n}"); request request = new request builder() url("https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/status match/applications") method("post", body) addheader("accept", "application/json") addheader("content type", "application/json") addheader("x original client ip", "172 56 199 152") build(); response response = client newcall(request) execute(); responses // success { "applicationid" 100042, "memberidentifier" "a234567890", "externalprogram" "luminaryrewards", "externalprogramstatus" "radiance", "sourceapplicationip" "172 56 199 152", "statuscode" "oc", "applicationdatetime" "2024 06 01t14 30 00z", "images" \[ { "imageid" 20087, "tag" "membership card front", "statuscode" "uploaded", "applicationid" 100042 } ] }// bad request { "errors" \[ { "code" "", "fieldname" "", "message" "", "messageparameters" \[ {} ] } ] }// unauthorized // forbidden // not found // internal error