Provision a hosted buyer-agent runtime-token binding
curl --request POST \
--url https://api.interchange.io/api/v2/buyer-agent-principals/{principalId}/runtime-token/binding \
--header 'Content-Type: application/json' \
--header 'X-Hosted-Buyer-Agent-Orchestrator: <api-key>' \
--data '
{
"installationId": "<string>",
"lifecycleGeneration": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/buyer-agent-principals/{principalId}/runtime-token/binding"
payload = {
"installationId": "<string>",
"lifecycleGeneration": "<string>"
}
headers = {
"X-Hosted-Buyer-Agent-Orchestrator": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Hosted-Buyer-Agent-Orchestrator': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({installationId: '<string>', lifecycleGeneration: '<string>'})
};
fetch('https://api.interchange.io/api/v2/buyer-agent-principals/{principalId}/runtime-token/binding', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"principalId": "<string>",
"bindingState": "active"
},
"error": null
}{
"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": {}
}
}{
"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 Agent Principals
Provision a hosted buyer-agent runtime-token binding
The deployment-authenticated hosted runtime orchestrator idempotently provisions the active runtime-token binding required before token minting. Until hosted buyer-agent creation provisions this binding atomically, this is the only binding writer; an unbound principal cannot mint a token. Optional installation and lifecycle-generation values are provenance only and never token authority. A suspended or retired principal cannot be provisioned.
POST
/
buyer-agent-principals
/
{principalId}
/
runtime-token
/
binding
Provision a hosted buyer-agent runtime-token binding
curl --request POST \
--url https://api.interchange.io/api/v2/buyer-agent-principals/{principalId}/runtime-token/binding \
--header 'Content-Type: application/json' \
--header 'X-Hosted-Buyer-Agent-Orchestrator: <api-key>' \
--data '
{
"installationId": "<string>",
"lifecycleGeneration": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/buyer-agent-principals/{principalId}/runtime-token/binding"
payload = {
"installationId": "<string>",
"lifecycleGeneration": "<string>"
}
headers = {
"X-Hosted-Buyer-Agent-Orchestrator": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Hosted-Buyer-Agent-Orchestrator': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({installationId: '<string>', lifecycleGeneration: '<string>'})
};
fetch('https://api.interchange.io/api/v2/buyer-agent-principals/{principalId}/runtime-token/binding', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"principalId": "<string>",
"bindingState": "active"
},
"error": null
}{
"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": {}
}
}{
"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
Deployment-injected hosted runtime orchestrator credential.
Path Parameters
Pattern:
^prin_[A-Za-z0-9_-]{32}$Body
application/json