getListingAgentRunsList
Returns Listing Agent runs from the last 14 days, newest first, including runs that failed to start. Agents listing to several sites have a separate run per site. Without listing_agent_id the date range is limited to 3 days.
Input parameters
| listing_agent_id | int | Return runs of one agent (also deleted in the last 14 days). |
| filter_marketplace_code | varchar(50) | Return runs of 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. |
| date_from | int | Unix timestamp. Runs finished at or after this time. Default: 14 days ago with listing_agent_id, 3 days ago without it. |
| date_to | int | Unix timestamp. Runs finished at or before this time. Default: now. |
| filter_problems_only | bool | true – only runs that were stopped, failed to start or rejected products. Default false. |
| page | int | Results page (100 runs 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. |
| runs | array | Runs ordered by listing_agent_run_id descending. |
| | - listing_agent_run_id | int | Run identifier. |
| | - listing_agent_id | int | Agent identifier. The agent may have been deleted since. |
| | - listing_agent_name | varchar(100) | Agent name at the time of the run. |
| | - marketplace_code | varchar(50) | Marketplace code. |
| | - site | varchar(10) | Site of the run. Empty for marketplaces without sites or when unknown (run failed to start). |
| | - run_status | varchar(20) | completed – the run processed all matched products or reached max_items_per_run or the maximum run time (is_runtime_limit_reached); stopped – the run was stopped (see stop_reason_code); failed_to_start – the run stopped before processing products. |
| | - date_started | int | Unix timestamp of the run start. 0 when the run failed to start. |
| | - date_finished | int | Unix timestamp of the run end. |
| | - products_matched | int | Products matching the agent filters that have no offer and no queue row yet. |
| | - products_added_to_queue | int | Products added to the listing queue. Being added to the queue does not mean that the offer was created – check getListingAgentRunItems or getListingAgentQueueItems. |
| | - products_with_errors | int | Products rejected before the queue because of validation, currency, product matching or unique field errors. AI errors are not counted – see getListingAgentRunItems. |
| | - products_skipped | int | Products skipped because they already have an offer or a queue row. |
| | - products_skipped_unique_field | int | Products skipped because another source already uses the same unique field value (e.g. EAN). |
| | - products_not_processed | int | Matched products not handled in this run because of limits or a stop: products_matched − products_added_to_queue − products_with_errors, at least 0. |
| | - is_runtime_limit_reached | bool | Whether the run reached the maximum run time. |
| | - stop_reason_code | varchar(50) | Reason code when run_status is stopped or failed_to_start (codes as in last_action_required of getListingAgentsList). Empty otherwise. |
| | - stop_reason_message | text | Reason description in the account language. Empty when stop_reason_code is empty. |
| | - dispatch_status | varchar(20) | sent – queue rows were sent to the marketplace; error – sending failed; not_triggered – nothing to send. |
| | - has_items | bool | Whether per-product results are available (getListingAgentRunItems). |
Sample
Input data:Output data:
A sample request in PHP: