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:

  1. Your customer has completed the Link Flow to establish a connection with Slope
  2. Your customer has gone through the pre-qual flow.
  3. You have obtained a valid accessToken for the customer
  4. 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

ParameterTypeRequiredDescription
publicKeystringYesYour Slope public key
accessTokenstringYesThe customer's access token obtained from the Link Flow
flowstringYesMust be set to "create_drawdown"
onSuccessfunctionYesCallback function when drawdown is successful
onFailurefunctionYesCallback function when drawdown fails
onClosefunctionNoCallback function when the modal is closed
onEventfunctionNoCallback 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].