Promoções - Cashback
Criar regra de cashback
Changed onRetorna a regra de cashback da loja
post/{alias}/pricing/cashbacks/rules
Request
- Base URLhttps://api.dooki.com.br/v2
- URLhttps://api.dooki.com.br/v2/{alias}/pricing/cashbacks/rules
- AuthAPI key in header User-Token and API key in header User-Secret-Key
Path parameters
aliasstring required
Alias da loja
Request body
Example request
{
"max_order_percent": 10,
"expires_if_order_cancelled": true,
"allow_cashback_with_balance": true,
"min_order_amount": 50
}Response
Regra de cashback criada com sucesso
Example response
{
"allow_cashback_with_balance": true,
"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"
}
}Changes
- breaking
the
response's property type changed fromstringtobooleanfor status - info
added the new optional request property
- info
added the optional property
to the response with the status
- breaking