MENU navbar-image

Introdução

O WebPag é uma solução financeira para empresas de todos os tamanhos. Com ele, você pode gerenciar pagamentos, links de pagamento, recorrências e muito mais. Este é o ponto de partida para você começar a integrar com a nossa API. Se tiver alguma dúvida, entre em contato com o nosso suporte.

O acesso ao API é feito através de uma chave de autenticação. Para obter a sua chave, contate o nosso suporte para mais informações.

Autenticando requisições

Para autenticar as requisições, inclua um cabeçalho auth-token com o valor "{CHAVE_API}".

Todos os endpoints autenticados estão marcados com um rótulo requere autenticação na documentação abaixo.

Contate o nosso suporte para conseguir uma chave API.

Crediário

Listar crediários da empresa

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/installments';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'payer_id' => '1',
            'page' => '1',
            'per_page' => '15',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/installments?payer_id=1&page=1&per_page=15" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": [
        {
            "id": 1,
            "name": "Crediário do(a) Jefferson Souza",
            "business_id": 10,
            "payer_id": 209,
            "number_installments": 10,
            "amount_original": "1000.00",
            "first_date": "2023-08-29 00:00:00",
            "type": 10,
            "type_label": "Boleto",
            "status": 10,
            "status_label": "Ativo",
            "accept_after_due_date": null,
            "created_at": "2023-07-29 21:56:58",
            "updated_at": "2023-07-29 21:56:58",
            "payer": {
                "id": 209,
                "cpf_cnpj": "05920092700",
                "is_business": false,
                "email": "jefferson@ectechnologies.com.br",
                "first_name": "Jefferson",
                "last_name": "Souza",
                "gender": "M",
                "phone_number": "+55 (27) 99578-6767",
                "birth_date": "1988-05-11",
                "address": null,
                "use_boleto": true,
                "status": 10,
                "status_label": "Ativo",
                "created_at": "2023-07-10 21:24:48",
                "updated_at": "2023-10-20 15:23:02"
            },
            "installments": [
                {
                    "id": 1,
                    "installment_plan_id": 1,
                    "payment_id": 452,
                    "code": "64c5b55a31417",
                    "due_date": "2023-08-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 1,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 452,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "1/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 4,
                            "linha_digitavel": "00190000090341722699499999996178194570000010000",
                            "sequencial_code": 9999999996,
                            "nosso_numero": "00034172269999999996",
                            "codigo_barras": "00191945700000100000000003417226999999999617",
                            "due_date": "2023-08-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/dedf6e7b-950b"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:56",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/69fdba13f6f8a577c8ebe21d6/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 2,
                    "installment_plan_id": 1,
                    "payment_id": 453,
                    "code": "64c5b55a32915",
                    "due_date": "2023-09-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 2,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 453,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "2/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 5,
                            "linha_digitavel": "00190000090341722699499999995170294880000010000",
                            "sequencial_code": 9999999995,
                            "nosso_numero": "00034172269999999995",
                            "codigo_barras": "00192948800000100000000003417226999999999517",
                            "due_date": "2023-09-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/97489a4a-73b9"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/a53782e2d80f8b5c982716d1f/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 3,
                    "installment_plan_id": 1,
                    "payment_id": 454,
                    "code": "64c5b55a33b18",
                    "due_date": "2023-10-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 3,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 454,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "3/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 6,
                            "linha_digitavel": "00190000090341722699499999994173895180000010000",
                            "sequencial_code": 9999999994,
                            "nosso_numero": "00034172269999999994",
                            "codigo_barras": "00198951800000100000000003417226999999999417",
                            "due_date": "2023-10-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/704f4ca5-f096"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/39887ec8745459963897afa7f/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 4,
                    "installment_plan_id": 1,
                    "payment_id": 455,
                    "code": "64c5b55a353e4",
                    "due_date": "2023-11-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 4,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 455,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "4/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 7,
                            "linha_digitavel": "00190000090341722699499999993175195490000010000",
                            "sequencial_code": 9999999993,
                            "nosso_numero": "00034172269999999993",
                            "codigo_barras": "00191954900000100000000003417226999999999317",
                            "due_date": "2023-11-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/bf3bea52-9d28"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/6eeb21929f81c90f23da423b9/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 5,
                    "installment_plan_id": 1,
                    "payment_id": 456,
                    "code": "64c5b55a36320",
                    "due_date": "2023-12-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 5,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 456,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "5/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 8,
                            "linha_digitavel": "00190000090341722699499999992177895790000010000",
                            "sequencial_code": 9999999992,
                            "nosso_numero": "00034172269999999992",
                            "codigo_barras": "00198957900000100000000003417226999999999217",
                            "due_date": "2023-12-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/69e845ec-39f4"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/6633ac8ea9615b48e5336f0c9/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 6,
                    "installment_plan_id": 1,
                    "payment_id": 457,
                    "code": "64c5b55a3733f",
                    "due_date": "2024-01-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 6,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 457,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "6/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 9,
                            "linha_digitavel": "00190000090341722699499999991179996100000010000",
                            "sequencial_code": 9999999991,
                            "nosso_numero": "00034172269999999991",
                            "codigo_barras": "00199961000000100000000003417226999999999117",
                            "due_date": "2024-01-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/9501ed28-17df"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/b058cab9327727c397921a743/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 7,
                    "installment_plan_id": 1,
                    "payment_id": 458,
                    "code": "64c5b55a3a029",
                    "due_date": "2024-02-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 7,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 458,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "7/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 10,
                            "linha_digitavel": "00190000090341722699499999990171196410000010000",
                            "sequencial_code": 9999999990,
                            "nosso_numero": "00034172269999999990",
                            "codigo_barras": "00191964100000100000000003417226999999999017",
                            "due_date": "2024-02-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/97915983-5822"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/7fa920445ed2a3846c06af665/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 8,
                    "installment_plan_id": 1,
                    "payment_id": 459,
                    "code": "64c5b55a3b2b9",
                    "due_date": "2024-03-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 8,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 459,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "8/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 11,
                            "linha_digitavel": "00190000090341722699499999989173196700000010000",
                            "sequencial_code": 9999999989,
                            "nosso_numero": "00034172269999999989",
                            "codigo_barras": "00191967000000100000000003417226999999998917",
                            "due_date": "2024-03-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/42b79469-f29a"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/56fca9d74f377a6f148db3dcf/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 9,
                    "installment_plan_id": 1,
                    "payment_id": 460,
                    "code": "64c5b55a3c463",
                    "due_date": "2024-04-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 9,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 460,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "9/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 12,
                            "linha_digitavel": "00190000090341722699499999988175297010000010000",
                            "sequencial_code": 9999999988,
                            "nosso_numero": "00034172269999999988",
                            "codigo_barras": "00192970100000100000000003417226999999998817",
                            "due_date": "2024-04-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/2046481d-165f"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/0577bbc9ae8d32f9280e3f4d3/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 10,
                    "installment_plan_id": 1,
                    "payment_id": 461,
                    "code": "64c5b55a3d787",
                    "due_date": "2024-05-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 10,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 461,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "10/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 13,
                            "linha_digitavel": "00190000090341722699499999987177197310000010000",
                            "sequencial_code": 9999999987,
                            "nosso_numero": "00034172269999999987",
                            "codigo_barras": "00191973100000100000000003417226999999998717",
                            "due_date": "2024-05-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/c2f602fe-4a15"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/4dd4462d29799375f740c06e5/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                }
            ]
        },
        {
            "id": 1,
            "name": "Crediário do(a) Jefferson Souza",
            "business_id": 10,
            "payer_id": 209,
            "number_installments": 10,
            "amount_original": "1000.00",
            "first_date": "2023-08-29 00:00:00",
            "type": 10,
            "type_label": "Boleto",
            "status": 10,
            "status_label": "Ativo",
            "accept_after_due_date": null,
            "created_at": "2023-07-29 21:56:58",
            "updated_at": "2023-07-29 21:56:58",
            "payer": {
                "id": 209,
                "cpf_cnpj": "05920092700",
                "is_business": false,
                "email": "jefferson@ectechnologies.com.br",
                "first_name": "Jefferson",
                "last_name": "Souza",
                "gender": "M",
                "phone_number": "+55 (27) 99578-6767",
                "birth_date": "1988-05-11",
                "address": null,
                "use_boleto": true,
                "status": 10,
                "status_label": "Ativo",
                "created_at": "2023-07-10 21:24:48",
                "updated_at": "2023-10-20 15:23:02"
            },
            "installments": [
                {
                    "id": 1,
                    "installment_plan_id": 1,
                    "payment_id": 452,
                    "code": "64c5b55a31417",
                    "due_date": "2023-08-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 1,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 452,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "1/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 4,
                            "linha_digitavel": "00190000090341722699499999996178194570000010000",
                            "sequencial_code": 9999999996,
                            "nosso_numero": "00034172269999999996",
                            "codigo_barras": "00191945700000100000000003417226999999999617",
                            "due_date": "2023-08-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/dedf6e7b-950b"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:56",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/69fdba13f6f8a577c8ebe21d6/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 2,
                    "installment_plan_id": 1,
                    "payment_id": 453,
                    "code": "64c5b55a32915",
                    "due_date": "2023-09-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 2,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 453,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "2/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 5,
                            "linha_digitavel": "00190000090341722699499999995170294880000010000",
                            "sequencial_code": 9999999995,
                            "nosso_numero": "00034172269999999995",
                            "codigo_barras": "00192948800000100000000003417226999999999517",
                            "due_date": "2023-09-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/97489a4a-73b9"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/a53782e2d80f8b5c982716d1f/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 3,
                    "installment_plan_id": 1,
                    "payment_id": 454,
                    "code": "64c5b55a33b18",
                    "due_date": "2023-10-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 3,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 454,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "3/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 6,
                            "linha_digitavel": "00190000090341722699499999994173895180000010000",
                            "sequencial_code": 9999999994,
                            "nosso_numero": "00034172269999999994",
                            "codigo_barras": "00198951800000100000000003417226999999999417",
                            "due_date": "2023-10-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/704f4ca5-f096"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/39887ec8745459963897afa7f/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 4,
                    "installment_plan_id": 1,
                    "payment_id": 455,
                    "code": "64c5b55a353e4",
                    "due_date": "2023-11-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 4,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 455,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "4/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 7,
                            "linha_digitavel": "00190000090341722699499999993175195490000010000",
                            "sequencial_code": 9999999993,
                            "nosso_numero": "00034172269999999993",
                            "codigo_barras": "00191954900000100000000003417226999999999317",
                            "due_date": "2023-11-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/bf3bea52-9d28"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/6eeb21929f81c90f23da423b9/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 5,
                    "installment_plan_id": 1,
                    "payment_id": 456,
                    "code": "64c5b55a36320",
                    "due_date": "2023-12-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 5,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 456,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "5/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 8,
                            "linha_digitavel": "00190000090341722699499999992177895790000010000",
                            "sequencial_code": 9999999992,
                            "nosso_numero": "00034172269999999992",
                            "codigo_barras": "00198957900000100000000003417226999999999217",
                            "due_date": "2023-12-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/69e845ec-39f4"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/6633ac8ea9615b48e5336f0c9/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 6,
                    "installment_plan_id": 1,
                    "payment_id": 457,
                    "code": "64c5b55a3733f",
                    "due_date": "2024-01-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 6,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 457,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "6/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 9,
                            "linha_digitavel": "00190000090341722699499999991179996100000010000",
                            "sequencial_code": 9999999991,
                            "nosso_numero": "00034172269999999991",
                            "codigo_barras": "00199961000000100000000003417226999999999117",
                            "due_date": "2024-01-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/9501ed28-17df"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/b058cab9327727c397921a743/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 7,
                    "installment_plan_id": 1,
                    "payment_id": 458,
                    "code": "64c5b55a3a029",
                    "due_date": "2024-02-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 7,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 458,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "7/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 10,
                            "linha_digitavel": "00190000090341722699499999990171196410000010000",
                            "sequencial_code": 9999999990,
                            "nosso_numero": "00034172269999999990",
                            "codigo_barras": "00191964100000100000000003417226999999999017",
                            "due_date": "2024-02-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/97915983-5822"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/7fa920445ed2a3846c06af665/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 8,
                    "installment_plan_id": 1,
                    "payment_id": 459,
                    "code": "64c5b55a3b2b9",
                    "due_date": "2024-03-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 8,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 459,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "8/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 11,
                            "linha_digitavel": "00190000090341722699499999989173196700000010000",
                            "sequencial_code": 9999999989,
                            "nosso_numero": "00034172269999999989",
                            "codigo_barras": "00191967000000100000000003417226999999998917",
                            "due_date": "2024-03-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/42b79469-f29a"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/56fca9d74f377a6f148db3dcf/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 9,
                    "installment_plan_id": 1,
                    "payment_id": 460,
                    "code": "64c5b55a3c463",
                    "due_date": "2024-04-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 9,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 460,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "9/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 12,
                            "linha_digitavel": "00190000090341722699499999988175297010000010000",
                            "sequencial_code": 9999999988,
                            "nosso_numero": "00034172269999999988",
                            "codigo_barras": "00192970100000100000000003417226999999998817",
                            "due_date": "2024-04-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/2046481d-165f"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/0577bbc9ae8d32f9280e3f4d3/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                },
                {
                    "id": 10,
                    "installment_plan_id": 1,
                    "payment_id": 461,
                    "code": "64c5b55a3d787",
                    "due_date": "2024-05-29 00:00:00",
                    "liquidation_date": null,
                    "payment_info": null,
                    "number": 10,
                    "amount": "100.00",
                    "status": 40,
                    "status_label": "Cancelado",
                    "payment": {
                        "id": 461,
                        "business": {
                            "id": 10,
                            "name": "Empresa deletada"
                        },
                        "payer_id": 209,
                        "card_id": null,
                        "payer": {
                            "id": 209,
                            "cpf_cnpj": "05920092700",
                            "is_business": false,
                            "email": "jefferson@ectechnologies.com.br",
                            "first_name": "Jefferson",
                            "last_name": "Souza",
                            "gender": "M",
                            "phone_number": "+55 (27) 99578-6767",
                            "birth_date": "1988-05-11",
                            "address": null,
                            "use_boleto": true,
                            "status": 10,
                            "status_label": "Ativo",
                            "created_at": "2023-07-10 21:24:48",
                            "updated_at": "2023-10-20 15:23:02"
                        },
                        "name": "10/10 - Crediário #1",
                        "amount": 10000,
                        "amount_refunded": 0,
                        "fee_value": null,
                        "refunded_fee": 0,
                        "installments": 1,
                        "is_recurrent": false,
                        "recurrence_code": null,
                        "frequency": null,
                        "method": 50,
                        "method_label": "Crediário Boleto",
                        "method_slug": null,
                        "boleto": {
                            "id": 13,
                            "linha_digitavel": "00190000090341722699499999987177197310000010000",
                            "sequencial_code": 9999999987,
                            "nosso_numero": "00034172269999999987",
                            "codigo_barras": "00191973100000100000000003417226999999998717",
                            "due_date": "2024-05-29T03:00:00.000000Z",
                            "issue_date": "2023-07-29T03:00:00.000000Z",
                            "amount": 100,
                            "interest": null,
                            "fine": null,
                            "accept_after_due_date": null,
                            "boleto_url": "https://api.webpag.com.br/r/c2f602fe-4a15"
                        },
                        "notification_url": null,
                        "pix": null,
                        "installments_paid": 0,
                        "spplited": false,
                        "soft_descriptor": null,
                        "order_id": null,
                        "active": true,
                        "status": 60,
                        "status_label": "Cancelado",
                        "start_date": null,
                        "next_date": null,
                        "next_recurrence_date": null,
                        "refunds": [],
                        "created_at": "2023-07-29 21:57",
                        "paid_at": null,
                        "updated_at": "2025-10-13 06:43",
                        "receipt_pdf_path": "https://api.webpag.com.br/payments/4dd4462d29799375f740c06e5/pdf",
                        "card_flag": null,
                        "card_flag_label": null
                    }
                }
            ]
        }
    ]
}
 

