API documentation
Method list
Test your request
Changelog


addInventoryTag
The method allows you to add a tag to the Base product catalog. Adding a tag with the same tag_id again updates the previously saved tag.


Input parameters
tag_idintTag identifier. Provide for updates. Leave blank or set to 0 when creating a new tag.
namevarchar(25)Tag name. Must be unique within the user account. Maximum 25 characters.



Output data
The method returns the data in JSON format.
statusvarchar(30)SUCCESS - request executed correctly
ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code
tag_idintID of the created or updated tag.



Sample
Input data:
Output data:
A sample request in PHP: