View Categories

M2E Cloud Sales Channels API

OpenAPI: 3.1.0

Version: 4.3

La API de canales de venta en la nube de M2E Cloud le ayuda a gestionar productos y pedidos de los marketplaces a través de la integración mediante API. Podrá crear y actualizar productos, consultar pedidos, actualizar la información de seguimiento de envíos y gestionar las operaciones en los marketplaces compatibles, entre los que se incluyen eBay, Amazon, Walmart, TikTok Shop, Temu, Kaufland, SHEIN, OnBuy, OTTO y los marketplaces que utilizan la tecnología de Mirakl.


Vinculaciones #


Servers #

Environment URL
production https://m2e.cloud/api/v1/api

Authentication #

JWT #

JWT token for authentication, passed as access-token in header.

  • Type: apiKey
  • In: header
  • Header/Param name: access-token

Default security requirements #

  • JWT

API Rate Limits #

La API de canales de ventas en la M2E Cloud utiliza un sistema de limitación de frecuencia basado en tokens para garantizar un rendimiento estable.

How Rate Limits Work #

La API utiliza un sistema de token bucket. Cada solicitud consume un número determinado de tokens.

  • Capacidad máxima: 60 tokens.
  • Velocidad de recarga: 30 tokens por minuto.
  • Solicitudes estándar de la API: 1 token por solicitud.
  • Operaciones masivas con productos: 5 tokens por solicitud para POST /catalog/product/ y PATCH /catalog/product/.

Las fichas se reponen automáticamente con el paso del tiempo, hasta alcanzar la capacidad máxima de 60.

¿Qué ocurre cuando se alcanza el límite? #

Si no hay suficientes tokens disponibles para procesar una solicitud, la API devuelve:

429 Too Many Requests

Para evitar alcanzar el límite:

  • Controle los tokens que le quedan mediante los encabezados de respuesta de la API.
  • Distribuya las solicitudes a lo largo del tiempo cuando procese grandes cantidades de datos.
  • Espere a que haya tokens disponibles antes de volver a intentar una solicitud.

Rate Limit Response Headers #

Header Description
X-RateLimit-Limit Maximum number of tokens available.
X-RateLimit-Remaining Number of tokens remaining.
X-RateLimit-Retry-After Date and time associated with the rate limit reset.

Endpoints #


Catalog #

DELETE /catalog/product/ #

Summary: Deletes products in catalog

OperationId: CatalogProductDelete

Permite la eliminación masiva de productos del catálogo.


Request body

Una lista de productos que deben eliminarse.


Responses

GET /catalog/product/ #

Summary: Retrieve a catalog product by SKU

OperationId: CatalogProductGet

Recupera los detalles de un producto del catálogo.


Parameters

Name In Type Required Description
sku query string Yes The Stock Keeping Unit (SKU) of the product.

Responses

PATCH /catalog/product/ #

Summary: Update products in catalog

OperationId: catalogProductsUpdate

Permite realizar actualizaciones en bloque de los productos del catálogo, incluida la información sobre la moneda, las imágenes y los atributos.


Request body

Una lista de productos que hay que actualizar.


Responses

POST /catalog/product/ #

Summary: Creates products in catalog

OperationId: CatalogProductCreate

Permite crear productos de forma masiva en el catálogo.


Request body

Una lista de productos que hay que crear.


Responses

POST /catalog/product/find/ #

Summary: Retrieve products by criteria

OperationId: CatalogProductsFind

Busca productos según los criterios especificados.


Request body

Criterios para filtrar y ordenar productos.


Responses

PATCH /catalog/product/variant/ #

Summary: Update variants in catalog

OperationId: catalogProductsVariantsUpdate

Permite actualizar por lotes las variantes del catálogo.


Request body

Una lista de variantes que deben actualizarse.


Responses


Orders #

POST /order/find/ #

Summary: Retrieve orders by criteria

OperationId: OrdersFind

Busca pedidos según criterios específicos, como el canal, el token de la cuenta y diversos filtros, tales como la fecha de venta, el estado y los datos del comprador.


Parameters

Name In Type Required Description
channel query string Yes The name of the sales channel (e.g., eBay, Amazon).
account_token query string Yes A unique token identifying the account on the specified sales channel.

