Boleto com fatura

Cria bolix com fatura. Gerada a partir do ID do Maestro que você desejar criar a fatura de cobrança.

Endpoint para gerar Token de acesso

https://sandbox.agilspotpay.com.br/api/Boletos/createBoletoFatura

Exemplo com as principais linguagem

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.agilspotpay.com.br/api/Boletos/createBoletoFatura/?autorizacao=Ana%20Maria&emissao=2022-04-06&vencimento=2022-04-24&valor=550&cpf=426.368.090-15&maestro_id=4024&description=Boleto%20Criado%20por%20API',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Modelo de retorno 201 Created

{
    "user_id": "50003",
    "fornecedor_id": "4037",
    "organization_id": "15",
    "fatura_id": 8593,
    "nosso_numero": "00036692600000000001",
    "active": 1,
    "boleto_gerado": 1,
    "state": 0,
    "boleto_id": 737,
    "bar_code": "00000.00000 00000.000000 00000.000000 0 00000000000000",
    "boleto_status": "waiting",
    "pix": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMyAzMyIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNMCAwaDMzdjMzSDB6Ii8+PHBhdGggc3Ryb2tlPSIjMDAwMDAwIiBkPSJNMCAwLjVoN200IDBoMm0xIDBoMW00IDBoMW0yIDBoMW0xIDBoMW0xIDBoN00wIDEuNWgxbTUgMGgxbTUgMGgxbTMgMGgzbTEgMGgxbTMgMGgxbTEgMGgxbTUgMGgxTTAgMi41aDFtMSAwaDNtMSAwaDFtMSAw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oM20xIDBoMW0zIDBoMW0xIDBoM20yIDBoMm0xIDBoMW03IDBoMW0xIDBoM00wIDMxLjVoMW01IDBoMW0zIDBoM20yIDBoM20zIDBoMW04IDBoM00wIDMyLjVoN20yIDBoMW0yIDBoMW0yIDBoMm0yIDBoMW0xIDBoMW0xIDBoNG0xIDBoMyIvPjwvc3ZnPg==",
    "autorizado_por": "Ana Maria",
    "data_vencimento": "2023-02-10",
    "data_emissao": "2023-01-25",
    "valor_conta": 5.5,
    "description": "Boleto Criado por API",
    "created_at": "2023-01-25",
    "updated_at": "2023-01-25",
    "month": "2023-01",
    "cliente_razao": "Empresa Feliz Ltda",
    "cliente_cnpj": "68878037000150",
    "cliente_endereco": "Rua Feliz",
    "cliente_estado": "EF",
    "cliente_numero": "808080",
    "cliente_cidade": "Cidade Feliz",
    "cliente_bairro": "Bairro Feliz",
    "cliente_cep": "14900000",
    "organization_name": "Yakisoba Seki ltda",
    "organization_cnpj": "32.105.947/0001-53",
    "organization_endereco": "Rua G",
    "organization_estado": "SP",
    "organization_numero": "23",
    "organization_cidade": "Presidente Prudente",
    "organization_bairro": "Parque Higienópolis",
    "organization_cep": "19053-640",
    "id": 237
}

Last updated