Перейти к содержимому

Send a test webhook

Запрос

Sends one webhook.test event to the current webhookUrl, without retries, and returns the outcome. Answers 200 even if your server returned an error — check ok and statusCode. Without a configured webhookUrl answers 400 (WEBHOOK_URL_NOT_CONFIGURED: … in message). Requires webhook.manage.

Безопасность
apiKeyAuth
curl -i -X POST \
  https://b2b-app.lumowallet.io/_mock/apis/webhooks/test \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Ответы

Delivery outcome

Телоapplication/json
deliveryIdstring, (uuid)
okboolean

Your server answered 2xx

statusCodeinteger or null
durationMsinteger
errorstring or null
responseBodystring or null
payloadobject(WebhookTestEvent)
signaturestring

The X-Lumo-Signature that was sent

targetUrlstring
Ответ
{ "deliveryId": "73dc828d-801d-4d29-b7e4-e046662a5901", "ok": true, "statusCode": 0, "durationMs": 0, "error": "string", "responseBody": "string", "payload": { "event": "webhook.test", "message": "Это тестовый webhook от Lumo B2B. Проверьте обработку и подпись X-Lumo-Signature.", "sentAt": "2019-08-24T14:15:22Z", "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda" }, "signature": "string", "targetUrl": "string" }