wmiys / api.alpha

Api for the the backend
0 stars 0 forks source link

[/payout-accounts]: setup Payout Accounts resource endpoints #193

Closed rrickgauer closed 2 years ago

rrickgauer commented 2 years ago

https://github.com/wmiys/dump/blob/main/setting-up-lender-stripe-accounts.md

This resource should only be accessible by the front-end!

Database

The table should be called Payout_Accounts with these fields:

End Points

Setup a new payout account

POST: /payout-accounts

Returns:

Confirming a payout account

PUT: /payout-accounts/:payout_account_id

Request body should contain 1 field: confirmed = true

Returns: