Skip to main content
PATCH
/
storefronts
/
{storefrontId}
/
connection-policy
Update storefront connection policy
curl --request PATCH \
  --url https://api.interchange.io/api/v2/buyer/storefronts/{storefrontId}/connection-policy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "buyEnabled": true,
  "eventsEnabled": true,
  "feedsEnabled": true
}
'
{
  "buyEnabled": true,
  "eventsEnabled": true,
  "feedsEnabled": true,
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key or access token

Path Parameters

storefrontId
integer
required

Storefront ID

Required range: x <= 9007199254740991

Body

application/json
buyEnabled
boolean

Whether this buyer account should buy from this storefront.

eventsEnabled
boolean

Whether this storefront should receive buyer event/CAPI signals.

feedsEnabled
boolean

Whether buyer catalog feeds should be shared with this storefront.

Response

Update storefront connection policy

Buyer-controlled feature policy for a storefront connection row.

buyEnabled
boolean
required

Whether this buyer account should buy from this storefront.

eventsEnabled
boolean
required

Whether this storefront should receive buyer event/CAPI signals.

feedsEnabled
boolean
required

Whether buyer catalog feeds should be shared with this storefront.

updatedAt
string<date-time> | null
required

When the buyer last customized this policy, or null when defaults apply.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$