---
updatedAt: 2025-08-08T18:45:59.000Z
agentTools:
  projectIndex: https://devs.bs2.com/llms.txt
---

# Endpoint para receber Webhook de Pagamento efetivado no fluxo síncrono

**Características:**
- Endpoint que deve ser implementado pelo cliente para receber Webhook de Pagamento efetivado no fluxo síncrono.
**Requisitos:**
Realizar a configuração/cadastro do Webhook no Contexto do PIX Direto

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Bs2.Pix.Direto.Webhook.Mock",
    "version": "v1"
  },
  "paths": {
    "/bs2/pix/direto/webhook/mock/pagamento": {
      "post": {
        "tags": [
          "Pagamento"
        ],
        "summary": "Endpoint para receber Webhook de Pagamento efetivado no fluxo síncrono",
        "description": "**Características:**\r\n- Endpoint que deve ser implementado pelo cliente para receber Webhook de Pagamento efetivado no fluxo síncrono.\r\n**Requisitos:**\r\nRealizar a configuração/cadastro do Webhook no Contexto do PIX Direto",
        "requestBody": {
          "description": "Webhook com dados do pagamento",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/bs2.core2.pix.direto.webhook.mock.controllers.pagamento.PagamentoRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/bs2.core2.pix.direto.webhook.mock.controllers.pagamento.PagamentoRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/bs2.core2.pix.direto.webhook.mock.controllers.pagamento.PagamentoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook recebido com sucesso.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/microsoft.aspNetCore.mvc.NoContentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/microsoft.aspNetCore.mvc.NoContentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/microsoft.aspNetCore.mvc.NoContentResult"
                }
              }
            }
          },
          "400": {
            "description": "Ocorreu um erro ao receber o Webhook."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "bs2.core2.pix.direto.webhook.mock.compartilhados.Erro": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "nullable": true
          },
          "descricao": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "bs2.core2.pix.direto.webhook.mock.compartilhados.Pessoa": {
        "type": "object",
        "properties": {
          "nome": {
            "type": "string",
            "nullable": true
          },
          "nomeFantasia": {
            "type": "string",
            "nullable": true
          },
          "documento": {
            "type": "string",
            "nullable": true
          },
          "ispb": {
            "type": "string",
            "nullable": true
          },
          "agencia": {
            "type": "string",
            "nullable": true
          },
          "conta": {
            "type": "string",
            "nullable": true
          },
          "contaTipo": {
            "$ref": "#/components/schemas/bs2.core2.pix.direto.webhook.mock.compartilhados.TipoConta"
          },
          "chaveDict": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "bs2.core2.pix.direto.webhook.mock.compartilhados.Reenvio": {
        "type": "object",
        "properties": {
          "ultimoEnvioId": {
            "type": "string",
            "format": "uuid"
          },
          "tentativa": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "bs2.core2.pix.direto.webhook.mock.compartilhados.StatusPagamento": {
        "enum": [
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "format": "int32"
      },
      "bs2.core2.pix.direto.webhook.mock.compartilhados.TipoConta": {
        "enum": [
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "bs2.core2.pix.direto.webhook.mock.controllers.pagamento.PagamentoRequest": {
        "type": "object",
        "properties": {
          "pagamentoId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "$ref": "#/components/schemas/bs2.core2.pix.direto.webhook.mock.compartilhados.StatusPagamento"
          },
          "erro": {
            "$ref": "#/components/schemas/bs2.core2.pix.direto.webhook.mock.compartilhados.Erro"
          },
          "endToEndId": {
            "type": "string",
            "nullable": true
          },
          "endToEndIdOrigem": {
            "type": "string",
            "nullable": true
          },
          "valor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "data": {
            "type": "string",
            "format": "date-time"
          },
          "campoLivre": {
            "type": "string",
            "nullable": true
          },
          "pagador": {
            "$ref": "#/components/schemas/bs2.core2.pix.direto.webhook.mock.compartilhados.Pessoa"
          },
          "recebedor": {
            "$ref": "#/components/schemas/bs2.core2.pix.direto.webhook.mock.compartilhados.Pessoa"
          },
          "solicitacaoId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reenvio": {
            "$ref": "#/components/schemas/bs2.core2.pix.direto.webhook.mock.compartilhados.Reenvio"
          },
          "chaveIdempotencia": {
            "type": "string",
            "format": "uuid"
          },
          "isReenvio": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "microsoft.aspNetCore.mvc.NoContentResult": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      }
    }
  }
}
```