Subscriptions
Enroll Subscriber
Enroll a customer into a subscription plan
POST
Enroll Subscriber
Enrolls a customer into a subscription plan. Call this from your backend when a customer chooses a plan — for example, after they complete your onboarding or sign-up flow. After enrollment:- The subscriber’s status is set to
pending - An invoice is created immediately for the first billing cycle
- A
subscriber.enrolledwebhook is fired to your configured webhook URL - The subscriber becomes
activeonly after their first payment is confirmed on-chain
Request
UUID of the subscription plan to enroll the customer into. The plan must belong to your merchant account and must not be archived.Example:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"The subscriber’s email address. Used for billing notifications and to identify the subscriber within a plan.A subscriber with the same email can only be enrolled in the same plan once at a time. Attempting to enroll a duplicate returns
409 Conflict.Example: "customer@example.com"Your internal customer or user ID. Stored on the subscriber record and returned in webhook payloads. Use this to correlate Settlx subscribers with users in your system.Maximum 255 characters.Example:
"usr_789abc"Arbitrary key-value pairs to attach to the subscriber. Returned in all webhook events for this subscriber.Example:
{ "plan": "pro", "signupSource": "checkout" }