Overview
Creates a new payment session for your customer. The session ID can be used to redirect the customer to the payment page or to fetch available payment methods.Payment sessions expire after 24 hours if no payment is initiated.
Authentication
This endpoint requires API key authentication. See Authentication for details.Request Body
The payment amount in cents (e.g., 10000 = $100.00)Minimum: 100 (equivalent to $1.00)
Three-letter ISO currency code (e.g., USD, EUR, GBP)Note: Currently only USD is supported
Customer information
Your unique order identifier. This will be included in webhooks.
Array of items being purchased
Optional description of the payment
Force a specific payment method (optional). When provided, only this payment method will be available.
Response
Unique identifier for the created session
Example Request
Example Response
Error Responses
Next Steps
After creating a session:Redirect Customer
Redirect the customer to the payment page using the session ID
Get Payment Methods
Fetch available payment methods for the session
Dashboard
Monitor your payments in real-time
API Playground
Test API calls directly from your browser
Validation Rules
Amount Validation
Amount Validation
- Minimum amount: 100 cents ($1.00)
- Must be a positive integer
- Total amount must equal the sum of all items (price × quantity)
Items Validation
Items Validation
- At least one item is required
- Each item must have a name, quantity, and price
- Quantity must be at least 1
- Price must be at least 1 cent
Order ID
Order ID
- Must be unique per business
- Used for tracking and webhooks
- Recommended to use your internal order/transaction ID