> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.erp.olist.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lançar Contas

> Serviço para gerar contas a receber a partir de um pedido.

## Endpoint

```
POST https://api.tiny.com.br/api2/pedido.lancar.contas.php
```

## Parâmetros

| Parâmetro | Tipo   | Ocorrência  | Descrição                                 |
| --------- | ------ | ----------- | ----------------------------------------- |
| token     | string | obrigatório | Chave gerada para identificar sua empresa |
| formato   | string | obrigatório | Formato do retorno (json)                 |
| id        | int    | obrigatório | ID do pedido                              |

## Descrição

Este serviço gera automaticamente contas a receber baseadas nas parcelas configuradas no pedido.

## Exemplo de chamada

```bash theme={null}
curl -X POST https://api.tiny.com.br/api2/pedido.lancar.contas.php \
  -d "token=SEU_TOKEN&formato=json&id=789456"
```

## Retorno

```json theme={null}
{
  "retorno": {
    "status_processamento": 3,
    "status": "OK",
    "registros": [
      {
        "registro": {
          "id": 123456,
          "numero_doc": "12345/01"
        }
      }
    ]
  }
}
```
