Skip to main content
GET
/
{alias}
/
pricing
/
freebies
/
{id}
Visualizar os Brindes de uma loja
curl --request GET \
  --url https://api.dooki.com.br/v2/{alias}/pricing/freebies/{id} \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>'
import requests

url = "https://api.dooki.com.br/v2/{alias}/pricing/freebies/{id}"

headers = {
"User-Token": "<api-key>",
"User-Secret-Key": "<api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
method: 'GET',
headers: {'User-Token': '<api-key>', 'User-Secret-Key': '<api-key>'}
};

fetch('https://api.dooki.com.br/v2/{alias}/pricing/freebies/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dooki.com.br/v2/{alias}/pricing/freebies/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"User-Secret-Key: <api-key>",
"User-Token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.dooki.com.br/v2/{alias}/pricing/freebies/{id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("User-Token", "<api-key>")
req.Header.Add("User-Secret-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.dooki.com.br/v2/{alias}/pricing/freebies/{id}")
.header("User-Token", "<api-key>")
.header("User-Secret-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.dooki.com.br/v2/{alias}/pricing/freebies/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["User-Token"] = '<api-key>'
request["User-Secret-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": 3976,
  "active": true,
  "store_id": 176851,
  "name": "Teste docs",
  "start_at": "2025-09-16",
  "expires_at": "2025-09-16",
  "resource_id": 9791068,
  "resource_type": "product",
  "rule": "always",
  "min_quantity": 0,
  "min_amount": 0,
  "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

id
integer
required

ID do brinde

Query Parameters

include
enum<string>[]

Incluir relacionamentos adicionais

Available options:
resource

Response

Brinde encontrado com sucesso

Atributos do brinde

id
integer

ID do brinde

Example:

3976

active
boolean

Indica se o brinde está ativo

Example:

true

store_id
integer

ID da loja associada

Example:

176851

name
string

Nome do brinde

Example:

"Teste docs"

start_at
string<date>

Data de início da oferta do brinde

Example:

"2025-09-16"

expires_at
string<date> | null

Data de expiração do brinde (se configurado)

Example:

"2025-09-16"

resource_id
integer

ID do produto ou SKU vinculado ao brinde

Example:

9791068

resource_type
string

Pode ser produto ou SKU

Example:

"product"

rule
string

Regra aplicada ao brinde

Example:

"always"

min_quantity
integer

Quantidade mínima de produtos no carrinho para receber o brinde

Example:

0

min_amount
number<float>

Valor mínimo no carrinho para receber o brinde

Example:

0

created_at
object
updated_at
object