Documentation Mercado Libre

Check out all the necessary information about APIs Mercado Libre.
circulos azuis em degrade

Documentation

Last update 25/06/2026

Export evidence

This API allows Meli Sellers and authorized ERP integrators to retrieve 9610 export evidence and customs clearance records for their fulfilled shipments. This data is essential for claiming VAT exemptions and export tax compliance.
The STA (State Taxation Administration) Announcements/Regulations 15 and 17 have significantly increased visibility and inspection capability over cross-border operations carried out by Chinese sellers via e-commerce platforms (such as Mercado Livre).

  • Announcement 15: obligates the platform to report quarterly to the STA: seller data (legal entity) and GMV per seller.
  • Announcement 17: reinforces the need for the export declaration to identify the actual exporter/seller, and not just the agent/logistics provider.

In practice, many sellers operate under the 9610 model (simplified export), which allows for a 13% VAT exemption, but requires consistent proof of export across:

  1. Platform data (sale/GMV)
  2. Customs data (declaration/export)
  3. STA data/systems

Today, a large part of 9610 exports:

  • lacks complete consolidation/reporting
  • or loses the seller's identification, replaced by agent in the declaration, which prevents the seller from sustaining the exemption and may lead the STA to treat the sales as domestic, applying 13% VAT.

GET — List Export Declarations by Merchant

This endpoint returns a paginated list of completed export declarations associated with the authenticated merchant, filtered by export_date range.

The caller's identity is resolved via access_token.id, which is used both for authentication and to scope the query — merchants can only retrieve their own declarations. Only declarations with status = completed are returned; records still in pending state are excluded.

Nota:
Export proof data becomes available through this endpoint only after the designated logistics carrier successfully clears the shipment through Chinese customs and transmits the status back to Mercado Libre.

Request

  curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/marketplace
 /shipments/export-declarations

Headers

Header Description Required
client.id Merchant service identifier, used for authentication and to scope the query Yes

Parameters

Parameter Type Description Validation Required
from String (ISO 8601 date) Start of the export_date range, inclusive Valid date; must be ≤ to; range with to must not exceed 18 months Yes
to String (ISO 8601 date) End of the export_date range, inclusive Valid date; must be ≥ from; range with from must not exceed 18 months Yes
limit Integer Maximum number of records per page Min: 1; default: 50; max: 200; offset + limit must not exceed 10,000 No
offset Integer Number of records to skip Default: 0; offset + limit must not exceed 10,000 No

Response 200 ok:

{
  "merchant_id": 123,
  "filters": {
    "from": "2025-10-01",
    "to": "2025-12-31"
  },
  "paging": {
    "limit": 1,
    "offset": 0,
    "total": 1350
  },
  "export_declarations": [
    {
      "shipment_id": 46595386111,
      "merchant_id": 123,
      "seller_name": "Shenzhen Tech Co. Ltd.",
      "seller_tax_id": "91440300MA5DXXXX9Q",
      "service_id": 456,
      "status": "completed",
      "tracking_number": "40XXXX",
      "seller_customs_registration_number": 12345,
      "last_mile_tracking_number": "CNMEX1029354362",
      "linehaul_bill_number": "A1B2C3",
      "summary_declaration_number": 12345,
      "customs_list_number": "51412025E1030357787",
      "export_date": "2025-10-15",
      "customs_clearance_time": "2025-10-16T08:00:00Z",
      "customs_clearance_receipt": "CLR20251016001",
      "customs_code_of_declaration": "5216",
      "ecommerce_platform_code": "MELI",
      "ecommerce_platform_name": "Mercado Livre",
      "trade_mode": "9610",
      "destination_country_region_code": "076",
      "items": [
        {
          "item_id": "MLA1619567070",
          "order_id": "8372910456",
          "hs_code": "6109100010",
          "declared_quantity": 1,
          "unit_price": 10.5
        }
      ],
      "total_price": 21.0,
      "currency": "142",
      "created_at": "2025-10-14T09:00:00Z",
      "updated_at": "2025-10-16T08:30:00Z"
    }
  ]
}

Response fields

