Get fulfillment mapping
Shows which warehouses feed each marketplace stock location.
Read inventory and locations
- MockDevelopment only
- Mercado LivreNot supported
- MagaluPlanned
- AmazonPlanned
- TikTok ShopPlanned
- ShopeePlanned
The mapping links each marketplace location to the seller's warehouses that feed it. There is one entry per active seller_location, including the ones with no warehouse (warehouseIds: []: nothing is published there).
marketapi creates the default mapping only once, the first time the Connection's locations are saved (on connect, on connection.sync or on the 6-hour reconciliation; if reading locations fails on connect, the reconciliation creates it later): the seller's default warehouse feeds the marketplace's primary location. A mapping you cleared stays cleared on reconnect and on every reconciliation. A warehouse created later is never added to the mapping by itself: put it there with Update mapping.
Rules:
- A warehouse feeds at most one location per Connection. Otherwise the same piece would be published twice.
marketplace_fulfillmentlocations (Full, FBA, FBS) are not in the mapping: they are read-only. If a location becamemarketplace_fulfillmentormissingafter receiving warehouses, it stays in the list while it holds them, so you can release them withwarehouseIds: [].- The quantity published to each location is the sum of
availableof its warehouses. A location outside the mapping is not touched.
curl "$BACKEND_URL/v1/connections/$CONNECTION_ID/fulfillment-mapping" \
-H "Authorization: Bearer mk_your_api_key"On Mercado Livre the route answers 422 with CAPABILITY_UNSUPPORTED (inventory.read is not supported yet).
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 active seller_location of the connection, ordered by externalId, including the ones with no warehouse (warehouseIds: []). A location of any other type or status appears only while it still holds warehouses (it became marketplace fulfillment, or the marketplace stopped listing it, after they were mapped), so they can be released with warehouseIds: []. warehouseIds are in a stable order. A connection that was revoked still answers.
application/json- response
Which warehouses of the seller feed which stock location of this connection.
connectionId*stringThe connection this mapping 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)$uuidentries*array<>One entry per active seller_location of the connection, ordered by the location externalId, including the ones with no warehouse yet, plus any other location (marketplace fulfillment, or missing) that still holds warehouses mapped before it changed.
curl -X GET "https://example.com/v1/connections/3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01/fulfillment-mapping"{ "connectionId": "9a1b2c3d-4e5f-4a6b-8c7d-0e1f2a3b4c5d", "entries": [ { "location": { "id": "5d0c8e2a-7b41-4f36-9a58-1c2e3f4a5b6c", "connectionId": "9a1b2c3d-4e5f-4a6b-8c7d-0e1f2a3b4c5d", "externalId": "mock-main", "type": "seller_location", "name": "Main location", "isPrimary": true, "status": "active", "marketplaceData": {}, "syncedAt": "2026-10-12T06:00:00.000Z", "createdAt": "2026-10-12T06:00:00.000Z", "updatedAt": "2026-10-12T06:00:00.000Z" }, "warehouseIds": [ "b7e2a1c4-5d3f-4e8a-9b6c-2f1d0a8e7c35" ] }, { "location": { "id": "8e1f2a3b-4c5d-4e6f-8a7b-9c0d1e2f3a4b", "connectionId": "9a1b2c3d-4e5f-4a6b-8c7d-0e1f2a3b4c5d", "externalId": "mock-secondary", "type": "seller_location", "name": "Secondary location", "isPrimary": false, "status": "active", "marketplaceData": {}, "syncedAt": "2026-10-12T06:00:00.000Z", "createdAt": "2026-10-12T06:00:00.000Z", "updatedAt": "2026-10-12T06:00:00.000Z" }, "warehouseIds": [] } ]}