Retrieve Payment Session
Retrieve full session details including campaign branding, offer info, and lead data for hosted payment page rendering. The opaque session token serves as implicit authentication -- no API key required.
Rate limit: 1 request/second per IP (browser_read scope)
Path Parameters
- Type: stringtokenrequired
Responses
- application/json
- application/json
- application/json
Request Example for get/api/v1/payment-sessions/{token}/
curl '/api/v1/payment-sessions/{token}/'
{
"session_token": "ps_abc123def456ghi789jkl012mno345",
"status": "PENDING",
"amount": "29.99",
"currency": "EUR",
"attempts_remaining": 3,
"campaign": {
"name": "Premium Membership",
"branding": {
"logo_url": "https://cdn.example.com/logo.png",
"primary_color": "#1a73e8",
"accent_color": "#ffffff"
},
"content": {
"headline": "Complete Your Purchase"
},
"show_product_name": true,
"show_product_price": true,
"show_product_description": true,
"offer_overrides": {},
"success_redirect_url": "https://example.com/thank-you",
"failure_redirect_url": "https://example.com/payment-failed"
},
"offer": {
"name": "Monthly Premium",
"price": "29.99",
"currency": "EUR",
"billing_type": "recurring",
"product_name": "Premium Membership",
"product_description": "Full access to all premium features"
},
"mandate": {
"acceptance_mode": "checkbox"
},
"lead": {
"first_name": "Max",
"last_name": "Mustermann",
"email": "[email protected]"
}
}