API documentation
Method list
Test your request
Changelog


addOrderReturnStatusGroup
Creates a new order return status group or updates an existing one if group_id is provided. Status groups are used to visually organize return statuses in the panel sidebar.


Input parameters
group_idintGroup ID. Provide to update an existing group. Leave empty or omit when creating a new group.
namevarchar(15)Group name.



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
group_idintID of the created or updated status group.



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