Skip to content

Provision_Store#


Description#

This function is used to run XML Provisioning tags via the JSON API. This function allows you to execute store level tags. Your API token must pass the HMAC signature as well as the timestamp in order to have permissions to use this function.

Note

This function needs explicit permissions to the API token. When in the Miva admin select the API token and the functions button. When the modal appears add “Provision_Store” as the function name and choose the store within the dropdown.

Request Body Parameters#

Parameter
Type Description
xml String Specific store level XML tag to execute.

Response Parameters#

Name Description
success boolean value for if the request was successful
data Object containing response from XML function being executed

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "Provision_Store",
    "xml": "<JavaScriptResourceXGroup_Assign code=\"{{JavaScript_Resource_Code}}\" group_code=\"{{Resource_Group_Code}}\" \/>"
}

Example Response#

{
    "success": 1,
    "data": []
}