Skip to main content
POST
/
contas-pagar
Criar conta a pagar
curl --request POST \
  --url https://api.tiny.com.br/public-api/v3/contas-pagar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dataVencimento": "2024-01-01",
  "valor": 123,
  "contato": {
    "id": 123
  },
  "data": "2024-01-01",
  "numeroDocumento": "<string>",
  "historico": "<string>",
  "categoria": {
    "id": 123
  },
  "dataCompetencia": "2024-01",
  "ocorrencia": "U",
  "formaPagamento": 0,
  "diaVencimento": 123,
  "quantidadeParcelas": 123,
  "diaSemanaVencimento": 123
}
'
{
  "id": 123
}

Body

application/json
dataVencimento
string
required
Example:

"2024-01-01"

valor
number<float>
required
contato
· object
required
data
string | null
Example:

"2024-01-01"

numeroDocumento
string | null
historico
string | null
categoria
· object
dataCompetencia
string | null
Example:

"2024-01"

ocorrencia
enum<string> | null
  • U - Unica
  • W - Semanal
  • Q - Quinzenal
  • M - Mensal
  • T - Trimestral
  • S - Semestral
  • A - Anual
  • P - Parcelada
Available options:
U,
W,
Q,
M,
T,
S,
A,
P
formaPagamento
enum<integer> | null
  • 0 - Nao Definida
  • 2 - Dinheiro
  • 3 - Credito
  • 4 - Debito
  • 5 - Boleto
  • 6 - Deposito
  • 7 - Cheque
  • 8 - Crediario
  • 10 - Outra
  • 12 - Duplicata Mercantil
  • 14 - Vale
  • 15 - Pix
  • 16 - Vale Alimentacao
  • 17 - Vale Refeicao
  • 18 - Vale Presente
  • 19 - Vale Combustivel
  • 20 - Deposito Bancario
  • 21 - Transferencia Bancaria Carteira Digital
  • 22 - Fidelidade Cashback Credito Virtual
Available options:
0,
2,
3,
4,
5,
6,
7,
8,
10,
12,
14,
15,
16,
17,
18,
19,
20,
21,
22
diaVencimento
integer | null
quantidadeParcelas
integer | null
diaSemanaVencimento
integer | null

Response

OK

id
integer