Request body

Criterios para filtrar y ordenar los pedidos.


Responses

POST /order/invoice/ #

Summary: Upload invoice for an order

OperationId: UploadOrderInvoice

Procesa y carga los datos de la factura correspondientes a un pedido concreto mediante un archivo PDF codificado en Base64.


Request body


Responses

PUT /order/shipment/ #

Summary: Update shipment for an order

OperationId: UpdateOrderShipment

Actualiza la información de seguimiento del envío de un pedido concreto, incluyendo la empresa de envío y el número de seguimiento.


Request body

Información sobre el seguimiento del envío de un pedido.


Responses


User #

GET /user/accounts/ #

Summary: Retrieve accounts associated with a user

OperationId: UserAccountsList

Recupera una lista de cuentas vinculadas al usuario especificado, identificadas mediante un token único.


Responses

Components #


Schemas #

Account #

Representa un objeto de cuenta vinculado a un usuario, que contiene información sobre el canal, la validez de las credenciales y otros datos identificativos.

  • Type: object
  • Required: token, channel, title, identifier, is_valid, create_date

Properties

Name Type Required Description
token string format:uuid Yes Unique token identifying the account.
channel string (enum) Yes Sales channel associated with this account (e.g., 'ebay', 'amazon').
title string Yes User-defined title for the account, often used for easy identification.
identifier string Yes Unique identifier associated with the account on the specified sales channel.
is_valid boolean Yes Indicates whether the account's credentials are valid and active.
create_date string format:date-time Yes The date and time when the account was created.

CatalogProduct #

  • Type: object
  • Required: token, external_id, sku, quantity, is_simple, status, title, images, attributes, update_date, variants

Properties

Name Type Required Description
token string format:uuid Yes A unique token that identifies the product.
external_id null \| string Yes An external identifier for the product, typically used for mapping with external systems.
sku null \| string Yes Stock Keeping Unit (SKU).
quantity integer Yes The available stock quantity for the product.
is_simple boolean Yes Indicates whether the product is a simple product (true) or has variants (false).
status string (enum) Yes The current status of the product.
title string Yes The name or title of the product.
description string No A detailed description of the product.
short_description string No A short description of the product.
images array of string Yes A list of image URLs representing the product.
attributes CatalogProductAttributes Yes
update_date string format:date-time Yes The date and time when the product was last updated, in ISO 8601 format.
variants array of CatalogProductVariant Yes A list of product variants.

CatalogProductAttributes #

Una lista de pares clave-valor que representan atributos.

  • Type: array
  • Items: object

CatalogProductCreate #

  • Type: object
  • Required: sku, status, is_simple, currency, title, variants

Properties

Name Type Required Description
sku string Yes Stock Keeping Unit (SKU).
status integer (enum) Yes Product statuses (e.g., 1 = Active, 2 = Inactive, 3 = Disabled, 4 = Preorder, 5 = Available, 7 = Draft, 8 = Pending, 9 = Private, 10 = Publish, 11 = Archived).
is_simple boolean Yes Indicates whether the product is a simple product (true) or has variants (false).
currency string Yes The currency code for the product's pricing, in ISO 4217 format (e.g., USD, EUR).
title string Yes The title or name of the product.
description string No A detailed description of the product.
short_description string No A short description of the product.
images array of string No A list of image URLs representing the product.
attributes CatalogProductAttributes No
variants array of object Yes A list of product variants.

CatalogProductDelete #

  • Type: object
  • Required: sku

Properties

Name Type Required Description
sku string Yes Stock Keeping Unit (SKU).

CatalogProductOptions #

Una lista de opciones que especifican los atributos de la variante (por ejemplo, talla, color).

  • Type: array
  • Items: object

CatalogProductsCreateRequest #

Una serie de productos que se van a incluir en el catálogo.

CatalogProductsCreateResponse #

  • Type: object
  • Required: created

Properties

Name Type Required Description
created integer Yes The count of products successfully created.

CatalogProductsDeleteRequest #

Una serie de productos que se van a eliminar del catálogo.

CatalogProductsDeleteResponse #

  • Type: object
  • Required: deleted

