Skip to content

Instantly share code, notes, and snippets.

@amckemie
Last active April 2, 2021 17:51
Show Gist options
  • Save amckemie/fa27c377036e9473d462a82db4e39208 to your computer and use it in GitHub Desktop.
Save amckemie/fa27c377036e9473d462a82db4e39208 to your computer and use it in GitHub Desktop.
Create Channel with config_meta
For multi-storefront management within the BigCommerce control panel, we need to create Channels that include config_meta, which enables the Wordpress channel in Channel Manager to 1) include a link within Channel Manager to the app and 2) enables native in-BC navigation
POST /v3/channels
{
"data": {
"name": "<Wordpress Channel Name>",
"platform": "wordpress",
"type": "storefront",
"external_id": "", // optional
"is_listable_from_ui": true,
"is_visible": true,
"status": "prelaunch",
"config_meta": {
"app": {
"id": <middleware app ID>,
"sections": [
{
"title": "Overview", //UI screen that MT will need to build in the BC4WP app
"query_path": "overview" // MT to define this value
},
{
"title": "Storefront Settings", // UI screen built by BC, already available - no UI work needed
"query_path": "storefront_settings" // Defined by BC
},
{ // This one is still TBD, depending on if BC can get Advanced settings merged with domains in our UI
"title": "Domains", // Defined by BC
"query_path": "domains" // Defined by BC
},
{
"title": "Notifications", // UI screen built by BC, already available - no UI work needed
"query_path": "notifications" // Defined by BC
},
{
"title": "Currencies", // UI screen built by BC, already available - no UI work needed
"query_path": "currencies" // Defined by BC
},
{
"title": "Add Products", //UI screen that we will need to build in the BC4WP app
"query_path": "<whatever query path we want the app to respond to. Ex: add_products>" // MT to define this value
},
{
"title": "Settings", //UI screen that we will need to build in the BC4WP app
"query_path": "<whatever query path we want the app to respond to. Ex: add_products>" // MT to define this value
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment