cURL
curl --request PUT \ --url https://api.dooki.com.br/v2/{alias}/customers/clusters/{clusterId}/shipping-rules/{id} \ --header 'Content-Type: application/json' \ --header 'User-Secret-Key: <api-key>' \ --header 'User-Token: <api-key>' \ --data '{ "cluster_id": 123, "country": "<string>", "zipcode_min": 123, "zipcode_max": 123, "min_order_value": "<string>", "shipment_percent": 123 }'
{ "id": 123, "cluster_id": 123, "name": "<string>", "country": "<string>", "zipcode_min": 123, "zipcode_max": 123, "min_order_value": 123, "shipment_discount_percent": 123, "created_at": { "date": "2000-08-17 10:24:24", "timezone_type": 3, "timezone": "America/Sao_Paulo" }, "updated_at": { "date": "2000-08-17 10:24:24", "timezone_type": 3, "timezone": "America/Sao_Paulo" } }
Atualiza uma regra de frete específica de um cluster
Alias da loja
ID do cluster
ID da regra de frete
Representa os dados necessários para criar ou atualizar uma regra de frete do cluster
Regra de frete atualizada com sucesso
Was this page helpful?