Field Description Type Required
merchant_id Unique identifier of the merchant. integer Yes
seller_name Name of the seller. PII field — not logged. string No
seller_tax_id Tax identification number of the seller. PII field — not logged. string No
filters Object containing the filter parameters applied to the request. object Yes
filters.from Start date of the filter range. Format: YYYY-MM-DD. string Yes
filters.to End date of the filter range. Format: YYYY-MM-DD. string Yes
paging Object containing pagination metadata. object Yes
paging.limit Maximum number of records returned per page. integer Yes
paging.offset Number of records skipped. integer Yes
paging.total Total number of records matching the applied filters. integer Yes
export_declarations List of export declarations matching the applied filters. array Yes
export_declarations[].shipment_id Unique identifier of the shipment. integer Yes
export_declarations[].seller_id Unique identifier of the seller. integer Yes
export_declarations[].merchant_id Unique identifier of the merchant. integer Yes
export_declarations[].seller_customs_registration_number Seller's customs registration number. integer No
export_declarations[].service_id Unique identifier of the carrier service. integer Yes
export_declarations[].status Current status of the export declaration. Possible values: pending, completed. string Yes
export_declarations[].tracking_number Tracking number of the shipment. string Yes
export_declarations[].last_mile_tracking_number Last-mile tracking number of the shipment. string Yes
export_declarations[].linehaul_bill_number Linehaul bill number. string Yes
export_declarations[].summary_declaration_number Summary declaration number. integer No
export_declarations[].customs_list_number Customs list number. string Yes
export_declarations[].export_date Date the shipment was exported. Format: YYYY-MM-DD (UTC). string Yes
export_declarations[].customs_clearance_time Timestamp of customs clearance. Format: RFC 3339 (UTC). string Yes
export_declarations[].customs_clearance_receipt Customs clearance receipt. string Yes
export_declarations[].customs_code_of_declaration Customs declaration code. Must be exactly 4 digits. string Yes
export_declarations[].ecommerce_platform_code Code of the e-commerce platform. string Yes
export_declarations[].ecommerce_platform_name Name of the e-commerce platform. string Yes
export_declarations[].consignor_consignee_code Consignor/consignee code. string Yes
export_declarations[].consignor_consignee_name Consignor/consignee name. string Yes
export_declarations[].logistics_enterprise_code Logistics enterprise code. string Yes
export_declarations[].logistics_enterprise_name Logistics enterprise name. string Yes
export_declarations[].declaring_enterprise_code Declaring enterprise code. string Yes
export_declarations[].declaring_enterprise_name Declaring enterprise name. string Yes
export_declarations[].sales_produce_entity_code Sales/produce entity code. string Yes
export_declarations[].sales_produce_entity_name Sales/produce entity name. string Yes
export_declarations[].export_port_code Export port code. Must be exactly 4 digits. string Yes
export_declarations[].import_export_indicator Import/export indicator. string Yes
export_declarations[].declaration_business_type Business type of the declaration. string Yes
export_declarations[].trade_mode Trade mode code. Must be exactly 4 digits. string Yes
export_declarations[].destination_country_region_code Destination country or region code. Must be exactly 3 digits. string Yes
export_declarations[].items List of items included in this export declaration. array Yes
export_declarations[].items[].item_id Unique identifier of the item. string Yes
export_declarations[].items[].order_id Identifier of the order associated with this item. string Yes
export_declarations[].items[].hs_code HS (Harmonized System) code of the item. string Yes
export_declarations[].items[].commodity_name Declared name of the commodity. string Yes
export_declarations[].items[].declared_quantity Declared quantity of units. number Yes
export_declarations[].items[].declared_unit_of_measurement Unit of measurement for the declared quantity. Must be exactly 3 digits. string Yes
export_declarations[].items[].unit_price Declared price per unit. number Yes
export_declarations[].total_price Total declared value of all items in the shipment. number Yes
export_declarations[].currency Currency code. Must be exactly 3 characters. string Yes
export_declarations[].remarks Additional remarks about the declaration. string No
export_declarations[].created_at Timestamp when the export declaration was created. Format: RFC 3339 (UTC). string Yes
export_declarations[].updated_at Timestamp when the export declaration was last updated. Format: RFC 3339 (UTC). string Yes

HTTP Status Code

Status Description
200 OK Paginated list of completed export declarations
400 Bad Request from or to is absent, invalid, or from > to
401 Unauthorized client.id is missing or not recognized
429 Too Many Requests NoSQL rate limit exceeded
500 Internal Server Error Unexpected error querying NoSQL
503 Service Unavailable NoSQL temporarily unavailable
504 Gateway Timeout NoSQL query timed out

Standard Error Payload:

{
  "message": "invalid_request_fields",
  "details": [
    { "field": "from", "reason": "must_be_lte_to" }
  ]
}