Descontos
Visualizar um desconto da loja
Changed onDetalhes do desconto
get/{alias}/discounts/{id}
Request
- Base URLhttps://api.dooki.com.br/v2
- URLhttps://api.dooki.com.br/v2/{alias}/discounts/{id}
- AuthAPI key in header User-Token and API key in header User-Secret-Key
Path parameters
aliasstring required
Alias da loja
idinteger required
ID do Desconto
Response
Detalhes do desconto
Example response
{
"data": [
{
"id": 1520,
"store_id": 1319250,
"discount_type_id": 1520,
"name": "Lucas",
"entry_condition_type": "amount",
"entry_condition_value": 10,
"discount_method": "percent",
"discount_value": 100,
"discount_type": "buy_x_get_y",
"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"
}
}
],
"specifications": {
"data": {
"get_products_quantity": 1,
"price_mode": "percent",
"tiers": [
{
"min_value": 3,
"price": 10
}
]
}
}
}Changes
- info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status
- info