# Webhooks

Provider signals into Mayarin.

## Receive a provider webhook

`POST /v1/webhooks/{provider}`

Provider callback surface. Integrators normally configure outbound merchant webhooks in the dashboard instead of calling this operation. The raw body is passed to the adapter so signatures verify over exactly the signed bytes.

### Path parameters

- `provider` `string` _(required)_

### Request body (`application/json`)

### Responses

#### `200`: Signal accepted.

Body (`application/json`):

- `ok` `boolean` _(required)_

### Example request

```bash
curl https://api.mayarin.xyz/v1/webhooks/string \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{}'
```

```ts
fetch('https://api.mayarin.xyz/v1/webhooks/string', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({})
})
```
