API Reference / Webhooks
Send test webhook
POSThttps://api.moolre.com/open/webhook/test
Send a signed webhook.test event to the callback URL on your wallet right now, with the same headers, signature and body envelope as a real event, and see what your endpoint answered. A test event is sent once, with no retries, and appears in Webhook deliveries.
Headers
- X-API-USER string required
Your Moolre username.
- X-API-KEY string required
Your wallet private API key. A public key is refused.
Body parameters
- accountnumber string required
Your Moolre wallet account number.
Responses
200 Success
The test event was sent. data.delivered tells you whether your endpoint accepted it (a 2xx answer).
{ "status": 1, "code": "WHT01", "message": "Test webhook delivered.", "data": { "event_id": "evt_0123456789abcdef01234567", "delivered": true, "http": 200, "error": null, "response": "ok" }, "go": null, "meta": { "requestid": "req_c68f4c66115c26725c796242", "notices": [] }}200 (HTTP 422 in strict mode) No callback URL
The wallet has no callback URL. Set one with Update account.
{ "status": 0, "code": "WHT02", "message": "No callback URL is set on this wallet.", "data": "callback", "go": null, "meta": { "requestid": "req_c68f4c66115c26725c796242", "notices": [] }}