Saltar al contenido
CatálogoCanales

Revisar los requisitos antes de guardar

Evalúa las categorías y los campos en borrador por producto sin guardar ni publicar.

POST/v1/channels/{channelId}/listings/requirements/preview
Requiere un token de acceso con el permiso channel:read.

Parámetros de ruta

channelId*string

Identificador del canal de venta.

Parámetros de cabecera

x-Store-Id?string

Tienda sobre la que actúa la solicitud. No hace falta cuando el token ya está vinculado a una tienda.

Authorization*string

Token bearer OAuth 2.0.

Cuerpo de la solicitud

application/json

Definiciones TypeScript

Usa esta definición en TypeScript.

Cuerpo de la respuesta

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://api.ecomiq.pe/api/v1/channels/7204558912004329619/listings/requirements/preview" \  -H "x-Store-Id: <store-id>" \  -H "Authorization: Bearer <token>" \  -H "Content-Type: application/json" \  -d '{    "productId": "7204558912004322039",    "rows": [      {        "listingId": "7204558912004321492",        "values": {          "key": {            "value": "Mi tienda",            "valueId": "7204558912004324721"          }        },        "variantId": "7204558912004323197",        "brand": "Andina",        "category": "Polos",        "productId": "7204558912004322039"      }    ]  }'
{  "columns": [    {      "externalId": "7204558912004323067",      "name": "Tienda online",      "required": true,      "optionValues": [        {          "id": "7204558912004325220",          "name": "Material"        }      ],      "allowCustomValue": false,      "target": "attribute",      "variant": false,      "valueType": "Tienda online"    }  ],  "rows": [    {      "listingId": "7204558912004321492",      "productId": "7204558912004322039",      "productName": "Tienda online",      "sku": "POL-001-AZ-M",      "readinessStatus": "ready",      "categoryPath": "Tienda online",      "categoryMapped": false,      "missing": 1,      "values": {        "key": {          "value": "Tienda online",          "source": "Tienda online",          "state": "ok",          "variantValues": [            {              "variantId": "7204558912004323197",              "sku": "POL-001-AZ-M",              "value": "Polo de algodón Azul / M",              "source": "Tienda online",              "valueId": "7204558912004324721",              "state": "ok"            }          ]        }      }    }  ],  "total": 178,  "nextCursor": "eyJpZCI6IjcyMDQ1NTg5MTIwMDQzMjUzMDEifQ",  "choices": {    "key": {      "key": {        "optionValues": [          {            "id": "7204558912004325220",            "name": "Material"          }        ],        "allowCustomValue": false,        "valueType": "Tienda online",        "allowedUnits": [          {            "id": "7204558912004325220",            "name": "Material"          }        ],        "defaultUnit": "Tienda online"      }    }  }}