Requisição   

GET api/installments

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de Consulta

payer_id   integer  optional  

O ID do pagador. Example: 1

page   integer  optional  

O número da página. Example: 1

per_page   integer  optional  

Itens por página. Example: 15

Criar um novo crediário

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/installments/register';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'amount' => 2500,
            'first_date' => '2024-01-01',
            'number_installments' => 2,
            'payer' => 881,
            'accept_after_due_date' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/installments/register" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 2500,
    \"first_date\": \"2024-01-01\",
    \"number_installments\": 2,
    \"payer\": 881,
    \"accept_after_due_date\": true
}"

Exemplo de Resposta (200):


{
    "data": {
        "id": 1,
        "name": "Crediário do(a) Jefferson Souza",
        "business_id": 10,
        "payer_id": 209,
        "number_installments": 10,
        "amount_original": "1000.00",
        "first_date": "2023-08-29 00:00:00",
        "type": 10,
        "type_label": "Boleto",
        "status": 10,
        "status_label": "Ativo",
        "accept_after_due_date": null,
        "created_at": "2023-07-29 21:56:58",
        "updated_at": "2023-07-29 21:56:58",
        "payer": {
            "id": 209,
            "cpf_cnpj": "05920092700",
            "is_business": false,
            "email": "jefferson@ectechnologies.com.br",
            "first_name": "Jefferson",
            "last_name": "Souza",
            "gender": "M",
            "phone_number": "+55 (27) 99578-6767",
            "birth_date": "1988-05-11",
            "address": null,
            "use_boleto": true,
            "status": 10,
            "status_label": "Ativo",
            "created_at": "2023-07-10 21:24:48",
            "updated_at": "2023-10-20 15:23:02"
        },
        "installments": [
            {
                "id": 1,
                "installment_plan_id": 1,
                "payment_id": 452,
                "code": "64c5b55a31417",
                "due_date": "2023-08-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 1,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 452,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "1/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 4,
                        "linha_digitavel": "00190000090341722699499999996178194570000010000",
                        "sequencial_code": 9999999996,
                        "nosso_numero": "00034172269999999996",
                        "codigo_barras": "00191945700000100000000003417226999999999617",
                        "due_date": "2023-08-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/dedf6e7b-950b"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:56",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/69fdba13f6f8a577c8ebe21d6/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 2,
                "installment_plan_id": 1,
                "payment_id": 453,
                "code": "64c5b55a32915",
                "due_date": "2023-09-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 2,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 453,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "2/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 5,
                        "linha_digitavel": "00190000090341722699499999995170294880000010000",
                        "sequencial_code": 9999999995,
                        "nosso_numero": "00034172269999999995",
                        "codigo_barras": "00192948800000100000000003417226999999999517",
                        "due_date": "2023-09-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/97489a4a-73b9"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/a53782e2d80f8b5c982716d1f/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 3,
                "installment_plan_id": 1,
                "payment_id": 454,
                "code": "64c5b55a33b18",
                "due_date": "2023-10-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 3,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 454,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "3/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 6,
                        "linha_digitavel": "00190000090341722699499999994173895180000010000",
                        "sequencial_code": 9999999994,
                        "nosso_numero": "00034172269999999994",
                        "codigo_barras": "00198951800000100000000003417226999999999417",
                        "due_date": "2023-10-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/704f4ca5-f096"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/39887ec8745459963897afa7f/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 4,
                "installment_plan_id": 1,
                "payment_id": 455,
                "code": "64c5b55a353e4",
                "due_date": "2023-11-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 4,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 455,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "4/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 7,
                        "linha_digitavel": "00190000090341722699499999993175195490000010000",
                        "sequencial_code": 9999999993,
                        "nosso_numero": "00034172269999999993",
                        "codigo_barras": "00191954900000100000000003417226999999999317",
                        "due_date": "2023-11-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/bf3bea52-9d28"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/6eeb21929f81c90f23da423b9/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 5,
                "installment_plan_id": 1,
                "payment_id": 456,
                "code": "64c5b55a36320",
                "due_date": "2023-12-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 5,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 456,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "5/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 8,
                        "linha_digitavel": "00190000090341722699499999992177895790000010000",
                        "sequencial_code": 9999999992,
                        "nosso_numero": "00034172269999999992",
                        "codigo_barras": "00198957900000100000000003417226999999999217",
                        "due_date": "2023-12-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/69e845ec-39f4"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/6633ac8ea9615b48e5336f0c9/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 6,
                "installment_plan_id": 1,
                "payment_id": 457,
                "code": "64c5b55a3733f",
                "due_date": "2024-01-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 6,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 457,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "6/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 9,
                        "linha_digitavel": "00190000090341722699499999991179996100000010000",
                        "sequencial_code": 9999999991,
                        "nosso_numero": "00034172269999999991",
                        "codigo_barras": "00199961000000100000000003417226999999999117",
                        "due_date": "2024-01-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/9501ed28-17df"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/b058cab9327727c397921a743/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 7,
                "installment_plan_id": 1,
                "payment_id": 458,
                "code": "64c5b55a3a029",
                "due_date": "2024-02-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 7,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 458,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "7/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 10,
                        "linha_digitavel": "00190000090341722699499999990171196410000010000",
                        "sequencial_code": 9999999990,
                        "nosso_numero": "00034172269999999990",
                        "codigo_barras": "00191964100000100000000003417226999999999017",
                        "due_date": "2024-02-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/97915983-5822"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/7fa920445ed2a3846c06af665/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 8,
                "installment_plan_id": 1,
                "payment_id": 459,
                "code": "64c5b55a3b2b9",
                "due_date": "2024-03-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 8,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 459,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "8/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 11,
                        "linha_digitavel": "00190000090341722699499999989173196700000010000",
                        "sequencial_code": 9999999989,
                        "nosso_numero": "00034172269999999989",
                        "codigo_barras": "00191967000000100000000003417226999999998917",
                        "due_date": "2024-03-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/42b79469-f29a"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/56fca9d74f377a6f148db3dcf/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 9,
                "installment_plan_id": 1,
                "payment_id": 460,
                "code": "64c5b55a3c463",
                "due_date": "2024-04-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 9,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 460,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "9/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 12,
                        "linha_digitavel": "00190000090341722699499999988175297010000010000",
                        "sequencial_code": 9999999988,
                        "nosso_numero": "00034172269999999988",
                        "codigo_barras": "00192970100000100000000003417226999999998817",
                        "due_date": "2024-04-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/2046481d-165f"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/0577bbc9ae8d32f9280e3f4d3/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 10,
                "installment_plan_id": 1,
                "payment_id": 461,
                "code": "64c5b55a3d787",
                "due_date": "2024-05-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 10,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 461,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "10/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 13,
                        "linha_digitavel": "00190000090341722699499999987177197310000010000",
                        "sequencial_code": 9999999987,
                        "nosso_numero": "00034172269999999987",
                        "codigo_barras": "00191973100000100000000003417226999999998717",
                        "due_date": "2024-05-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/c2f602fe-4a15"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/4dd4462d29799375f740c06e5/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            }
        ]
    }
}
 

Requisição   

POST api/installments/register

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros do Corpo

amount   integer   

O valor total a ser pago em centavos. Example: 2500

first_date   date   

A data do primeiro pagamento. Example: 2024-01-01

number_installments   integer   

O número de parcelas. Example: 2

payer   integer   

O ID do pagador. Example: 881

accept_after_due_date   boolean  optional  

Aceitar pagamento após o vencimento. Example: true

Cancelar um crediário

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/installments/1/cancel';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/installments/1/cancel" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": {
        "id": 1,
        "name": "Crediário do(a) Jefferson Souza",
        "business_id": 10,
        "payer_id": 209,
        "number_installments": 10,
        "amount_original": "1000.00",
        "first_date": "2023-08-29 00:00:00",
        "type": 10,
        "type_label": "Boleto",
        "status": 10,
        "status_label": "Ativo",
        "accept_after_due_date": null,
        "created_at": "2023-07-29 21:56:58",
        "updated_at": "2023-07-29 21:56:58",
        "payer": {
            "id": 209,
            "cpf_cnpj": "05920092700",
            "is_business": false,
            "email": "jefferson@ectechnologies.com.br",
            "first_name": "Jefferson",
            "last_name": "Souza",
            "gender": "M",
            "phone_number": "+55 (27) 99578-6767",
            "birth_date": "1988-05-11",
            "address": null,
            "use_boleto": true,
            "status": 10,
            "status_label": "Ativo",
            "created_at": "2023-07-10 21:24:48",
            "updated_at": "2023-10-20 15:23:02"
        },
        "installments": [
            {
                "id": 1,
                "installment_plan_id": 1,
                "payment_id": 452,
                "code": "64c5b55a31417",
                "due_date": "2023-08-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 1,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 452,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "1/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 4,
                        "linha_digitavel": "00190000090341722699499999996178194570000010000",
                        "sequencial_code": 9999999996,
                        "nosso_numero": "00034172269999999996",
                        "codigo_barras": "00191945700000100000000003417226999999999617",
                        "due_date": "2023-08-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/dedf6e7b-950b"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:56",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/69fdba13f6f8a577c8ebe21d6/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 2,
                "installment_plan_id": 1,
                "payment_id": 453,
                "code": "64c5b55a32915",
                "due_date": "2023-09-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 2,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 453,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "2/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 5,
                        "linha_digitavel": "00190000090341722699499999995170294880000010000",
                        "sequencial_code": 9999999995,
                        "nosso_numero": "00034172269999999995",
                        "codigo_barras": "00192948800000100000000003417226999999999517",
                        "due_date": "2023-09-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/97489a4a-73b9"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/a53782e2d80f8b5c982716d1f/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 3,
                "installment_plan_id": 1,
                "payment_id": 454,
                "code": "64c5b55a33b18",
                "due_date": "2023-10-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 3,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 454,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "3/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 6,
                        "linha_digitavel": "00190000090341722699499999994173895180000010000",
                        "sequencial_code": 9999999994,
                        "nosso_numero": "00034172269999999994",
                        "codigo_barras": "00198951800000100000000003417226999999999417",
                        "due_date": "2023-10-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/704f4ca5-f096"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/39887ec8745459963897afa7f/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 4,
                "installment_plan_id": 1,
                "payment_id": 455,
                "code": "64c5b55a353e4",
                "due_date": "2023-11-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 4,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 455,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "4/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 7,
                        "linha_digitavel": "00190000090341722699499999993175195490000010000",
                        "sequencial_code": 9999999993,
                        "nosso_numero": "00034172269999999993",
                        "codigo_barras": "00191954900000100000000003417226999999999317",
                        "due_date": "2023-11-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/bf3bea52-9d28"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/6eeb21929f81c90f23da423b9/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 5,
                "installment_plan_id": 1,
                "payment_id": 456,
                "code": "64c5b55a36320",
                "due_date": "2023-12-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 5,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 456,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "5/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 8,
                        "linha_digitavel": "00190000090341722699499999992177895790000010000",
                        "sequencial_code": 9999999992,
                        "nosso_numero": "00034172269999999992",
                        "codigo_barras": "00198957900000100000000003417226999999999217",
                        "due_date": "2023-12-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/69e845ec-39f4"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/6633ac8ea9615b48e5336f0c9/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 6,
                "installment_plan_id": 1,
                "payment_id": 457,
                "code": "64c5b55a3733f",
                "due_date": "2024-01-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 6,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 457,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "6/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 9,
                        "linha_digitavel": "00190000090341722699499999991179996100000010000",
                        "sequencial_code": 9999999991,
                        "nosso_numero": "00034172269999999991",
                        "codigo_barras": "00199961000000100000000003417226999999999117",
                        "due_date": "2024-01-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/9501ed28-17df"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/b058cab9327727c397921a743/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 7,
                "installment_plan_id": 1,
                "payment_id": 458,
                "code": "64c5b55a3a029",
                "due_date": "2024-02-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 7,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 458,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "7/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 10,
                        "linha_digitavel": "00190000090341722699499999990171196410000010000",
                        "sequencial_code": 9999999990,
                        "nosso_numero": "00034172269999999990",
                        "codigo_barras": "00191964100000100000000003417226999999999017",
                        "due_date": "2024-02-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/97915983-5822"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/7fa920445ed2a3846c06af665/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 8,
                "installment_plan_id": 1,
                "payment_id": 459,
                "code": "64c5b55a3b2b9",
                "due_date": "2024-03-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 8,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 459,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "8/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 11,
                        "linha_digitavel": "00190000090341722699499999989173196700000010000",
                        "sequencial_code": 9999999989,
                        "nosso_numero": "00034172269999999989",
                        "codigo_barras": "00191967000000100000000003417226999999998917",
                        "due_date": "2024-03-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/42b79469-f29a"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/56fca9d74f377a6f148db3dcf/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 9,
                "installment_plan_id": 1,
                "payment_id": 460,
                "code": "64c5b55a3c463",
                "due_date": "2024-04-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 9,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 460,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "9/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 12,
                        "linha_digitavel": "00190000090341722699499999988175297010000010000",
                        "sequencial_code": 9999999988,
                        "nosso_numero": "00034172269999999988",
                        "codigo_barras": "00192970100000100000000003417226999999998817",
                        "due_date": "2024-04-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/2046481d-165f"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/0577bbc9ae8d32f9280e3f4d3/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 10,
                "installment_plan_id": 1,
                "payment_id": 461,
                "code": "64c5b55a3d787",
                "due_date": "2024-05-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 10,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 461,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "10/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 13,
                        "linha_digitavel": "00190000090341722699499999987177197310000010000",
                        "sequencial_code": 9999999987,
                        "nosso_numero": "00034172269999999987",
                        "codigo_barras": "00191973100000100000000003417226999999998717",
                        "due_date": "2024-05-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/c2f602fe-4a15"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/4dd4462d29799375f740c06e5/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            }
        ]
    }
}
 