Properties

Name Type Required Description
deleted integer Yes The count of products successfully deleted.

CatalogProductsFindRequest #

  • Type: object

Properties

Name Type Required Description
sort object No Sorting options for the search results.
filters object No Filtering options.
_result object No

CatalogProductsFindResponse #

  • Type: object
  • Required: list, total

Properties

Name Type Required Description
list array of CatalogProduct Yes A list of products matching the query.
total integer Yes The total number of products matching the query.

CatalogProductsUpdate #

  • Type: object
  • Required: sku

Properties

Name Type Required Description
sku string Yes Stock Keeping Unit (SKU).
currency string No The currency code for the product's pricing, in ISO 4217 format (e.g., USD, EUR).
title string No The title or name of the product.
description string No A detailed description of the product.
short_description string No A short description of the product.
images array of string No A list of image URLs representing the product.
attributes CatalogProductAttributes No

CatalogProductsUpdateRequest #

  • Type: object
  • Required: products

Properties

Name Type Required Description
products array of CatalogProductsUpdate Yes An array of products to be updated in the catalog.

CatalogProductsUpdateResponse #

  • Type: object
  • Required: updated

Properties

Name Type Required Description
updated integer Yes The count of products successfully updated.

CatalogProductsVariantsUpdate #

  • Type: object
  • Required: sku

Properties

Name Type Required Description
sku string Yes Stock Keeping Unit (SKU).
barcode string No The unique barcode for the variant, such as UPC or EAN.
price number No The price of the product in the specified currency.
quantity integer No The available stock quantity of the product.
images array of string No List of image URLs associated with the product variant.
options CatalogProductOptions No
attributes CatalogProductAttributes No

CatalogProductsVariantsUpdateRequest #

  • Type: object
  • Required: variants

Properties

Name Type Required Description
variants array of CatalogProductsVariantsUpdate Yes An array of variants to be updated in the catalog.

CatalogProductsVariantsUpdateResponse #

  • Type: object
  • Required: updated

Properties

Name Type Required Description
updated integer Yes The count of variants successfully updated.

CatalogProductVariant #

  • Type: object
  • Required: token, sku, barcode, price, quantity, images, options, attributes, weight, weight_unit, height, depth, width, dimension_unit, update_date

Properties

Name Type Required Description
token string format:uuid Yes A unique token identifying the product variant.
sku null | string Yes Stock Keeping Unit (SKU).
barcode null | string Yes The unique barcode for the variant, such as UPC or EAN.
price number Yes The price of the variant in the specified currency.
quantity integer Yes The available stock quantity for the variant.
images array of string Yes A list of image URLs representing the product variant.
options CatalogProductOptions Yes
attributes CatalogProductAttributes Yes
weight null | number Yes The weight of the product variant.
weight_unit null | string (enum) Yes The unit of measurement for the weight.
height null | number Yes The height of the product variant.
depth null | number Yes The depth of the product variant.
width null | number Yes The width of the product variant.
dimension_unit null | string (enum) Yes The unit of measurement for dimensions (height, width, depth).
update_date string format:date-time Yes The date and time when the variant was last updated, in ISO 8601 format.

Error #

Respuesta de error que se devuelve cuando la solicitud no se ha realizado correctamente.

  • Type: object
  • Required: message, code, data

Properties

Name Type Required Description
code string Yes An error code that identifies the type of error that occurred.
message string Yes A message that describes the error condition in a human-readable form.
data object | array Yes Additional information that can help the caller understand or fix the issue.

ErrorList #

Una lista de los errores que se devuelven cuando una solicitud no se ha realizado correctamente.

  • Type: array
  • Items: Error
  • minItems: 1

Order #

Representa un pedido con datos sobre el comprador, el estado, las fechas, el Envío, el coste total y los artículos adquiridos.

  • Type: object
  • Required: token, order_id, source_order_id, buyer_name, buyer_email, status, is_archived, sale_date, ship_date, ship_by_date, shipping_address, country_code, total, items

Properties

