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
}
}
]
}
]
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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
}
}
]
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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
}
}
]
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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
}
}
]
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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>"
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
Link de pagamento
Listar os links 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
}
]
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
Criar um link de pagamento
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
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
]
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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
}
]
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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."
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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."
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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."
]
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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
}"
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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
}
]
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
]
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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."
]
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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."
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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."
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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."
]
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.
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"
}
}
Resposta recebida:
Requisição falhou com erro:
Dica: Verifique se você está devidamente conectado à rede.
Se você é o mantenedor desta API, verifique se a sua API está em execução e se você habilitou o CORS.
Você pode verificar o console das Ferramentas de Desenvolvedor para informações de depuração.