Emit Mock Webhooks

POST /v1/webhooks/mock (API Reference)

Description

  • Emits mock webhook calls, triggering a POST request from our system to the webhookUrl containing the specified orderId data or specified payload
    • One of either orderId OR payload should be passed in all requests. If both are passed, the payload will be ignored and order data will be sent.
  • This endpoint is only exposed in the staging environment and is intended for testing purposes only.

Body Parameters

  • (required) topic: Webhook topic - order_fulfillable or order_cancelled
  • (required) webhookUrl: URL for emitting the webhook
  • (optional) orderId: Specifying this will emit this order payload to your webhook
  • (optional) payload: This is a custom payload that you can specify for emitting to your webhook