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_id | int | Tag identifier. Provide for updates. Leave blank or set to 0 when creating a new tag. |
| name | varchar(25) | Tag name. Must be unique within the user account. Maximum 25 characters. |
Output data
The method returns the data in JSON format.
| status | varchar(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_id | int | ID of the created or updated tag. |
Sample
Input data:Output data:
A sample request in PHP: