Listar coleções do catálogo
GET /business/catalog/collection/list
Lista as coleções do catálogo da instância autenticada. Para a primeira
página, não informe after. Se a resposta trouxer response.next,
copie o valor para after na próxima chamada. O cursor é opaco. Sem
response.next, não há mais páginas.
Autenticação
[
{
"token": []
}
]
{
"token": {
"name": "token",
"type": "apiKey",
"in": "header"
}
}
Parâmetros
[
{
"name": "after",
"in": "query",
"schema": {
"type": "string"
},
"description": "Cursor `response.next` da página anterior."
}
]
Respostas
{
"200": {
"description": "Página de coleções",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"response"
],
"properties": {
"response": {
"$ref": "#/components/schemas/BusinessCollectionPage"
}
}
}
}
}
},
"401": {
"description": "Token inválido"
},
"500": {
"description": "Não foi possível consultar as coleções"
}
}
#/components/schemas/BusinessCollectionPage
{
"type": "object",
"required": [
"collections"
],
"properties": {
"next": {
"type": "string",
"description": "Cursor da próxima página, quando houver."
},
"collections": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BusinessCollection"
}
}
}
}
#/components/schemas/BusinessCollection
{
"type": "object",
"required": [
"id",
"name",
"products",
"status_info"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"next": {
"type": "string"
},
"previous": {
"type": "string"
},
"products": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BusinessProduct"
}
},
"status_info": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"can_appeal": {
"type": "boolean"
},
"commerce_url": {
"type": "string"
},
"reject_reason": {
"type": "string"
}
}
}
}
}
#/components/schemas/BusinessProduct
{
"type": "object",
"required": [
"id",
"name",
"price",
"currency",
"is_hidden",
"is_sanctioned",
"media",
"status_info"
],
"properties": {
"id": {
"type": "string"
},
"retailer_id": {
"type": "string"
},
"belongs_to": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"price": {
"type": "string",
"description": "Valor em milésimos da moeda (19990 = R$ 19,99)."
},
"currency": {
"type": "string"
},
"url": {
"type": "string"
},
"shimmed_url": {
"type": "string"
},
"is_hidden": {
"type": "boolean"
},
"is_sanctioned": {
"type": "boolean"
},
"max_available": {
"type": "integer"
},
"product_availability": {
"type": "string"
},
"compliance_category": {
"type": "string"
},
"compliance_info": {
"type": "object",
"properties": {
"country_code_origin": {
"type": "string"
},
"importer_name": {
"type": "string"
},
"importer_address": {
"type": "object",
"properties": {
"street1": {
"type": "string"
},
"street2": {
"type": "string"
},
"city": {
"type": "string"
},
"region": {
"type": "string"
},
"postal_code": {
"type": "string"
},
"country_code": {
"type": "string"
}
}
}
}
},
"media": {
"type": "object",
"properties": {
"images": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"original_image_url": {
"type": "string"
},
"request_image_url": {
"type": "string"
}
}
}
},
"videos": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"original_video_url": {
"type": "string"
},
"thumbnail_url": {
"type": "string"
}
}
}
}
}
},
"sale_price": {
"type": "object",
"required": [
"price"
],
"properties": {
"price": {
"type": "string"
},
"start_date": {
"type": "string"
},
"end_date": {
"type": "string"
}
}
},
"status_info": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"can_appeal": {
"type": "boolean"
}
}
},
"variant_info": {
"type": "object",
"properties": {
"listing_details": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"lowest_price": {
"type": "string"
},
"multi_price": {
"type": "string"
}
}
},
"availability": {
"type": "object",
"additionalProperties": true
},
"types": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"variant_properties": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
}
}
}