Skip to main content
POST
/
webhooks
/
test
/
link
/
{id}
Trigger a test webhook event for a link (Sandbox only).
curl --request POST \
  --url http://localhost:8080/webhooks/test/link/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "webhook_event": "link.state_changed",
  "webhook_idempotency_key": "<string>"
}'
{
  "delivery_token": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

moneykit-version
string
default:2023-02-18

Path Parameters

id
string
required

The unique ID for this link.

Body

application/json
webhook_event
enum<string>
required

The webhook event you want to trigger for a link. An enumeration.

Available options:
link.state_changed,
link.product_refresh,
transactions.updates_available
webhook_idempotency_key
string
required

Set this to a unique value that you can check against the delivered webhook payload (webhook_idempotency_key).

Response

Successful Response

delivery_token
string
required