메인 콘텐츠로 건너뛰기
POST
/
admin
/
webhooks
/
{id}
/
test
테스트 웹훅 발송
curl --request POST \
  --url https://api.headlesscommerce.io/v1/admin/webhooks/{id}/test \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_type": "<string>"
}
'
{
  "success": true,
  "status_code": 123,
  "response_time_ms": 123
}

인증

Authorization
string
header
필수

API Key. Example: sk_live_xxxxx or pk_live_xxxxx

경로 매개변수

id
string
필수

Resource ID

본문

application/json
event_type
string
필수

Event type to test. Example: order.created

응답

200 - application/json

성공

success
boolean
status_code
integer

Target server response code

response_time_ms
integer