wmiys / api.alpha

Api for the the backend
0 stars 0 forks source link

payout lenders #195

Closed rrickgauer closed 2 years ago

rrickgauer commented 2 years ago

https://stripe.com/docs/api/transfers

rrickgauer commented 2 years ago

Need to add a column the sql table to save the stripe transfer id and destination id

rrickgauer commented 2 years ago

To create a new balance transfer:

POST: /balance-transfers
  1. retrieve the user's Payout_Account id and Lender_Balance
  2. call the stripe create transfer method
  3. Call the Insert_Balance_Transfer procedure
    • insert the account_id, transfer_id, and amount
  4. return the new record