POST
/
{alias}
/
logistics
/
shipping-costs
curl --request POST \
  --url https://api.dooki.com.br/v2/{alias}/logistics/shipping-costs \
  --header 'Content-Type: application/json' \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>' \
  --data '{
  "order_id": 123,
  "zipcode": "14940000",
  "total": 430,
  "origin": "product_page",
  "utm_email": "john@snow.com",
  "skus_ids": [
    1233,
    2123,
    3423,
    41233,
    54423
  ],
  "quantities": [
    1,
    1,
    1,
    2,
    2
  ]
}'
{
  "data": {
    "id": 123,
    "service_id": 1,
    "service_name": "Correios PAC",
    "service_display_name": "Correios PAC",
    "service_type_id": 1,
    "service_type_name": "Correios",
    "price": 0,
    "delivery_time": 18,
    "quote_id": 3517956284,
    "gateway": "intelipost",
    "same_day_delivery": true,
    "same_day_delivery_until_at": "<string>",
    "zipcode": "14940000",
    "street": null,
    "neighborhood": null,
    "city": "Ibitinga",
    "uf": "SP",
    "source": "database",
    "city_id": 3,
    "formated_delivery_time": "até 18 dias úteis",
    "formated_price": "Grátis",
    "free_shipment": true,
    "real_price": 0
  }
}

Authorizations

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

Path Parameters

alias
string
required

Alias da loja

Body

application/json

Representa os dados necessários para realizar o cálculo de frete

Response

200
application/json
Cálculo do frete realizado com sucesso

The response is of type object.