curl --request POST \
--url https://api.tiny.com.br/public-api/v3/pedidos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"idContato": 123,
"dataPrevista": "2024-01-01",
"dataEnvio": "2024-01-01 00:00:00",
"observacoes": "<string>",
"observacoesInternas": "<string>",
"situacao": 8,
"data": "2024-01-01",
"dataEntrega": "2024-01-01",
"numeroOrdemCompra": "<string>",
"valorDesconto": 123,
"valorFrete": 123,
"valorOutrasDespesas": 123,
"listaPreco": {
"id": 123
},
"naturezaOperacao": {
"id": 123
},
"vendedor": {
"id": 123
},
"enderecoEntrega": {
"endereco": "<string>",
"enderecoNro": "<string>",
"complemento": "<string>",
"bairro": "<string>",
"municipio": "<string>",
"cep": "<string>",
"uf": "<string>",
"fone": "<string>",
"nomeDestinatario": "<string>",
"cpfCnpj": "<string>",
"tipoPessoa": "J",
"ie": "<string>"
},
"ecommerce": {
"id": 123,
"numeroPedidoEcommerce": "<string>"
},
"transportador": {
"id": 123,
"fretePorConta": "R",
"formaEnvio": {
"id": 123
},
"formaFrete": {
"id": 123
},
"codigoRastreamento": "<string>",
"urlRastreamento": "<string>"
},
"intermediador": {
"id": 123
},
"deposito": {
"id": 123
},
"pagamento": {
"formaRecebimento": {
"id": 123
},
"meioPagamento": {
"id": 123
},
"parcelas": [
{
"dias": 123,
"data": "2024-01-01",
"valor": 123,
"observacoes": "<string>",
"formaRecebimento": {
"id": 123
},
"meioPagamento": {
"id": 123
}
}
]
},
"itens": [
{
"produto": {
"id": 123,
"tipo": "P"
},
"quantidade": 123,
"valorUnitario": 123,
"infoAdicional": "<string>"
}
],
"pagamentosIntegrados": [
{
"valor": 10.5,
"tipoPagamento": 1,
"cnpjIntermediador": "00000000000191",
"codigoAutorizacao": "123456",
"codigoBandeira": 1
}
]
}
'{
"id": 123,
"numeroPedido": "<string>"
}curl --request POST \
--url https://api.tiny.com.br/public-api/v3/pedidos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"idContato": 123,
"dataPrevista": "2024-01-01",
"dataEnvio": "2024-01-01 00:00:00",
"observacoes": "<string>",
"observacoesInternas": "<string>",
"situacao": 8,
"data": "2024-01-01",
"dataEntrega": "2024-01-01",
"numeroOrdemCompra": "<string>",
"valorDesconto": 123,
"valorFrete": 123,
"valorOutrasDespesas": 123,
"listaPreco": {
"id": 123
},
"naturezaOperacao": {
"id": 123
},
"vendedor": {
"id": 123
},
"enderecoEntrega": {
"endereco": "<string>",
"enderecoNro": "<string>",
"complemento": "<string>",
"bairro": "<string>",
"municipio": "<string>",
"cep": "<string>",
"uf": "<string>",
"fone": "<string>",
"nomeDestinatario": "<string>",
"cpfCnpj": "<string>",
"tipoPessoa": "J",
"ie": "<string>"
},
"ecommerce": {
"id": 123,
"numeroPedidoEcommerce": "<string>"
},
"transportador": {
"id": 123,
"fretePorConta": "R",
"formaEnvio": {
"id": 123
},
"formaFrete": {
"id": 123
},
"codigoRastreamento": "<string>",
"urlRastreamento": "<string>"
},
"intermediador": {
"id": 123
},
"deposito": {
"id": 123
},
"pagamento": {
"formaRecebimento": {
"id": 123
},
"meioPagamento": {
"id": 123
},
"parcelas": [
{
"dias": 123,
"data": "2024-01-01",
"valor": 123,
"observacoes": "<string>",
"formaRecebimento": {
"id": 123
},
"meioPagamento": {
"id": 123
}
}
]
},
"itens": [
{
"produto": {
"id": 123,
"tipo": "P"
},
"quantidade": 123,
"valorUnitario": 123,
"infoAdicional": "<string>"
}
],
"pagamentosIntegrados": [
{
"valor": 10.5,
"tipoPagamento": 1,
"cnpjIntermediador": "00000000000191",
"codigoAutorizacao": "123456",
"codigoBandeira": 1
}
]
}
'{
"id": 123,
"numeroPedido": "<string>"
}"2024-01-01"
"2024-01-01 00:00:00"
8, 0, 3, 4, 1, 7, 5, 6, 2, 9 "2024-01-01"
"2024-01-01"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes