Links individual member account to an another member account
1 min
code examples curl request post \\ \ url https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/linked accounts \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "linkedmemberidentifier" 123456, "linkedtype" "corp", "administrator" true }'require "uri" require "json" require "net/http" url = uri("https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/linked accounts") 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 body = json dump({ "linkedmemberidentifier" 123456, "linkedtype" "corp", "administrator" true }) response = https request(request) puts response read body import requests import json url = "https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/linked accounts" payload = json dumps({ "linkedmemberidentifier" 123456, "linkedtype" "corp", "administrator" true }) headers = { 'accept' 'application/json', 'content type' 'application/json' } 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 \\"linkedmemberidentifier\\" 123456,\n \\"linkedtype\\" \\"corp\\",\n \\"administrator\\" true\n}"); request request = new request builder() url("https //api b preview\ loyaltyservices io/api/v3/members/{memberidentifier}/linked accounts") method("post", body) addheader("accept", "application/json") addheader("content type", "application/json") build(); response response = client newcall(request) execute(); responses // success { "memberlinkedaccountid" "", "linkedmemberidentifier" "", "startdatetime" "2025 06 11t00 00 00 05 00", "enddatetime" "2025 06 21t00 00 00 05 00", "linkedtype" "corp", "administrator" true, "result" "added or moved", "updatedatetime" "2023 06 18t09 09 58 067 05 00" }// bad request { "errors" \[ { "code" "", "fieldname" "", "message" "", "messageparameters" \[ {} ] } ] }// unauthorized // forbidden // internal error