Consultar operação
GET
/api/operations/{id}
Esse endpoint permite que um originador autenticado consulte os dados de uma operação existente, informando obrigatoriamente o id
da operação.
Parâmetros
Nome | Tipo | Descrição | Obrigatório |
---|---|---|---|
id | string | Identificador único da operação. | Sim |
Exemplo de requisição
/api/operations/01962542-38ee-70de-92fe-4e4a0cc375ee
Exemplos de resposta
- 200 - Successo - PF
- 200 - Successo - PJ
- 401 - Não autorizado
- 404 - Não encontrado
{
"id": "01962542-38ee-70de-92fe-4e4a0cc375ee",
"proposalId": null,
"operationNumber": 0001,
"status": "CREATED",
"totalValue": 1000,
"liquidValue": 743,
"discountedValue": 104,
"fixedTac": 150,
"variableTac": 3,
"totalTac": 153,
"averageDaysInAdvance": 39,
"sentPaymentDate": null,
"contractDetails": {
"type": "FULL_CONTRACT",
"signatureDate": null,
"signerToken": null,
},
"assignor": {
"name": "Cristiano Ronaldo",
"cpf": "12345678901",
"tradeName": null,
"cnpj": null
},
"titles": [
{
"id": "01962542-38ef-752c-ad0a-f322337f5a7f",
"operationId": "01962542-38ee-70de-92fe-4e4a0cc375ee",
"proposalId": null,
"receivableId": null,
"description": "REC001",
"externalId": 1,
"status": "WAITING_PAYMENT",
"dueDate": "2025-05-15T12:00:00.000Z",
"paymentDay": "2025-05-15T12:00:00.000Z",
"returningMoneyDate": null,
"totalAssetBacking": 1000,
"originalValue": 1000,
"liquidTotalValue": 896,
"discountedValue": 104,
"defaultTax": 8,
"variableTac": 3,
"floatingDays": 2,
"percentageTotalEffectiveCost": 0,
"qtdDaysAdvanced": 39
}
]
}
{
"id": "1fd9ef03-8b44-46c4-bb83-955b1caae2f9",
"proposalId": null,
"operationNumber": 0002,
"status": "CREATED",
"totalValue": 1000,
"liquidValue": 743,
"discountedValue": 104,
"fixedTac": 150,
"variableTac": 3,
"totalTac": 153,
"averageDaysInAdvance": 39,
"sentPaymentDate": null,
"contractDetails": {
"type": "FULL_CONTRACT",
"signatureDate": null,
"signerToken": null
},
"assignor": {
"name": "Ronaldinho",
"cpf": "12345678901",
"tradeName": "Empresa de futebol clube",
"cnpj": "12345678910112"
},
"titles": [
{
"id": "417e94b3-15c2-4fe8-9cc0-8bf0e429aa13",
"operationId": "1fd9ef03-8b44-46c4-bb83-955b1caae2f9",
"proposalId": null,
"receivableId": null,
"description": "REC002",
"externalId": 2,
"status": "WAITING_PAYMENT",
"dueDate": "2025-05-15T12:00:00.000Z",
"paymentDay": "2025-05-15T12:00:00.000Z",
"returningMoneyDate": null,
"totalAssetBacking": 1000,
"originalValue": 1000,
"liquidTotalValue": 896,
"discountedValue": 104,
"defaultTax": 8,
"variableTac": 3,
"floatingDays": 2,
"percentageTotalEffectiveCost": 0,
"qtdDaysAdvanced": 39
}
]
}
{
"message": "Invalid credentials."
}
{
"message": "We could not find the opetarion with this id."
}