Build the future of payments
Explore our unified APIs, download language-specific SDKs, configure sandboxes, and read comprehensive documentation to integrate multi-PSP routing in minutes.
Core API Endpoints
Our RESTful API is structured around resource endpoints. All request bodies must be JSON, and API calls require Bearer token authorization in the HTTP headers.
Creates a checkout session configuration, sets up routing rules, and returns a session token for client-side hosted fields.
Retrieves the details and payment authorization status of a specific checkout session.
Triggers a programmatic full or partial refund. The refund is automatically routed to the original executing PSP.
Dynamically updates the routing configuration (PSP weights and failover conditions) without deploying code.
# Request
curl -X POST https://api.payserv.com/v1/checkout/sessions \
-H "Authorization: Bearer sec_live_51N8x..." \
-H "Content-Type: application/json" \
-d '{
"amount": 1500,
"currency": "usd",
"routing_rule": "balanced_load",
"success_url": "https://yoursite.com/success"
}'
# Response (200 OK)
{
"id": "cs_test_9238jds",
"object": "checkout.session",
"amount": 1500,
"currency": "usd",
"status": "open",
"client_secret": "secret_982AJsda...",
"created": 1781778183
}