Início / Referência · Crédito / Operação de crédito / Atualiza os atributos da operação, incluindo envolvidos, uploads, etc
PUT /v{version}/CreditNote/{id}
Crédito · Operação de crédito
Atualiza os atributos da operação, incluindo envolvidos, uploads, etc Atualiza por completo um registro de Credit Note existente.
Visão geral Atualiza os atributos da operação, incluindo envolvidos, uploads, etc. Permitido apenas quando o status da operação é Rascunho, Rejeitada, Revisão ou Erro.
Autenticação e pré-requisitos Requer autenticação. Envie o token no header Authorization: Bearer {{token}} (JWT do AWS Cognito). Integrações servidor-a-servidor podem usar X-Api-Key. Todo tráfego é HTTPS e a credencial nunca vai na URL nem em query string.
Pré-requisitos: a rota exige identificador(es) de recurso já existente(s):
Request Parâmetros Nome Em Tipo Obrigatório Descrição Exemplo idpath string (uuid)obrigatório — 3fa85f64-5717-4562-b3fc-2c963f66afa6versionpath stringobrigatório — 1returnValuequery stringopcional — valor
Corpo da requisição Envie no formato application/json. Corpo opcional.
Campos Campo Tipo Obrigatório Descrição Valores Exemplo ownerUserobjetoopcional — objeto — ver detalhe abaixo { … }ownerGroupobjetoopcional — objeto — ver detalhe abaixo { … }productIdstring (uuid)obrigatório — — "3fa85f64-5717-4562-b3fc-2c963f66afa6"amortizationobjetoobrigatório — varia conforme o tipo — ver exemplo { … }warrantyarray de objetoopcional Garantia de Bens — [ … ]emissionDatestring (date-time)opcional — — "2025-08-11T13:45:00Z"personIdstring (uuid)obrigatório — — "3fa85f64-5717-4562-b3fc-2c963f66afa6"beneficiaryIdstring (uuid)opcional — — "3fa85f64-5717-4562-b3fc-2c963f66afa6"liquidationTypestringopcional — Invoice, EletronicTransfer"Invoice"invoiceBarCodestringopcional — — "texto"collateralstringopcional — — "texto"observationsstringopcional — — "texto"bankAccountIdstring (uuid)opcional — — "3fa85f64-5717-4562-b3fc-2c963f66afa6"isRegisteredbooleanopcional — — truebulkAssignmentbooleanopcional — — trueinvoiceValueinteger (int64)opcional — — 0invoiceNumberstringopcional — — "texto"changeBankAccountIdstring (uuid)opcional — — "3fa85f64-5717-4562-b3fc-2c963f66afa6"issueNumberintegeropcional Numero de série da nota comercial — 0emissionNumberintegeropcional Numero de emissão da nota comercial — 0quantityintegeropcional Quantidade de notas comerciais — 0unitPriceinteger (int64)opcional Valor unitario da nota comercial — 0assignmentCalculationobjetoopcional — objeto — ver detalhe abaixo { … }assetsarray de objetoopcional — objeto — ver detalhe abaixo [ … ]relatedPersonCreditNotearray de objetoopcional — objeto — ver detalhe abaixo [ … ]uploadsarray de objetoopcional — objeto — ver detalhe abaixo [ … ]paymentScheduleItemsarray de objetoopcional — objeto — ver detalhe abaixo [ … ]unicoSignScorenumber (double)opcional Score na Unico — 1000facialSimilarityScorenumber (double)opcional Score na Unico — 1000signatureDetailsarray de objetoopcional Detalhes da assinatura eletrônica objeto — ver detalhe abaixo [ … ]transitoryBankAccountIdstring (uuid)opcional Conta transitório do Roteiro de Liquidação — "3fa85f64-5717-4562-b3fc-2c963f66afa6"transitoryBankAccountOpenAccountbooleanopcional — — trueliquidationModestringopcional — Simple, LiquidationSchedule"Simple"liquidationSchedulearray de objetoopcional Roteiro de liquidação objeto — ver detalhe abaixo [ … ]insurancebooleanopcional Indica se a operação possui seguro — true
Detalhe de ownerUser Campo Tipo Obrigatório Descrição Valores Exemplo userIdstringobrigatório — — "3fa85f64-5717-4562-b3fc-2c963f66afa6"tenantNamestringobrigatório — — "Fulano de Tal"
Detalhe de ownerGroup Campo Tipo Obrigatório Descrição Valores Exemplo groupIdstringobrigatório — — "3fa85f64-5717-4562-b3fc-2c963f66afa6"tenantNamestringobrigatório — — "Fulano de Tal"
Detalhe de assignmentCalculation Campo Tipo Obrigatório Descrição Valores Exemplo amountnumber (double)opcional — — 1000typestringopcional — Absolute, Percentage"Absolute"modestringopcional — InitialValue, PresentValuePayment, PresentValueCreditNote, Default"InitialValue"
Detalhe de assets Campo Tipo Obrigatório Descrição Valores Exemplo idstring (uuid)opcional — — "3fa85f64-5717-4562-b3fc-2c963f66afa6"
Detalhe de relatedPersonCreditNote Campo Tipo Obrigatório Descrição Valores Exemplo personIdstring (uuid)opcional — — "3fa85f64-5717-4562-b3fc-2c963f66afa6"typeOfRelationshipstringobrigatório — Issuer, PartnerGuarantor, Guarantor, Proxy, ProxyGuarantor, Partner, Spouse, Consenter, Witness, Assignor, Assignee, Endorser, Employer, Creditor +16 "Issuer"relatedToIdstring (uuid)opcional — — "3fa85f64-5717-4562-b3fc-2c963f66afa6"signatureTypestringopcional — email, sms, whatsapp"email"signatureValidationstringopcional — EletronicSignatureAndDocument, SelfieSignature, SelfieDocumentSignature, FacialBiometrics, DigitalCertificate, EletronicSignature"EletronicSignatureAndDocument"percentagenumber (double)opcional — — 1.99
Detalhe de uploads Campo Tipo Obrigatório Descrição Valores Exemplo ownerUserobjetoopcional — objeto — ver detalhe abaixo { … }ownerGroupobjetoopcional — objeto — ver detalhe abaixo { … }idstring (uuid)opcional Id do arquivo — "3fa85f64-5717-4562-b3fc-2c963f66afa6"fileNamestringobrigatório Nome do arquivo (retornado pelo GET v1/Upload) — "Fulano de Tal"fileTypestringopcional — Document, Authorization, DriversLicense, WorkCard, ResidenceProofCompany, ResidenceProofPartners, Draft, SocialContract, RegistrationNumber, IdentificationDocumentWithPhoto, BankStatement, ManagerialBilling, RegistrationForm, Others +41 "Document"displayNamestringopcional Nome de exibição do arquivo — "Fulano de Tal"documentDatestring (date-time)opcional Data do próprio documento (emissão/referência), não a data do upload. Aceita em qualquer
tipo de documento e sempre opcional. Só tem efeito de negócio no laudo de deferimento INSS
e na última perícia INSS (regra de elegibilidade dos benefícios 32/92). — "2025-08-11T13:45:00Z"
Detalhe de paymentScheduleItems Campo Tipo Obrigatório Descrição Valores Exemplo ownerUserobjetoopcional — objeto — ver detalhe abaixo { … }ownerGroupobjetoopcional — objeto — ver detalhe abaixo { … }dueDatestring (date-time)opcional Data de vencimento da parcela — "2025-08-11T13:45:00Z"principalAmountInCentsinteger (int64)opcional Saldo devedor da parcela após a apuração de amortização e juros — 0amortizationinteger (int64)opcional Valor amortizado (principal) na parcela — 0interestinteger (int64)opcional Juros apurados no período — 0financeTaxinteger (int64)opcional Valor de IOF que incide sob a parcela (IOF diário + parcela do IOF base) — 0addedFixedCostsinteger (int64)opcional Valor de tarifas adicionais que devem ser incluídas em cada parcela (valor não é financiado) — 0paymentinteger (int64)opcional Valor da parcela que será pago pelo devedor no vencimento — 0
Detalhe de signatureDetails Campo Tipo Obrigatório Descrição Valores Exemplo registrationNumberstringopcional — — "12345678909"userAgentstringopcional — — "texto"ipstringopcional — — "texto"geoLocationstringopcional — — "texto"operationalSystemstringopcional — — "texto"deviceModelstringopcional — — "texto"deviceNamestringopcional — — "Fulano de Tal"deviceTypestringopcional — — "texto"smsValidationbooleanopcional — — trueemailValidationbooleanopcional — — true
Detalhe de liquidationSchedule Campo Tipo Obrigatório Descrição Valores Exemplo amountInCentsinteger (int64)obrigatório — — 0pixQrCodeobjetoopcional — objeto — ver detalhe abaixo { … }bankSlipobjetoopcional — objeto — ver detalhe abaixo { … }pixKeyobjetoopcional — objeto — ver detalhe abaixo { … }transferobjetoopcional — objeto — ver detalhe abaixo { … }descriptionstringopcional — — "texto"informedDueDatestring (date-time)opcional — — "2025-08-11T13:45:00Z"
Detalhe de pixQrCode Campo Tipo Obrigatório Descrição Valores Exemplo qrCodestringobrigatório — — "texto"
Detalhe de bankSlip Campo Tipo Obrigatório Descrição Valores Exemplo barcodeOrDigitableLinestringobrigatório — — "texto"
Detalhe de pixKey Campo Tipo Obrigatório Descrição Valores Exemplo keystringobrigatório — — "texto"pixKeyTypestringopcional — NaturalRegistrationNumber, LegalRegistrationNumber, Phone, Email, Automatic, AgencyAndAccount"NaturalRegistrationNumber"typeDisplaystringopcional — — "texto"
Detalhe de transfer Campo Tipo Obrigatório Descrição Valores Exemplo toobjetoobrigatório — objeto — ver detalhe abaixo { … }typestringobrigatório — Transfer, Pix"Transfer"
Detalhe de to Campo Tipo Obrigatório Descrição Valores Exemplo namestringobrigatório — — "Fulano de Tal"registrationNumberstringobrigatório — — "12345678909"bankCodeintegerobrigatório — — 0bankIspbinteger (int64)obrigatório — — 0agencystringobrigatório — — "texto"accountNumberstringobrigatório — — "texto"accountTypestringobrigatório — NaturalCheckingAccount, NaturalSimpleAccount, LegalCheckingAccount, PublicEntities, FinancialInstitutionsDeposits, NaturalSavingsAccount, LegalSavingsAccount, RealEstateSavingsAccount, LotteryDeposits, EscrowAccount"NaturalCheckingAccount"
Exemplo de corpo {
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amortization": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amortizationType": "texto",
"startDate": "2025-08-11T13:45:00Z",
"apr": 1.99,
"includePaymentFixedCosts": true,
"validationErrors": [
{
"memberNames": [],
"errorMessage": "texto"
}
],
"agentCommissions": [
{
"name": "Fulano de Tal",
"amount": 1000,
"type": {},
"baseValue": {},
"chargeCommissionFrom": {},
"financeCost": true
}
],
"agentCommission": {
"name": "Fulano de Tal",
"amount": 1000,
"type": "Absolute",
"baseValue": "InitialValue",
"chargeCommissionFrom": "All",
"financeCost": true,
"totalValue": 0
}
},
"warranty": [
{
"warrantyType": "Warranty"
}
],
"emissionDate": "2025-08-11T13:45:00Z",
"personId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"beneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"liquidationType": "Invoice",
"invoiceBarCode": "texto",
"collateral": "texto",
"observations": "texto",
"bankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"isRegistered": true,
"bulkAssignment": true,
"invoiceValue": 0,
"invoiceNumber": "texto",
"changeBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"issueNumber": 0,
"emissionNumber": 0,
"quantity": 0,
"unitPrice": 0,
"assignmentCalculation": {
"amount": 1000,
"type": "Absolute",
"mode": "InitialValue"
},
"assets": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"relatedPersonCreditNote": [
{
"personId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"typeOfRelationship": "Issuer",
"relatedToId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"signatureType": "email",
"signatureValidation": "EletronicSignatureAndDocument",
"percentage": 1.99
}
],
"uploads": [
{
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fileName": "Fulano de Tal",
"fileType": "Document",
"displayName": "Fulano de Tal",
"documentDate": "2025-08-11T13:45:00Z"
}
],
"paymentScheduleItems": [
{
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"dueDate": "2025-08-11T13:45:00Z",
"principalAmountInCents": 0,
"amortization": 0,
"interest": 0,
"financeTax": 0,
"addedFixedCosts": 0,
"payment": 0
}
],
"unicoSignScore": 1000,
"facialSimilarityScore": 1000,
"signatureDetails": [
{
"registrationNumber": "12345678909",
"userAgent": "texto",
"ip": "texto",
"geoLocation": "texto",
"operationalSystem": "texto",
"deviceModel": "texto",
"deviceName": "Fulano de Tal",
"deviceType": "texto",
"smsValidation": true,
"emailValidation": true
}
],
"transitoryBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"transitoryBankAccountOpenAccount": true,
"liquidationMode": "Simple",
"liquidationSchedule": [
{
"amountInCents": 0,
"pixQrCode": {
"qrCode": "texto"
},
"bankSlip": {
"barcodeOrDigitableLine": "texto"
},
"pixKey": {
"key": "texto",
"pixKeyType": {},
"typeDisplay": "texto"
},
"transfer": {
"to": {},
"type": {}
},
"description": "texto",
"informedDueDate": "2025-08-11T13:45:00Z"
}
],
"insurance": true
}Response Resposta 200 sem corpo (Success).
Códigos de retorno Código Significado Detalhe do contrato 200Requisição bem-sucedida. Success
Exemplos cURL C# JavaScript
curl -X PUT "{{baseUrl}}/v1/CreditNote/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
-H "Authorization: Bearer {{token}}" \
-H "Content-Type: application/json" \
-d '{
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amortization": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amortizationType": "texto",
"startDate": "2025-08-11T13:45:00Z",
"apr": 1.99,
"includePaymentFixedCosts": true,
"validationErrors": [
{
"memberNames": [],
"errorMessage": "texto"
}
],
"agentCommissions": [
{
"name": "Fulano de Tal",
"amount": 1000,
"type": {},
"baseValue": {},
"chargeCommissionFrom": {},
"financeCost": true
}
],
"agentCommission": {
"name": "Fulano de Tal",
"amount": 1000,
"type": "Absolute",
"baseValue": "InitialValue",
"chargeCommissionFrom": "All",
"financeCost": true,
"totalValue": 0
}
},
"warranty": [
{
"warrantyType": "Warranty"
}
],
"emissionDate": "2025-08-11T13:45:00Z",
"personId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"beneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"liquidationType": "Invoice",
"invoiceBarCode": "texto",
"collateral": "texto",
"observations": "texto",
"bankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"isRegistered": true,
"bulkAssignment": true,
"invoiceValue": 0,
"invoiceNumber": "texto",
"changeBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"issueNumber": 0,
"emissionNumber": 0,
"quantity": 0,
"unitPrice": 0,
"assignmentCalculation": {
"amount": 1000,
"type": "Absolute",
"mode": "InitialValue"
},
"assets": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"relatedPersonCreditNote": [
{
"personId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"typeOfRelationship": "Issuer",
"relatedToId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"signatureType": "email",
"signatureValidation": "EletronicSignatureAndDocument",
"percentage": 1.99
}
],
"uploads": [
{
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fileName": "Fulano de Tal",
"fileType": "Document",
"displayName": "Fulano de Tal",
"documentDate": "2025-08-11T13:45:00Z"
}
],
"paymentScheduleItems": [
{
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"dueDate": "2025-08-11T13:45:00Z",
"principalAmountInCents": 0,
"amortization": 0,
"interest": 0,
"financeTax": 0,
"addedFixedCosts": 0,
"payment": 0
}
],
"unicoSignScore": 1000,
"facialSimilarityScore": 1000,
"signatureDetails": [
{
"registrationNumber": "12345678909",
"userAgent": "texto",
"ip": "texto",
"geoLocation": "texto",
"operationalSystem": "texto",
"deviceModel": "texto",
"deviceName": "Fulano de Tal",
"deviceType": "texto",
"smsValidation": true,
"emailValidation": true
}
],
"transitoryBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"transitoryBankAccountOpenAccount": true,
"liquidationMode": "Simple",
"liquidationSchedule": [
{
"amountInCents": 0,
"pixQrCode": {
"qrCode": "texto"
},
"bankSlip": {
"barcodeOrDigitableLine": "texto"
},
"pixKey": {
"key": "texto",
"pixKeyType": {},
"typeDisplay": "texto"
},
"transfer": {
"to": {},
"type": {}
},
"description": "texto",
"informedDueDate": "2025-08-11T13:45:00Z"
}
],
"insurance": true
}'var baseUrl = "{{baseUrl}}";
var token = "{{token}}";
using var http = new HttpClient { BaseAddress = new Uri(baseUrl) };
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", token);
var rota = "/v1/CreditNote/3fa85f64-5717-4562-b3fc-2c963f66afa6";
var corpo = new StringContent(
"""
{
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amortization": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amortizationType": "texto",
"startDate": "2025-08-11T13:45:00Z",
"apr": 1.99,
"includePaymentFixedCosts": true,
"validationErrors": [
{
"memberNames": [],
"errorMessage": "texto"
}
],
"agentCommissions": [
{
"name": "Fulano de Tal",
"amount": 1000,
"type": {},
"baseValue": {},
"chargeCommissionFrom": {},
"financeCost": true
}
],
"agentCommission": {
"name": "Fulano de Tal",
"amount": 1000,
"type": "Absolute",
"baseValue": "InitialValue",
"chargeCommissionFrom": "All",
"financeCost": true,
"totalValue": 0
}
},
"warranty": [
{
"warrantyType": "Warranty"
}
],
"emissionDate": "2025-08-11T13:45:00Z",
"personId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"beneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"liquidationType": "Invoice",
"invoiceBarCode": "texto",
"collateral": "texto",
"observations": "texto",
"bankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"isRegistered": true,
"bulkAssignment": true,
"invoiceValue": 0,
"invoiceNumber": "texto",
"changeBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"issueNumber": 0,
"emissionNumber": 0,
"quantity": 0,
"unitPrice": 0,
"assignmentCalculation": {
"amount": 1000,
"type": "Absolute",
"mode": "InitialValue"
},
"assets": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"relatedPersonCreditNote": [
{
"personId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"typeOfRelationship": "Issuer",
"relatedToId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"signatureType": "email",
"signatureValidation": "EletronicSignatureAndDocument",
"percentage": 1.99
}
],
"uploads": [
{
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fileName": "Fulano de Tal",
"fileType": "Document",
"displayName": "Fulano de Tal",
"documentDate": "2025-08-11T13:45:00Z"
}
],
"paymentScheduleItems": [
{
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"dueDate": "2025-08-11T13:45:00Z",
"principalAmountInCents": 0,
"amortization": 0,
"interest": 0,
"financeTax": 0,
"addedFixedCosts": 0,
"payment": 0
}
],
"unicoSignScore": 1000,
"facialSimilarityScore": 1000,
"signatureDetails": [
{
"registrationNumber": "12345678909",
"userAgent": "texto",
"ip": "texto",
"geoLocation": "texto",
"operationalSystem": "texto",
"deviceModel": "texto",
"deviceName": "Fulano de Tal",
"deviceType": "texto",
"smsValidation": true,
"emailValidation": true
}
],
"transitoryBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"transitoryBankAccountOpenAccount": true,
"liquidationMode": "Simple",
"liquidationSchedule": [
{
"amountInCents": 0,
"pixQrCode": {
"qrCode": "texto"
},
"bankSlip": {
"barcodeOrDigitableLine": "texto"
},
"pixKey": {
"key": "texto",
"pixKeyType": {},
"typeDisplay": "texto"
},
"transfer": {
"to": {},
"type": {}
},
"description": "texto",
"informedDueDate": "2025-08-11T13:45:00Z"
}
],
"insurance": true
}
""",
Encoding.UTF8, "application/json");
var resp = await http.PutAsync(rota, corpo);
resp.EnsureSuccessStatusCode();
// Sem corpo de resposta neste endpoint.const baseUrl = '{{baseUrl}}';
const token = '{{token}}';
const payload = {
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amortization": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amortizationType": "texto",
"startDate": "2025-08-11T13:45:00Z",
"apr": 1.99,
"includePaymentFixedCosts": true,
"validationErrors": [
{
"memberNames": [],
"errorMessage": "texto"
}
],
"agentCommissions": [
{
"name": "Fulano de Tal",
"amount": 1000,
"type": {},
"baseValue": {},
"chargeCommissionFrom": {},
"financeCost": true
}
],
"agentCommission": {
"name": "Fulano de Tal",
"amount": 1000,
"type": "Absolute",
"baseValue": "InitialValue",
"chargeCommissionFrom": "All",
"financeCost": true,
"totalValue": 0
}
},
"warranty": [
{
"warrantyType": "Warranty"
}
],
"emissionDate": "2025-08-11T13:45:00Z",
"personId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"beneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"liquidationType": "Invoice",
"invoiceBarCode": "texto",
"collateral": "texto",
"observations": "texto",
"bankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"isRegistered": true,
"bulkAssignment": true,
"invoiceValue": 0,
"invoiceNumber": "texto",
"changeBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"issueNumber": 0,
"emissionNumber": 0,
"quantity": 0,
"unitPrice": 0,
"assignmentCalculation": {
"amount": 1000,
"type": "Absolute",
"mode": "InitialValue"
},
"assets": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"relatedPersonCreditNote": [
{
"personId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"typeOfRelationship": "Issuer",
"relatedToId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"signatureType": "email",
"signatureValidation": "EletronicSignatureAndDocument",
"percentage": 1.99
}
],
"uploads": [
{
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fileName": "Fulano de Tal",
"fileType": "Document",
"displayName": "Fulano de Tal",
"documentDate": "2025-08-11T13:45:00Z"
}
],
"paymentScheduleItems": [
{
"ownerUser": {
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"ownerGroup": {
"groupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenantName": "Fulano de Tal"
},
"dueDate": "2025-08-11T13:45:00Z",
"principalAmountInCents": 0,
"amortization": 0,
"interest": 0,
"financeTax": 0,
"addedFixedCosts": 0,
"payment": 0
}
],
"unicoSignScore": 1000,
"facialSimilarityScore": 1000,
"signatureDetails": [
{
"registrationNumber": "12345678909",
"userAgent": "texto",
"ip": "texto",
"geoLocation": "texto",
"operationalSystem": "texto",
"deviceModel": "texto",
"deviceName": "Fulano de Tal",
"deviceType": "texto",
"smsValidation": true,
"emailValidation": true
}
],
"transitoryBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"transitoryBankAccountOpenAccount": true,
"liquidationMode": "Simple",
"liquidationSchedule": [
{
"amountInCents": 0,
"pixQrCode": {
"qrCode": "texto"
},
"bankSlip": {
"barcodeOrDigitableLine": "texto"
},
"pixKey": {
"key": "texto",
"pixKeyType": {},
"typeDisplay": "texto"
},
"transfer": {
"to": {},
"type": {}
},
"description": "texto",
"informedDueDate": "2025-08-11T13:45:00Z"
}
],
"insurance": true
};
const resp = await fetch(`${baseUrl}/v1/CreditNote/3fa85f64-5717-4562-b3fc-2c963f66afa6`, {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json',
},
body: JSON.stringify(payload),
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
// Sem corpo de resposta neste endpoint.Troque apenas {{baseUrl}} e {{token}}. No Postman, defina-os como variáveis de environment; o cURL importa em Import > Raw text .
Downloads Este endpoint já vem configurado nas collections abaixo, na pasta da etapa correspondente.
Guia de importação: Como importar no Postman · Todos os downloads: Downloads