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",
"options": {
"theme": {
"appearance": "dark"
}
}
}
'{
"session": {
"flow": "select-for-deposit",
"url": "https://payment-widget.enterprise.uphold.com/?sessionToken=NDcyZjA5ZmQtODkzOC00NTUwLTlkMjYtNGQwZWI5NDRkYTQy",
"token": "GEbRxBN...edjnXbL"
}
}Payment
Create session
Create a new session for the Payment Widget.
POST
/
widgets
/
payment
/
sessions
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",
"options": {
"theme": {
"appearance": "dark"
}
}
}
'{
"session": {
"flow": "select-for-deposit",
"url": "https://payment-widget.enterprise.uphold.com/?sessionToken=NDcyZjA5ZmQtODkzOC00NTUwLTlkMjYtNGQwZWI5NDRkYTQy",
"token": "GEbRxBN...edjnXbL"
}
}Authorizations
OAuth 2.0
Body
application/json
Response
Session created.
Show child attributes
Show child attributes
Was this page helpful?