Requisição   

POST api/installments/{installmentPlan}/cancel

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

installmentPlan   integer   

O ID do crediário. Example: 1

Consultar um crediário

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/installments/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/installments/1" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": {
        "id": 1,
        "name": "Crediário do(a) Jefferson Souza",
        "business_id": 10,
        "payer_id": 209,
        "number_installments": 10,
        "amount_original": "1000.00",
        "first_date": "2023-08-29 00:00:00",
        "type": 10,
        "type_label": "Boleto",
        "status": 10,
        "status_label": "Ativo",
        "accept_after_due_date": null,
        "created_at": "2023-07-29 21:56:58",
        "updated_at": "2023-07-29 21:56:58",
        "payer": {
            "id": 209,
            "cpf_cnpj": "05920092700",
            "is_business": false,
            "email": "jefferson@ectechnologies.com.br",
            "first_name": "Jefferson",
            "last_name": "Souza",
            "gender": "M",
            "phone_number": "+55 (27) 99578-6767",
            "birth_date": "1988-05-11",
            "address": null,
            "use_boleto": true,
            "status": 10,
            "status_label": "Ativo",
            "created_at": "2023-07-10 21:24:48",
            "updated_at": "2023-10-20 15:23:02"
        },
        "installments": [
            {
                "id": 1,
                "installment_plan_id": 1,
                "payment_id": 452,
                "code": "64c5b55a31417",
                "due_date": "2023-08-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 1,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 452,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "1/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 4,
                        "linha_digitavel": "00190000090341722699499999996178194570000010000",
                        "sequencial_code": 9999999996,
                        "nosso_numero": "00034172269999999996",
                        "codigo_barras": "00191945700000100000000003417226999999999617",
                        "due_date": "2023-08-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/dedf6e7b-950b"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:56",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/69fdba13f6f8a577c8ebe21d6/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 2,
                "installment_plan_id": 1,
                "payment_id": 453,
                "code": "64c5b55a32915",
                "due_date": "2023-09-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 2,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 453,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "2/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 5,
                        "linha_digitavel": "00190000090341722699499999995170294880000010000",
                        "sequencial_code": 9999999995,
                        "nosso_numero": "00034172269999999995",
                        "codigo_barras": "00192948800000100000000003417226999999999517",
                        "due_date": "2023-09-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/97489a4a-73b9"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/a53782e2d80f8b5c982716d1f/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 3,
                "installment_plan_id": 1,
                "payment_id": 454,
                "code": "64c5b55a33b18",
                "due_date": "2023-10-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 3,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 454,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "3/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 6,
                        "linha_digitavel": "00190000090341722699499999994173895180000010000",
                        "sequencial_code": 9999999994,
                        "nosso_numero": "00034172269999999994",
                        "codigo_barras": "00198951800000100000000003417226999999999417",
                        "due_date": "2023-10-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/704f4ca5-f096"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/39887ec8745459963897afa7f/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 4,
                "installment_plan_id": 1,
                "payment_id": 455,
                "code": "64c5b55a353e4",
                "due_date": "2023-11-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 4,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 455,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "4/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 7,
                        "linha_digitavel": "00190000090341722699499999993175195490000010000",
                        "sequencial_code": 9999999993,
                        "nosso_numero": "00034172269999999993",
                        "codigo_barras": "00191954900000100000000003417226999999999317",
                        "due_date": "2023-11-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/bf3bea52-9d28"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/6eeb21929f81c90f23da423b9/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 5,
                "installment_plan_id": 1,
                "payment_id": 456,
                "code": "64c5b55a36320",
                "due_date": "2023-12-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 5,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 456,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "5/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 8,
                        "linha_digitavel": "00190000090341722699499999992177895790000010000",
                        "sequencial_code": 9999999992,
                        "nosso_numero": "00034172269999999992",
                        "codigo_barras": "00198957900000100000000003417226999999999217",
                        "due_date": "2023-12-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/69e845ec-39f4"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/6633ac8ea9615b48e5336f0c9/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 6,
                "installment_plan_id": 1,
                "payment_id": 457,
                "code": "64c5b55a3733f",
                "due_date": "2024-01-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 6,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 457,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "6/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 9,
                        "linha_digitavel": "00190000090341722699499999991179996100000010000",
                        "sequencial_code": 9999999991,
                        "nosso_numero": "00034172269999999991",
                        "codigo_barras": "00199961000000100000000003417226999999999117",
                        "due_date": "2024-01-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/9501ed28-17df"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/b058cab9327727c397921a743/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 7,
                "installment_plan_id": 1,
                "payment_id": 458,
                "code": "64c5b55a3a029",
                "due_date": "2024-02-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 7,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 458,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "7/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 10,
                        "linha_digitavel": "00190000090341722699499999990171196410000010000",
                        "sequencial_code": 9999999990,
                        "nosso_numero": "00034172269999999990",
                        "codigo_barras": "00191964100000100000000003417226999999999017",
                        "due_date": "2024-02-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/97915983-5822"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/7fa920445ed2a3846c06af665/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 8,
                "installment_plan_id": 1,
                "payment_id": 459,
                "code": "64c5b55a3b2b9",
                "due_date": "2024-03-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 8,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 459,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "8/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 11,
                        "linha_digitavel": "00190000090341722699499999989173196700000010000",
                        "sequencial_code": 9999999989,
                        "nosso_numero": "00034172269999999989",
                        "codigo_barras": "00191967000000100000000003417226999999998917",
                        "due_date": "2024-03-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/42b79469-f29a"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/56fca9d74f377a6f148db3dcf/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 9,
                "installment_plan_id": 1,
                "payment_id": 460,
                "code": "64c5b55a3c463",
                "due_date": "2024-04-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 9,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 460,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "9/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 12,
                        "linha_digitavel": "00190000090341722699499999988175297010000010000",
                        "sequencial_code": 9999999988,
                        "nosso_numero": "00034172269999999988",
                        "codigo_barras": "00192970100000100000000003417226999999998817",
                        "due_date": "2024-04-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/2046481d-165f"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/0577bbc9ae8d32f9280e3f4d3/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            },
            {
                "id": 10,
                "installment_plan_id": 1,
                "payment_id": 461,
                "code": "64c5b55a3d787",
                "due_date": "2024-05-29 00:00:00",
                "liquidation_date": null,
                "payment_info": null,
                "number": 10,
                "amount": "100.00",
                "status": 40,
                "status_label": "Cancelado",
                "payment": {
                    "id": 461,
                    "business": {
                        "id": 10,
                        "name": "Empresa deletada"
                    },
                    "payer_id": 209,
                    "card_id": null,
                    "payer": {
                        "id": 209,
                        "cpf_cnpj": "05920092700",
                        "is_business": false,
                        "email": "jefferson@ectechnologies.com.br",
                        "first_name": "Jefferson",
                        "last_name": "Souza",
                        "gender": "M",
                        "phone_number": "+55 (27) 99578-6767",
                        "birth_date": "1988-05-11",
                        "address": null,
                        "use_boleto": true,
                        "status": 10,
                        "status_label": "Ativo",
                        "created_at": "2023-07-10 21:24:48",
                        "updated_at": "2023-10-20 15:23:02"
                    },
                    "name": "10/10 - Crediário #1",
                    "amount": 10000,
                    "amount_refunded": 0,
                    "fee_value": null,
                    "refunded_fee": 0,
                    "installments": 1,
                    "is_recurrent": false,
                    "recurrence_code": null,
                    "frequency": null,
                    "method": 50,
                    "method_label": "Crediário Boleto",
                    "method_slug": null,
                    "boleto": {
                        "id": 13,
                        "linha_digitavel": "00190000090341722699499999987177197310000010000",
                        "sequencial_code": 9999999987,
                        "nosso_numero": "00034172269999999987",
                        "codigo_barras": "00191973100000100000000003417226999999998717",
                        "due_date": "2024-05-29T03:00:00.000000Z",
                        "issue_date": "2023-07-29T03:00:00.000000Z",
                        "amount": 100,
                        "interest": null,
                        "fine": null,
                        "accept_after_due_date": null,
                        "boleto_url": "https://api.webpag.com.br/r/c2f602fe-4a15"
                    },
                    "notification_url": null,
                    "pix": null,
                    "installments_paid": 0,
                    "spplited": false,
                    "soft_descriptor": null,
                    "order_id": null,
                    "active": true,
                    "status": 60,
                    "status_label": "Cancelado",
                    "start_date": null,
                    "next_date": null,
                    "next_recurrence_date": null,
                    "refunds": [],
                    "created_at": "2023-07-29 21:57",
                    "paid_at": null,
                    "updated_at": "2025-10-13 06:43",
                    "receipt_pdf_path": "https://api.webpag.com.br/payments/4dd4462d29799375f740c06e5/pdf",
                    "card_flag": null,
                    "card_flag_label": null
                }
            }
        ]
    }
}
 

Requisição   

GET api/installments/{installmentPlan_id}

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

installmentPlan_id   integer   

The ID of the installmentPlan. Example: 1

installmentPlan   integer   

O ID do crediário. Example: 125

Empresa

Verificar autenticação do usuário

requires authentication

Utilizado para autenticar e verificar um usuário da empresa no sistema.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/authenticate';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => 'jacobi.sherwood@example.com',
            'password' => 'nNWP>>',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/authenticate" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"jacobi.sherwood@example.com\",
    \"password\": \"nNWP>>\"
}"

Exemplo de Resposta (200):


{
    "id": 1,
    "business_id": 123,
    "email": "user@example.com",
    "name": "Nome do Usuário"
}
 

Exemplo de Resposta (401):


{
    "message": "Unauthorized"
}
 

Requisição   

POST api/authenticate

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros do Corpo

email   string   

O endereço de e-mail do usuário. Exemplo: user@example.com Example: jacobi.sherwood@example.com

password   string   

A senha do usuário. Exemplo: secret123 Example: nNWP>>

Dados da empresa logada

requires authentication

Retorna os dados da empresa em que o auth-token está associado.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/me';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/me" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "id": 1,
    "name": "Empresa Exemplo",
    "notification_email": "empresa@example.com",
    "cnpj": "12.345.678/0001-99"
}
 

Requisição   

GET api/me

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Chave publica para tokenizacao do cartao

requires authentication

Para facilitar a integração no frontend, recomendamos o uso do pacote oficial NPM: https://www.npmjs.com/package/@webpag/card-tokenizer/

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/card-token/public-key';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/card-token/public-key" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "public_key": "<base64 key>"
}
 

Requisição   

GET api/card-token/public-key

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Criar uma nova filial

requires authentication

