Draw Funds (optional)
Overview
The Drawdown Flow allows customers to access funds from their approved credit line. This flow enables businesses to draw only the amount they need, when they need it, providing flexible access to capital without taking a lump sum loan.
Key Features
- Flexible Access: Customers can draw only what they need, when they need it
- Pay Interest Only on Used Funds: Unlike traditional loans, customers only pay interest on the amount they've drawn
- Revolving Credit: As customers repay the drawn amount, that credit becomes available again for future use
- Quick Access: Once approved, funds can typically be accessed within 1-2 business days
Implementation
Prerequisites
Before implementing the Drawdown Flow, ensure:
- Your customer has completed the Link Flow to establish a connection with Slope
- Your customer has gone through the pre-qual flow.
- You have obtained a valid
accessToken
for the customer - You have included the Slope.js library in your application
Basic Implementation
window.SlopeJs.start({
publicKey: "YOUR_PUBLIC_KEY",
accessToken: "CUSTOMER_ACCESS_TOKEN",
flow: "create_drawdown",
onSuccess: (response) => {
console.log("Drawdown successful", response);
// Handle successful drawdown
},
onFailure: (error) => {
console.error("Drawdown failed", error);
// Handle failure
},
onClose: () => {
// Handle modal close
},
onEvent: (event) => {
console.log("Drawdown event", event);
// Track events for analytics
}
});
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
publicKey | string | Yes | Your Slope public key |
accessToken | string | Yes | The customer's access token obtained from the Link Flow |
flow | string | Yes | Must be set to "create_drawdown" |
onSuccess | function | Yes | Callback function when drawdown is successful |
onFailure | function | Yes | Callback function when drawdown fails |
onClose | function | No | Callback function when the modal is closed |
onEvent | function | No | Callback function for tracking events |
Response Object
The onSuccess
callback receives a response object which can be found here
Related Resources
Support
If you encounter any issues implementing the Drawdown Flow, please contact our support team at [email protected].
Updated 2 days ago