Ver categorias

M2E Cloud Sales Channels API

OpenAPI: 3.1.0

Version: 4.3

A API «M2E Cloud Sales Channels» ajuda-o a gerir produtos e pedidos nas plataformas de comércio eletrónico através da integração por API. Pode criar e atualizar produtos, consultar pedidos, atualizar informações de acompanhamento de envios e gerir operações nas plataformas de comércio eletrónico suportadas, incluindo eBay, Amazon, Walmart, TikTok Shop, Temu, Kaufland marketplaces, SHEIN, OnBuy, OTTO e plataformas de comércio eletrónico desenvolvidas pela Mirakl.



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

Limites de taxa da API #

A M2E Cloud API dos Canais de Vendas utiliza um sistema de limitação de taxa baseado em tokens para garantir um desempenho estável.

Como funcionam os limites de taxa #

A API utiliza um sistema de token bucket. Cada pedido consome um determinado número de tokens.

  • Capacidade máxima: 60 tokens.
  • Taxa de recarga: 30 tokens por minuto.
  • Pedidos de API padrão: 1 token por pedido.
  • Operações em massa sobre produtos: 5 tokens por pedido para POST /catalog/product/ e PATCH /catalog/product/.

Os tokens são repostos automaticamente ao longo do tempo, até ao limite máximo de 60.

O que acontece quando atinge o limite? #

Caso não haja tokens suficientes disponíveis para processar um pedido, a API devolve:

429 Too Many Requests

Para evitar atingir o limite:

  • Acompanhe os seus tokens restantes através dos cabeçalhos da resposta da API.
  • Distribua os pedidos ao longo do tempo ao processar grandes quantidades de dados.
  • Aguarde até que os tokens fiquem disponíveis antes de repetir um pedido.

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 a eliminação em massa de produtos do Catálogo.


Request body

Uma lista de produtos a eliminar.


Responses

GET /catalog/product/ #

Summary: Retrieve a catalog product by SKU

OperationId: CatalogProductGet

Recupera os detalhes de um produto do 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 atualizações em lote dos produtos do Catálogo, incluindo informações sobre moeda, imagens e atributos.


Request body

Uma lista de produtos a atualizar.


Responses

POST /catalog/product/ #

Summary: Creates products in catalog

OperationId: CatalogProductCreate

Permite a criação em lote de produtos no Catálogo.


Request body

Uma lista de produtos a criar.


Responses

POST /catalog/product/find/ #

Summary: Retrieve products by criteria

OperationId: CatalogProductsFind

Encontra produtos com base nos critérios especificados.


Request body

Critérios para filtrar e ordenar produtos.


Responses

PATCH /catalog/product/variant/ #

Summary: Update variants in catalog

OperationId: catalogProductsVariantsUpdate

Permite atualizações em lote das variantes do Catálogo.


Request body

Uma lista de variantes a atualizar.


Responses


Orders #

POST /order/find/ #

Summary: Retrieve orders by criteria

OperationId: OrdersFind

Encontra pedidos com base em critérios especificados, tais como canal, token da conta e vários filtros, como data de venda, estado e dados do 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

Critérios para filtrar e ordenar pedidos.


Responses

POST /order/invoice/ #

Summary: Upload invoice for an order

OperationId: UploadOrderInvoice

Processa e carrega os dados da fatura relativos a um pedido específico, utilizando um ficheiro PDF codificado em base64.


Request body


Responses

PUT /order/shipment/ #

Summary: Update shipment for an order

OperationId: UpdateOrderShipment

Atualiza as informações de acompanhamento da remessa de um pedido específico, incluindo a transportadora e o número de acompanhamento.


Request body

Informações de acompanhamento da remessa relativas a um pedido.


Responses


User #

GET /user/accounts/ #

Summary: Retrieve accounts associated with a user

OperationId: UserAccountsList

Recupera uma lista de contas associadas ao utilizador especificado, identificadas por um token único.


Responses

Components #


Schemas #

 

Account #

Representa um objeto de conta associado a um utilizador, contendo informações sobre o canal, a validade das credenciais e outros dados de identificação.

  • 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 #

Uma lista de pares chave-valor que representam 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 #

Uma lista de opções que especificam os atributos da variante (por exemplo, tamanho, cor).

  • Type: array
  • Items: object

 

CatalogProductsCreateRequest #

Um conjunto de produtos a incluir no Catálogo.

 

CatalogProductsCreateResponse #

  • Type: object
  • Required: created

Properties

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

 

CatalogProductsDeleteRequest #

Um conjunto de produtos a eliminar do 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 #

Uma resposta de erro é devolvida quando o pedido não é bem-sucedido.

  • 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 #

Uma lista de erros devolvidos quando um pedido não é bem-sucedido.

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

 

Order #

Representa um pedido com detalhes sobre o comprador, o estado, as datas, o envio, o custo total e os itens 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 um item específico de um pedido, incluindo detalhes como o SKU, a quantidade e as informações de rastreio.

  • 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 #

Contém informações de acompanhamento da remessa utilizadas para atualizar pedidos.

  • 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 #

Resposta devolvida após o processamento de uma atualização de envio.

  • The OpenAPI schema does not specify response properties.

 

UserAccountsResponse #

Um conjunto de contas de utilizador.


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

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *