Convert to Credit Backend Integration
In order to facilitate the ability for your system to grant users "credits" when doing a Convert to Credit withdrawal we have implemented a backend webhook subscription.
See how to subscribe to webhook events here.
Convert to Credit Withdrawal: C2CWithdrawal
C2CWithdrawal{
"intentId": "5a31e00a-a2b8-4cdc-80cb-3ce3312f8023", // UUID passed in via SDK
"userId": "<USER_ID>", // Lucra canonical user identifier (UUID)
"amount": 100, // dollar amount to be deducted from user's Lucra balance
"convertedAmount": 120, // credit amount to be awared to the user after multiplier
// optional custom JSON data passed from SDK through webhook (null by default)
"conversionMetadata": { "customKey1": "customValue1", "customKey2": "customValue2" }
}{
"status": "COMPLETED", // "COMPLETED" | "FAILED" | "PENDING" (case sensitive)
"responseText": "<ANY_USER_READABLE_STRING>", // displayed directly to end user
// optional transaction details, helpful for customer support inquiries
"responseDetails": "<ANY_VALID_JSON_TYPE>"
}

Last updated