curl 'https://production.methodfi.com/token' \
-X POST \
-H 'Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc' \
-H "Content-Type: application/json" \
-d '{
"type": "balance_transfer",
"entity_id": "ent_4t8ycqn435",
"balance_transfer": {
...
}
}'
{
"success": true,
"data": {
"element_token": "pk_elem_qEqwrYEUELA6ExqfB4y8jjmpN8yBb38M",
"element_session_id": "elem_sess_dYJpqRhKNzaqw"
},
"message": null
}
Creating or updating an Element Session is as simple as creating an Element Token with a supported Session type
Body
The type of session to start. Must be balance_transfer
The ID of the associated Entity.
The balance transfer object to be processed.
The ID of the Element Session to update. Required for updating a session. If not provided, a new session will be created.
Additional fields based on session type
The balance transfer object to be processed.
balance_transfer.flow_type
The type of flow to start.
balance_transfer.payout_amount_min
The minimum amount that has be paid out.
balance_transfer.minimum_loan_amount
The minimum amount that can be loaned.
balance_transfer.payout_residual_amount_max
The maximum amount that can be paid out.
balance_transfer.loan_details_requested_amount
The amount requested for the loan.
balance_transfer.loan_details_requested_term
The term requested for the loan.
balance_transfer.loan_details_requested_rate
The rate requested for the loan.
balance_transfer.loan_details_requested_monthly_payment
The monthly payment requested for the loan.
Returns
Returns a Session object.
curl 'https://production.methodfi.com/token' \
-X POST \
-H 'Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc' \
-H "Content-Type: application/json" \
-d '{
"type": "balance_transfer",
"entity_id": "ent_4t8ycqn435",
"balance_transfer": {
...
}
}'
{
"success": true,
"data": {
"element_token": "pk_elem_qEqwrYEUELA6ExqfB4y8jjmpN8yBb38M",
"element_session_id": "elem_sess_dYJpqRhKNzaqw"
},
"message": null
}