Cria uma nova filial vinculada à empresa autenticada como matriz. A Filial herda todas as configurações de taxas da matriz. Dados que não forem passados como parâmetro serão herdado da matriz.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/franchises';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'razao_social' => 'Filial Norte LTDA',
            'cnpj' => '12.345.678/0001-99',
            'transfer_frequency' => 7,
            'credit_installment_limit' => 12,
            'notification_email' => 'Filial@exemplo.com',
            'gateway_name' => 'FilialNorte',
            'account_bank_code' => '341',
            'account_type' => 'F',
            'account_holder' => 'Empresa Filial LTDA',
            'account_document' => '12.345.678/0001-99',
            'account_agency' => '1234',
            'account_number' => '12345-6',
            'pix_key_type' => 20,
            'pix_key' => '12345678000199',
            'phone_number' => '(41) 99999-9999',
            'address' => [
                'street' => 'Rua Exemplo',
                'number' => '123',
                'city' => 'Curitiba',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/franchises" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"razao_social\": \"Filial Norte LTDA\",
    \"cnpj\": \"12.345.678\\/0001-99\",
    \"transfer_frequency\": 7,
    \"credit_installment_limit\": 12,
    \"notification_email\": \"Filial@exemplo.com\",
    \"gateway_name\": \"FilialNorte\",
    \"account_bank_code\": \"341\",
    \"account_type\": \"F\",
    \"account_holder\": \"Empresa Filial LTDA\",
    \"account_document\": \"12.345.678\\/0001-99\",
    \"account_agency\": \"1234\",
    \"account_number\": \"12345-6\",
    \"pix_key_type\": 20,
    \"pix_key\": \"12345678000199\",
    \"phone_number\": \"(41) 99999-9999\",
    \"address\": {
        \"street\": \"Rua Exemplo\",
        \"number\": \"123\",
        \"city\": \"Curitiba\"
    }
}"

Exemplo de Resposta (200):


{
    "data": {
        "franchise": {
            "id": 306,
            "name": "Franquia Norte LTDA"
        },
        "api_token": "c5cab386-88d5-43e4-8ca2-b433d4307abb"
    }
}
 

Requisição   

POST api/franchises

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros do Corpo

razao_social   string   

A razão social da Filial. Example: Filial Norte LTDA

cnpj   string   

O CNPJ da Filial. Example: 12.345.678/0001-99

transfer_frequency   integer  optional  

Frequência de transferência em dias, se for 0 ou vazio não transfere automaticamente. Example: 7

credit_installment_limit   integer  optional  

Limite de parcelas no crédito (0-18). Example: 12

notification_email   string  optional  

O e-mail de notificações da Filial. Example: Filial@exemplo.com

gateway_name   string  optional  

Nome que aparece na fatura do cartão. Máximo 13 caracteres. Example: FilialNorte

account_bank_code   string  optional  

Código do banco. Example: 341

account_type   string  optional  

Tipo da conta (F, J). Example: F

account_holder   string  optional  

Nome do titular da conta. Example: Empresa Filial LTDA

account_document   string  optional  

Documento do titular (CPF ou CNPJ). Example: 12.345.678/0001-99

account_agency   string  optional  

Agência bancária. Example: 1234

account_number   string  optional  

Número da conta. Example: 12345-6

pix_key_type   integer  optional  

Tipo da chave PIX (0=Não tem, 10=CPF, 20=CNPJ, 30=E-mail, 40=Telefone, 50=Aleatório). Example: 20

pix_key   string  optional  

Chave PIX (obrigatório se pix_key_type != 0). Example: 12345678000199

phone_number   string  optional  

Telefone da empresa. Example: (41) 99999-9999

address   object  optional  

Endereço da empresa.

Link de pagamento

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payment-links';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/payment-links" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": [
        {
            "id": 1,
            "payer_id": null,
            "expire_after_usage": false,
            "name": "EC Technologies LTDA",
            "description": "EC Technologies LTDA",
            "value": 9998,
            "is_recurrence": null,
            "frequency": null,
            "pix_enabled": null,
            "credit_enabled": null,
            "boleto_enabled": null,
            "due_date_boleto": null,
            "accept_after_due_date": null,
            "number_installments": null,
            "recurrence_time": null,
            "url": "https://api.webpag.com.br/payment-link/1/ec-technologies-ltda",
            "return_url": null
        },
        {
            "id": 1,
            "payer_id": null,
            "expire_after_usage": false,
            "name": "EC Technologies LTDA",
            "description": "EC Technologies LTDA",
            "value": 9998,
            "is_recurrence": null,
            "frequency": null,
            "pix_enabled": null,
            "credit_enabled": null,
            "boleto_enabled": null,
            "due_date_boleto": null,
            "accept_after_due_date": null,
            "number_installments": null,
            "recurrence_time": null,
            "url": "https://api.webpag.com.br/payment-link/1/ec-technologies-ltda",
            "return_url": null
        }
    ]
}
 

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payment-links/register';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'accepted_methods' => [
                'credit_card',
                'pix',
            ],
            'name' => 'Pagamento de teste',
            'description' => 'Pagamento de teste',
            'value' => 1000,
            'validity' => '2025-01-01 15:00',
            'validity_boleto' => 3,
            'number_installments' => 12,
            'is_recurrence' => false,
            'recurrence_time' => 12,
            'payer_id' => 8,
            'expire_after_usage' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/payment-links/register" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"accepted_methods\": [
        \"credit_card\",
        \"pix\"
    ],
    \"name\": \"Pagamento de teste\",
    \"description\": \"Pagamento de teste\",
    \"value\": 1000,
    \"validity\": \"2025-01-01 15:00\",
    \"validity_boleto\": 3,
    \"number_installments\": 12,
    \"is_recurrence\": false,
    \"recurrence_time\": 12,
    \"payer_id\": 8,
    \"expire_after_usage\": false
}"

Exemplo de Resposta (200):


{
    "data": {
        "id": 1,
        "payer_id": null,
        "expire_after_usage": false,
        "name": "EC Technologies LTDA",
        "description": "EC Technologies LTDA",
        "value": 9998,
        "is_recurrence": null,
        "frequency": null,
        "pix_enabled": null,
        "credit_enabled": null,
        "boleto_enabled": null,
        "due_date_boleto": null,
        "accept_after_due_date": null,
        "number_installments": null,
        "recurrence_time": null,
        "url": "https://api.webpag.com.br/payment-link/1/ec-technologies-ltda",
        "return_url": null
    }
}
 

Pagador

Listar os pagadores cadastrados

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/payers" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": [
        {
            "id": 22,
            "cpf_cnpj": "01587088908",
            "is_business": false,
            "email": "claudiotulio2014@gmail.com",
            "first_name": "CLAUDINOR",
            "last_name": "PEDRO TULIO",
            "gender": "F",
            "phone_number": null,
            "birth_date": null,
            "address": {
                "street": null,
                "number": null,
                "district": null,
                "city": null,
                "zip_code": null,
                "state": null,
                "country": null
            },
            "use_boleto": false,
            "status": 10,
            "status_label": "Ativo",
            "created_at": "2022-06-28 23:17:26",
            "updated_at": "2022-07-12 01:49:39"
        },
        {
            "id": 22,
            "cpf_cnpj": "01587088908",
            "is_business": false,
            "email": "claudiotulio2014@gmail.com",
            "first_name": "CLAUDINOR",
            "last_name": "PEDRO TULIO",
            "gender": "F",
            "phone_number": null,
            "birth_date": null,
            "address": {
                "street": null,
                "number": null,
                "district": null,
                "city": null,
                "zip_code": null,
                "state": null,
                "country": null
            },
            "use_boleto": false,
            "status": 10,
            "status_label": "Ativo",
            "created_at": "2022-06-28 23:17:26",
            "updated_at": "2022-07-12 01:49:39"
        }
    ]
}
 

Requisição   

GET api/payers

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Retorna dados de um pagador pelo ID

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payers/22';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/payers/22" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": {
        "id": 22,
        "cpf_cnpj": "01587088908",
        "is_business": false,
        "email": "claudiotulio2014@gmail.com",
        "first_name": "CLAUDINOR",
        "last_name": "PEDRO TULIO",
        "gender": "F",
        "phone_number": null,
        "birth_date": null,
        "address": {
            "street": null,
            "number": null,
            "district": null,
            "city": null,
            "zip_code": null,
            "state": null,
            "country": null
        },
        "use_boleto": false,
        "status": 10,
        "status_label": "Ativo",
        "created_at": "2022-06-28 23:17:26",
        "updated_at": "2022-07-12 01:49:39"
    }
}
 

Requisição   

GET api/payers/{payer_id}

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

payer_id   integer   

The ID of the payer. Example: 22

Registra um pagador

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payers/register';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'first_name' => 'João',
            'last_name' => 'Silva',
            'email' => 'sabrina17@example.org',
            'is_business' => false,
            'cpf_cnpj' => '82110880023',
            'phone_number' => '41999998888',
            'birth_date' => '1998-01-05',
            'address' => [
                'zip_code' => '80000-000',
                'street' => 'Rua das Flores',
                'number' => '231',
                'district' => 'Centro',
                'city' => 'Curitiba',
                'state' => 'PR',
                'country' => 'BR',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/payers/register" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"João\",
    \"last_name\": \"Silva\",
    \"email\": \"sabrina17@example.org\",
    \"is_business\": false,
    \"cpf_cnpj\": \"82110880023\",
    \"phone_number\": \"41999998888\",
    \"birth_date\": \"1998-01-05\",
    \"address\": {
        \"zip_code\": \"80000-000\",
        \"street\": \"Rua das Flores\",
        \"number\": \"231\",
        \"district\": \"Centro\",
        \"city\": \"Curitiba\",
        \"state\": \"PR\",
        \"country\": \"BR\"
    }
}"

Exemplo de Resposta (200):


{
    "data": {
        "id": 22,
        "cpf_cnpj": "01587088908",
        "is_business": false,
        "email": "claudiotulio2014@gmail.com",
        "first_name": "CLAUDINOR",
        "last_name": "PEDRO TULIO",
        "gender": "F",
        "phone_number": null,
        "birth_date": null,
        "address": {
            "street": null,
            "number": null,
            "district": null,
            "city": null,
            "zip_code": null,
            "state": null,
            "country": null
        },
        "use_boleto": false,
        "status": 10,
        "status_label": "Ativo",
        "created_at": "2022-06-28 23:17:26",
        "updated_at": "2022-07-12 01:49:39"
    }
}
 

Requisição   

POST api/payers/register

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros do Corpo

first_name   string   

O primeiro nome do usuário. Example: João

last_name   string   

O sobrenome do usuário. Example: Silva

email   string  optional  

O endereço de e-mail do usuário. Deve ser um e-mail válido. Example: sabrina17@example.org

is_business   boolean   

Indica se o pagador é CNPJ. Example: false

cpf_cnpj   string   

O CPF ou CNPJ do usuário. CPF válido se tiver 11 dígitos, CNPJ válido se tiver 14 dígitos. Example: 82110880023

phone_number   string  optional  

O número de telefone do usuário, deve incluir o código de área. Example: 41999998888

gender   string  optional  

O gênero do usuário, pode ser 'M' (masculino) ou 'F' (feminino).

birth_date   date  optional  

A data de nascimento do usuário no formato 'Y-m-d'. Example: 1998-01-05

address   object  optional  

O endereço do usuário

zip_code   string  optional  

O CEP do endereço do usuário. Deve estar no formato válido de CEP brasileiro. Example: 80000-000

street   string  optional  

O nome da rua do endereço do usuário. Mínimo de 3 caracteres. Example: Rua das Flores

number   string  optional  

O número do endereço do usuário. Example 231 Example: ex

district   string  optional  

O bairro do endereço do usuário. Example: Centro

city   string  optional  

A cidade do endereço do usuário. Example: Curitiba

state   string  optional  

O estado do endereço do usuário, deve ser uma sigla válida de estado brasileiro (UF). Example: PR

country   string  optional  

O código do país, deve ter até 3 caracteres. Example: BR

Atualiza um pagador pelo ID

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payers/fugiat/update';
$response = $client->put(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'first_name' => null,
            'last_name' => null,
            'email' => 'hudson.herbert@example.net',
            'is_business' => null,
            'cpf_cnpj' => '82110880023',
            'phone_number' => '41999998888',
            'birth_date' => '1998-01-05',
            'address' => [
                'zip_code' => '80000-000',
                'street' => 'Rua das Flores',
                'number' => '231',
                'district' => 'Centro',
                'city' => 'Curitiba',
                'state' => 'PR',
                'country' => 'BR',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
    "https://api.webpag.com.br/api/payers/fugiat/update" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": null,
    \"last_name\": null,
    \"email\": \"hudson.herbert@example.net\",
    \"is_business\": null,
    \"cpf_cnpj\": \"82110880023\",
    \"phone_number\": \"41999998888\",
    \"birth_date\": \"1998-01-05\",
    \"address\": {
        \"zip_code\": \"80000-000\",
        \"street\": \"Rua das Flores\",
        \"number\": \"231\",
        \"district\": \"Centro\",
        \"city\": \"Curitiba\",
        \"state\": \"PR\",
        \"country\": \"BR\"
    }
}"

Exemplo de Resposta (200):


{
    "data": {
        "id": 22,
        "cpf_cnpj": "01587088908",
        "is_business": false,
        "email": "claudiotulio2014@gmail.com",
        "first_name": "CLAUDINOR",
        "last_name": "PEDRO TULIO",
        "gender": "F",
        "phone_number": null,
        "birth_date": null,
        "address": {
            "street": null,
            "number": null,
            "district": null,
            "city": null,
            "zip_code": null,
            "state": null,
            "country": null
        },
        "use_boleto": false,
        "status": 10,
        "status_label": "Ativo",
        "created_at": "2022-06-28 23:17:26",
        "updated_at": "2022-07-12 01:49:39"
    }
}
 

Requisição   

PUT api/payers/{id}/update

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

id   string   

The ID of the payer. Example: fugiat

Parâmetros do Corpo

first_name   string   

O primeiro nome do usuário.

last_name   string   

O sobrenome do usuário.

email   string   

O endereço de e-mail do usuário. Deve ser um e-mail válido. Example: hudson.herbert@example.net

is_business   boolean   

Indica se o usuário é um pagador empresarial.

cpf_cnpj   string   

O CPF ou CNPJ do usuário. CPF válido se tiver 11 dígitos, CNPJ válido se tiver 14 dígitos. Example: 82110880023

phone_number   string  optional  

O número de telefone do usuário, deve incluir o código de área. Example: 41999998888

