Neofin V1
latest
  • latest
  • english
  1. Enviando anexos
Neofin V1
latest
  • latest
  • english
  • Inicie sua jornada na Neofin
  • Preparando seus ambientes
  • Versão 1
    • API de Cobranças
      • Upsert de Cobranças
        • Como realizar o upsert de uma cobrança
        • Upsert de Cobranças
          POST
      • Buscando uma cobrança
        • Como buscar uma única cobrança
        • Buscando pelo Integration Identifier
          GET
        • Buscando pelo Billing Number
          GET
      • Marcando uma cobrança como paga
        • Como marcar uma cobrança como paga
        • Marcando como paga
          PUT
      • Cancelando uma cobrança
        • Como cancelar uma cobrança
        • Cancelando uma cobrança
          PUT
      • Listando suas cobranças
        • Como listar suas cobranças
        • Todas as cobranças
          GET
        • Cobranças por status
          GET
        • Cobranças por cliente
          GET
        • Cobranças por data de atualização
          GET
        • Eventos de cobranças
          GET
        • Eventos de uma uma cobrança por Integration Identifier
          GET
        • Cobranças por data de pagamento
          GET
      • Enviando anexos
        • Como enviar anexos
        • Anexando outros arquivos
          POST
        • Anexando uma NF a uma cobrança pelo Integration Identifier
          PUT
        • Anexando um Boleto a uma cobrança pelo Integration Identifier
          PUT
    • API de Clientes
      • Upsert de um cliente
        • Como realizar o upsert de um cliente
        • Upsert de clientes
          POST
      • Buscando um cliente
        • Buscando um cliente por Integration Identifier
          GET
        • Buscando um cliente pelo documento
          GET
    • Webhooks
      • Como preparar seus webhooks
    • FAQ
      • Dúvidas frequentes
  1. Enviando anexos

Anexando outros arquivos

Testing
Sandbox
https://api.sandbox.neofin.services
Sandbox
https://api.sandbox.neofin.services
POST
https://api.sandbox.neofin.services
/billing/attachments/{integration_identifier}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.sandbox.neofin.services/billing/attachments/your-billing-inner-id-123456' \
--header 'api-key: ' \
--header 'secret-key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
   "files": [
    {
        "file_name": "teste.pdf",
        "file": "JVBERi0xLjQKJcTl8uXrp/Og0MTGCjEgMCBvYmoKPDwvVHlwZS9DYXRhbG9nL1BhZ2VzIDIgMCBSPj4KZW5kb2JqCjIgMCBvYmoKPDwvVHlwZS9QYWdlcy9Db3VudCAxL0tpZHNbMyAwIFJdPj4KZW5kb2JqCjMgMCBvYmoKPDwvVHlwZS9QYWdlL1BhcmVudCAyIDAgUi9NZWRpYUJveFswIDAgNjEyIDc5Ml0vQ29udGVudHMgNCAwIFIvUmVzb3VyY2VzPDwvRm9udDw8L0YxIDUgMCBSPj4+Pj4+PgplbmRvYmoKNCAwIG9iago8PC9MZW5ndGggMAovRmlsdGVyL0ZsYXRlRGVjb2RlPj4Kc3RyZWFtCmVuZHN0cmVhbQplbmRvYmoKNSAwIG9iago8PC9UeXBlL0ZvbnQvU3VidHlwZS9UeXBlMS9CYXNlRm9udC9UaW1lcy1Sb21hbi9FbmNvZGluZy9XaW5BbnNpRW5jb2Rpbmc+PgplbmRvYmoKeHJlZgowIDYKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDAxIDAwMDAwIG4gCjAwMDAwMDAwMTUgMDAwMDAgbiAKMDAwMDAwMDA4MCAwMDAwMCBuIAowMDAwMDAwMTUzIDAwMDAwIG4gCjAwMDAwMDAyMjggMDAwMDAgbiAKdHJhaWxlcgo8PC9TaXplIDYvUm9vdCAxIDAgUi9JbmZvIDcgMCBSPj4Kc3RhcnR4cmVmCjI0NQolJUVPRgo="
    }
   ] 
}'
Response Response Example
200 - Example
{
    "message": "Attachment(s) processed.",
    "files_uploaded": [
        "teste.pdf",
        "teste2.pdf"
    ],
    "files_failed": []
}

Request

Path Params
integration_identifier
string 
required
Seu próprio Integration identifier da sua cobrança
Example:
your-billing-inner-id-123456
Header Params
api-key
string 
optional
Example:
{{API_KEY}}
secret-key
string 
optional
Example:
{{SECRET_KEY}}
Content-Type
string 
optional
Example:
application/json
Body Params application/json
files
array [object {2}] 
required
file_name
string 
required
Nome do arquivo com extensão
file
string 
required
base64 do arquivo
string 
required
Examples

Responses

🟢200Success
application/json
Body
message
string 
required
files_uploaded
array[string]
required
Arquivos que foram anexados com sucesso
files_failed
array[string]
required
Arquivos que falharam ao tentar ser anexados
🟠400Bad Request - File not found
🟠403Invalid API Keys
🟠404Billing not found
🔴500Internal Server Error
Previous
Como enviar anexos
Next
Anexando uma NF a uma cobrança pelo Integration Identifier
Built with