integracoes:web-services-retornar-conta-json
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
| Ambos lados da revisão anteriorRevisão anteriorPróxima revisão | Revisão anterior | ||
| integracoes:web-services-retornar-conta-json [28/02/2024 20:46] – denys.tavares | integracoes:web-services-retornar-conta-json [29/02/2024 20:31] (atual) – vivianne.sousa | ||
|---|---|---|---|
| Linha 8: | Linha 8: | ||
| Os seguinte parâmetros são esperados: | Os seguinte parâmetros são esperados: | ||
| - | - matricula | + | - key (Obrigatório), |
| + | - value (Obrigatório), | ||
| </ | </ | ||
| \\ | \\ | ||
| Linha 16: | Linha 17: | ||
| Com as seguintes informações: | Com as seguintes informações: | ||
| |URL|http:// | |URL|http:// | ||
| - | |matricula|999999999| | + | |value (matrícula)|101548922| |
| + | |key|solicitar| | ||
| \\ | \\ | ||
| ===== A Requisição Seria ===== | ===== A Requisição Seria ===== | ||
| - | http:// | + | http:// |
| - | ===== Envio - JSON ===== | ||
| - | < | + | ===== Retorno com Sucesso - JSON ===== |
| + | < | ||
| { | { | ||
| - | " | + | " |
| - | "matricula": "999999999" | + | "error": |
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | "ka": "00020126460014BR.GOV.BCB.PIX0114091236540001870206DEBITO5204000053039865406702.075802BR5906CAGEPA6007PARAIBA62290525001000004944010920223000363047442" | ||
| } | } | ||
| </ | </ | ||
| - | \\ | + | - Descrição das colunas |
| - | + | ||
| - | ===== Retorno com Sucesso | + | |
| - | + | ||
| - | ===== Retorno em Caso de Sucesso ===== | + | |
| - | <code javascript> | + | |
| - | { | + | |
| - | " | + | |
| " | " | ||
| " | " | ||
| - | "V1": (String) Valor Total, | + | "C": (String) Referência, |
| - | "V2": (String) | + | " |
| - | "V3": (String) Valor do Serviço, | + | "E": (String) Valor Total |
| - | "V4": (String) Valor da Taxa, | + | " |
| - | "V5": (String) Valor do Imposto, | + | "G": (String) |
| - | "V6": (String) Valor do Desconto, | + | "H": (String) Valor Agua, |
| - | "V7": (String) Valor do Acréscimo, | + | "I": (String) Valor Esgoto, |
| - | "C": (String) | + | "J": (String) Valor Débitos, |
| - | "D": (String) | + | "K": (String) Valor Créditos, |
| - | "E": (String) | + | "L": (String) Valor Impostos, |
| - | "F": (String) | + | "M": (String) |
| - | "G": (String) | + | "N": (String) |
| - | "H": (String) | + | "O": (String) |
| - | "I": (String) | + | "P": (String) |
| - | "J": (String) | + | "Q": (String) |
| - | "K": (String) | + | "R": (String) |
| - | "L": (String) | + | "S": (String) |
| - | "M": (String) | + | "T": (String) |
| - | "N": (String) | + | "U": (String) |
| - | "O": (String) | + | "V": (String) |
| - | "P": (String) | + | "W": (String) |
| - | "Q": (String) | + | "X": (String) |
| - | "R": (String) | + | "Y": (String) |
| - | "S": (String) | + | "Z": (String) |
| - | "T": (String) | + | "AA": (String) |
| - | "U": (String) Código | + | "BA": (String) |
| - | - No caso das contas visualizadas no extrato, o sistema traz os seguintes dados: | + | "CA": (String) |
| - | "A": (String) | + | "DA": (String) |
| - | "B": (String) | + | "EA": (String) Código |
| - | "C": (String) | + | " |
| - | "D": (String) | + | " |
| + | "HA": (String) | ||
| + | "IA": (String) | ||
| + | "JA": (String) | ||
| + | "KA": (String) | ||
| - | - No caso dos documentos de pagamento visualizados no extrato, o sistema traz os seguintes dados: | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | } | ||
| - | |||
| - | </ | ||
| - | \\ | ||
| - | |||
| - | **Exemplo**: | ||
| - | |||
| - | <code javascript> | ||
| - | |||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ===== Retorno com Insucesso - JSON ===== | ||
| - | <code javascript> | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | \\ | ||
| - | |||
| - | ===== Possíveis Códigos de Retorno ===== | ||
| - | |Código|Mensagem|Body | ||
| - | |200|" | ||
| - | |500|" | ||
| - | |404|" | ||
| - | |422|" | ||
| - | |||
| - | \\ | ||
| Clique **[[=treinamentos: | Clique **[[=treinamentos: | ||
integracoes/web-services-retornar-conta-json.1709153176.txt.gz · Última modificação: 28/02/2024 20:46 por denys.tavares