gender   string  optional  

O gênero do usuário, pode ser 'M' (masculino) ou 'F' (feminino).

birth_date   date  optional  

A data de nascimento do usuário no formato 'Y-m-d'. Example: 1998-01-05

address   object  optional  

O endereço do usuário

zip_code   string  optional  

O CEP do endereço do usuário. Deve estar no formato válido de CEP brasileiro. Example: 80000-000

street   string  optional  

O nome da rua do endereço do usuário. Mínimo de 3 caracteres. Example: Rua das Flores

number   string  optional  

O número do endereço do usuário. Example 231 Example: nostrum

district   string  optional  

O bairro do endereço do usuário. Example: Centro

city   string  optional  

A cidade do endereço do usuário. Example: Curitiba

state   string  optional  

O estado do endereço do usuário, deve ser uma sigla válida de estado brasileiro (UF). Example: PR

country   string  optional  

O código do país, deve ter até 3 caracteres. Example: BR

Inativa um pagador

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payers/22/inactivate';
$response = $client->put(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
    "https://api.webpag.com.br/api/payers/22/inactivate" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": {
        "id": 22,
        "cpf_cnpj": "01587088908",
        "is_business": false,
        "email": "claudiotulio2014@gmail.com",
        "first_name": "CLAUDINOR",
        "last_name": "PEDRO TULIO",
        "gender": "F",
        "phone_number": null,
        "birth_date": null,
        "address": {
            "street": null,
            "number": null,
            "district": null,
            "city": null,
            "zip_code": null,
            "state": null,
            "country": null
        },
        "use_boleto": false,
        "status": 10,
        "status_label": "Ativo",
        "created_at": "2022-06-28 23:17:26",
        "updated_at": "2022-07-12 01:49:39"
    }
}
 

Requisição   

PUT api/payers/{payer_id}/inactivate

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

payer_id   integer   

The ID of the payer. Example: 22

Salvar cartão para um pagador

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payers/sapiente/creditcard';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'number' => '4111111111111111',
            'name' => 'João da Silva',
            'expiration_month' => '12',
            'expiration_year' => '2025',
            'security_code' => '999',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/payers/sapiente/creditcard" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"number\": \"4111111111111111\",
    \"name\": \"João da Silva\",
    \"expiration_month\": \"12\",
    \"expiration_year\": \"2025\",
    \"security_code\": \"999\"
}"

Exemplo de Resposta (200):


{
    "data": {
        "id": 1,
        "last_numbers": "",
        "active": true,
        "created_at": "2022-06-28 23:17:26"
    }
}
 

Requisição   

POST api/payers/{id}/creditcard

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

id   string   

The ID of the payer. Example: sapiente

Parâmetros do Corpo

card_token   string  optional  

Token do cartão gerado no frontend. Quando informado, os campos do cartão são preenchidos automaticamente.

number   string   

O número do cartão de crédito. Example: 4111111111111111

name   string   

O nome no cartão de crédito. Example: João da Silva

expiration_month   string   

O mês de expiração do cartão de crédito (MM). Example: 12

expiration_year   string   

O ano de expiração do cartão de crédito (YYYY). Example: 2025

security_code   string   

O código de segurança do cartão de crédito (CVV). Example: 999

Remove um cartão de um pagador

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payers/maiores/creditcard/facilis/remove';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://api.webpag.com.br/api/payers/maiores/creditcard/facilis/remove" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Requisição   

DELETE api/payers/{payerId}/creditcard/{cardId}/remove

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

payerId   string   

Example: maiores

cardId   string   

Example: facilis

Pagamentos

Listar os pagamentos cadastrados

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/payments" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": [
        {
            "id": 6,
            "business": {
                "id": 7,
                "name": "WEBPAG SERVICOS FINANCEIROS LTDA"
            },
            "payer_id": 85,
            "card_id": null,
            "payer": {
                "id": 85,
                "cpf_cnpj": "13953108743",
                "is_business": false,
                "email": "deletado@deletado.com",
                "first_name": "Deletado",
                "last_name": "Deletado",
                "gender": null,
                "phone_number": null,
                "birth_date": null,
                "address": null,
                "use_boleto": false,
                "status": 20,
                "status_label": "Inativo",
                "created_at": "2022-09-15 20:15:04",
                "updated_at": "2022-09-15 21:54:49"
            },
            "name": "Compra teste feita por Edilson.",
            "amount": 1000,
            "amount_refunded": 0,
            "fee_value": null,
            "refunded_fee": 0,
            "installments": 2,
            "is_recurrent": false,
            "recurrence_code": null,
            "frequency": null,
            "method": 10,
            "method_label": "Cartão de Crédito",
            "method_slug": "credit_card",
            "boleto": null,
            "notification_url": null,
            "pix": null,
            "installments_paid": 0,
            "spplited": false,
            "soft_descriptor": null,
            "order_id": null,
            "active": true,
            "status": 50,
            "status_label": "Estornado",
            "start_date": null,
            "next_date": null,
            "next_recurrence_date": null,
            "refunds": [],
            "created_at": "2022-09-24 17:44",
            "paid_at": null,
            "updated_at": "2025-10-13 06:43",
            "receipt_pdf_path": "https://api.webpag.com.br/payments/9d00de48dd7335339be4b2274/pdf",
            "card_flag": null,
            "card_flag_label": null
        },
        {
            "id": 6,
            "business": {
                "id": 7,
                "name": "WEBPAG SERVICOS FINANCEIROS LTDA"
            },
            "payer_id": 85,
            "card_id": null,
            "payer": {
                "id": 85,
                "cpf_cnpj": "13953108743",
                "is_business": false,
                "email": "deletado@deletado.com",
                "first_name": "Deletado",
                "last_name": "Deletado",
                "gender": null,
                "phone_number": null,
                "birth_date": null,
                "address": null,
                "use_boleto": false,
                "status": 20,
                "status_label": "Inativo",
                "created_at": "2022-09-15 20:15:04",
                "updated_at": "2022-09-15 21:54:49"
            },
            "name": "Compra teste feita por Edilson.",
            "amount": 1000,
            "amount_refunded": 0,
            "fee_value": null,
            "refunded_fee": 0,
            "installments": 2,
            "is_recurrent": false,
            "recurrence_code": null,
            "frequency": null,
            "method": 10,
            "method_label": "Cartão de Crédito",
            "method_slug": "credit_card",
            "boleto": null,
            "notification_url": null,
            "pix": null,
            "installments_paid": 0,
            "spplited": false,
            "soft_descriptor": null,
            "order_id": null,
            "active": true,
            "status": 50,
            "status_label": "Estornado",
            "start_date": null,
            "next_date": null,
            "next_recurrence_date": null,
            "refunds": [],
            "created_at": "2022-09-24 17:44",
            "paid_at": null,
            "updated_at": "2025-10-13 06:43",
            "receipt_pdf_path": "https://api.webpag.com.br/payments/9d00de48dd7335339be4b2274/pdf",
            "card_flag": null,
            "card_flag_label": null
        }
    ]
}
 

Requisição   

GET api/payments

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de Consulta

payment_id   integer  optional  

O ID do pagamento.

payer_id   integer  optional  

O ID do pagador.

page   integer  optional  

O número da página. Padrão sendo 1.

created_at_start   string  optional  

A data inicial de criação no formato 'Y-m-d'.

created_at_end   string  optional  

A data final de criação no formato 'Y-m-d'.

paid_at_start   string  optional  

A data inicial de pagamento no formato 'Y-m-d'.

paid_at_end   string  optional  

A data final de pagamento no formato 'Y-m-d'.

status   integer  optional  

O status do pagamento. Valores possíveis: 10 (Aguardando), 20 (Processando), 30 (Recusado), 40 (Pago), 45 (Reembolso Parcial), 50 (Estornado), 60 (Cancelado), 70 (Contestado), 80 (Em Disputa), 90 (Em Contestação).

method   string  optional  

O método de pagamento. Um dos seguintes valores: "credit", "debit", "pix". (Substitua pelas opções reais da enumeração Method).

active   boolean  optional  

Indica se o pagamento está ativo. Um dos seguintes valores: "true", "false".

recurrence_code   integer  optional  

O código da recorrência.

is_recurrent   boolean  optional  

Indica se o pagamento é recorrente. Um dos seguintes valores: "true", "false".

order_id   string  optional  

O ID do pedido associado ao pagamento. Este número é informado pelo cliente na criação de um pagamento.

txid   string  optional  

O TXID do PIX associado ao pagamento para filtrar por transações PIX específicas.

Processar ou criar um pagamento

requires authentication

Quando informado o cartão, o pagamento é realizado no mesmo instante. Quando é boleto ou Pix, o pagamento é registrado e aguarda a compensação. Você poderá registrar o pagador e cartão de forma separada, e informar o ID do pagador.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments/process';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'payer_id' => 15,
            'name' => 'Pagamento de teste',
            'amount' => 1500,
            'installments' => 1,
            'method' => 'credit_card',
            'card_token' => 'tok_01j9h8g7f6e5d4c3b2a1',
            'card' => [
                'number' => '4111111111111111',
                'name' => 'João da Silva',
                'expiration_month' => '12',
                'expiration_year' => '2024',
                'security_code' => '123',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/payments/process" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payer_id\": 15,
    \"name\": \"Pagamento de teste\",
    \"amount\": 1500,
    \"installments\": 1,
    \"method\": \"credit_card\",
    \"card_token\": \"tok_01j9h8g7f6e5d4c3b2a1\",
    \"card\": {
        \"number\": \"4111111111111111\",
        \"name\": \"João da Silva\",
        \"expiration_month\": \"12\",
        \"expiration_year\": \"2024\",
        \"security_code\": \"123\"
    }
}"

Exemplo de Resposta (200, Pagamento processado):


{
    "data": {
        "id": 2825,
        "business": {
            "id": 537,
            "name": "Empresa Exemplo"
        },
        "payer_id": 881,
        "card_id": null,
        "name": "Pagamento utilizando pix",
        "amount": 1000,
        "fee_value": "3.62",
        "installments": 1,
        "is_recurrent": false,
        "recurrence_code": null,
        "frequency": null,
        "order_id": "2159",
        "method": 30,
        "method_label": "Boleto",
        "method_slug": "bank_slip",
        "boleto": {
            "id": 265,
            "linha_digitavel": "00000000000000000000000000000000000000000000000",
            "sequencial_code": null,
            "nosso_numero": "1111",
            "codigo_barras": "00000000000000000000000000000000000000000000",
            "due_date": "2024-09-09T13:42:47.000000Z",
            "issue_date": "2024-09-06T13:42:47.000000Z",
            "amount": 10,
            "interest": "7.000",
            "fine": "4.000",
            "accept_after_due_date": true,
            "boleto_url": "http://localhost:81/r/048cfb0d-e9ed"
        },
        "notification_url": "https://exemplo.com.br/order-confirm/4df6e224-259e-444e-9245-93ad17aad277",
        "pix": {
            "id": 39,
            "uuid": "4222b7d7-0c98-4c48-b94a-49d23a98c245",
            "business_id": 45,
            "payment_id": 39488,
            "txid": "FdbMqfiIT2ki7FSKdMlofsNjzF",
            "key": "9e881f18-cc66-4fc7-8f2c-a795dbb2bfc1",
            "qrcode_data": "00020101021226870014br.gov.bcb.pix2565qrcodepix-h.bb.com.br/pix/v2/8c672b36-459e-48dc-aa14-0544186e321b520400005303986540550.005802BR5921EMPRESA EXEMPLO6012CIDADE EXEMPLO62070503***63044061",
            "amount": "50.00",
            "expiration_date": "2024-05-08T21:43:33.000000Z",
            "status": 10,
            "created_at": "2024-05-08T20:43:33.000000Z",
            "updated_at": "2024-05-08T20:43:33.000000Z"
        },
        "spplited": false,
        "gateway": "IUGU",
        "active": true,
        "status": 10,
        "status_label": "Disponível",
        "start_date": null,
        "next_date": null,
        "transactions": [
            {
                "id": 3830,
                "type": 10,
                "type_label": "Aprovação",
                "transaction_id": null,
                "response_status": "OK",
                "errors": null,
                "status": 10,
                "status_label": "Sucesso",
                "created_at": "2024-09-06 10:42"
            }
        ],
        "splits": [],
        "created_at": "2024-09-06 10:42",
        "paid_at": null,
        "updated_at": "2024-09-06 10:42",
        "receipt_pdf_path": "http://localhost:81/payments/71a4545b2c0275d50f02d561a/pdf",
        "card_flag": null,
        "card_flag_label": null
    }
}
 

Exemplo de Resposta (422, Erro ao processar):


{
    "error": "Erro ao processar pagamento",
    "error_code": 20,
    "error_previous": "Erro ao processar pagamento"
}
 

Requisição   

POST api/payments/process

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros do Corpo

payer_id   integer   

O ID do pagador. Example: 15

name   string   

O nome do pagamento. Mínimo de 3 caracteres. Example: Pagamento de teste

amount   integer   

O valor do pagamento em centavos. 1500 = R$ 15,00 Example: 1500

installments   integer  optional  

O número de parcelas, obrigatório se o método de pagamento for cartão de crédito. Example: 1

method   string   

O método de pagamento. Um dos seguintes valores: "credit_card", "pix", "bank_slip". Example: credit_card

notify_payer   boolean  optional  

Indica se o pagador será notificado.

card_payer_id   integer  optional  

O ID do cartão de crédito associado ao pagador, se aplicável.

card_token   string  optional  

Token do cartão gerado pela SDK de tokenização. Quando informado, não envie os dados brutos do cartão nem o card_payer_id. Example: tok_01j9h8g7f6e5d4c3b2a1

card   object  optional  

O objeto com os dados do cartão de crédito, caso card_payer_id ou card_token não seja informado.

