curl --request POST \
--url https://api.example.com/v2/account/payment-session/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paymentOptions": [
{
"amount": 123,
"currency": "<string>",
"paymentMethod": "<string>"
}
],
"outputCurrency": "<string>",
"externalId": "<string>",
"metadata": {},
"onCompleteRedirectionUrl": "<string>",
"appearance": {
"accent": "<string>",
"accentForeground": "<string>",
"background": "<string>",
"border": "<string>",
"card": "<string>",
"destructive": "<string>",
"foreground": "<string>",
"input": "<string>",
"locale": "<string>",
"logoUrl": "<string>",
"mutedForeground": "<string>",
"popover": "<string>",
"primary": "<string>",
"primaryForeground": "<string>",
"radius": "<string>",
"ring": "<string>",
"secondary": "<string>",
"secondaryForeground": "<string>",
"showBrlaLogo": true,
"showPoweredBy": true,
"widgetBackground": "<string>"
},
"expirationInMinutes": 123
}
'