PATCH
/
webhooks
/
{id}
Webhook kaydını güncelle
curl --request PATCH \
  --url https://api.hemenmagaza.com/v1/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": []
}
'
{
  "id": 123,
  "url": "<string>",
  "events": [],
  "secret_preview": "<string>"
}

Authorizations

Authorization
string
header
required

Authorization: Bearer YOUR_API_TOKEN

Path Parameters

id
integer
required

Body

application/json
url
string<uri>
events
enum<string>[]
Available options:
order.created,
order.paid,
order.cancelled,
product.updated,
stock.changed
status
enum<string>
Available options:
active,
paused

Response

200 - application/json

Webhook güncellendi.

id
integer
required
Example:

501

url
string<uri>
required
Example:

"https://example.com/webhooks/hemen-magaza"

events
enum<string>[]
required
Available options:
order.created,
order.paid,
order.cancelled,
product.updated,
stock.changed
status
enum<string>
required
Available options:
active,
paused
secret_preview
string | null
Example:

"whsec_****9ad2"