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.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.enterprise.uphold.com/?sessionToken=NDcyZjA5ZmQtODkzOC00NTUwLTlkMjYtNGQwZWI5NDRkYTQy",
"token": "GEbRxBN...edjnXbL"
}
}Authorizations
OAuth 2.0
FlowClient Credentials
- Token URL
- /core/oauth2/token
Scopes1
widgets.payment.sessions:create
Grants access to create payment widget sessions.
Body
application/json
Response
Session created.
Show child attributes
Show child attributes
Was this page helpful?