Tally Platform API
member-redemption
Get Member Redemptions
1 min
code examples curl location globoff 'https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/redemptions' \\ \ header 'accept application/json' \\ \ header 'content type application/json'require "uri" require "json" require "net/http" url = uri("https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/redemptions") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/redemptions" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", 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, ""); request request = new request builder() url("https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/redemptions") method("get", body) addheader("accept", "application/json") addheader("content type", "application/json") build(); response response = client newcall(request) execute(); responses // success \[ { "memberredemptionid" {}, "redemptionitemcode" "", "redemptionitemdescription" "", "referenceid" "", "customdata" { "ace01" "", "ace01description" "", "ace02" "", "ace02description" "", "ace03" "", "ace03description" "", "ace04" "", "ace04description" "", "ace05" "", "ace05description" "", "ace06" "", "ace06description" "", "ace07" "", "ace07description" "", "ace08" "", "ace08description" "", "ace09" "", "ace09description" "", "ace10" "", "ace10description" "", "ace11" "", "ace11description" "", "ace12" "", "ace12description" "", "ace13" "", "ace13description" "", "ace14" "", "ace14description" "", "ace15" "", "ace15description" "" }, "quantity" 10, "currencyvalue" 100, "partnercode" "", "expectedshipdate" "2020 01 01", "orderaddress" { "name" "", "address1" "", "address2" "", "address3" "", "city" "", "statecode" "", "zip" "", "countrycode" "", "emailaddress" "", "phonenumber" "" }, "bonuses" \[ { "transactionid" "", "transactiongroupid" "", "transactiongroupreferenceid" "", "parenttransactionid" "", "linkedtransactionid" "", "referenceid" "", "memberidentifier" "", "accountnumber" "", "memberredemptionid" "1", "transactiondatetime" "", "description" "", "typecode" "", "typedescription" "", "subtypecode" "", "postdate" "", "originationdate" "", "retro" false, "edited" false, "sourcecode" "", "statuscode" "", "updatedatetime" "", "earningruledescription" "", "customdata" { "ace01" "", "ace01description" "", "ace02" "", "ace02description" "", "ace03" "", "ace03description" "", "ace04" "", "ace04description" "", "ace05" "", "ace05description" "", "ace06" "", "ace06description" "", "ace07" "", "ace07description" "", "ace08" "", "ace08description" "", "ace09" "", "ace09description" "", "ace10" "", "ace10description" "", "ace11" "", "ace11description" "", "ace12" "", "ace12description" "", "ace13" "", "ace13description" "", "ace14" "", "ace14description" "", "ace15" "", "ace15description" "" }, "spend" { "peritem" 0, "spendamount" 0, "currencytypecode" "", "currencycategorycode" "", "isocurrencycode" "", "quantity" "" }, "earn" { "amount" 0, "currencytypecode" "", "currencycategorycode" "", "earningslimited" false, "tierqualifying" false, "transactioncounters" \[ { "countertypecode" "", "countervalue" 0 } ] }, "redemption" { "redemptionitemcode" "", "currencyrequired" 0, "minimumquantity" "", "maximumquantity" "", "redeemincrement" "", "facevalue" 0, "amountprovided" false }, "expiredcurrency" { "expiredamount" 0, "expireddate" "", "currencytypecode" "", "currencycategorycode" "" }, "hoteltransaction" { "checkindate" "", "checkoutdate" "", "eligiblestays" "", "eligiblecappednights" "", "eligiblenights" "", "roomnumber" "", "roomtype" "", "roomrate" 0, "roomrateintl" 0, "totalrevenueamount" 0, "totalrevenueamountintl" 0, "loyaltyeligibleamount" 0, "loyaltyeligibleamountintl" 0, "loyaltyineligibleamount" 0, "loyaltyineligibleamountintl" 0, "isocurrencycode" "", "bookingsource" "", "paymentcode" "", "purposeofvisit" "", "travelagentname" "", "groupname" "", "companyname" "", "reservationconfirmationnumber" "", "noshow" false, "pmsconfirmationnumber" "", "overlappingstaypoolid" "", "nonstayindicator" false, "nonstaylocationid" "", "nonstayeligiblerevenue" 0, "nonstayeligiblerevenueintl" 0, "nonstayineligiblerevenue" 0, "nonstayineligiblerevenueintl" 0, "checknumber" "" }, "traveltransaction" { "activitystartdatetime" "", "activityenddatetime" "", "totalspendamount" 0 }, "transactionreference" "", "cancelable" false, "editable" false, "createuserid" "", "createusername" "", "updateuserid" "", "updateusername" "", "membercommentid" "", "cancellationsubreason" "", "businesseligible" false, "businessaccountnumber" "", "awardnumber" "", "baseaccountnumber" "", "transactionadjustment" { "comments" "", "referenceid" "", "reasoncode" "" }, "transactionbonus" { "bonuscode" "", "bonustype" "" }, "transactionpartner" { "partnername" "", "partnercurrencycategorycode" "" }, "transactionpromotion" { "promotioncode" "" }, "transactiontransfer" { "frommemberaccountnumber" "a234567890", "frommembername" "marcel rufus", "tomemberaccountnumber" "b987654321", "tomembername" "janel liesje", "transferredby" "a0123456789" }, "mergedetails" { "frommemberaccountnumber" "a234567890" } } ], "coupons" \[ { "membercouponid" 147258369, "coupon" { "couponid" 147258369, "offer" { "offerid" 147258369, "offertypecode" "discount", "code" "alon2020", "name" "free night", "description" "award double points", "featureversion" 2, "statuscode" "enabled", "startdatetime" "", "enddatetime" "", "offerattributes" \[ { "offerattributeid" 147258369, "attribute" { "attributeid" 147258369, "typecode" "validation", "statuscode" "enabled", "name" "accountnumber", "description" "account number", "datatypecode" "open" }, "defaultvalue" "standard", "requireonuse" true, "requireonhold" true, "includeonresponse" false, "attributetypecode" "validation", "operatorcode" "eq", "operand" "gi", "smartgroupid" 147258369 } ] }, "code" "zpvwtarow2oq", "statuscode" "activated", "startdate" "", "enddate" "", "usetypecode" "single", "uselimit" 1, "currentuse" 1, "couponuses" \[ { "usedatetime" "", "statuscode" "used", "channelcode" "system", "alias" "", "usecount" 1, "couponuseattributes" \[ { "couponuseattributeid" 147258369, "attribute" { "attributeid" 147258369, "typecode" "validation", "statuscode" "enabled", "name" "accountnumber", "description" "account number", "datatypecode" "open" }, "value" "standard" } ] } ], "couponattributes" \[ { "couponattributeid" 147258369, "attribute" { "attributeid" 147258369, "typecode" "validation", "statuscode" "enabled", "name" "accountnumber", "description" "account number", "datatypecode" "open" }, "value" "2021 12 31t12 00 00", "requireonuse" true, "requireonhold" false } ] }, "sourcetypecode" "promotion", "sourcereferenceid" 147258369, "aggregatestatuscode" "active", "statuscode" "active", "transferable" false, "previouslytransferred" false } ], "relatedredemptionid" 12342328, "fraudriskscore" 25 75 } ]// bad request { "errors" \[ { "code" "", "fieldname" "", "message" "", "messageparameters" \[ {} ] } ] }// unauthorized // forbidden // internal error