cURL
curl --request POST \ --url https://api.dooki.com.br/v2/{alias}/pricing/progressive-discounts \ --header 'Content-Type: application/json' \ --header 'User-Secret-Key: <api-key>' \ --header 'User-Token: <api-key>' \ --data '{ "active": true, "min_value": 0, "max_value": 100, "percent": 5, "start_at": "2017-07-02 10:00", "end_at": "2018-08-17 12:00", "restrictions": { "include": { "products_ids": [ 123 ], "brands_ids": [ 123 ], "collections_ids": [ 123 ], "categories_ids": [ 123 ] } }, "exclude": { "products_ids": [ 123 ], "brands_ids": [ 123 ], "collections_ids": [ 123 ], "categories_ids": [ 123 ] } }'
{ "id": 123, "active": true, "min_value": 123, "max_value": 100, "percent": 5, "min_quantity": 123, "accumulate": true, "expired": true }
Cria um novo desconto progressivo
Alias da loja
Representa uma requisição de desconto progressivo
Desconto progressivo criado com sucesso
Representa um desconto progressivo
Was this page helpful?