---
title: "Webhook configuration"
method: PUT
path: "/shops/{SHOP_ID}"
tags: ["Webhook"]
---

# Webhook configuration

`PUT /shops/{SHOP_ID}`

Configure webhook settings. Go to **Setting -> Advance -> Third-party connection -> Webhook/API** to configure:
- Webhook URL (Required)
- Email error message
- Request Headers
- Webhook types: `orders`, `customers`, `products`, `variations_warehouses`, or `auto_call`

## Webhook Response Types

When webhook is enabled, the system sends POST requests to the configured URL. Response schema:

- **`orders`**: See [WebhookOrderResponse](#model/WebhookOrderResponse) schema
- **`customers`**: See [WebhookCustomerResponse](#model/WebhookCustomerResponse) schema
- **`products`**: See [WebhookProductResponse](#model/WebhookProductResponse) schema
- **`variations_warehouses`**: See [WebhookInventoryResponse](#model/WebhookInventoryResponse) schema
- **`auto_call`**: See [WebhookAutoCallResponse](#model/WebhookAutoCallResponse) schema

## Path parameters

- `SHOP_ID` integer, required

## Request body

- object
  - `shop` object, required
    - `webhook_enable` boolean — Enable/Disable Webhook
    - `webhook_url` string, uri — Link URL
    - `webhook_email` string, email — Error message email
    - `webhook_types` string[] — Webhook data
    - `webhook_partner` string — Partner
    - `webhook_headers` object — Webhook headers

## Response `200`

Success

- object
  - `shop` object — Shop information
    - `webhook_enable` boolean — Enable/Disable Webhook
    - `webhook_url` string, uri — Link URL
    - `webhook_email` string, email — Error message email
    - `webhook_types` string[] — Webhook data
    - `webhook_partner` string — Partner
    - `webhook_headers` object — Webhook headers
    - `additionalProperties` string
  - `success` boolean — Success status

---

[API](https://skmtc.dev/pancake/apis/pancake-pos-open-api.md) · [All operations](https://skmtc.dev/pancake/apis/pancake-pos-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pancake/pancake-pos-open-api/revisions/acb70aa4b3f5/schema)
