Decide a pending buyer account request
curl --request POST \
--url https://api.interchange.io/api/v2/storefront/account-mappings/reviews/{grantId}/decision \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedVersion": 4503599627370495,
"message": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/storefront/account-mappings/reviews/{grantId}/decision"
payload = {
"expectedVersion": 4503599627370495,
"message": "<string>"
}
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({expectedVersion: 4503599627370495, message: '<string>'})
};
fetch('https://api.interchange.io/api/v2/storefront/account-mappings/reviews/{grantId}/decision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"account_id": "<string>",
"brand": {
"domain": "<string>"
},
"operator": "<string>",
"name": "<string>",
"action": "created",
"status": "<string>",
"account_scope": "operator_brand",
"billing": "<string>",
"billing_entity": {},
"setup": {
"message": "<string>",
"url": "<string>",
"expires_at": "<string>"
},
"warnings": [
"<string>"
],
"sandbox": true
}{
"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": {}
}
}Storefront
Decide a pending buyer account request
Accept a pending buyer intake and atomically create its active principal grant, or reject it without creating a grant. The expected version prevents decisions against stale review state.
POST
/
account-mappings
/
reviews
/
{grantId}
/
decision
Decide a pending buyer account request
curl --request POST \
--url https://api.interchange.io/api/v2/storefront/account-mappings/reviews/{grantId}/decision \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedVersion": 4503599627370495,
"message": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/storefront/account-mappings/reviews/{grantId}/decision"
payload = {
"expectedVersion": 4503599627370495,
"message": "<string>"
}
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({expectedVersion: 4503599627370495, message: '<string>'})
};
fetch('https://api.interchange.io/api/v2/storefront/account-mappings/reviews/{grantId}/decision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"account_id": "<string>",
"brand": {
"domain": "<string>"
},
"operator": "<string>",
"name": "<string>",
"action": "created",
"status": "<string>",
"account_scope": "operator_brand",
"billing": "<string>",
"billing_entity": {},
"setup": {
"message": "<string>",
"url": "<string>",
"expires_at": "<string>"
},
"warnings": [
"<string>"
],
"sandbox": true
}{
"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
Path Parameters
Body
application/json
- Option 1
- Option 2
- Option 3
Accept a buyer account with its previously resolved billing path (accept), use the released approve_interchange compatibility alias for agent billing, accept with an explicitly declared operator/advertiser billing entity (link_existing), or reject it without creating access (reject). Source-account mapping remains a separate operation.
Response
Decide a pending buyer account request
Show child attributes
Show child attributes
Available options:
created, updated, unchanged Available options:
operator_brand Show child attributes
Show child attributes
Show child attributes
Show child attributes