number   string  optional  

O número do cartão de crédito. Deve ser um número de cartão válido.

name   string  optional  

O nome no cartão de crédito. Mínimo de 5 caracteres.

expiration_month   string  optional  

O mês de expiração do cartão de crédito no formato 'MM'.

expiration_year   string  optional  

O ano de expiração do cartão de crédito no formato 'YYYY'.

security_code   string  optional  

O código de segurança do cartão de crédito. Mínimo de 3 e máximo de 4 caracteres.

due_date   string  optional  

A data de vencimento do pagamento no formato "YYYY-MM-DD HH:MM". Se não informado, será calculada com base no método de pagamento (60 minutos para Pix).

accept_after_due_date   boolean  optional  

Indica se o pagamento (boleto) será aceito após a data de vencimento.

notification_url   string  optional  

A URL para onde as notificações de status do pagamento serão enviadas. O sistema enviará um Webhook para este link. Use BusinessWebhook configurado no painel em vez disso. Este parâmetro será removido em uma versão futura.

order_id   string  optional  

Utilizado para evitar pagamento duplicado com este valor. Você poderá informar o valor que o sistema externo usa para evitar duplicidade.

payment_link_id   string  optional  

O ID do link de pagamento associado.

soft_descriptor   string  optional  

O descritor exibido na fatura, Máximo de 16 caracteres.

splits   string[]  optional  

Array de splits dinâmicos. Quando informado, os splits configurados na empresa são ignorados. A soma dos valores efetivos (percentage + amount) de todos os splits não pode exceder o valor total do pagamento.

business_id   integer   

ID da empresa que receberá o split. Example: 10

percentage   numeric  optional  

Porcentagem do split (0-100). Example: 25.5

amount   integer  optional  

Valor fixo do split em centavos. Example: 1500

Estornar um pagamento

requires authentication

Estorna um pagamento específico. Por padrão, o valor total do pagamento é estornado. Para estornar um valor específico, informe o valor em centavos. O reembolso é processado de forma assíncrona. A resposta retorna o registro do reembolso com status "pending".

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments/15/refund';
$response = $client->put(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'value' => 1500,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
    "https://api.webpag.com.br/api/payments/15/refund" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"value\": 1500
}"

Exemplo de Resposta (200):


{
    "data": {
        "id": "277bddd5-cf57-4403-86a3-349e254efc4a",
        "payment_id": 436984,
        "business_id": 3789,
        "status": 40,
        "status_label": "Sucesso",
        "refund_amount": 6500,
        "refund_fee": 125,
        "before_amount": 6500,
        "before_fee": 125,
        "after_amount": 0,
        "after_fee": 0,
        "credit_schedule_refund": 6375,
        "financial_entry_refund": 0,
        "refund_receipt_url": "https://api.webpag.com.br/refunds/277bddd5-cf57-4403-86a3-349e254efc4a/pdf",
        "processed_at": null,
        "created_at": "2025-10-13 08:56",
        "updated_at": "2025-10-13 08:56"
    }
}
 

Requisição   

PUT api/payments/{paymentId_id}/refund

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

paymentId_id   integer   

O ID do pagamento. Example: 15

Parâmetros do Corpo

value   integer  optional  

O valor do estorno em centavos. Example: 1500

Consultar estorno

requires authentication

Retorna os detalhes de um estorno específico.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments/refunds/01J9XYZABCDE1234567890';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/payments/refunds/01J9XYZABCDE1234567890" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": {
        "id": "277bddd5-cf57-4403-86a3-349e254efc4a",
        "payment_id": 436984,
        "business_id": 3789,
        "status": 40,
        "status_label": "Sucesso",
        "refund_amount": 6500,
        "refund_fee": 125,
        "before_amount": 6500,
        "before_fee": 125,
        "after_amount": 0,
        "after_fee": 0,
        "credit_schedule_refund": 6375,
        "financial_entry_refund": 0,
        "refund_receipt_url": "https://api.webpag.com.br/refunds/277bddd5-cf57-4403-86a3-349e254efc4a/pdf",
        "processed_at": null,
        "created_at": "2025-10-13 08:56",
        "updated_at": "2025-10-13 08:56"
    }
}
 

Exemplo de Resposta (404):


{
    "message": "Estorno não encontrado."
}
 

Requisição   

GET api/payments/refunds/{id}

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

id   string   

O identificador do estorno. Example: 01J9XYZABCDE1234567890

Consultar um pagamento

requires authentication

Retorna os detalhes de um pagamento específico.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments/6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/payments/6" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": {
        "id": 6,
        "business": {
            "id": 7,
            "name": "WEBPAG SERVICOS FINANCEIROS LTDA"
        },
        "payer_id": 85,
        "card_id": null,
        "payer": {
            "id": 85,
            "cpf_cnpj": "13953108743",
            "is_business": false,
            "email": "deletado@deletado.com",
            "first_name": "Deletado",
            "last_name": "Deletado",
            "gender": null,
            "phone_number": null,
            "birth_date": null,
            "address": null,
            "use_boleto": false,
            "status": 20,
            "status_label": "Inativo",
            "created_at": "2022-09-15 20:15:04",
            "updated_at": "2022-09-15 21:54:49"
        },
        "name": "Compra teste feita por Edilson.",
        "amount": 1000,
        "amount_refunded": 0,
        "fee_value": null,
        "refunded_fee": 0,
        "installments": 2,
        "is_recurrent": false,
        "recurrence_code": null,
        "frequency": null,
        "method": 10,
        "method_label": "Cartão de Crédito",
        "method_slug": "credit_card",
        "boleto": null,
        "notification_url": null,
        "pix": null,
        "installments_paid": 0,
        "spplited": false,
        "soft_descriptor": null,
        "order_id": null,
        "active": true,
        "status": 50,
        "status_label": "Estornado",
        "start_date": null,
        "next_date": null,
        "next_recurrence_date": null,
        "refunds": [],
        "created_at": "2022-09-24 17:44",
        "paid_at": null,
        "updated_at": "2025-10-13 06:43",
        "receipt_pdf_path": "https://api.webpag.com.br/payments/9d00de48dd7335339be4b2274/pdf",
        "card_flag": null,
        "card_flag_label": null
    }
}
 

Requisição   

GET api/payments/{payment_id}

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

payment_id   integer   

The ID of the payment. Example: 6

payment   integer   

O ID do pagamento. Example: 123

Cancelar um pagamento

requires authentication

Solicita o cancelamento de um pagamento que ainda está aguardando, seja Boleto ou PIX.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments/6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://api.webpag.com.br/api/payments/6" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": {
        "id": 6,
        "business": {
            "id": 7,
            "name": "WEBPAG SERVICOS FINANCEIROS LTDA"
        },
        "payer_id": 85,
        "card_id": null,
        "payer": {
            "id": 85,
            "cpf_cnpj": "13953108743",
            "is_business": false,
            "email": "deletado@deletado.com",
            "first_name": "Deletado",
            "last_name": "Deletado",
            "gender": null,
            "phone_number": null,
            "birth_date": null,
            "address": null,
            "use_boleto": false,
            "status": 20,
            "status_label": "Inativo",
            "created_at": "2022-09-15 20:15:04",
            "updated_at": "2022-09-15 21:54:49"
        },
        "name": "Compra teste feita por Edilson.",
        "amount": 1000,
        "amount_refunded": 0,
        "fee_value": null,
        "refunded_fee": 0,
        "installments": 2,
        "is_recurrent": false,
        "recurrence_code": null,
        "frequency": null,
        "method": 10,
        "method_label": "Cartão de Crédito",
        "method_slug": "credit_card",
        "boleto": null,
        "notification_url": null,
        "pix": null,
        "installments_paid": 0,
        "spplited": false,
        "soft_descriptor": null,
        "order_id": null,
        "active": true,
        "status": 50,
        "status_label": "Estornado",
        "start_date": null,
        "next_date": null,
        "next_recurrence_date": null,
        "refunds": [],
        "created_at": "2022-09-24 17:44",
        "paid_at": null,
        "updated_at": "2025-10-13 06:43",
        "receipt_pdf_path": "https://api.webpag.com.br/payments/9d00de48dd7335339be4b2274/pdf",
        "card_flag": null,
        "card_flag_label": null
    }
}
 

Exemplo de Resposta (202):


{
    "message": "Cancelamento solicitado com sucesso."
}
 

Exemplo de Resposta (404):


{
    "message": "Pagamento não encontrado."
}
 

Exemplo de Resposta (422):


{
    "message": "Somente pagamentos PIX ou Boleto aguardando podem ser cancelados por este endpoint."
}
 

Requisição   

DELETE api/payments/{payment_id}

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

payment_id   integer   

The ID of the payment. Example: 6

payment   integer   

O ID do pagamento a ser cancelado. Example: 42

Marcar pagamento como pago (Apenas Sandbox/Desenvolvimento)

requires authentication

Este endpoint está disponível APENAS em ambiente de desenvolvimento. Marca manualmente um pagamento de Boleto ou PIX como pago para testar o fluxo de pagamento.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments/123/mark-as-paid-dev';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/payments/123/mark-as-paid-dev" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (403):


{
    "message": "Este endpoint está disponível apenas em ambiente de desenvolvimento."
}
 

Exemplo de Resposta (404):


{
    "message": "Pagamento não encontrado."
}
 

Exemplo de Resposta (422):


{
    "message": "O método de pagamento deve ser PIX ou Boleto.",
    "errors": {
        "method": [
            "O método de pagamento deve ser PIX ou Boleto."
        ]
    }
}
 

Requisição   

POST api/payments/{payment_id}/mark-as-paid-dev

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

payment_id   integer   

O ID do pagamento a ser marcado como pago. Example: 123

Recorrência

Cria recorrência no cartão.

requires authentication

É importante armazenar o "recurrence_code" para utilizar em cancelamentos e atualizações de recorrência.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments/recurrency/register';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'payer_id' => 881,
            'name' => '"Recorrência da Maria"',
            'installments' => 2,
            'frequency' => 'monthly',
            'notify_payer' => true,
            'card_payer_id' => 1903,
            'start_date' => '"2024-01-01 00:00"',
            'amount' => 9988,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/payments/recurrency/register" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payer_id\": 881,
    \"name\": \"\\\"Recorrência da Maria\\\"\",
    \"installments\": 2,
    \"frequency\": \"monthly\",
    \"notify_payer\": true,
    \"card_payer_id\": 1903,
    \"start_date\": \"\\\"2024-01-01 00:00\\\"\",
    \"amount\": 9988
}"

Requisição   

POST api/payments/recurrency/register

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros do Corpo

payer_id   integer   

O ID do pagador. Example: 881

name   string   

O nome da recorrência. Example: "Recorrência da Maria"

installments   integer  optional  

O número de parcelas. Caso for recorrência por período indeterminado, remova este campo ou informe null. Example: 2

frequency   string   

A frequência do pagamento (monthly, bimonthly, quarterly, semiannual, yearly). Example: monthly

notify_payer   boolean  optional  

Indica se deve notificar o pagador sobre a recorrência. Example: true

card_payer_id   integer  optional  

O ID do cartão do pagador. Example: 1903

card_token   string  optional  

Token do cartão gerado no frontend. Quando informado, o objeto card não é obrigatório.

start_date   string   

A data de início da recorrência no formato "Y-m-d H:i". Example: "2024-01-01 00:00"

amount   integer   

O valor a ser cobrado em centavos. Example: 9988

Listar recorrência

requires authentication

Você poderá fornecer os filtros necessários para encontrar a recorrência desejada.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments/recurrency/list';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'payer_id' => '881',
            'recurrence_code' => '198249294',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/payments/recurrency/list?payer_id=881&recurrence_code=198249294&page=1" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": [
        {
            "id": 6,
            "business": {
                "id": 7,
                "name": "WEBPAG SERVICOS FINANCEIROS LTDA"
            },
            "payer_id": 85,
            "card_id": null,
            "payer": {
                "id": 85,
                "cpf_cnpj": "13953108743",
                "is_business": false,
                "email": "deletado@deletado.com",
                "first_name": "Deletado",
                "last_name": "Deletado",
                "gender": null,
                "phone_number": null,
                "birth_date": null,
                "address": null,
                "use_boleto": false,
                "status": 20,
                "status_label": "Inativo",
                "created_at": "2022-09-15 20:15:04",
                "updated_at": "2022-09-15 21:54:49"
            },
            "name": "Compra teste feita por Edilson.",
            "amount": 1000,
            "amount_refunded": 0,
            "fee_value": null,
            "refunded_fee": 0,
            "installments": 2,
            "is_recurrent": false,
            "recurrence_code": null,
            "frequency": null,
            "method": 10,
            "method_label": "Cartão de Crédito",
            "method_slug": "credit_card",
            "boleto": null,
            "notification_url": null,
            "pix": null,
            "installments_paid": 0,
            "spplited": false,
            "soft_descriptor": null,
            "order_id": null,
            "active": true,
            "status": 50,
            "status_label": "Estornado",
            "start_date": null,
            "next_date": null,
            "next_recurrence_date": null,
            "refunds": [],
            "created_at": "2022-09-24 17:44",
            "paid_at": null,
            "updated_at": "2025-10-13 06:43",
            "receipt_pdf_path": "https://api.webpag.com.br/payments/9d00de48dd7335339be4b2274/pdf",
            "card_flag": null,
            "card_flag_label": null
        },
        {
            "id": 6,
            "business": {
                "id": 7,
                "name": "WEBPAG SERVICOS FINANCEIROS LTDA"
            },
            "payer_id": 85,
            "card_id": null,
            "payer": {
                "id": 85,
                "cpf_cnpj": "13953108743",
                "is_business": false,
                "email": "deletado@deletado.com",
                "first_name": "Deletado",
                "last_name": "Deletado",
                "gender": null,
                "phone_number": null,
                "birth_date": null,
                "address": null,
                "use_boleto": false,
                "status": 20,
                "status_label": "Inativo",
                "created_at": "2022-09-15 20:15:04",
                "updated_at": "2022-09-15 21:54:49"
            },
            "name": "Compra teste feita por Edilson.",
            "amount": 1000,
            "amount_refunded": 0,
            "fee_value": null,
            "refunded_fee": 0,
            "installments": 2,
            "is_recurrent": false,
            "recurrence_code": null,
            "frequency": null,
            "method": 10,
            "method_label": "Cartão de Crédito",
            "method_slug": "credit_card",
            "boleto": null,
            "notification_url": null,
            "pix": null,
            "installments_paid": 0,
            "spplited": false,
            "soft_descriptor": null,
            "order_id": null,
            "active": true,
            "status": 50,
            "status_label": "Estornado",
            "start_date": null,
            "next_date": null,
            "next_recurrence_date": null,
            "refunds": [],
            "created_at": "2022-09-24 17:44",
            "paid_at": null,
            "updated_at": "2025-10-13 06:43",
            "receipt_pdf_path": "https://api.webpag.com.br/payments/9d00de48dd7335339be4b2274/pdf",
            "card_flag": null,
            "card_flag_label": null
        }
    ]
}
 

