All Collections
Integrations
Salesforce Commerce Cloud
Setup
Open Commerce API permissions to connect Salesforce Commerce Cloud
Open Commerce API permissions to connect Salesforce Commerce Cloud

This is the list of Open Commerce API (OCAPI) permissions, which are required to connect your Salesforce Commerce Cloud site to Dotdigital.

Gareth Burroughes avatar
Written by Gareth Burroughes
Updated over a week ago

This JSON is created for you when you first connect your Salesforce Commerce Cloud site to Dotdigital, however, if you need to update the permission, you can copy and paste this JSON into your instance's Business Manager.

Make sure you replace the value of the client_id field with the API key used during the connection process. If you've already connected your store, go to Administration > Site Development > Open Commerce API Settings in your Salesforce Commerce Cloud instance settings to find your client id.


Shop permissions

Copy this JSON for the shop permission and paste it into your instance's Business Manager: Administration > Site development > Open Commerce API settings, select type 'Shop' and set the context to 'Global'

{  
"_v": "22.6",
"clients": [
{
"client_id": "YOUR_CLIENT_ID",
"allowed_origins": [],
"resources": [
{
"resource_id": "/products/*/prices",
"methods": [ "get" ],
"cache_time": 0,
"config": {
"_comment": "Add a comma-separated list of the price book
ids currently active in the organization",
"product.prices.price_book_ids": "REPLACE_ME_WITH_PRICE_BOOK_IDS"
}
},
{
"resource_id": "/site",
"methods": [ "get" ],
"read_attributes": "(**)"
},
{
"resource_id": "/order_search",
"methods": [ "post" ],
"read_attributes": "(**)",
"write_attributes": "(**)"
},
{
"resource_id": "/products/*",
"methods": [ "get" ],
"read_attributes": "(**)"
}
]
}
]
}

Data permissions

Copy this JSON for the data permission and paste it into your instance's Business Manager: Administration > Site development > Open Commerce API settings, select type 'Data' and set the context to 'Global'

{
"_v": "22.6",
"clients": [
{
"client_id": "YOUR_CLIENT_ID",
"resources": [
{
"resource_id": "/sites",
"methods": ["get"],
"read_attributes": "(**)"
},
{
"resource_id": "/product_search",
"methods": ["post"],
"read_attributes": "(**)",
"write_attributes": "(**)"
},
{
"resource_id": "/products/*",
"methods": ["get"],
"read_attributes": "(**)"
},
{
"resource_id": "/catalog_search",
"methods": ["post"],
"read_attributes": "(**)",
"write_attributes": "(**)"
},
{
"resource_id": "/customer_lists/**",
"methods": ["get", "post"],
"read_attributes": "(**)",
"write_attributes": "(**)"
}
]
}
]
}
Did this answer your question?