---
# System prepended metadata

title: Takiweb Api

---

# Takiweb Api

Api desenvolvida para possibilitar que os lojistas da plataforma façam integrações de seus sistemas com a Taki.

## Autenticação

Para se autenticar na plataforma o lojista deverá utilizar suas credenciais de api, que se encontram no painel Taki: https://takiweb.takiapp.com.br/markets/{SEU_MARKET_ID}/api_credentials.

Estas credenciais serão enviadas no header das requisições, conforme o exemplo abaixo:

Headers:
```json
{
    Content-Type: 'application/json',
    MARKETID: '11113ae888888888886c158f721010101090307',
    MARKETSECRET: '999941cfa2f26101010105547ad02281994'
}
```

## Utilização

### Listagem de pedidos

#### Endpoint: 
https://takiweb.takiapp.com.br/apimarkets/v1/orders

#### Descrição
Retorna um array com todos os pedidos do lojista.

#### Parâmetros:

`date_from`, `date_to` e `order_number`.

* Os campos de data devem seguir o formato: `YYYY-MM-DD`

Os parâmetros de filtragem podem ser enviados via query string, exemplo:

https://takiweb.takiapp.com.br/apimarkets/v1/orders?date_from=2021-09-06&date_to=2021-09-06

#### Exemplo de resposta

```json
[{
	"id": 999999,
	"payment_type_id": 4,
	"status": "canceled",
	"deliver_start_time": "2021-09-06T12:00:00.000-03:00",
	"deliver_end_time": "2021-09-06T13:00:00.000-03:00",
	"created_at": "2021-09-06T11:04:13.362-03:00",
	"updated_at": "2021-09-06T17:27:42.494-03:00",
	"market_id": 9999,
	"client_id": 99999,
	"order_number": "2021961644299999",
	"cash": null,
	"missing_items_preference": "call",
	"note": "cliente profissional da beleza",
	"edited_price": "99.9",
	"tax_coupon": {
		"url": null
	},
	"status_push_notification_in_delivery_at": null,
	"status_push_notification_done_at": null,
	"customer_id": 99999,
	"first_purchase": false,
	"discount": "0.0",
	"market_investment": "0.0",
	"platform_investment": "0.0",
	"pending_customer_credit": false,
	"cancel_requested": false,
	"drivethru": false,
	"subtotal": "99.9",
	"service_tax": "0.0",
	"delivery_tax": "1.0",
	"delivery_interval": 0,
	"has_free_delivery": false,
	"has_scheduled_notifications": false,
	"verified": true,
	"app_generated_token": null,
	"user_agent": null,
	"subtotal_with_additions": "0.0",
	"delivery_preparation": null,
	"app_id": 4,
	"campaign_id": null,
	"total": "100.9",
	"discount_cupom": "0.0",
	"value_discount": "0.0",
	"type_discount": null,
	"observations": "",
	"follow_up": false,
	"request_params": "{\"fake_data\"=>\"fake-content\"}",
	"server_created_time": "2021-09-06T11:04:13.153-03:00",
	"wirecard": null,
	"wirecard_status": null,
	"wirecard_error_message": null,
	"card_id": null,
	"delivery_immediate": null,
	"address": null,
	"complement": "",
	"number": 999,
	"neighborhood_id": 9999,
	"address_name": "da gloria, 250",
	"zoop_transaction_id": null,
	"shop_refused": false,
	"market_user_id": null,
	"bee_delivery_id": null,
	"delivery_with_bee": false,
	"bee_delivery_fee_paid": "0.0",
	"zoop_edited_price_status": "pending",
	"has_drivethru": false,
	"delivery_id": null,
	"market_delivery_service_id": null,
	"cancellation_reason": null,
	"coupon_url": null
}]
```



