Skip to main content

Registering a product

ANYMARKET provides sellers and integrators the ability to create a comprehensive and complete product listing, with clear and objective descriptions, well-presented characteristics, complete titles, and more. It also allows the creation of 3 product types:

  • Simple Product;
  • Product with Variation;
  • KIT Product;

In this guide, we will present each of them, with their flows and particularities, when creating via API.

Simple Product

Simple products are those that do not have more than one SKU in their composition, for example, a soccer ball, a book, a mouse, etc. It is the most basic type of product.

Before registering a product, the brand, category and subcategories must be registered and the ID returned by ANYMARKET must be stored — these IDs will need to be provided when registering the product.

Flow

1.png

2.png

Request Example

[POST] https://sandbox-api.anymarket.com.br/v2/products
{
"title": "Produto Simples de Exemplo (Automático - Pelo Custo) - ANYMARKET",
"description": "Descrição do Produto Simples de Exemplo (Automático - Pelo Custo) - ANYMARKET",
"category": {
"id": <Id da subcategoria>
},
"brand": {
"id": <Id da marca>
},
"priceFactor": 1,
"definitionPriceScope": "COST",
"images":[
{
"main": true,
"url": "https://anymarket.com.br/wp-content/themes/anymarket/assets/dist/images/ilustra-banner.png"
}
],
"skus": [
{
"title": "Produto Simples de Exemplo (Automático - Pelo Custo) - ANYMARKET - Título Sku",
"amount": 10,
"price": 100
}
]
}

Product with Variation

Products with variations are those that have some type of variation, such as Size, Color, Voltage, etc. For example, a t-shirt with size variations S, XS, M, L and XL.

Just like with simple products, the brand, category and subcategories must be registered beforehand and the ID returned by ANYMARKET must be stored — these IDs will need to be provided when registering the product.

It is necessary to provide the variation type and the variation value of each SKU, within "variations".

Flow

3.png

Request Example

[POST] https://sandbox-api.anymarket.com.br/v2/products
{
"title": "Produto Variação de Exemplo - ANYMARKET",
"description": "Descrição do Produto Variação de Exemplo - ANYMARKET",
"category": {
"id": <Id da subcategoria>
},
"brand": {
"id": <Id da marca>
},
"priceFactor": 1,
"images":[
{
"main": true,
"url": "https://anymarket.com.br/wp-content/themes/anymarket/assets/dist/images/ilustra-banner.png"
}
],
"skus": [
{
"title": "Produto Variação de Exemplo - ANYMARKET - Título Sku 01 - AMARELO",
"partnerId": "PRDVAR-01-1-AMARELO",
"amount": 10,
"price": 100,
"variations": {
"COR / Variação de Exemplo - ANYMARKET": "AMARELO"
}
},
{
"title": "Produto Variação de Exemplo - ANYMARKET - Título Sku 02 - AZUL",
"partnerId": "PRDVAR-02-1-AZUL",
"amount": 10,
"price": 100,
"variations": {
"COR / Variação de Exemplo - ANYMARKET": "AZUL"
}
}
]
}