/api/v1/BankSlip/{barCode}/UpdateOtherInformationMétodo utilizado para atualizar dados sem instrução
Cria um novo registro de api.
Visão geral
Método utilizado para atualizar dados sem instrução
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):
barCode— código de barras
Request
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|---|
barCode | path | string | obrigatório | código de barras | valor |
idempotence | query | string | opcional | chave de idempotência | valor |
generateInstructionTransactionLine | query | boolean | opcional | flag to create registry in file confirmation | true |
Corpo da requisição
Envie no formato application/json. Corpo obrigatório.
Campos
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
documentNumber | string | opcional | — | — | "texto" |
numberPayments | integer | opcional | — | — | 0 |
latePaymentInterestAmountPerDay | integer | opcional | — | — | 0 |
fineTypeValue | string | opcional | — | — | "texto" |
fineAmount | number (decimal) | opcional | — | — | 1000 |
interestTypeValue | string | opcional | — | — | "texto" |
interestAmount | number (decimal) | opcional | — | — | 1000 |
interestCodeValue | string | opcional | — | — | "texto" |
discount | integer | opcional | — | — | 0 |
discountLimitDate | string | opcional | — | — | "texto" |
discount2 | integer | opcional | — | — | 0 |
discountLimitDate2 | string | opcional | — | — | "texto" |
discount3 | integer | opcional | — | — | 0 |
discountLimitDate3 | string | opcional | — | — | "texto" |
payer | objeto | opcional | — | varia conforme o tipo — ver exemplo | { … } |
guarantor | objeto | opcional | — | varia conforme o tipo — ver exemplo | { … } |
firstInstructionDebtCollection | string | opcional | — | — | "texto" |
secondInstructionDebtCollection | integer | opcional | — | — | 0 |
description | string | opcional | — | — | "texto" |
Exemplo de corpo
{
"documentNumber": "texto",
"numberPayments": 0,
"latePaymentInterestAmountPerDay": 0,
"fineTypeValue": "texto",
"fineAmount": 1000,
"interestTypeValue": "texto",
"interestAmount": 1000,
"interestCodeValue": "texto",
"discount": 0,
"discountLimitDate": "texto",
"discount2": 0,
"discountLimitDate2": "texto",
"discount3": 0,
"discountLimitDate3": "texto",
"payer": {
"name": "Fulano de Tal",
"zipCode": "01310930",
"addressName": "Fulano de Tal",
"addressNumber": "texto",
"addressComplement": "texto",
"email": "cliente@exemplo.com.br"
},
"guarantor": {
"name": "Fulano de Tal",
"registrationNumber": "12345678909"
},
"firstInstructionDebtCollection": "texto",
"secondInstructionDebtCollection": 0,
"description": "texto"
}Response
Sem resposta de sucesso documentada no contrato.
Códigos de retorno
| Código | Significado | Detalhe do contrato |
|---|---|---|
401 | Não autenticado — token ausente, inválido ou expirado. | — |
Exemplos
curl -X POST "{{baseUrl}}/api/v1/BankSlip/valor/UpdateOtherInformation" \
-H "Authorization: Bearer {{token}}" \
-H "Content-Type: application/json" \
-d '{
"documentNumber": "texto",
"numberPayments": 0,
"latePaymentInterestAmountPerDay": 0,
"fineTypeValue": "texto",
"fineAmount": 1000,
"interestTypeValue": "texto",
"interestAmount": 1000,
"interestCodeValue": "texto",
"discount": 0,
"discountLimitDate": "texto",
"discount2": 0,
"discountLimitDate2": "texto",
"discount3": 0,
"discountLimitDate3": "texto",
"payer": {
"name": "Fulano de Tal",
"zipCode": "01310930",
"addressName": "Fulano de Tal",
"addressNumber": "texto",
"addressComplement": "texto",
"email": "cliente@exemplo.com.br"
},
"guarantor": {
"name": "Fulano de Tal",
"registrationNumber": "12345678909"
},
"firstInstructionDebtCollection": "texto",
"secondInstructionDebtCollection": 0,
"description": "texto"
}'var baseUrl = "{{baseUrl}}";
var token = "{{token}}";
using var http = new HttpClient { BaseAddress = new Uri(baseUrl) };
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", token);
var rota = "/api/v1/BankSlip/valor/UpdateOtherInformation";
var corpo = new StringContent(
"""
{
"documentNumber": "texto",
"numberPayments": 0,
"latePaymentInterestAmountPerDay": 0,
"fineTypeValue": "texto",
"fineAmount": 1000,
"interestTypeValue": "texto",
"interestAmount": 1000,
"interestCodeValue": "texto",
"discount": 0,
"discountLimitDate": "texto",
"discount2": 0,
"discountLimitDate2": "texto",
"discount3": 0,
"discountLimitDate3": "texto",
"payer": {
"name": "Fulano de Tal",
"zipCode": "01310930",
"addressName": "Fulano de Tal",
"addressNumber": "texto",
"addressComplement": "texto",
"email": "cliente@exemplo.com.br"
},
"guarantor": {
"name": "Fulano de Tal",
"registrationNumber": "12345678909"
},
"firstInstructionDebtCollection": "texto",
"secondInstructionDebtCollection": 0,
"description": "texto"
}
""",
Encoding.UTF8, "application/json");
var resp = await http.PostAsync(rota, corpo);
resp.EnsureSuccessStatusCode();
// Sem corpo de resposta neste endpoint.const baseUrl = '{{baseUrl}}';
const token = '{{token}}';
const payload = {
"documentNumber": "texto",
"numberPayments": 0,
"latePaymentInterestAmountPerDay": 0,
"fineTypeValue": "texto",
"fineAmount": 1000,
"interestTypeValue": "texto",
"interestAmount": 1000,
"interestCodeValue": "texto",
"discount": 0,
"discountLimitDate": "texto",
"discount2": 0,
"discountLimitDate2": "texto",
"discount3": 0,
"discountLimitDate3": "texto",
"payer": {
"name": "Fulano de Tal",
"zipCode": "01310930",
"addressName": "Fulano de Tal",
"addressNumber": "texto",
"addressComplement": "texto",
"email": "cliente@exemplo.com.br"
},
"guarantor": {
"name": "Fulano de Tal",
"registrationNumber": "12345678909"
},
"firstInstructionDebtCollection": "texto",
"secondInstructionDebtCollection": 0,
"description": "texto"
};
const resp = await fetch(`${baseUrl}/api/v1/BankSlip/valor/UpdateOtherInformation`, {
method: 'POST',
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