Declare sandbox buyer account linkages on a MANAGED storefront
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/storefront-accounts/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target": {
"storefrontId": 4503599627370495
},
"accounts": [
{
"brand": {
"domain": "<string>"
},
"operator": "<string>",
"sandbox": true,
"billing": "agent"
}
]
}
'import requests
url = "https://api.interchange.io/api/v2/buyer/storefront-accounts/sync"
payload = {
"target": { "storefrontId": 4503599627370495 },
"accounts": [
{
"brand": { "domain": "<string>" },
"operator": "<string>",
"sandbox": True,
"billing": "agent"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
target: {storefrontId: 4503599627370495},
accounts: [
{
brand: {domain: '<string>'},
operator: '<string>',
sandbox: true,
billing: 'agent'
}
]
})
};
fetch('https://api.interchange.io/api/v2/buyer/storefront-accounts/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accounts": [
{
"brand": {
"domain": "<string>"
},
"operator": "<string>",
"status": "active",
"action": "created",
"sandbox": true,
"account_id": "<string>",
"name": "<string>"
}
]
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Buyer Storefront Accounts
Declare sandbox buyer account linkages on a MANAGED storefront
Declare one or more sandbox account linkages between the calling buyer and a MANAGED storefront. Every entry must carry sandbox: true and billing: 'agent'. Delegates to the seller-side linking substrate: grants land in the same tables the seller-side inbound sync_accounts handler writes to. External-adapter, archived, and paused storefronts are rejected up-front. Production traffic (operator-identity gate, other billing modes) and buyer-side idempotency ship in follow-up slices; today the linking service is idempotent at its natural-key level (storefront_id, operator_domain, brand_domain, sandbox).
POST
/
storefront-accounts
/
sync
Declare sandbox buyer account linkages on a MANAGED storefront
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/storefront-accounts/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target": {
"storefrontId": 4503599627370495
},
"accounts": [
{
"brand": {
"domain": "<string>"
},
"operator": "<string>",
"sandbox": true,
"billing": "agent"
}
]
}
'import requests
url = "https://api.interchange.io/api/v2/buyer/storefront-accounts/sync"
payload = {
"target": { "storefrontId": 4503599627370495 },
"accounts": [
{
"brand": { "domain": "<string>" },
"operator": "<string>",
"sandbox": True,
"billing": "agent"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
target: {storefrontId: 4503599627370495},
accounts: [
{
brand: {domain: '<string>'},
operator: '<string>',
sandbox: true,
billing: 'agent'
}
]
})
};
fetch('https://api.interchange.io/api/v2/buyer/storefront-accounts/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accounts": [
{
"brand": {
"domain": "<string>"
},
"operator": "<string>",
"status": "active",
"action": "created",
"sandbox": true,
"account_id": "<string>",
"name": "<string>"
}
]
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Body
application/json
Response
Declare sandbox buyer account linkages on a MANAGED storefront
Show child attributes
Show child attributes