API documentation
Method list
Test your request
Changelog


getListingAgentsList
Returns Listing Agents (automatic listing of products to marketplaces) configured in the account, with their current status and the reason of the last stop.


Input parameters
filter_marketplace_codevarchar(50)Return only agents of this marketplace. Marketplace code as used as keys in getInventoryIntegrations (the same values getSyncLogList accepts as source), e.g. allegro, ebay, amazon, kaufland. Omit to return agents of all marketplaces.
filter_account_idintMarketplace account ID (getInventoryIntegrations → accounts).
filter_is_activebooltrue – only enabled agents, false – only disabled agents. Omit to return both.
pageintResults page (100 agents per page, numbered from 1). Default 1.



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
pageintThe one-based page number returned.
listing_agentsarrayAgents ordered by listing_agent_id ascending.
| - listing_agent_idintListing Agent identifier.
| - namevarchar(100)Agent name.
| - marketplace_codevarchar(50)Marketplace the agent lists to. Empty when the agent setup was not finished.
| - account_idintMarketplace account identifier.
| - account_namevarchar(100)Marketplace account name. Empty when the account no longer exists.
| - sitesarrayMarketplace sites (countries) the agent lists to, e.g. ["de", "fr"].
| - source_typevarchar(20)Source of products: catalog, shop, warehouse, blconnect.
| - inventory_idintCatalog ID (getInventories). 0 when the source is not a catalog.
| - storage_idvarchar(30)External storage ID in getExternalStoragesList format (e.g. shop_2445). Empty for catalog and Base Connect.
| - connect_integration_idintBase Connect integration ID (getConnectIntegrations). 0 for other sources.
| - listing_modevarchar(10)publish – offers are listed immediately, draft – offers are saved as drafts.
| - is_activeboolWhether the agent is enabled. Disabled agents do not run.
| - is_stop_requestedboolWhether a stop was requested; the next run will be skipped.
| - last_action_requiredarrayThe last reason the agent was disabled or a run was stopped. Cleared only when the agent is enabled or saved again.
type (varchar(20)) - disabled – the agent was disabled by the system; run_stopped – a run was stopped and the agent tries again in the next run; empty – none (a disabled agent without a reason was disabled by a user).
reason_code (varchar(50)) - Reason code, e.g. api_error_limit_reached, local_validation_errors_limit_reached, source_unavailable, inventory_view_not_found, kill_switch_activated. other – reason without a dedicated code, see reason_message. Empty when type is empty.
reason_message (text) - Reason description in the account language.
date (int) - Unix timestamp when the reason was recorded. 0 when type is empty.
| - date_last_startedintUnix timestamp of the last start attempt. 0 – never started or unknown.
| - date_updatedintUnix timestamp of the last change made by a user (settings or status). Disabling by the system is reported in last_action_required.



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