Name Type Required Description
token string format:uuid Yes A unique token associated with the order.
order_id string Yes The order ID assigned by the sales channel.
source_order_id string Yes The store-specific order ID, often used internally.
buyer_name string \| null Yes Name of the buyer who placed the order.
buyer_email string \| null format:email Yes Email address of the buyer.
status string (enum) Yes Current status of the order.
is_archived boolean Yes Indicates whether the order is archived.
sale_date string format:date-time Yes The date and time when the order was placed.
ship_date string \| null format:date-time Yes The actual shipping date of the order, if available.
ship_by_date string \| null format:date-time Yes The date by which the order should be shipped.
shipping_address object Yes Shipping address details for the order.
country_code string Yes ISO 3166-1 alpha-2 country code representing the shipping country.
total object Yes Total cost breakdown for the order.
items array of OrderItem Yes List of items included in the order.

OrderItem #

Representa un artículo concreto de un pedido, incluyendo datos como el SKU, la cantidad y la información de seguimiento.

  • Type: object
  • Required: title, sku, barcode, item_id, item_img, quantity, price, tracking_service, tracking_numbers

Properties

Name Type Required Description
title string Yes The title or name of the item as it appears in the order.
sku string Yes Stock Keeping Unit (SKU) of the item.
barcode string Yes The barcode or UPC of the item.
item_id string Yes Unique identifier for the item.
item_img string \| null format:url Yes URL of the item image.
quantity integer Yes The quantity of this item ordered.
price number format:float Yes The unit price of the item.
tracking_service string \| null Yes The name of the tracking service.
tracking_numbers array of string Yes List of tracking numbers associated with this item.

OrdersFindRequest #

  • Type: object

Properties

Name Type Required Description
sort object No Sorting options for the search results.
filters object No Filtering options.
search string \| null No Search by Title, SKU, Identifier, GTIN
_result object No

OrdersFindResponse #

  • Type: object
  • Required: list, total

Properties

Name Type Required Description
list array of Order Yes A list of orders matching the query.
total integer Yes The total number of orders matching the query.

UploadInvoiceRequest #

  • Type: object
  • Required: order_id, invoice_number, invoice_data

Properties

Name Type Required Description
order_id string Yes Unique identifier of the order within the store system.
invoice_number string Yes Invoice number.
total_amount number \| null format:float No Total order amount including VAT, in the store's currency.
total_vat_amount number \| null format:float No VAT portion of the total amount.
shipping_id string \| null No Identifier of the related shipping record, if available.
transaction_id string \| null No Identifier of the payment transaction, if available.
invoice_data string Yes Base64-encoded string of the PDF invoice file.

UploadInvoiceResponse #

Properties

Name Type Required Description
token string format:uuid Not specified Unique token identifying the invoice.

UpdateShipmentRequest #

Contiene información de seguimiento del envío que se utiliza para actualizar un pedido.

  • Type: object
  • Required: tracking_company, tracking_number

Properties

Name Type Required Description
token string format:uuid No A unique token associated with the order.
source_order_id string No Unique identifier of the order within the store system.
channel_order_id string No The order ID assigned by the sales channel.
tracking_company string Yes Shipping carrier name (e.g., DHL, UPS, FedEx).
tracking_number string Yes Tracking number provided by the shipping carrier.
return_tracking_company string \| null No Return shipment carrier name, if applicable.
return_tracking_number string \| null No Return shipment tracking number, if applicable.

UpdateShipmentResponse #

Respuesta obtenida tras procesar una actualización del envío.

  • The OpenAPI schema does not specify response properties.

UserAccountsResponse #

An array of user accounts.


Response components #

ApiError #

Api error


Content


Headers

BadRequest #

Bad request


Content


Headers

InternalError #

Internal server error


Content

NotFound #

Not found


Content

TooManyRequests #

Too many requests


Content


Headers

Unauthorized #

Unauthorized


Content


Header components #

X-RateLimit-Limit #

The maximum number of API tokens available in the rate limit bucket.

  • Schema type: number
  • Example: 60

X-RateLimit-Remaining #

The number of API tokens remaining in the rate limit bucket.

  • Schema type: number
  • Example: 45

X-RateLimit-Retry-After #

The date and time when the API rate limit resets.

  • Schema type: string
  • Format: datetime
  • Example: 2026-11-11T13:43:28Z

Leave a comment

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *