Create a new payment session
ip parameterpaymentMethodId for a redirect-based payment provider (like Zen, Nicepay, PayPal, etc.), the API will automatically initiate the payment and return a redirect_url in the response.
This allows you to bypass the Payviox payment page entirely and redirect the customer directly to the payment provider.
paymentMethodId for a redirect-based providersession_id and redirect_url in the responseredirect_url| Provider | Payment Methods |
|---|---|
| Zen | zen_card, zen_blik, etc. |
| Nicepay | nicepay_va, nicepay_ewallet, etc. |
| PayPal | paypal |
| Payssion | Various local payment methods |
| Pallapay | Crypto payments |
| Crypto.com | cryptocom |
payment_error along with the session_id. You can then fall back to the standard flow:
ip parameter provided during session creation. This is a fraud prevention measure.Amount Validation
Items Validation
Order ID
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Payment amount in cents (e.g., 10000 = $100.00)
x >= 100Three-letter ISO currency code (e.g., USD)
3Customer identifier (email, customer ID, or unique identifier)
Your unique order identifier
Array of items being purchased
[
{
"name": "Premium Plan",
"quantity": 1,
"price": 10000
}
]Optional description of the payment
Force a specific payment method (optional)
Server-side only. The end-user's IP address
Custom key-value pairs to attach to this session. These will be returned in webhook notifications.
{
"user_id": "usr_123",
"campaign": "summer_sale"
}Session created successfully
Unique identifier for the created session