Skip to Content
StarsellDocs
API referenceWebhooks

Send a test delivery

POST
/stores/{storeId}/webhooks/{webhookId}/test

Send a test delivery now. With type, the latest real event of that type is the sample, marked test: true. Needs a key that can edit. Send an Idempotency-Key to make a retry safe: a repeat within 24 hours gets the first answer back instead of running again.

Authorization

storeKey
headerAuthorizationBearer <vtk_...>

A store API and MCP key

Path Parameters

storeId*string

The store id

webhookId*string

The webhook id

Header Parameters

Idempotency-Key?string

Makes a retry safe: the first call with this key runs, and a repeat within 24 hours (same path and body) gets the same answer back without running again. Per store. A call that failed keeps nothing, so its repeat runs again. The same key with another path or body is refused with 422.

Match^[!-~]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
type?string
Value in"order.created""order.paid""order.shipped""order.delivered""order.cancelled""order.refunded""order.edited""refund.created""return.requested""return.opened""return.received""return.closed""checkout.started""checkout.abandoned""checkout.recovered""checkout.converted""customer.first_order""product.created""product.updated""product.low_stock""product.out_of_stock""inventory.adjusted"

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X POST 'https://starsell.app/api/v1/stores/string/webhooks/string/test' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "delivery_id": 0,    "type": "string",    "ok": true,    "response_status": 0,    "response_body": "string",    "duration_ms": 0,    "error": "string"  }}