Requisição   

GET api/payments/recurrency/list

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de Consulta

payer_id   integer  optional  

O ID do pagador. Example: 881

recurrence_code   string  optional  

O código da recorrência. Example: 198249294

page   string  optional  

Página da informação. Example: 1

Atualizar recorrência

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments/recurrency/198249294/update';
$response = $client->put(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Plano Mensal',
            'amount' => 5000,
            'installments' => 3,
            'frequency' => 'monthly',
            'card_payer_id' => 1234,
            'next_date' => '2024-01-01 00:00',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
    "https://api.webpag.com.br/api/payments/recurrency/198249294/update" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Plano Mensal\",
    \"amount\": 5000,
    \"installments\": 3,
    \"frequency\": \"monthly\",
    \"card_payer_id\": 1234,
    \"next_date\": \"2024-01-01 00:00\"
}"

Exemplo de Resposta (200):


{
    "data": {
        "id": 6,
        "business": {
            "id": 7,
            "name": "WEBPAG SERVICOS FINANCEIROS LTDA"
        },
        "payer_id": 85,
        "card_id": null,
        "payer": {
            "id": 85,
            "cpf_cnpj": "13953108743",
            "is_business": false,
            "email": "deletado@deletado.com",
            "first_name": "Deletado",
            "last_name": "Deletado",
            "gender": null,
            "phone_number": null,
            "birth_date": null,
            "address": null,
            "use_boleto": false,
            "status": 20,
            "status_label": "Inativo",
            "created_at": "2022-09-15 20:15:04",
            "updated_at": "2022-09-15 21:54:49"
        },
        "name": "Compra teste feita por Edilson.",
        "amount": 1000,
        "amount_refunded": 0,
        "fee_value": null,
        "refunded_fee": 0,
        "installments": 2,
        "is_recurrent": false,
        "recurrence_code": null,
        "frequency": null,
        "method": 10,
        "method_label": "Cartão de Crédito",
        "method_slug": "credit_card",
        "boleto": null,
        "notification_url": null,
        "pix": null,
        "installments_paid": 0,
        "spplited": false,
        "soft_descriptor": null,
        "order_id": null,
        "active": true,
        "status": 50,
        "status_label": "Estornado",
        "start_date": null,
        "next_date": null,
        "next_recurrence_date": null,
        "refunds": [],
        "created_at": "2022-09-24 17:44",
        "paid_at": null,
        "updated_at": "2025-10-13 06:43",
        "receipt_pdf_path": "https://api.webpag.com.br/payments/9d00de48dd7335339be4b2274/pdf",
        "card_flag": null,
        "card_flag_label": null
    }
}
 

Requisição   

PUT api/payments/recurrency/{recurrence_code}/update

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

recurrence_code   string  optional  

Example: 198249294

Parâmetros do Corpo

name   string  optional  

O nome da recorrência. Opcional, mínimo de 3 caracteres. Example: Plano Mensal

amount   integer  optional  

O valor a ser cobrado em centavos. Opcional. Example: 5000

installments   integer  optional  

O número de parcelas. Opcional. Example: 3

frequency   string  optional  

A frequência do pagamento. Opcional. Deve ser um dos seguintes valores: monthly, bimonthly, quarterly, semiannual, yearly. Example: monthly

card_payer_id   integer  optional  

O ID do cartão do pagador. Opcional. Example: 1234

next_date   string  optional  

A próxima data do pagamento no formato "Y-m-d H:i". Opcional. Example: 2024-01-01 00:00

Cancelar recorrência

requires authentication

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/payments/recurrency/similique/cancel';
$response = $client->put(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
    "https://api.webpag.com.br/api/payments/recurrency/similique/cancel" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": {
        "id": 6,
        "business": {
            "id": 7,
            "name": "WEBPAG SERVICOS FINANCEIROS LTDA"
        },
        "payer_id": 85,
        "card_id": null,
        "payer": {
            "id": 85,
            "cpf_cnpj": "13953108743",
            "is_business": false,
            "email": "deletado@deletado.com",
            "first_name": "Deletado",
            "last_name": "Deletado",
            "gender": null,
            "phone_number": null,
            "birth_date": null,
            "address": null,
            "use_boleto": false,
            "status": 20,
            "status_label": "Inativo",
            "created_at": "2022-09-15 20:15:04",
            "updated_at": "2022-09-15 21:54:49"
        },
        "name": "Compra teste feita por Edilson.",
        "amount": 1000,
        "amount_refunded": 0,
        "fee_value": null,
        "refunded_fee": 0,
        "installments": 2,
        "is_recurrent": false,
        "recurrence_code": null,
        "frequency": null,
        "method": 10,
        "method_label": "Cartão de Crédito",
        "method_slug": "credit_card",
        "boleto": null,
        "notification_url": null,
        "pix": null,
        "installments_paid": 0,
        "spplited": false,
        "soft_descriptor": null,
        "order_id": null,
        "active": true,
        "status": 50,
        "status_label": "Estornado",
        "start_date": null,
        "next_date": null,
        "next_recurrence_date": null,
        "refunds": [],
        "created_at": "2022-09-24 17:44",
        "paid_at": null,
        "updated_at": "2025-10-13 06:43",
        "receipt_pdf_path": "https://api.webpag.com.br/payments/9d00de48dd7335339be4b2274/pdf",
        "card_flag": null,
        "card_flag_label": null
    }
}
 

Requisição   

PUT api/payments/recurrency/{recurrence_code}/cancel

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

recurrence_code   string   

Example: similique

Saques/Transferências

Listar saques/transferências

requires authentication

Lista todas as solicitações de saque/transferência da empresa.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/transfers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'per_page' => '15',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/transfers?page=1&per_page=15" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": [
        {
            "id": 12,
            "amount": 241542,
            "destination_type": 10,
            "destination_type_name": "Minha conta bancária",
            "destination_business_id": null,
            "service_fee": 480,
            "fee_service": 480,
            "debited_amount": 242022,
            "service_fee_type": "F",
            "transfer_type": 10,
            "transfer_type_name": "Normal",
            "business_notes": "Payments ID: 27,28,24,26",
            "admin_notes": "Banco Itaú\r\nAg: 1568\r\nC/C: 06186-3\r\nCNPJ: 76.591.569.0001-30\r\nRazão Social: Associação Hospital de Proteção a Infância Dr. Raul Carneiro",
            "notification_url": null,
            "status": 40,
            "status_name": "Paga",
            "created_at": "2023-04-30T03:00:04.000000Z",
            "finished_at": "2023-05-02T22:54:50.000000Z",
            "updated_at": "2023-05-02T22:54:50.000000Z",
            "pix_key": null,
            "pix_key_type": null,
            "account_document": null,
            "account_holder": null
        },
        {
            "id": 12,
            "amount": 241542,
            "destination_type": 10,
            "destination_type_name": "Minha conta bancária",
            "destination_business_id": null,
            "service_fee": 480,
            "fee_service": 480,
            "debited_amount": 242022,
            "service_fee_type": "F",
            "transfer_type": 10,
            "transfer_type_name": "Normal",
            "business_notes": "Payments ID: 27,28,24,26",
            "admin_notes": "Banco Itaú\r\nAg: 1568\r\nC/C: 06186-3\r\nCNPJ: 76.591.569.0001-30\r\nRazão Social: Associação Hospital de Proteção a Infância Dr. Raul Carneiro",
            "notification_url": null,
            "status": 40,
            "status_name": "Paga",
            "created_at": "2023-04-30T03:00:04.000000Z",
            "finished_at": "2023-05-02T22:54:50.000000Z",
            "updated_at": "2023-05-02T22:54:50.000000Z",
            "pix_key": null,
            "pix_key_type": null,
            "account_document": null,
            "account_holder": null
        }
    ]
}
 

Exemplo de Resposta (200):


{
    "data": [
        {
            "id": 101,
            "amount": 2500,
            "destination_type": 10,
            "destination_type_name": "Minha conta bancária",
            "destination_business_id": null,
            "service_fee": 125,
            "fee_service": 125,
            "debited_amount": 2625,
            "service_fee_type": null,
            "business_notes": "Saque de exemplo",
            "admin_notes": "Nenhuma observação interna.",
            "notification_url": null,
            "status": 20,
            "status_name": "Em processamento",
            "created_at": "2026-02-01T10:00:00.000000Z",
            "finished_at": null,
            "updated_at": "2026-02-01T10:05:00.000000Z",
            "pix_key": "chave-pix-exemplo-1",
            "pix_key_type": 20,
            "account_document": "00000000000",
            "account_holder": "Empresa Exemplo 1"
        },
        {
            "id": 102,
            "amount": 8000,
            "destination_type": 30,
            "destination_type_name": "Outra conta bancária",
            "destination_business_id": null,
            "service_fee": 400,
            "fee_service": 400,
            "debited_amount": 8400,
            "service_fee_type": null,
            "business_notes": "Transferência de teste",
            "admin_notes": "Transferência processada com sucesso.",
            "notification_url": "https://webhook.exemplo.com/transfer/102",
            "status": 30,
            "status_name": "Concluída",
            "created_at": "2026-02-02T09:30:00.000000Z",
            "finished_at": "2026-02-02T09:35:00.000000Z",
            "updated_at": "2026-02-02T09:35:00.000000Z",
            "pix_key": "chave-pix-exemplo-2",
            "pix_key_type": 10,
            "account_document": "11111111111",
            "account_holder": "Empresa Exemplo 2"
        }
    ]
}
 

Requisição   

GET api/transfers

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de Consulta

page   integer  optional  

Página da listagem. Example: 1

per_page   integer  optional  

Itens por página (máximo 100). Example: 15

Solicitar um saque (transferência)

requires authentication

Cria uma solicitação de saque/transferência de valores da conta da empresa. O saque pode ser feito para a conta bancária própria da empresa ou para outra conta bancária via PIX.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/transfers';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'amount' => '100',
            'type' => 10,
            'transfer_type' => 20,
            'notes' => 'Saque para pagamento de fornecedores',
            'pix_key' => '12.345.678/0001-90',
            'pix_key_type' => 'cnpj',
            'account_document' => '12.345.678/0001-90',
            'account_holder' => 'João Silva',
            'notification_url' => 'https://exemplo.com/webhook/transfer',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/transfers" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": \"100\",
    \"type\": 10,
    \"transfer_type\": 20,
    \"notes\": \"Saque para pagamento de fornecedores\",
    \"pix_key\": \"12.345.678\\/0001-90\",
    \"pix_key_type\": \"cnpj\",
    \"account_document\": \"12.345.678\\/0001-90\",
    \"account_holder\": \"João Silva\",
    \"notification_url\": \"https:\\/\\/exemplo.com\\/webhook\\/transfer\"
}"

Exemplo de Resposta (200):


{
    "data": {
        "id": 12,
        "amount": 241542,
        "destination_type": 10,
        "destination_type_name": "Minha conta bancária",
        "destination_business_id": null,
        "service_fee": 480,
        "fee_service": 480,
        "debited_amount": 242022,
        "service_fee_type": "F",
        "transfer_type": 10,
        "transfer_type_name": "Normal",
        "business_notes": "Payments ID: 27,28,24,26",
        "admin_notes": "Banco Itaú\r\nAg: 1568\r\nC/C: 06186-3\r\nCNPJ: 76.591.569.0001-30\r\nRazão Social: Associação Hospital de Proteção a Infância Dr. Raul Carneiro",
        "notification_url": null,
        "status": 40,
        "status_name": "Paga",
        "created_at": "2023-04-30T03:00:04.000000Z",
        "finished_at": "2023-05-02T22:54:50.000000Z",
        "updated_at": "2023-05-02T22:54:50.000000Z",
        "pix_key": null,
        "pix_key_type": null,
        "account_document": null,
        "account_holder": null
    }
}
 

Exemplo de Resposta (201):


{
    "id": 123,
    "amount": 5000,
    "destination_type": 10,
    "destination_type_name": "Minha conta bancária",
    "destination_business_id": null,
    "service_fee": 250,
    "fee_service": 250,
    "debited_amount": 5250,
    "service_fee_type": null,
    "business_notes": "Saque para despesas gerais",
    "admin_notes": "Transferência criada com sucesso.",
    "notification_url": "https://webhook.exemplo.com/transfer",
    "status": 10,
    "status_name": "Solicitado",
    "created_at": "2026-01-01T12:00:00.000000Z",
    "finished_at": null,
    "updated_at": "2026-01-01T12:00:00.000000Z",
    "pix_key": "chave-pix-exemplo",
    "pix_key_type": 20,
    "account_document": "00000000000",
    "account_holder": "Empresa Exemplo"
}
 

