POST
/
webhooks
Webhook endpoint kaydı oluştur
curl --request POST \
  --url https://api.hemenmagaza.com/v1/webhooks \
  --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

Body

application/json
url
string<uri>
required
Example:

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

events
enum<string>[]
required
Minimum array length: 1
Available options:
order.created,
order.paid,
order.cancelled,
product.updated,
stock.changed

Response

Webhook kaydı oluşturuldu.

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"