Bynet
  1. Webhook
Bynet
  • 🚀 Introdução à API
  • 📦 Criar Pedido
  • My company
    • Get all data
      GET
    • Update
      PUT
    • Update documents
      PUT
    • Get by ID
      GET
    • Update other info
      PUT
  • Products
    • Create
      POST
    • Find All
      GET
    • Find by ID
      GET
    • Update
      PUT
    • Delete
      DELETE
    • Update Status
      PUT
  • Bank
    • Create
      POST
    • Find all
      GET
    • Find by ID
      GET
    • Find pre bank
      GET
  • Transactions
    • Find All
      GET
    • Create
      POST
    • Find by ID
      GET
    • Update delivery status
      PUT
    • Export Excel
      POST
    • Summary all
      GET
    • Fee
      POST
    • Summary by ID
      GET
  • Checkout
    • Layouts
      • Create Layout
      • Find
      • Update settings
      • Update status
      • Find by ID
    • Find info
    • Create Order
    • Find info order
    • Find payment methods by ID
    • Create payment
    • Find payment methods
  • Transfers
    • Create
    • Update
    • Find all
    • Find by ID
    • summary
  • Cashout
    • Create
    • Find all
    • Find by ID
  • Customers
    • Find all
    • Find by ID
  • Balance
    • Find
    • Summary
    • Find finalcial reserve
  • Webhook
    • ⚙️ Webhook: Formato de Postback
    • Create
      POST
    • Find all
      GET
    • Find by ID
      GET
    • Update
      PUT
    • Delete
      DELETE
  1. Webhook

Create

POST
/api/user/webhook
Este endpoint permite ao usuário registrar um novo webhook, informando a URL de destino e o tipo de evento que deseja escutar.

✅ Requisitos da Requisição#

Método HTTP: POST
Endpoint: /api/user/webhook
Content-Type: application/json
Autenticação: api_token

🧠 Header da requisição#

CampoTipoObrigatórioDescrição
x-api-keystringSimToken de autenticação API Key
User-AgentAtivoB2B/1.0Sim

📥 Parâmetros obrigatórios#

No corpo da requisição (body):
{
  "url": "https://meusite.com/webhook-endpoint",
  "type": "evento.exemplo"
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Body

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/user/webhook' \
--header 'x-api-key: {Token}' \
--header 'User-Agent: AtivoB2B/1.0' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "http://webhook.com",
    "type": "INFRACTION"
}'
Response Response Example
201 - Success
{
    "status": 201,
    "message": "Webhook criado com sucesso",
    "data": {
        "id": "0000000-0000-0000-0000000000000",
        "gatewayId": "0000000-0000-0000-0000000000000",
        "sellerId": "0000000-0000-0000-0000000000000",
        "url": "http://webhook.com",
        "type": "INFRACTION",
        "createdAt": "2025-04-15T19:13:29.179Z",
        "updatedAt": "2025-04-15T19:13:29.179Z"
    },
    "error": null
}
Modified at 2025-07-23 19:02:40
Previous
⚙️ Webhook: Formato de Postback
Next
Find all
Built with