CatalogChannels
Fix or clear channel price and stock values for variants
Fixes or resets to automatic the price, compare-at price, maximum stock and "don't sell here" per listing or variant. With preview, nothing is written and the before and after are returned.
Path Parameters
channelId*string
Identifier of the sales channel.
Header Parameters
x-Store-Id?string
Store the request acts on. Not needed when the token is bound to a store.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
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/variant-settings" \ -H "x-Store-Id: <store-id>" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "productId": "7204558912004322039", "variantIds": [ "7204558912004323197" ] } ], "changes": [ { "field": "price", "action": "set", "value": 1, "percent": 10, "rounding": "none" } ], "cells": [ { "productId": "7204558912004322039", "variantId": "7204558912004323197", "field": "price", "action": "set", "value": 1 } ], "preview": false, "origin": "list" }'{ "batchId": "7204558912004329434", "listings": 1, "variants": 1, "changedNow": 1, "queued": 1, "created": 1, "rejected": [ { "productId": "7204558912004322039", "variantId": "7204558912004323197", "code": "POL-001" } ], "changes": [ { "listingId": "7204558912004321492", "productId": "7204558912004322039", "variantId": "7204558912004323197", "field": "price", "before": "Polo de algodón Azul / M", "after": "Polo de algodón Azul / M" } ]}