An admin can configure his store. In this section, We have explained how to play with WebCommander store configuration. There are multiple webhooks and APIs available for store-based operation. You can find the list of webhooks in the webhook section. A list of available APIs are given below:
Get Countries
Returns the list of countries. An example is given below-
{
"webhooks": [
{
"sourceUrl": "https://yourapp.com/api/v1/cart/added-to-cart",
"eventName": "added-to-cart",
"renderScope": "",
"accessType": "webhook"
}
],
"scriptTag": [
{
"sourceUrl": "https://yourapp.com/assets/js/script-tag.js",
"renderScope": "All",
"accessType": "scriptTag"
}
],
"customerProfileTabs": [
{
"customerProfileTabIdentifier": "myPluginTab",
"customerProfileTabDisplayName": "My Plugin",
"customerProfileTabSourceUrl": "https://yourapp.com/plugin/my-plugin"
}
]
}
Request URL: http://yourapp.com/external/app/access/countries
Request type: GET
Response
{
"status": "success",
"countries": [
{
"isDefault": false,
"code": "AF",
"name": "Afghanistan",
"id": 1,
"state": [],
"isActive": true,
"version": null
},
{
"isDefault": false,
"code": "AL",
"name": "Albania",
"id": 2,
"state": [],
"isActive": true,
"version": null
}
]
}