getSyncLogList
Returns up to 1,000 price and stock synchronization log entries for the authenticated user. Pass source to select a marketplace, including allegro, ebay, amazon, or amazon_vendor. Set errors_only to true to return only entries with a synchronization error.
Input parameters
| last_log_id | int | Log ID from which synchronization entries are retrieved. The comparison is inclusive (id >= last_log_id). Use it together with source, because IDs are unique only within one marketplace family. |
| source | varchar(50) | Marketplace code. Omit to return generic-marketplace logs. Use allegro, ebay, amazon, or amazon_vendor for those integrations. |
| errors_only | bool | Whether to return only entries with an error (error_id > 0). Defaults to false. |
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 |
| logs | array | Price and stock synchronization log entries ordered by log_id ascending. |
| | - log_id | int | Unique synchronization log entry identifier. |
| | - group_id | int | Identifier of the synchronization run that produced the entry. |
| | - order_from | varchar(50) | Marketplace integration code. |
| | - item_id | varchar(60) | External marketplace offer identifier. |
| | - type | int | Synchronization type: 0 - stock/quantity update; 1 - price update. |
| | - from | float | Value before the synchronization attempt. |
| | - to | float | Value after the synchronization attempt. |
| | - date_added | int | Unix timestamp when the synchronization log entry was written. |
| | - error_code | varchar(50) | Marketplace or system error code. Present only when the entry has a synchronization error. |
| | - error_text | text | Error message from the synchronization error record. Present only when the entry has a synchronization error. |
Sample
Input data:Output data:
A sample request in PHP: