---
title: "Create Webhook"
method: POST
path: "/webhooks"
tags: ["Webhooks"]
---

# Create Webhook

`POST /webhooks`

What we do at Femsa translates into events. For example, an event of interest to us occurs at the time a payment is successfully processed. At that moment we will be interested in doing several things: Send an email to the buyer, generate an invoice, start the process of shipping the product, etc.

## Headers

- `Accept-Language` 'es' | 'en'

## Request body

- WebhookRequest — Parameters used to create or update a webhook.
  - `url` string, url, required — Here you must place the URL of your Webhook remember that you must program what you will do with the events received. Also do not forget to handle the HTTPS protocol for greater security.
  - `synchronous` boolean, required — It is a value that allows to decide if the events will be synchronous or asynchronous. We recommend asynchronous = false

## Response `200`

successful operation

## Other responses

- `401` — authentication error
- `500` — internal server error

---

[API](https://skmtc.net/digitalfemsa/apis/femsa-api.md) · [All operations](https://skmtc.net/digitalfemsa/apis/femsa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/digitalfemsa/femsa-api/versions/2e43caddf36b/schema)
