POST /v1/webhook-endpoints/{endpointId}/test
curl --request POST \
--url https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"queued": false
}
'import requests
url = "https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}/test"
payload = { "queued": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({queued: false})
};
fetch('https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"http_status": 123,
"accepted": true
}Endpoints
Send a Test Event
Send a synthetic event to check your receiver.
POST
/
v1
/
webhook-endpoints
/
{endpointId}
/
test
POST /v1/webhook-endpoints/{endpointId}/test
curl --request POST \
--url https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"queued": false
}
'import requests
url = "https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}/test"
payload = { "queued": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({queued: false})
};
fetch('https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"http_status": 123,
"accepted": true
}The endpoint must be verified and subscribed to the event type, or the request returns
409 WEBHOOK_TEST_BLOCKED.
Send now. { "type": "payment.succeeded" } sends a signed example payload right away and returns your receiver’s http_status, with accepted: true for a 2xx response. Nothing is stored.
Queue. { "type": "card_enrollment.completed", "queued": true } checks the queued delivery path. The endpoint must also be enabled. The response is { "queued": true, "event_id": "evt_…" }. The test event then appears in List deliveries and List events.
Test payloads have "test": true and example data. They check delivery to your receiver, not enrollment or payment behavior.
Returns 422 WEBHOOK_RECEIVER_UNAVAILABLE when the receiver can’t be reached securely. See Testing webhooks.Authorizations
Your secret key: sk_test_* (sandbox) or sk_live_* (production).
Path Parameters
Body
application/json
Available options:
payment.credentials_ready, payment.succeeded, payment.failed, card_enrollment.completed, card_enrollment.failed, card_enrollment.cancelled, card_enrollment.expired, mandate.created, mandate.creation_failed, mandate.creation_cancelled, mandate.creation_expired, mandate.paused, mandate.resumed, mandate.cancelled, mandate.expired, quote.request_failed Use queued delivery on an active endpoint; synthetic, non-financial data