---
title: "webhook"
method: GET
path: "/v2/webhook"
tags: ["Webhooks"]
---

# webhook

`GET /v2/webhook`

Fetch webhook for the specified topic.

<details>
<summary><strong>Error Glossary</strong> (click to expand)</summary>

| Code | HTTP Status | Message |
|------|-------------|-------------|
| `AP009` | 401 | Unauthorized |
| `AP101` | 401 | No authenticated user |
| `AP1000` | 200 | Invalid API |
| `AP1101` | 200 | Error fetching webhook |
| `AP1107` | 400 | Merchant is required |

</details>

## Query parameters

- `topic` string

## Headers

- `authorization` string, required
- `Content-Type` string, required

## Response `200`

Success - List of webhooks

- union
  - WebhookGetResponse
    - `webhooks` object[] — Array of subscribed webhook objects
      - `id` integer — Id of webhook subscription.
      - `topic` string
      - `url` string, uri
      - `payloadVersion` string — Payload format version for this subscription (e.g.2.0). Determines the shape of delivered webhook payloads.
  - 200failure
    - `error` object
      - `code` string
      - `message` string
      - `help` string — Support contact information

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/aero/apis/aeropay-v2-api.md) · [All operations](https://skmtc.net/aero/apis/aeropay-v2-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aero/aeropay-v2-api/revisions/4700c4ceeaad/schema)
