Create subscription checkout

📘

API Refs

Request body

NameTypeDescriptionRequired
policyholderIdnumberID of the policyholder for this subscriptionyes
carrierIdnumberID of the insurance carrieryes
planIdnumberThe ID of the subscription plan/priceyes
customerEmailstringCustomer email addressyes
grossPremiumnumberGross premium amount (2 decimal places)yes
effectiveDatedateEffective date of the invoiceyes
expirationDatedateExpiration date of the invoiceyes
customerNamestringCustomer name for subscriptionno
successUrlstringURL to redirect after successful subscriptionno
cancelUrlstringURL to redirect after cancelled subscriptionno
metadataobjectCustom key-value pairs for analytics (see API for details)no
isAutoRemitPremiumsbooleanAuto-remit premiums for created invoicesno
serviceFeenumberService fee amount for invoicesno
taxesnumberTax amount for invoicesno
commissionnumberCommission override amountno
numDaysForAutoRemindnumberDays for auto-reminder notificationsno
memostringCustom memo prefix (max 200 chars)no
brokerCodestringBroker code (max 50 chars)no
shouldBeSignedbooleanWhether invoices should be signedno
isCommissionVisibleForPolicyholderbooleanShow commission to policyholderno
mgaIdnumberMGA IDno
policyIdstringExternal policy ID (max 50 chars)no
downPaymentnumberDown payment amountno
financeAmountnumberFinance amountno

Response

Returns a checkout session object containing:

  • url: The hosted checkout page URL to redirect your customer to
  • expires_at: When this checkout session expires

Description

This endpoint creates a hosted checkout link where customers can securely enter their payment information and subscribe to your plans. This is ideal for redirecting users from your website or sending subscription links via email. The checkout page handles all payment collection, validation, and subscription creation automatically.