Skip to main content
DELETE
/
{alias}
/
discounts
/
batch-delete
Excluir todos os descontos da loja em massa
curl --request DELETE \
  --url https://api.dooki.com.br/v2/{alias}/discounts/batch-delete \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>'
{
  "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",
  "accumulate": false,
  "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"
  }
}

Authorizations

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

Path Parameters

alias
string
required

Alias da loja

Response

200 - application/json

Detalhes do desconto

Representa os atributos de um Desconto

id
integer
Example:

1520

store_id
integer
Example:

1319250

discount_type_id
integer
Example:

1520

name
string
Example:

"Lucas"

entry_condition_type
string
Example:

"amount"

entry_condition_value
number
Example:

10

discount_method
string
Example:

"percent"

discount_value
number
Example:

100

discount_type
string
Example:

"buy_x_get_y"

accumulate
boolean
Example:

false

start_at
object
end_at
object
created_at
object
updated_at
object
I