POST
/
{alias}
/
orders
Criar pedido
curl --request POST \
  --url https://api.dooki.com.br/v2/{alias}/orders \
  --header 'Content-Type: application/json' \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>' \
  --data '{
  "status": "waiting_payment",
  "marketplace_id": 123,
  "marketplace_account_id": 123,
  "authorized": true,
  "number": 123,
  "marketplace_sale_number": "<string>",
  "customer_id": 123,
  "value_total": 123,
  "value_products": 1,
  "value_discount": 1,
  "value_shipment": 1,
  "value_tax": 1,
  "shipment_service": "<string>",
  "days_delivery": 1,
  "ip": "200.179.10.10",
  "items": [
    {
      "product_id": 123,
      "sku_id": 123,
      "sku": "<string>",
      "quantity": 2,
      "price": 1,
      "gift": true,
      "gift_value": 1,
      "has_recomm": true
    }
  ],
  "address": [
    {
      "receiver": "<string>",
      "zipcode": "<string>",
      "street": "<string>",
      "number": "<string>",
      "neighborhood": "<string>",
      "city": "<string>",
      "uf": "<string>"
    }
  ],
  "transactions": [
    {
      "customer_id": 123,
      "payment_id": 123,
      "affiliation_id": 123,
      "marketplace_id": 123,
      "marketplace_account_id": 123,
      "authorized": true,
      "authorized_at": "2025-07-31 23:59:59",
      "captured": true,
      "captured_at": "2025-07-31 23:59:59",
      "cancelled": true,
      "amount": 1,
      "installments": 2,
      "status": "waiting_payment",
      "holder_name": "<string>",
      "holder_document": "<string>",
      "billet_url": "<string>",
      "billet_date": "2023-12-25"
    }
  ],
  "sent_to_antifraud": true,
  "capture_date": "2023-12-25",
  "authorized_at": "2025-07-31 23:59:59",
  "captured_at": "2025-07-31 23:59:59",
  "cancelled_at": "2025-07-31 23:59:59"
}'
{
  "delivered": true,
  "track_url": "<string>",
  "track_code": "<string>",
  "authorized": true,
  "customer_id": 123,
  "promocode_id": 123,
  "marketplace_id": 123,
  "marketplace_account_id": 123,
  "has_recomm": true,
  "number": 123,
  "marketplace_partner_id": 123,
  "marketplace_sale_number": 123,
  "value_total": 123,
  "value_products": 123,
  "value_discount": 123,
  "value_shipment": 123,
  "value_tax": 123,
  "shipment_service": "<string>",
  "shipment_quote_id": 123,
  "days_delivery": 123,
  "utm_source": "<string>",
  "utm_campaign": "<string>",
  "utm_term": "<string>",
  "utm_content": "<string>",
  "utm_medium": "<string>",
  "ip": "<string>",
  "items": [
    {
      "id": 123,
      "product_id": 123,
      "sku_id": 123,
      "item_sku": "<string>",
      "quantity": 123,
      "price": 123,
      "price_cost": 123,
      "shipment_cost": 123,
      "gift": true,
      "gift_value": 123,
      "has_recomm": 123,
      "is_digital": true,
      "freebie_id": 123,
      "bundle_id": 123,
      "bundle_name": "<string>"
    }
  ],
  "address": [
    {
      "id": 123,
      "order_id": 123,
      "address_name": "<string>",
      "street": "<string>",
      "number": 123,
      "complement": "<string>",
      "reference": "<string>",
      "neighborhood": "<string>",
      "receiver": "<string>",
      "zipcode": 123,
      "zip_code": 123,
      "full_address": "<string>",
      "city": "<string>",
      "uf": "<string>",
      "country": "<string>"
    }
  ],
  "transactions": {
    "data": {
      "id": 123,
      "customer_id": 123,
      "payment_id": 123,
      "affiliation_id": 123,
      "marketplace_id": 123,
      "marketplace_account_id": 123,
      "authorized": true,
      "captured": true,
      "cancelled": true,
      "can_be_captured": true,
      "can_be_cancelled": true,
      "gateway_transaction_id": 123,
      "gateway_order_id": 123,
      "gateway_authorization_code": "<string>",
      "gateway_billet_id": 123,
      "amount": 123,
      "buyer_amount": 123,
      "installment_value": 123,
      "buyer_installment_value": 123,
      "installments": 123,
      "installment_formated": "<string>",
      "buyer_installment_formated": "<string>",
      "status": "<string>",
      "error_message": "<string>",
      "bank_name": "<string>",
      "bank_alias": "<string>",
      "truncated_card": "<string>",
      "holder_name": "<string>",
      "holder_document": "<string>",
      "billet_url": "<string>",
      "billet_barcode": "<string>",
      "billet_date": "<string>",
      "billet_our_number": "<string>",
      "billet_document_number": "<string>",
      "billet_whatsapp_link": "<string>",
      "antifraud_sale_id": 123,
      "antifraud_status": "<string>",
      "antifraud_score": "<string>",
      "sent_to_antifraud": "<string>",
      "total_logs": 123,
      "error_code": 123,
      "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"
      },
      "capture_date": {
        "date": "2000-08-17 10:24:24",
        "timezone_type": 3,
        "timezone": "America/Sao_Paulo"
      },
      "authorized_at": {
        "date": "2000-08-17 10:24:24",
        "timezone_type": 3,
        "timezone": "America/Sao_Paulo"
      },
      "captured_at": {
        "date": "2000-08-17 10:24:24",
        "timezone_type": 3,
        "timezone": "America/Sao_Paulo"
      },
      "cancelled_at": {
        "date": "2000-08-17 10:24:24",
        "timezone_type": 3,
        "timezone": "America/Sao_Paulo"
      },
      "payment": {
        "data": {
          "id": 123,
          "alias": "<string>",
          "name": "<string>",
          "has_config": true,
          "active_config": true,
          "is_credit_card": true,
          "is_deposit": true,
          "is_billet": true,
          "is_pix": true,
          "is_pix_in_installments": true,
          "is_wallet": true,
          "icon_url": "<string>"
        }
      },
      "metadata": [
        {
          "key": "discount_highlight",
          "value": "pix"
        }
      ]
    }
  }
}

Authorizations

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

Path Parameters

alias
string
required

Alias da loja

Body

application/json

Detalhes do pedido

Requisição para criação de pedidos

Response

200 - application/json

Pedido criado com sucesso

Representa um pedido