POST
/
{alias}
/
pricing
/
cashbacks
curl --request POST \
  --url https://api.dooki.com.br/v2/{alias}/pricing/cashbacks \
  --header 'Content-Type: application/json' \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>' \
  --data '{
  "active": true,
  "name": "Nome do cashback. Esse valor deve ser único.",
  "min_amount": 123,
  "max_amount": 123,
  "valid_for": 123,
  "percent_amount": 123,
  "has_expiration": true,
  "start_at": "2023-11-07T05:31:56Z",
  "end_at": "2023-11-07T05:31:56Z"
}'
{
  "id": 123,
  "store_id": 123,
  "token": "<string>",
  "active": true,
  "name": "Exemplo de cashback",
  "min_amount": 123,
  "max_amount": 123,
  "valid_for": 123,
  "percent_amount": 123,
  "has_expiration": true,
  "starts_at": {
    "date": "2000-08-17 10:24:24",
    "timezone_type": 3,
    "timezone": "America/Sao_Paulo"
  },
  "expires_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"
  }
}

Authorizations

User-Token
string
header
required
User-Secret-Key
string
header
required

Path Parameters

alias
string
required

Alias da loja

Body

application/json

Response

200
application/json

Cashback criado com sucesso

Representa um cashback