getListingAgentSettingsHistory
Returns the history of a Listing Agent from the last 14 days: creation, settings changes, enabling, disabling and deletion, with changed fields. Marketplace account settings (default category, price group) are not part of the agent history.
Input parameters
| listing_agent_id | int | Listing Agent identifier. |
| page | int | Results page (100 events per page, numbered from 1). |
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 |
| page | int | The one-based page number returned. |
| marketplace_code | varchar(50) | Marketplace code of the agent. |
| events | array | Events ordered by date descending. |
| | - event | varchar(20) | create, update, disable, delete. |
| | - triggered_by | varchar(20) | user – changed in the panel or API; system – changed automatically (e.g. disabled after the source was removed); support – changed by Base support. |
| | - changes | array | Changed settings. Empty for create and delete. Older entries may list only filters, account, source, name, status, site and catalog view. field (varchar(100)) - Setting name as in getListingAgentsData settings, e.g. filters.tag_ids, variants_mode, is_active, account_id. Exceptions: storage_id – raw ID of the agent source (inventory, shop, warehouse or Connect integration ID, see source_type); filters – true or false when filters were switched on or off. before (text) - Previous value encoded as JSON with the type used in getListingAgentsData settings (e.g. "[12]", "true", "\"products\""). after (text) - New value encoded as JSON. |
| | - date | int | Unix timestamp of the event. |
Sample
Input data:Output data:
A sample request in PHP: