Create checkout session
POST
/v1/payments/checkout
Create a checkout session for an invoice.
This creates a payment record and returns a URL where the customer can complete the payment.
Request Body required
Section titled “Request Body required ” CheckoutSessionCreate
Schema for creating a checkout session.
object
invoice_id
required
Invoice Id
string format: uuid
success_url
required
Success Url
URL to redirect after successful payment
string
cancel_url
required
Cancel Url
URL to redirect if payment is canceled
string
provider
PaymentProvider
Payment provider to use (stripe, ucp, manual)
string
Responses
Section titled “ Responses ”Successful Response
Only finalized invoices can be paid
Unauthorized – invalid or missing API key
Invoice not found
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Failed to create checkout session
Payment provider not configured