Promoções - Cupons de desconto
Criar cupom
Changed onCria um novo cupom de desconto
post/{alias}/pricing/promocodes
Request
- Base URLhttps://api.dooki.com.br/v2
- URLhttps://api.dooki.com.br/v2/{alias}/pricing/promocodes
- 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
{
"value": 10,
"code": "10OFF",
"quantity": 100000,
"min_value": 99.99,
"start_at": "2025-06-01 00:00:00",
"end_at": "2025-08-10 00:00:00"
}Response
Cupom criado com sucesso
Example response
{
"code": "TEST",
"value": 10,
"used": 22,
"min_value": 99.99,
"use_percent": 0.02,
"payments_ids": "[1, 2, 3, 4]"
}Changes
- breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
became required - info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking