Shipments to the marketplace warehouse

The Mercado Libre Full or Amazon FBA warehouse is a branch of type mercado-full or fba. The marketplace writes its stock; Fenicia keeps its lots, which move only through events. A shipment to the marketplace warehouse is a transfer without a receiving flow: the marketplace does its own quality control.

When you register the shipment, stock goes down at your origin branch and lots are spent by FIFO (first in, first out). When the marketplace confirms reception (the inbound_reception operation in Mercado Libre), derived lots are born in the marketplace warehouse, with the cost of the source lots. What was sent and not received is a loss at the lot's cost.

Register the shipment before it leaves

Mercado Libre does not expose the list of Full shipments through its API, so the shipment is registered in Fenicia with its Mercado Libre shipment number. If an inbound_reception arrives with a shipment number Fenicia does not know, Fenicia creates the transfer at that moment and notifies the merchant. That covers the cost, not the stock: while the merchandise was in transit, your origin branch kept offering it to the channels.

The marketplace's stock load does not spend lots. If it did, a sale would be counted twice.

Register a shipment

Registers a shipment from your branch to the marketplace warehouse as a transfer without a receiving flow.

{
  "originLocationId": "670a1b2c3d4e5f6a7b8c9d01",
  "destinationLocationId": "670a1b2c3d4e5f6a7b8c9d77",
  "externalShipmentId": "ML-FULL-884412",
  "items": [
    { "sku": "CAM-ROJO-M", "quantity": 120 },
    { "sku": "CAM-AZUL-M", "quantity": 80 }
  ]
}
201Shipment registered. The origin's stock has already gone down.
{
  "id": "fsh_01J9D",
  "tenantId": "69db07c8bce4d49b18c42a49",
  "originLocationId": "670a1b2c3d4e5f6a7b8c9d01",
  "destinationLocationId": "670a1b2c3d4e5f6a7b8c9d77",
  "externalShipmentId": "ML-FULL-884412",
  "status": "in_transit",
  "items": [
    { "sku": "CAM-ROJO-M", "sent": 120, "received": 0, "difference": 120 },
    { "sku": "CAM-AZUL-M", "sent": 80, "received": 0, "difference": 80 }
  ],
  "createdAt": "2026-10-05T17:00:00.000Z"
}
400A required field is missing, the destination is not a marketplace warehouse, or a quantity exceeds the origin's stock.
{ "code": "bad-request", "message": "El destino no es una sucursal mercado-full ni fba" }

Returns the shipment with what was sent, received and the difference per SKU.

Required permission: inventory:transfer

Parameters

originLocationIdstringrequired

Branch the merchandise leaves from.

destinationLocationIdstringrequired

Marketplace warehouse branch. It must be of type mercado-full or fba.

externalShipmentIdstringrequired

Shipment number assigned by the marketplace. Fenicia uses it to reconcile reception.

itemsarrayrequired

Merchandise sent. At least one element.

items.skustringrequired

SKU sent.

items.quantitynumberrequired

Pieces sent. Integer greater than 0.

List shipments

Lists shipments to Full or FBA with what was sent, received and the difference.

200Shipments that match the filters.
{
  "data": [
    {
      "id": "fsh_01J9D",
      "externalShipmentId": "ML-FULL-884412",
      "destinationLocationId": "670a1b2c3d4e5f6a7b8c9d77",
      "status": "partially_received",
      "items": [
        { "sku": "CAM-ROJO-M", "sent": 120, "received": 118, "difference": 2 }
      ],
      "createdAt": "2026-10-05T17:00:00.000Z"
    }
  ],
  "total": 1,
  "page": 0,
  "limit": 50,
  "totalPages": 1,
  "hasMore": false
}

Returns the shipments in data, with the total and pagination.

Required permission: inventory:read

Parameters

destinationLocationIdstring

Filter by marketplace warehouse.

statusstring

Filter by shipment status. Accepted values: in_transit, partially_received, received.

pagenumber

Page, 0-based. Default: 0.

limitnumber

Results per page. Default: 50.

Get a shipment

Gets a shipment with its per-SKU detail and the derived lots that were born when it was received.

200The shipment.
{
  "id": "fsh_01J9D",
  "externalShipmentId": "ML-FULL-884412",
  "status": "received",
  "items": [
    { "sku": "CAM-ROJO-M", "sent": 120, "received": 120, "difference": 0 }
  ],
  "lotIds": ["lot_01J9E"]
}
404The shipment does not exist in your tenant.
{ "code": "not-found", "message": "Shipment not found" }

Returns the shipment and the identifiers of the derived lots. Each derived lot keeps the originLotId of the source lot and its cost: costs of different lots are not averaged.

Required permission: inventory:read

Parameters

idstringrequired

Shipment identifier.

What happens after reception

MomentIn Mercado Libre FullIn Fenicia
SaleShipment with logistic.type = fulfillmentCOGS by FIFO or FEFO over the warehouse's lots. Without a lot, at unitCost
Customer returnsale_return operationGoes back to its original lot, with no flow
Damaged, lost or expiredlost_refund, damaged_removal, disposed_expiredScrap at the lot's cost
Withdrawal to your warehousewithdrawal_deliveryTransfer back, with its source lot

Examples

curl -X POST https://api.fenicia.io/inventory/fulfillment-shipments \
  -H "Authorization: Bearer fkapi_tu_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "originLocationId": "670a1b2c3d4e5f6a7b8c9d01",
    "destinationLocationId": "670a1b2c3d4e5f6a7b8c9d77",
    "externalShipmentId": "ML-FULL-884412",
    "items": [{ "sku": "CAM-ROJO-M", "quantity": 120 }]
  }'

Next steps