Documentation Mercado Libre
Check out all the necessary information about APIs Mercado Libre.
Documentation
Ship products
Shipment detail
With this resource you will get shipment details like the status shipment and more buyer information about address name (street, numer, zip code, state, country, etc.). Make a request to the GET method to implement it, it is mandatory to use in the header "x-format-new = true":
Request:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -H 'x-format-new: true' -X GET https://api.mercadolibre.com/marketplace/shipments/$SHIPMENT_ID
Example:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -H 'x-format-new: true' -X GET https://api.mercadolibre.com/marketplace/shipments/40531399184
Response:
{
"id": 48103455633,
"order_id": 2000018647786690,
"status": "shipped",
"substatus": "dropped_off",
"declared_value": 15.97,
"currency_id": "USD",
"date_created": "2026-09-25T19:58:53.070-04:00",
"last_updated": "2026-09-27T10:28:01.773-04:00",
"tracking_number": "LP00843650381446",
"tracking_method": "CainiaoExpress",
"fm_carrier": "Cainiao",
"origin": {
"sender_id": 3591012039,
"shipping_address": {
"address_id": 1632211957,
"address_line": "XXXXXXX",
"street_name": "XXXXXXX",
"street_number": "XXXXXXX",
"comment": null,
"zip_code": "XXXXXXX",
"city": {
"id": "Q04tSE5DaGFuZ3NoYQ",
"name": "Changsha"
},
"state": {
"id": "CN-HN",
"name": "Hunan"
},
"country": {
"id": "CN",
"name": "China"
},
"neighborhood": {
"id": "",
"name": ""
},
"municipality": {
"id": "",
"name": ""
},
"agency": {
"agency_id": null,
"carrier_id": null,
"description": null,
"open_hours": null,
"phone": null,
"type": null
},
"types": [
"billing",
"default_selling_address",
"shipping"
],
"latitude": 0,
"longitude": 0,
"geolocation_type": null,
"geolocation_last_updated": null,
"geolocation_source": null,
"delivery_preference": ""
},
"type": "selling_address"
},
"destination": {
"type": "buying_address",
"receiver_id": 2040111714,
"receiver_name": "Sirly verdeza",
"receiver_phone": "XXXXXXX",
"comments": "",
"shipping_address": {
"address_id": 1421875054,
"address_line": "Cr 15 entre cll 6 y 7 única casa sin numenclatura SN",
"street_name": "Cr 15 entre cll 6 y 7 única casa sin numenclatura",
"street_number": "SN",
"comment": "Casa blanca de rejas Referencia: Entre la tienda y la drogueria",
"zip_code": "478001",
"city": {
"id": "TUNPQ0NJRTUzZGNl",
"name": "Ciénaga"
},
"state": {
"id": "CO-MAG",
"name": "Magdalena"
},
"country": {
"id": "CO",
"name": "Colombia"
},
"neighborhood": {
"id": "",
"name": "Centenario"
},
"municipality": {
"id": "",
"name": ""
},
"agency": {
"agency_id": null,
"carrier_id": null,
"description": null,
"open_hours": null,
"phone": null,
"type": null
},
"types": [
"default_buying_address"
],
"latitude": 11.013125,
"longitude": -74.249328,
"geolocation_type": "GEOMETRIC_CENTER",
"geolocation_last_updated": "2026-04-01T01:43:37.695Z",
"geolocation_source": "map-verified",
"delivery_preference": "residential"
},
"receiver_identification": {
"number": "",
"type": ""
}
},
"dimensions": {
"height": 21,
"length": 9,
"weight": 450,
"width": 20
},
"external_reference": "2000015211560927",
"lead_time": {
"option_id": 2291164516,
"shipping_method": {
"id": 508445,
"type": "standard",
"name": "Normal a domicilio",
"deliver_to": "address"
},
"currency_id": "USD",
"cost": 0,
"list_cost": 7.1,
"cost_type": "free",
"service_id": 1210594,
"estimated_delivery_time": {
"type": "known_frame",
"date": "2026-10-13T00:00:00.000-05:00",
"unit": "hour",
"offset": {
"date": "2026-10-29T00:00:00.000-05:00",
"shipping": 288
},
"time_frame": {
"from": "",
"to": ""
},
"pay_before": "2026-09-30T10:59:00.000-05:00",
"shipping": 120,
"handling": 96,
"schedule": null
}
},
"source": {
"site_id": "MCO"
},
"logistic": {
"mode": "me2",
"type": "drop_off",
"direction": "forward"
},
"tags": [],
"sender_id": 0,
"sibling": {
"reason": "",
"sibling_id": 0,
"description": null,
"source": "",
"date_created": "",
"last_updated": ""
}
}
Parameters
shipment_id: Unique shipment identifier.
Most important response fields
mode: Indicates the available shipping methods. Each method has different delivery times and costs. Possible values are:
- me1 (Mercado Envios mode 1): Lets sellers use their own shipping infrastructure, but does not provide tracking integration. Sellers must provide a tracking number for each shipment.
- me2 (Mercado Envios mode 2): Provides a prepaid label and tracking number from a carrier selected by Mercado Libre. Sellers do not need to choose a carrier or manage the tracking number.
logistic_type: Represents the type of shipment operation. When a carrier offers more than one type of service, this attribute indicates whether you need to collect the shipment at a Hub (Fulfillment) or dispatch it at a branch (Drop Off).
-
fm_carrier (string): The name of the carrier that performs the shipment's first-mile leg. This field is included in responses starting with new version and is always present; its value is an empty string when the carrier cannot be resolved.
- Full: The field is empty when the route does not include a
first_milestep. - Drop-off and cross-docking: When the route includes a
first_milestep and has a validservice_id, the API returns the name of the associated carrier. If the required information is unavailable, the field is empty. - Carrier resolution checks the route, logistics service, and carrier, with a total time limit of 2 seconds. If the carrier cannot be resolved within that limit, the endpoint returns its normal response with
"fm_carrier": "".
- Full: The field is empty when the route does not include a
status:
- pending: shipment created
- handling: the payment for this shipment was processed
- ready_to_ship: authorization code from carrier received
- shipped: shipment in transit
- delivered: shipment delivered
- not_delivered: shipment was not delivered
- cancelled: shipment was cancelled
Additional response fields:
- dimensions: Object containing package dimensions (height, length, weight, width).
- external_reference: External reference identifier for the shipment.
- source.site_id: The site where the shipment originated (e.g., MLM, MLB).
- logistic.mode: Shipping mode (me1 or me2).
- logistic.type: Logistic type (fulfillment, drop_off, cross_docking, default).
- logistic.direction: Shipment direction (forward or return).
- tags: Array of tags associated with the shipment (e.g., test_shipment).
- destination.receiver_identification: Object containing receiver's identification number and type.
- destination.shipping_address.delivery_preference: Delivery preference (residential or business).
Shipment cost
Get the shipment costs to be paid by the user. In addition, view the savings for shipping more than one product in the same box (once this feature is enabled) with the "save" parameter, if applicable.
Request:
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' -H 'x-format-new: true' https://api.mercadolibre.com/marketplace/shipments/$SHIPMENT_ID/costs
Response:
{
"gross_amount": 508.14,
"currency_id": "USD",
"receiver": {
"user_id": 12345,
"cost": 0,
"compensation": 0,
"save": 0,
"discounts": [
{
"rate": 1,
"type": "ratio",
"promoted_amount": 254.07
}
],
"cost_details": [],
"compensations": []
},
"senders": [
{
"user_id": 456789,
"cost": 177.85,
"compensations":[
{
"amount":173.27,
"reason":"incorrect_dimensions",
"comment":"Incorrect package dimensions"
}
],
"save": 76.22,
"discounts": [
{
"rate": 0.3,
"type": "mandatory",
"promoted_amount": 76.22
}
],
"compensation": 0
}
]
}
Response fields
gross_amount: total cost of the shipment without any discount.
discounts: represents a list that can be empty if there is no discount, and if not, it can have one or more associated discounts.
senders: is a list adapted to future versions of the Shopping Cart where a single shipment may contain products from different sellers.
cost: final shipping cost that corresponds to each user.
amount: valor de compensación.
reason: razón de compensación.
comment: comentarios adicionales sobre la compensación.
currency_id: local currency value.
Item´s shipping cost
Get the shipping cost of the marketplace items with the request:
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/users/$USER_ID/shipping_options/cost
Example:
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/marketplace/items/MLM1234567890/shipping_options/cost
Response:
{
"shipping_fee": 19.96,
"currency_id": "USD",
"site_id": "MLM",
"billable_weight": {
"value": 1000,
"unit": "g"
},
"free_shipping": false
}
Response fields
shipping_fee: final shipping cost.
billable_weight: weight used to calculate shipping cost.
free_shipping: possible values are true or false depending on whether the item has free shipping.
Shipping methods
Remote Partnered Carrier: Mercado Libre generates the shipping label and exposes the tracking id (shipping status "ready_to_ship"). After that, seller needs to print label and deliver the package to the Carrier.
Remote seller own logistic: seller needs to generate shipping label and set tracking information through Mercado Libre API.
Next you can identify the differents logistic types, also known the actions to do by the seller, and consider the steps ahead. The seller have to download the shipping label when the status shipment is "handling".
- Fulfillment by Mercado Libre (FBM): Mercado Libre takes care of shipping the order, there is no action needed from the seller. The shipping status are automatically transitioned by Mercado Libre. There is no action required from the seller.
How to identifier:
"mode": "me2"
"logistic_type": "fulfillment"
- Remote partnered carrier (i.e: Wish, MailAméricas): the shipping status "ready_to_ship" means the shipping label is generated and able to be downloaded. Then the seller deliver the package to the carrier and finally Mercado Libre update the status (from ready_to_ship to shipped). See more information about Updates on label content for international shipments in Mexico.
How to identifier:
"mode": "me2"
"logistic_type": "drop_off"
"logistic_type": "cross_docking" (only for MLM) - Remote seller own logistic: with the shipping status "handling", seller needs to set tracking information and then the shipment is updated to "shipped" status.
How to identifier:
"mode": "me1"
"logistic_type": "default"
Errors
| HTTP Code | Error | Message |
|---|---|---|
| 403 | forbidden | Invalid caller.id |
| 403 | forbidden | Can not identify the user |
| 404 | not_found_shipping_id | Not found shipping with id: $SHIPMENT_ID |
| 500 | internal_server_error | Oops! Something went wrong... |
| 401 | not_found | invalid_token |
| 400 | bad_request | {"message":"Malformed access_token: TOKEN_NOT_VALID","error":"bad_request","status":400,"cause":[]} |
| 400 | bad_request | Param not valid |
Print shipping label
A label is a file to use when delivering the product. It was already paid by the buyer when the purchase flow ended. Once the buyer paid for the order, the seller must print the label. In order to obtain a label, the status of the shipments must be ready_to_ship. That means the payment was processed and the label is available to the seller. The resource to obtain a tag receives a shipping ID and an access token and returns the tag in PDF format.
Request:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/shipments/$SHIPMENT_ID/labels
Example:
Errors
| HTTP Code | Error | Message |
|---|---|---|
| 403 | forbidden | Invalid caller.id |
| 403 | forbidden | Can not identify the user |
| 404 | not_found | Resource not found |
| 404 | Error_Shipment | Mandatory information is missing: IMEI |
| 400 | SHPLAB0218 | INVALID_SHIPMENT_FF_PUBLIC - Labels cannot be generated for Fulfillment shipments through public API |
| 500 | internal_server_error | Oops! Something went wrong... |
| 401 | not_found | invalid_token |
| 400 | bad_request | {"message":"Malformed access_token: TOKEN_NOT_VALID","error":"bad_request","status":400,"cause":[]} |
| 400 | bad_request | Invalid shipment id |
| 401 | not_found | invalid_token |
| 401 | unauthorized_scopes | Unauthorized shipments: 28140669939: Shipment status is 'delivered' |
Inform the tracking
This endpoint allows you to report the tracking of a shipment, which must be entered by parameter. It is important that sellers provide the tracking number so that buyers can know the status of packages and the estimated delivery time. At this stage, we include the tracking number and the order status is updated for dispatch.
Request:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X POST https://api.mercadolibre.com/marketplace/shipments/$SHIPMENT_ID/tracking
-d '{
"tracking_id": "String",
"tracking_url": "http://carrier.com",
"carrier": "name carrier"
}'
Example:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X POST https://api.mercadolibre.com/marketplace/shipments/28262122315/tracking
-d '{
"tracking_id": "String",
"tracking_url": "http://carrier.com",
"carrier": "name carrier"
}'
Response:
{
"status": "success"
}
Parameters
id: is the number of the shipment to modify.
access_token:It is the token that must be generated with the provided credentials and the application generated by the seller or the integrator.
Fields
tracking_id: tracking number provided by the carrier.
tracking_url: carrier tracking website.
carrier: carrier name.
Errors
| HTTP Code | Error | Message |
|---|---|---|
| 406 | not_acceptable | Shipment configuration is not valid - This error occurs when the shipment is not configured for custom tracking (me1/default). Tracking can only be informed for shipments with mode "me1" and logistic_type "default". |
| 400 | bad_request | error when trying to parse request body |
| 404 | not_found_shipping_id | Not found shipping with id: $SHIPMENT_ID |
Inform Status
Report status of a shipment on route, when you inform the tracking number.
Request:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X POST https://api.mercadolibre.com/marketplace/shipments/$SHIPMENT_ID/tracking/status
-d '{
"tracking_id": "String",
"status": "String"
}'
Inform Delivered
Report shipment has been delivered to the buyer. A product has been delivered to the buyer, so you must make a change in the status of the shipment to "delivered". This status is final and irreversible.
Example DELIVERED:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X POST https://api.mercadolibre.com/marketplace/shipments/28262122315/tracking/status
-d '{
"tracking_id": "TKR123",
"status": "delivered"
}'
Response:
{
"status": "success"
}
Inform Not Delivered
Report shipment has been NOT delivered to the buyer. The status "not_delivered" is a final and irreversible state. It should only be used when there are no more delivery attempts. To mark the purchase as not delivered, you must report the status as "not_delivered"
Example NOT_DELIVERED:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X POST https://api.mercadolibre.com/marketplace/shipments/28262122315/tracking/status
-d '{
"tracking_id": "TKR123",
"status": "not_delivered"
}'
Response:
{
"status": "success"
}
Errors
| HTTP Code | Error | Message |
|---|---|---|
| 406 | not_acceptable | Shipment configuration is not valid - This error occurs when the shipment is not configured for custom tracking (me1/default). |
| 403 | forbidden | Invalid caller.id |
| 403 | forbidden | Can not identify the user |
| 404 | not_found_shipping_id | Not found shipping with id |
| 500 | internal_server_error | Oops! Something went wrong... |
| 401 | not_found | invalid_token |
| 400 | bad_request | {"message":"Malformed access_token: TOKEN_NOT_VALID","error":"bad_request","status":400,"cause":[]} |
| 400 | bad_request | Param not valid |
Get shipment items
The /marketplace/shipments/$SHIPMENT_ID/items resourse returns the items associated to a shipment. If the ítem has variations, like clothing size or colour, you can see which ones correspond to the order within the shipment. As we enable shipments with more than one item, the list will have each of them.
Request:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/shipments/$SHIPMENT_ID/items
Example:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/shipments/12234123/items
Response:
[
{
"item_id": "MLB14385311",
"variation_id": null,
"description": "Test item",
"quantity": 1,
"manufacturing_time": null,
"dimensions": {
"height": 10,
"width": 10,
"length": 10,
"weight": 318
},
"sender_id": 123123123
}
]
GET Maximum dispatch period (SLA)
Returns the maximum dispatch deadline (SLA) for a CBT shipment. Allows the seller to verify whether they are on time or at risk of a late dispatch.
Query parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
id (path) |
Shipment ID — positive numeric string, non-zero. | string | Yes |
Call
curl -X GET \
-H 'Authorization: Bearer $ACCESS_TOKEN' \
https://api.mercadolibre.com/marketplace/shipments/{SHIPMENT_ID}/sla
Example
curl --location --request GET \
https://api.mercadolibre.com/marketplace/shipments/12345678/sla \
--header 'Authorization: Bearer $ACCESS_TOKEN'
Response
{
"status": "on_time",
"expected_date": "2024-05-22T23:59:59-03:00",
"last_updated": "2024-05-21T17:16:04Z"
}
Response fields
| Field | Description | Type | Required |
|---|---|---|---|
status |
Current SLA status of the shipment. Possible values: on_time, delayed, early, insuficient_info. |
string | Yes |
expected_date |
Maximum date and time by which the seller must dispatch the shipment. Format: ISO 8601. | string | Yes |
service |
Shipment service type. Values sourced from the SLA API. | string | No |
last_updated |
Timestamp of the last SLA recalculation. Format: ISO 8601. | string | Yes |
Errors
| HTTP Code | Message | Solution |
|---|---|---|
| 400 | Invalid Parameter / Invalid or empty id | Provide a valid positive numeric shipment ID (non-zero, no letters, not empty). |
| 404 | not found | Verify that the shipment ID is correct and that the shipment has not been cancelled. |
| 500 | internal error | Upstream or internal error — retry the request. If the issue persists, contact support. |
Get lead time
The /marketplace/shipments/$SHIPMENT_ID/lead_time returns information related to the delivery times of a shipment and type of service, adding the dispatch and delivery deadlines. Although the shipment base resource already provides information to make these estimates, here you can view it in more detail, which will help to provide a better user experience.
Request:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/shipments/$SHIPMENT_ID/lead_time
Example:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/shipments/12234123/lead_time
Response:
{
"option_id": 7214410001,
"shipping_method": {
"id": 501645,
"name": "Envío internacional",
"type": "standard",
"deliver_to": "address"
},
"currency_id": "USD",
"cost": 4.03,
"list_cost": 4.03,
"cost_type": "free",
"service_id": 731,
"delivery_type": "estimated",
"estimated_schedule_limit": {
"date": null
},
"buffering": {
"date": null
},
"estimated_delivery_time": {
"type": "known_frame",
"date": "2020-11-06T00:00:00.000-05:00",
"unit": "hour",
"offset": {
"date": "2020-11-23T00:00:00.000-05:00",
"shipping": 240
},
"time_frame": {
"from": null,
"to": null
},
"pay_before": "2020-09-29T00:00:00.000-05:00",
"shipping": 624,
"handling": 48,
"schedule": null
},
"estimated_delivery_limit": {
"date": "2020-12-09T00:00:00.000-05:00",
},
"estimated_delivery_final": {
"date": "2021-03-19T00:00:00.000-05:00",
},
"estimated_delivery_extended": {
"date": "2020-11-30T00:00:00.000-05:00",
},
"delay": [
"handling_delayed"
]
}
The cost_type field can be "free", "charged" or "partially_free".
Response fields (estimated times)
estimated_delivery_extended: second delivery promise, in case the original is not fulfilled.
estimated_delivery_limit: deadline for the buyer to cancel the purchase and request a refund, as long as the shipment has not yet arrived.
estimated_delivery_final: final date as the deadline for the shipment to arrive and the final status that can be delivered is determined or, in case of a claim, not_delivered.
Get status history
The /marketplace/shipments/$SHIPMENT_ID/history resource return the status and substatus history associated to shipment cycle.
Request:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/shipments/$SHIPMENT_ID/history
Example:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/shipments/12234123/history
Response:
[
{
"status": "ready_to_ship",
"substatus": "printed",
"date": "2016-12-30T12:32:35.000Z"
},
{
"status": "handling",
"substatus": "waiting_for_label_generation",
"date": "2016-12-30T12:32:35.000Z"
}
]
Get carrier information
The /marketplace/shipments/$SHIPMENT_ID/carrier return the carrier information like name carrier and the URL.
Request:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/shipments/$SHIPMENT_ID/carrier
Example:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/shipments/12234123/carrier
Response:
{
"url": "tracking URL",
"name": "Carrier Name"
}
Create additional shipping packages (Shipment Split)
If you have a problem when grouping different products in the same package (either because they are in different warehouses, or are fragile, or do not fit in the same box, etc.) you can use the feature that allows you to generate additional packages in order to ship all products.
Considerations
Possible values in the "reason" field
FRAGILE: fragile products.
ANOTHER_WAREHOUSE: another warehouses.
IRREGULAR_SHAPE: irregular shape.
OTHER_MOTIVE: other motive.
DIMENSIONS_EXCEEDED: dimensions exceeded.
Request:
curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' -H 'x-format-new: true' https://api.mercadolibre.com/marketplace/shipments/$SHIPMENT_ID/split{
"reason": "IRREGULAR_SHAPE",
"packs": [
{
"orders": [
{
"id": "2000000000000002",
"quantity": 1
}
]
},
{
"orders": [
{
"id": "2000000000000002",
"quantity": 1
}
]
}
]
}
Response
The successful response will be just a "200 - OK" with an empty return.
{}
How to Identify Split Orders
After the split was requested and generated (with a successful "200 - OK" response), you may want to check split order details.
1. Getting a notification of a new split order
Once split is generated, a notification is received (how to configure notifications) including order_id. Please make sure you have checked "Marketplace orders" box in Topics, since is needed to receive the notification.
2. Consulting order details
In order to obtain the complete order details (including pack_id), make an API call using GET and order_id received in the notification.
Call:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/orders/$ORDER_ID
Request example:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/orders/2000012494387040
Response example:
{
"id": 2000012494387040,
"pack_id": 2000008691345363,
"order_items": [...],
"shipping": { "id": 45263494304 },
...
}
3. Consulting pack details
Once you have the pack_id, use the API to search for pack details.
Call:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/orders/pack/$PACK_ID
Request example:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/orders/pack/2000008691345363
Response Example (Child Pack - Result of Split):
{
"id": 2000008691345363,
"status": "to_be_shipped",
"status_detail": null,
"family_pack_id": 2000008674781009,
"orders": [...],
...
}
4. Check if the Pack Was Split
If you query the original (parent) pack and check its split status, you will receive following result:
Call:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/orders/pack/$FAMILY_PACK_ID
Request Example:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/marketplace/orders/pack/2000008674781009
Response Example (Original/Parent Pack, Split):
{
"id": 2000008674781009,
"status": "cancelled",
"status_detail": "splitted",
"family_pack_id": null,
"orders": [...],
...
}
- "status_detail": "splitted" → Indicates this pack was divided into other child packs.
- "family_pack_id": null → This is the original pack (it is not the child of any other pack).
5. How to Identify the Entire Relationship Between Packs in the Split
- If you start from a split (child) pack, the family_pack_id field points to the parent (original) pack.
- If you start from the original split pack, you'll see its status is "splitted". The new (child) packs must be found by looking for other orders where the family_pack_id matches the parent pack's id.
6. How to Know if the Split Was Executed (Control by shipment_id)
After requesting the split using the shipment_id, check the related original pack.
If the response of the original pack contains:
- "status_detail": "splitted"
- And the field "shipment.id" matches the initial shipment_id
Then, the split was successfully performed for that shipment.
Verification Example:
{
"id": 2000008674781009,
"status": "cancelled",
"status_detail": "splitted",
"shipment": { "id": 45255234865 }
...
}
If the shipment.id matches the original shipment and the status is splitted, the split was done.
Errors
When managing a split, you may encounter the following errors. It is crucial that you understand the cause of each and know how to correct them, in order to efficiently handle the situation. Here is the information you need to identify and resolve these issues.
Body is invalid:
{
"message": "Invalid body",
"error": "bad_request",
"status": 400,
"cause": []
}
The shipment does not belong to the seller that requests the split:
{
"message": "The shipment 4397100000 does not belong to merchant: 1350000000",
"error": "forbidden",
"status": 403,
"cause": []
}
Total items quantity does not match with original shipment:
{
"message": "Order quantity mismatch. The total items quantity in the new packs should match the original shipment total quantity.",
"error": "SPLIT_ERROR_400",
"status": 400,
"cause": null
}
Body has invalid reason data:
{
"message": "Invalid body",
"error": "bad_request",
"status": 400,
"cause": [
"/reason: value must be one of \"FRAGILE\", \"ANOTHER_WAREHOUSE\", \"IRREGULAR_SHAPE\", \"DIMENSIONS_EXCEEDED\", \"OTHER_MOTIVE\""
]
}
Invalid shipment id:
{
"message": "Invalid shipment id",
"error": "bad_request",
"status": 400,
"cause": [
"shipment not found"
]
}
Shipment already shipped:
{
"message": "Shipment can't be splitted at this point. Invalid status.",
"error": "SPLIT_ERROR_422",
"status": 422,
"cause": null
}
Package into more than two new packages:
{
"message": "Invalid body",
"error": "bad_request",
"status": 400,
"cause": [
"/packs: you must specify exactly 2 packs"
]
}
Shipment cannot be split:
{
"message": "The shipment $SHIPMENT_ID cannot be split",
"error": "bad_request",
"status": 400,
"cause": []
}
Working Days Management
The Working Days API allows CBT sellers to manage which holiday dates they will or will not work. This helps optimize shipping scheduling by indicating seller availability during holiday periods.
Key concepts
- Sellers can only modify the
checkedstatus (work / don't work) for each holiday date. - Dates with
closed = true,finalized = true, ormandatory = truecannot be modified. - The
dateanddescriptionfields are read-only and provided by the system. - Changes must be made at least 4 days before the holiday date.
Get Working Days
Returns all holiday dates configured for the seller, along with their current work status.
Request:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' \
-H 'Accept: application/json' \
-X GET 'https://api.mercadolibre.com/marketplace/sellers/$SELLER_ID/working_days'
Response (200 OK):
{
"dates": [
{
"closed": false,
"finalized": true,
"enabled": true,
"checked": true,
"description": "Rosh Hashanah",
"date": "2025-09-23"
},
{
"closed": false,
"finalized": true,
"enabled": true,
"checked": false,
"description": "Yom Kippur",
"date": "2025-10-01"
},
{
"closed": false,
"finalized": false,
"enabled": false,
"checked": true,
"mandatory": true,
"description": "National Holiday",
"date": "2025-10-15"
}
]
}
Field Descriptions
| Field | Type | Description |
|---|---|---|
date |
String | Holiday date in YYYY-MM-DD format. Read-only. |
description |
String | Name of the holiday. Read-only. |
checked |
Boolean | Whether the seller will work on this date. This is the only field modifiable by the seller. |
closed |
Boolean | If true, this date is closed and cannot be modified. |
finalized |
Boolean | If true, the date has passed and is no longer modifiable. |
enabled |
Boolean | Whether this date is currently active in the system. |
mandatory |
Boolean | Indicates a platform-level mandatory date. When true, the date cannot be modified by the seller regardless of the checked value. |
Update Working Days
Updates the work status for one or more holiday dates. Only the checked field can be set per entry.
Request:
curl -X PUT \
-H 'Authorization: Bearer $ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
'https://api.mercadolibre.com/marketplace/sellers/{$SELLER_ID}/working_days' \
-d '{
"dates": [
{
"date": "2025-09-23",
"description": "Rosh Hashanah",
"checked": true
},
{
"date": "2025-10-01",
"description": "Yom Kippur",
"checked": false
}
]
}'
Response (200 OK):
{
"message": "all working days were saved"
}
Errores
| HTTP Code | Error | Message |
|---|---|---|
| 400 | bad_request |
seller_id must be a valid integer |
| 400 | bad_request |
site_id cannot be empty |
| 400 | bad_request |
at least one date must be provided |
| 400 | bad_request |
date at index X cannot be empty |
| 400 | bad_request |
description at index X cannot be empty |
| 400 | unauthorized |
fail to check user identity |
| 403 | forbidden |
access denied: seller does not belong to authenticated merchant |
Next: Compensations.