> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Register Shopify webhooks for order events

> Shopify webhook registration result

### Path parameters

<ParamField path="tenant_id" type="string" required>
  Tenant identifier
</ParamField>

### Request body

`object`

<ParamField body="baseUrl" type="string" required>
  Base URL for webhook callbacks (e.g., '[https://api.example.com](https://api.example.com)')
</ParamField>

### Response

`object`

<ResponseField name="body" type="object" required>
  Response body
</ResponseField>

### Status codes

| Code  | Meaning                             |
| ----- | ----------------------------------- |
| `200` | Shopify webhook registration result |
| `401` | Unauthorized                        |
| `424` | Shopify integration not configured  |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/shopify/webhooks/register' \
    --header 'x-stateset-api-key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "baseUrl": "string"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "body": {}
  }
  ```
</ResponseExample>
