We've been using the JSON API successfully for a few months now for various tasks (get item data, update item data, etc). We also have the Remote Provisioning (XML) tool available on our site for a project from a couple of years ago.
The other day I started a new project where I want to use the JSON API + Remote Provisioning to add an attribute template to an item. We're using the HMAC signature + timestamp, so I think we're good as far as permissions go. Also the JSON API token we're using is correctly assigned to a group, and that group has been granted full privileges. However, when I make the call I get an Access Denied error, with no further info available.
The JSON call I'm making is along these lines:
The access denied message is:
Last thing, if I deliberately screw up the function name in the JSON call:
the error changes (as expected) to:
Anyone encounter a similar issue and see what I might be doing wrong here?
The other day I started a new project where I want to use the JSON API + Remote Provisioning to add an attribute template to an item. We're using the HMAC signature + timestamp, so I think we're good as far as permissions go. Also the JSON API token we're using is correctly assigned to a group, and that group has been granted full privileges. However, when I make the call I get an Access Denied error, with no further info available.
The JSON call I'm making is along these lines:
Code:
{ "Store_Code": "ZZZZ", "Function": "Provision_Store", "xml" : "<ProductAttribute_Add_Template product_code='asdf'><AttributeTemplateCode>asdf</AttributeTemplateCode></ProductAttribute_Add_Template>" }
Code:
{ "success": 0, "error_code": "access_denied", "error_message": "Access denied" }
Code:
"Function": "Provision_Store_asfasdfasdf"
Code:
{ "success": 0, "error_code": "invalid_function", "error_message": "Invalid function" }
Comment