cURL
curl --request GET \ --url https://api.dooki.com.br/v2/{alias}/pricing/promotions/{id} \ --header 'User-Secret-Key: <api-key>' \ --header 'User-Token: <api-key>'
{ "id": 123, "active": true, "all_products": true, "utm_only": true, "highlight_on_menu": true, "accumulate": true, "price_attribute": "<string>", "name": "Promoção relâmpago", "expired": true, "url": "https://www.domain.com/promocoes/test", "slug": "<string>", "value": 123, "utm_source": "google", "utm_campaign": "adwords", "start_at": { "date": "2000-08-17 10:24:24", "timezone_type": 3, "timezone": "America/Sao_Paulo" }, "end_at": { "date": "2000-08-17 10:24:24", "timezone_type": 3, "timezone": "America/Sao_Paulo" }, "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" } }
Obtém os detalhes de uma promoção específica
Alias da loja
ID da promoção
Detalhes da promoção
"Promoção relâmpago"
"https://www.domain.com/promocoes/test"
"google"
"adwords"
Show child attributes
Was this page helpful?