Synchronization state
Shows how each Connection resource is kept current.
Returns one entry per synchronized resource. The resources are listings, orders, promotions and inventory; Mercado Livre has listings in hybrid mode. It is a safe technical view: it never contains tokens, credentials or raw marketplace responses. Use it to tell whether a Connection is up to date and when the next check happens.
A resource the marketplace neither notifies nor lets us enumerate has no entry. On Mercado Livre, only listings has an entry: orders and promotions are not synchronized yet.
Mode
push: the marketplace notifies changes.poll: marketapi enumerates the resource periodically.hybrid: both. Themockadapter ishybrid.
Automatic reconciliation
Every 6 hours (on Mercado Livre, every 24 hours, because notifications and the hourly fetch of missed ones cover the rest), for each active Connection, marketapi enumerates the listings at the marketplace and updates observed on the ones that already exist locally, using the same rule as the inbound notification. The listing.external_changed event is emitted only when the observed state changed. A local listing that was left out of the list is checked at the marketplace: if it no longer exists, it becomes deleted (listing.status_changed).
- A listing with no local record is not imported. It counts in
unknownExternalCount. To bring it in, use import listings. - If a pass fails,
lastErrorholds a safe message and the next pass follows the normal schedule. If the marketplace says the seller's access has ended, the Connection is deactivated, as with any other call. - With
syncPolicy.inbound.mode = disabled, the listing does not change, andlisting.external_changedis sent withbehavior: observed_onlyon every pass while the marketplace differs from the storedobserved. No read writes in this case (not the notification, the reconciliation or the refresh):recordUpdated: false. Only the import you request stores what is out there and stops the notice. - An import or reconciliation you requested that finishes sets
lastFullSyncAtand pushesnextReconciliationAtback by the same interval (6 hours, or 24 on Mercado Livre). - It is an internal job: it does not appear in
/v1/jobsand emits nojob.*events.
Promotions
Every 6 hours marketapi reads the promotions and campaign invitations at the marketplace and stores what changed, with the same rule as the promotion.* notifications the marketplace sends. A new invitation emits promotion.created; a promotion that changed in any field the API shows (except externalPromotionId, lastSyncedAt and updatedAt), promotion.updated; an entry that changed or that the marketplace added to an existing promotion, promotion.entry_updated (previousStatus: null for a new line). A pass with no change emits nothing. It applies only to Connections whose marketplace offers promotions.read.
Stock
The inventory resource covers the stock locations and what the marketplace says it has in each one. Every 6 hours marketapi reads the locations (List locations) and the stock of each target, and saves the result for the variant balance (external[]). A stock notification does the same right away, only for the target it names. It exists only for marketplaces with inventory.read; Mercado Livre has no inventory entry yet.
Connecting and reconnecting
Connecting or reconnecting sets nextReconciliationAt to "now". The first pass recovers what changed while the Connection was revoked.
A notification that arrives while the Connection is inactive is not applied: its time is kept in deferredInboundAt. Compare it with lastFullSyncAt to see whether reconciliation has recovered it.
lastInboundAt is the last notification for the resource received while the Connection was active.
Caveats
checkpointis opaque and changes per marketplace. Do not parse it.- To know whether a specific request succeeded, the record is the Job returned by import or reconcile. For an offer's state, read the Listing and its
observed.
api_keyAuthorizationBearer <token>API key (mk_...)
id*stringIdentifier of the resource, as returned by the API.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidOne entry per synchronized resource: mode, last complete pass, last notification and next periodic reconciliation. No credentials and no raw marketplace responses.
application/json- response
How each resource type of this connection is kept current. Technical state: no credentials and no raw marketplace responses.
connectionId*stringThe connection this state belongs to.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidresources*One entry per resource type this connection synchronizes. A resource the marketplace neither notifies nor lets us enumerate has no entry.
curl -X GET "https://example.com/v1/connections/3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01/sync-state"{ "connectionId": "9a1b2c3d-4e5f-4a6b-8c7d-0e1f2a3b4c5d", "resources": { "listings": { "mode": "hybrid", "lastFullSyncAt": "2026-10-12T06:00:00.000Z", "checkpoint": "2026-10-12T05:58:41.000Z", "lastInboundAt": "2026-10-12T09:14:03.000Z", "deferredInboundAt": null, "nextReconciliationAt": "2026-10-12T12:00:00.000Z", "lastError": null, "unknownExternalCount": 2 }, "orders": { "mode": "hybrid", "lastFullSyncAt": "2026-10-12T06:00:00.000Z", "checkpoint": "2026-10-12T05:58:41.000Z", "lastInboundAt": "2026-10-12T09:14:03.000Z", "deferredInboundAt": null, "nextReconciliationAt": "2026-10-12T12:00:00.000Z", "lastError": null, "unknownExternalCount": 2 }, "promotions": { "mode": "hybrid", "lastFullSyncAt": "2026-10-12T06:00:00.000Z", "checkpoint": "2026-10-12T05:58:41.000Z", "lastInboundAt": "2026-10-12T09:14:03.000Z", "deferredInboundAt": null, "nextReconciliationAt": "2026-10-12T12:00:00.000Z", "lastError": null, "unknownExternalCount": 2 }, "inventory": { "mode": "hybrid", "lastFullSyncAt": "2026-10-12T06:00:00.000Z", "checkpoint": "2026-10-12T05:58:41.000Z", "lastInboundAt": "2026-10-12T09:14:03.000Z", "deferredInboundAt": null, "nextReconciliationAt": "2026-10-12T12:00:00.000Z", "lastError": null, "unknownExternalCount": 2 } }}