Create a new session for the payment widget.
cURL
Create Select for Deposit Session
curl --request POST \ --url https://api.enterprise.sandbox.uphold.com/widgets/payment/sessions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "flow": "select-for-deposit"}'
201
Select for Deposit Session Created
{ "session": { "flow": "select-for-deposit", "url": "https://payment.enterprise.uphold.com/", "token": "GEbRxBN...edjnXbL" }}
OAuth 2.0
Session created.
The response is of type object.
object