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"
}
}Body
application/json
- Select for deposit
- Select for withdrawal
- Authorize
- Transaction deposit end-to-end
- Transaction withdrawal end-to-end
- Transaction select deposit origin
- Transaction select withdrawal destination
- On-ramp select deposit origin
- On-ramp select withdrawal destination
- Off-ramp select deposit origin
- Off-ramp select withdrawal destination
- Transaction authorize
- Order authorize deposit
Was this page helpful?