Promoções - Combos

Listar combos de produtos

Changed on

Obtém a lista de combos de produtos

get/{alias}/pricing/combos

Request

  • Base URL
    https://api.dooki.com.br/v2
  • URL
    https://api.dooki.com.br/v2/{alias}/pricing/combos
  • Auth
    API key in header User-Token and API key in header User-Secret-Key

Path parameters

aliasstring required

Alias da loja

Query parameters

activeboolean

Filtrar combos ativos

discount_type'p' | 'v'

Tipo de desconto (p para percentual, v para valor)

namestring

Nome do combo de produtos

start_atstring date-time

Data de início

end_atstring date-time

Data de término

discount_valuenumber float

Valor do desconto

products_idsinteger[]

IDs dos produtos

Response

Lista de combos de produtos

Example response

{
  "data": [
    {
      "name": "Combo test",
      "discount_value": 10,
      "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"
      }
    }
  ]
}

Changes

    • breaking

      the /// response's property type changed from string to object, and format from date-time to no format for status

    • breaking

      the //// response's property format changed from date-time to no format for status

    • breaking

      the //// response's property format changed from date-time to no format for status

    • breaking

      the /// response's property type changed from string to object, and format from date-time to no format for status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      the response optional property /// became not read-only for the status

    • info

      the response optional property /// became not read-only for the status