Connections

List stock locations

Lists the places where the marketplace keeps the seller's stock.

GET
/v1/connections/{id}/stock-locations

Read inventory and locations

  • MockDevelopment only
  • Mercado LivreNot supported
  • MagaluPlanned
  • AmazonPlanned
  • TikTok ShopPlanned
  • ShopeePlanned

Returns the Connection's stock locations at the marketplace, paginated. Each has a type:

  • seller_location: a seller location. marketapi publishes the quantity to it.
  • marketplace_fulfillment: stock held by the marketplace itself (Full, FBA, FBS). Read-only: it never receives a publication and shows up only as observed stock in the variant balance.

status is active or missing (the marketplace stopped listing the location; it is kept and cannot be mapped). isPrimary marks the main location.

curl "$BACKEND_URL/v1/connections/$CONNECTION_ID/stock-locations" \
  -H "Authorization: Bearer mk_your_api_key"

Locations are read on connect, on connection.sync and on every stock reconciliation. The route only reads what is already saved and never calls the marketplace. Each location id is the locationId of the fulfillment mapping.

On Mercado Livre the route answers 422 with CAPABILITY_UNSUPPORTED: stock reading (inventory.read) is not supported there yet.

Authorization

api_key
headerAuthorizationBearer <token>

API key (mk_...)

Path Parameters

id*string

Identifier of the resource, as returned by the API.

Match^([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)$
Formatuuid

Query Parameters

page?integer

Page number, starting at 1. Defaults to 1. A page beyond pagination.totalPages is not an error: it returns empty data.

Range1 <= value <= 9007199254740991
Default1
pageSize?integer

Items per page, from 1 to 100. Defaults to 20.

Range1 <= value <= 100
Default20

Response Body

One page of the places where the marketplace keeps the stock of this seller, as the last sync stored them, ordered by externalId. Every type and status is listed: marketplace_fulfillment is read only and missing is a location the marketplace no longer lists. Reads our database, never the marketplace. pagination carries the totals.

application/json
  1. response

One page of the stock locations of a connection.

data*array<>

The stock locations of this page, ordered by externalId.

pagination*

Where this page sits in the whole listing: the totals and whether there are pages before and after it.

curl -X GET "https://example.com/v1/connections/3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01/stock-locations"
{  "data": [    {      "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"    },    {      "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"    }  ],  "pagination": {    "page": 1,    "pageSize": 20,    "totalItems": 2,    "totalPages": 1,    "hasNext": false,    "hasPrev": false  }}