Override Pricing
Override amount, currency, or billing type when creating a campaign-based session.
curl -X POST "https://api.catalystpay.com/api/v1/payment-sessions/" \
-H "Authorization: Bearer rk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"campaign_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"amount": "19.99",
"currency": "EUR",
"billing_type": "RECURRING",
"billing_frequency": "MONTHLY",
"lead": {
"first_name": "Max",
"last_name": "Mustermann",
"email": "[email protected]",
"country": "DE"
}
}'
import requests
response = requests.post(
"https://api.catalystpay.com/api/v1/payment-sessions/",
headers={"Authorization": "Bearer rk_your_api_key"},
json={
"campaign_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"amount": "19.99",
"currency": "EUR",
"billing_type": "RECURRING",
"billing_frequency": "MONTHLY",
"lead": {
"first_name": "Max",
"last_name": "Mustermann",
"email": "[email protected]",
"country": "DE",
},
},
)
session = response.json()
print(session["payment_url"])
const response = await fetch(
'https://api.catalystpay.com/api/v1/payment-sessions/',
{
method: 'POST',
headers: {
'Authorization': 'Bearer rk_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
campaign_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
amount: '19.99',
currency: 'EUR',
billing_type: 'RECURRING',
billing_frequency: 'MONTHLY',
lead: {
first_name: 'Max',
last_name: 'Mustermann',
email: '[email protected]',
country: 'DE',
},
}),
}
);
const session = await response.json();
console.log(session.payment_url);
Response:
{
"session_token": "ps_abc123def456...",
"status": "PENDING",
"payment_url": "https://pay.catalystpay.com/s/ps_abc123def456..."
}
Only include the fields you want to override -- the rest inherit from the campaign's offer. Available override fields: amount, currency, billing_type, billing_frequency, trial_interval_unit, trial_period, trial_price. Overrides are per-session and do not modify the campaign or offer configuration. See How to Override Pricing for trial examples.