Exemplo de Resposta (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "amount": [
            "O valor é obrigatório."
        ],
        "type": [
            "O tipo de destino é obrigatório."
        ]
    }
}
 

Requisição   

POST api/transfers

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros do Corpo

amount   numeric   

O valor do saque em centavos, se for 100 representa R$1,00. Example: 100

type   integer   

Tipo de destino. Valores: 10 (Minha conta bancária), 30 (Outra conta bancária). Example: 10

transfer_type   integer  optional  

Tipo de transferência. Valores: 10 (Normal), 20 (Express). Padrão: 10 (Normal). Example: 20

notes   string  optional  

Observações sobre a transferência. Example: Saque para pagamento de fornecedores

pix_key   string  optional  

Chave PIX. Obrigatória quando type é 30 (outra conta bancária). Example: 12.345.678/0001-90

pix_key_type   string  optional  

Tipo de chave PIX. Valores: "cpf", "cnpj", "email", "phone", "random". Obrigatório quando type é 30. Example: cnpj

account_document   string  optional  

CPF ou CNPJ do titular da conta. Obrigatório quando type é 30. Example: 12.345.678/0001-90

account_holder   string  optional  

Nome do titular da conta. Obrigatório quando type é 30. Example: João Silva

notification_url   string  optional  

URL para notificação webhook sobre mudanças de status da transferência. Se não fornecida, será usada a URL configurada no negócio. Example: https://exemplo.com/webhook/transfer

Obter detalhes de um saque/transferência

requires authentication

Retorna os detalhes de uma solicitação específica de saque/transferência.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/transfers/123';
$response = $client->get(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://api.webpag.com.br/api/transfers/123" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "data": {
        "id": 12,
        "amount": 241542,
        "destination_type": 10,
        "destination_type_name": "Minha conta bancária",
        "destination_business_id": null,
        "service_fee": 480,
        "fee_service": 480,
        "debited_amount": 242022,
        "service_fee_type": "F",
        "transfer_type": 10,
        "transfer_type_name": "Normal",
        "business_notes": "Payments ID: 27,28,24,26",
        "admin_notes": "Banco Itaú\r\nAg: 1568\r\nC/C: 06186-3\r\nCNPJ: 76.591.569.0001-30\r\nRazão Social: Associação Hospital de Proteção a Infância Dr. Raul Carneiro",
        "notification_url": null,
        "status": 40,
        "status_name": "Paga",
        "created_at": "2023-04-30T03:00:04.000000Z",
        "finished_at": "2023-05-02T22:54:50.000000Z",
        "updated_at": "2023-05-02T22:54:50.000000Z",
        "pix_key": null,
        "pix_key_type": null,
        "account_document": null,
        "account_holder": null
    }
}
 

Exemplo de Resposta (200):


{
    "id": 200,
    "amount": 7500,
    "destination_type": 10,
    "destination_type_name": "Minha conta bancária",
    "destination_business_id": null,
    "service_fee": 375,
    "fee_service": 375,
    "debited_amount": 7875,
    "service_fee_type": null,
    "business_notes": "Saque de exemplo para relatório",
    "admin_notes": "Nenhuma observação interna.",
    "notification_url": null,
    "status": 20,
    "status_name": "Em processamento",
    "created_at": "2026-02-03T14:00:00.000000Z",
    "finished_at": null,
    "updated_at": "2026-02-03T14:05:00.000000Z",
    "pix_key": "chave-pix-exemplo-unica",
    "pix_key_type": 20,
    "account_document": "22222222222",
    "account_holder": "Empresa Exemplo Única"
}
 

Exemplo de Resposta (404):


{
    "message": "Transferência não encontrada."
}
 

Requisição   

GET api/transfers/{id}

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

id   integer   

O ID da transferência. Example: 123

Cancelar um saque/transferência

requires authentication

Cancela uma solicitação de saque/transferência. Só é possível cancelar transferências que estejam com status "Solicitado" (10) ou "Processando" (50).

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/transfers/123';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://api.webpag.com.br/api/transfers/123" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "message": "Transferência cancelada com sucesso.",
    "transfer": {
        "id": 300,
        "amount": 6000,
        "destination_type": 10,
        "destination_type_name": "Minha conta bancária",
        "destination_business_id": null,
        "service_fee": 300,
        "fee_service": 300,
        "debited_amount": 6300,
        "service_fee_type": null,
        "business_notes": "Saque cancelado a pedido do cliente.",
        "admin_notes": "Cancelado via API Business.",
        "notification_url": "https://webhook.exemplo.com/transfer/300",
        "status": 30,
        "status_name": "Recusada",
        "created_at": "2026-02-04T09:00:00.000000Z",
        "finished_at": "2026-02-04T09:10:00.000000Z",
        "updated_at": "2026-02-04T09:10:00.000000Z",
        "pix_key": "chave-pix-cancelada",
        "pix_key_type": 10,
        "account_document": "33333333333",
        "account_holder": "Empresa Exemplo Cancelada"
    }
}
 

Exemplo de Resposta (404):


{
    "message": "Transferência não encontrada."
}
 

Exemplo de Resposta (422):


{
    "message": "Essa transferência não pode ser recusada."
}
 

Requisição   

DELETE api/transfers/{id}

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

id   integer   

O ID da transferência a ser cancelada. Example: 123

Alterar status da transferência (Apenas Sandbox/Desenvolvimento)

requires authentication

Este endpoint está disponível APENAS em ambiente de desenvolvimento. Altera manualmente o status de uma transferência para testar diferentes fluxos e webhooks.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/api/transfers/123/change-status-dev';
$response = $client->post(
    $url,
    [
        'headers' => [
            'auth-token' => '{CHAVE_API}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'status' => 40,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/api/transfers/123/change-status-dev" \
    --header "auth-token: {CHAVE_API}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": 40
}"

Exemplo de Resposta (403):


{
    "message": "Este endpoint está disponível apenas em ambiente de desenvolvimento."
}
 

Exemplo de Resposta (404):


{
    "message": "Transferência não encontrada."
}
 

Exemplo de Resposta (422):


{
    "message": "O status informado é inválido.",
    "errors": {
        "status": [
            "O status informado é inválido."
        ]
    }
}
 

Requisição   

POST api/transfers/{id}/change-status-dev

Cabeçalhos

auth-token      

Example: {CHAVE_API}

Content-Type      

Example: application/json

Accept      

Example: application/json

Parâmetros de URL

id   integer   

O ID da transferência. Example: 123

Parâmetros do Corpo

status   integer   

Novo status da transferência. Valores: 10 (Pendente), 20 (Aprovada), 30 (Recusada), 40 (Paga), 50 (Processando), 60 (Cancelado). Example: 40

Webhook

Pagamentos

Ao informar notification_url no pagamento, a webpag envia uma requisição para o URL informado com estas informações quando há alguma alteração de status no pagamento, evitando a necessidade de realizar consultas manualmente. Utilize a propriedade "status" para verificar o status atual do pagamento.

Para garantir que a requisição foi enviada pela webpag, utilize o business.id

Verifique os valores do "Exemplo de Resposta" para entender melhor o retorno.
Valores possíveis de status:

10 = Disponível
20 = Em análise
30 = Falhou
40 = Pago
45 = Reembolso Parcial
50 = Reembolsado
60 = Cancelado
70 = Chargeback
80 = Em Disputa
90 = Em Contestação

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "id": 3493,
    "business": {
        "id": 537,
        "name": "Maggio, Upton and Mann"
    },
    "payer_id": 881,
    "card_id": 1478,
    "name": "Pagamento utilizando pix",
    "amount": 1000,
    "fee_value": "1409.74",
    "installments": 1,
    "is_recurrent": false,
    "recurrence_code": "18811727811431",
    "frequency": null,
    "method": 30,
    "method_label": "Cartão de Crédito",
    "order_id": "<order_id>",
    "boleto": {
        "id": 7178,
        "linha_digitavel": "00190000090312855799299992855173897120000005000",
        "sequencial_code": 9999992855,
        "nosso_numero": "00031285579999992855",
        "codigo_barras": "00198971200000050000000003128557999999285517",
        "due_date": "2024-05-10T03:00:00.000000Z",
        "issue_date": "2024-05-08T03:00:00.000000Z",
        "amount": "50.00",
        "interest": "1.000",
        "fine": "2.000",
        "accept_after_due_date": null
    },
    "notification_url": "https://confirma.com/pagamento/confirmacao",
    "pix": {
        "id": 39,
        "uuid": "4222b7d7-0c98-4c48-b94a-49d23a98c245",
        "business_id": 45,
        "payment_id": 39488,
        "txid": "FdbMqfiIT2ki7FSKdMlofsNjzF",
        "key": "9e881f18-cc66-4fc7-8f2c-a795dbb2bfc1",
        "qrcode_data": "00020101021226870014br.gov.bcb.pix2565qrcodepix-h.bb.com.br/pix/v2/8c672b36-459e-48dc-aa14-0544186e321b520400005303986540550.005802BR5921PAPELARIA LEITE CUNHA6012RONDONOPOLIS62070503***63044061",
        "amount": "50.00",
        "expiration_date": "2024-05-08T21:43:33.000000Z",
        "status": 10,
        "created_at": "2024-05-08T20:43:33.000000Z",
        "updated_at": "2024-05-08T20:43:33.000000Z"
    },
    "spplited": false,
    "gateway": "Cielo E-commerce",
    "active": true,
    "status": 40,
    "status_label": "Pago",
    "start_date": null,
    "next_date": "2025-01-01",
    "transactions": [
        {
            "id": 3325,
            "type": 10,
            "type_label": "Aprovação",
            "transaction_id": "0820052749976",
            "response_status": "6 - Operation Successful",
            "errors": null,
            "status": 10,
            "status_label": "Sucesso",
            "created_at": "2024-08-20 17:27"
        }
    ],
    "splits": [],
    "created_at": "2024-08-20 17:27",
    "paid_at": "2024-08-20 17:27",
    "updated_at": "2024-08-20 17:27",
    "receipt_pdf_path": "http://localhost:81/payments/934123e8d7e3401eb703195d1/pdf",
    "card_flag": 20,
    "card_flag_label": "Mastercard"
}
 

Requisição   

POST /

Cabeçalhos

Content-Type      

Example: application/json

Accept      

Example: application/json

Transferência

Este exemplo representa o corpo enviado pelo webpag para a sua notification_url quando há alguma alteração de status em um saque/transferência.

O campo "type" segue o padrão transfer.<status_slug>, por exemplo transfer.pending, transfer.approved, transfer.denied, transfer.paid, transfer.processing ou transfer.cancelled.

Valores possíveis de status da transferência:

10 = Solicitado
20 = Aprovada
30 = Recusada
40 = Paga
50 = Processando
60 = Cancelado

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "id": "01J0Y7TF4QZ8KNGZ8DC1Y9TRNS",
    "type": "transfer.paid",
    "send_at": "2024-08-21T10:15:00.000000Z",
    "data": {
        "id": 1234,
        "amount": 150000,
        "destination_type": 10,
        "destination_type_name": "Conta Bancária",
        "destination_business_id": 45,
        "service_fee": 500,
        "fee_service": 500,
        "debited_amount": 150500,
        "service_fee_type": 10,
        "business_notes": "Saque semanal para conta principal",
        "admin_notes": null,
        "notification_url": "https://meusistema.com/webhook/transferencias",
        "status": 40,
        "status_name": "Paga",
        "created_at": "2024-08-21T09:00:00.000000Z",
        "finished_at": "2024-08-21T10:15:00.000000Z",
        "updated_at": "2024-08-21T10:15:00.000000Z",
        "pix_key": "usuario@empresa.com",
        "pix_key_type": 20,
        "account_document": "12345678000199",
        "account_holder": "EMPRESA EXEMPLO LTDA"
    }
}
 

Requisição   

POST /

Cabeçalhos

Content-Type      

Example: application/json

Accept      

Example: application/json

Estorno

Este exemplo representa o corpo enviado pelo webpag para a sua notification_url quando há alguma alteração de status em um estorno de pagamento (refund).

O campo "type" segue o padrão payment_refund.<status_slug>, por exemplo payment_refund.pending, payment_refund.processing, payment_refund.failed, payment_refund.success ou payment_refund.needs_reconciliation.

Valores possíveis de status do estorno:

10 = Pendente
20 = Processando
30 = Falhou
40 = Sucesso
50 = Necessita Reconciliação

Consulte também a seção "Webhooks de estorno (refunds)" para a tabela completa de status e mais detalhes sobre o payload.

Exemplo de Requisição:
$client = new \GuzzleHttp\Client();
$url = 'https://api.webpag.com.br/';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://api.webpag.com.br/" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Exemplo de Resposta (200):


{
    "id": "01J0Y7BAW4XHCNGZ8DC1Y9NRTJ",
    "type": "payment_refund.success",
    "send_at": "2024-08-20T17:27:00.000000Z",
    "data": {
        "id": "3f64b2e2-1c1a-4b5e-9c2b-5f8d07b6a9cd",
        "payment_id": 39488,
        "business_id": 45,
        "status": 40,
        "status_label": "Sucesso",
        "refund_amount": 5000,
        "refund_fee": 100,
        "before_amount": 10000,
        "before_fee": 200,
        "after_amount": 5000,
        "after_fee": 100,
        "credit_schedule_refund": null,
        "financial_entry_refund": null,
        "processed_at": "2024-08-20 17:27",
        "created_at": "2024-08-20 17:27",
        "updated_at": "2024-08-20 17:27"
    }
}
 

Requisição   

POST /

Cabeçalhos

Content-Type      

Example: application/json

Accept      

Example: application/json