Webhook Setup
For Liquidity Partners to communicate status updates with the Client during workflows like KYB/KYC, Swap, Onramp, and Offramp, the Client must furnish the API endpoint for webhook notifications. Additionally, the client must configure or update their webhook URL for receiving webhooks in both the Sandbox and Production environments using the Set/Update Webhook URL.
eventTypewill determine which workflow the status update belongs to.referenceIdwill allow Client to determine which object to connect the status update to. The reference ID is different depending on the eventType.metadatawill contain additional information to help Client process webhook notifications.
{
"referenceId": string | number, (transactionId for onramp,offramp. clientCustomerId/submissionId for kyc/kyb)
"eventType": string, (onramp, offramp, kyc, kyb, fiatAccount, swap, virtual_account)
"status": string,
"metadata": json,
}AUTHENTICATION
HEADERS
X-ONRAMP-PAYLOAD
String
payload generated for the request
X-ONRAMP-SIGNATURE
String
signature generated for the request
Sample implementation for authenticating WhiteLabel webhooks:
Last updated