Pin or clear the learned default posture
curl --request PUT \
--url https://api.interchange.io/api/v2/storefront/learned-default-posture \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.interchange.io/api/v2/storefront/learned-default-posture"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.interchange.io/api/v2/storefront/learned-default-posture', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"learnedDefault": {
"posture": "direct_fit",
"reason": "<string>",
"checkedAt": "<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": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Storefront
Pin or clear the learned default posture
Pin a negotiation posture as the storefront’s learned default, or clear it (send posture: null). The learned default is a fallback the Merchandising Agent uses only when it has no fresher read for a buyer; operating instructions and buyer-specific rules always take precedence. The storefront is resolved from auth context.
PUT
/
learned-default-posture
Pin or clear the learned default posture
curl --request PUT \
--url https://api.interchange.io/api/v2/storefront/learned-default-posture \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.interchange.io/api/v2/storefront/learned-default-posture"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.interchange.io/api/v2/storefront/learned-default-posture', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"learnedDefault": {
"posture": "direct_fit",
"reason": "<string>",
"checkedAt": "<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": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Body
application/json
Pin or clear the storefront learned default negotiation posture.
The negotiation posture to pin as the storefront learned default, or null to clear it (revert to none).
Available options:
direct_fit, hold_value, value_preserving_compromise, tradeoff_ladder, price_first, wholesale_mirror Response
Pin or clear the learned default posture
The storefront learned default posture after a pin or clear operation.
The saved learned default posture, or null when none is set (e.g. after a clear).
Show child attributes
Show child attributes