๐ช Seller / Submerchant Webhooks
๐ช Seller / Submerchant Webhooks
๐ช Seller / Submerchant Webhooks
In order to respond in a timely manner, we suggest setting up a queue to process webhook payloads asynchronously. Your server can respond when it receives the webhook, and then process the payload in the background without blocking future webhook deliveries. Background processing of webhooks is preferred over inline processing.
Inline processing involves executing tasks immediately within the current execution context, potentially leading to longer response times. Background processing involves deferring tasks asynchronously, placing them in a queue for later execution. This allows the application to quickly respond to initial requests without waiting for the task to complete.
When receiving a request, itโs essential to be attentive regarding three key issues:
Webhooks allow you to subscribe to events from Coinflow about when a seller has registered their account.
๐ง Keep this Validation Key secret, but if it gets leaked you can easily regenerate it.
For seller registration events, select:
Sub-Merchant KYB Created, Sub-Merchant KYB Success, Sub-Merchant KYB Failure
๐ง Ensure that the
Authorizationheader in this request matches your Validation Key to verify its origin as Coinflow.
๐ Webhooks will retry until your server returns a 200 response code
or until it times out after 36 hours. Webhooks will also time out after 5 seconds without a response and will retry, so make sure your server responds within 5 seconds.