App: Stripe
Create checkout session
Create checkout session.
post/api/v1/stripe/checkout/sessions
Request body
Example request
{
"customer": {
"name": "ACME, Inc.",
"currency": "USD",
"usageAttribution": {
"subjectKeys": [
"my-identifier"
]
}
},
"options": {
"currency": "USD",
"successURL": "http://example.com",
"billingAddressCollection": "required",
"taxIdCollection": {
"enabled": true,
"required": "if_supported"
},
"customerUpdate": {
"name": "auto",
"address": "auto"
}
}
}Response
The request has succeeded and a new resource has been created as a result.
Example response
{
"customerId": "01G65Z755AFWAKHE12NY0CQ9FH",
"currency": "USD",
"createdAt": "2023-01-01T01:01:01.001Z",
"expiresAt": "2023-01-01T01:01:01.001Z"
}