ShowByChargeid

Busca os boletos de sua conta com base no ID de sua criação.

https://sandbox.agilspotpay.com.br/api/boletos/showbychargeid/$fatura_id
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.agilspotpay.com.br/api/boletos/showbychargeid/$fatura_id',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Modelo de retorno 200 OK

[
    {
        "id": "60",
        "user_id": "50003",
        "fornecedor_id": "4003",
        "fatura_id": "4918",
        "nosso_numero": null,
        "bar_code": "00000.00000 00000.000000 00000.000000 0 00000000000000",
        "pix": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMyAzMyIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNMCAwaDMzdjMzSDB6Ii8+PHBhdGggc3Ryb2tlPSIjMDAwMDAwIiBkPSJNMCAwLjVoN200IDBoMm0xIDBoMW00IDBoMW0yIDBoMW0xIDBoMW0xIDBoN00wIDEuNWgxbTUgMGgxbTUgMGgxbTMgMGgzbTEgMGgxbTMgMGgxbTEgMGgxbTUgMGgxTTAgMi41aDFtMSAwaDNtMSAwaDFtMSAwaDJtMSAwaDJtMiAwaDJtMSAwaDRtMSAwaDJtMSAwaDFtMSAwaDNtMSAwaDFNMCAzLjVoMW0xIDBoM20xIDBoMW0xIDBoMW00IDBoMW0zIDBoMW0zIDBoMW0xIDBoMW0yIDBoMW0xIDBoM20xIDBoMU0wIDQuNWgxbTEgMGgzbTEgMGgxbTQgMGgxbTEgMGg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ee": null,
        "organization_id": "0",
        "valor_conta": "2500.00",
        "description": "Pagamento 1",
        "data_emissao": "2022-04-06",
        "data_vencimento": "2022-04-13",
        "month": "2022-04",
        "email": null,
        "autorizado_por": "Paulo Henrique",
        "state": "1",
        "boleto_gerado": "1",
        "boleto_status": "settled",
        "boleto_id": "1513631",
        "active": "0",
        "reset_hash": null,
        "reset_expiration_at": null,
        "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",
        "cliente_razao": "Paulo Sergio Henrique ME",
        "cliente_cnpj": "01.952.096/0001-50",
        "cliente_endereco": "Rua Kaxinawás",
        "cliente_estado": "AC",
        "cliente_numero": "12334",
        "cliente_cidade": "Plácido de Castro",
        "cliente_bairro": "Campinas",
        "cliente_cep": "69929-970",
        "cliente_name": null,
        "created_at": "2022-04-06 17:35:10",
        "updated_at": "2022-04-06 15:05:49",
        "deleted_at": null
    },

Modelo de retorno 404 Not Found

{
    "status": 404,
    "error": 404,
    "messages": {
        "error": "Ops, não encontramos esse boleto"
    }
}

Last updated