Skip to main content
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.enrolled webhook is fired to your configured webhook URL
  • The subscriber becomes active only after their first payment is confirmed on-chain
Provision access to your product only after you receive the subscriber.activated webhook — not immediately on enrollment.

Request

string
required
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"
string
required
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"
string
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"
object
Arbitrary key-value pairs to attach to the subscriber. Returned in all webhook events for this subscriber.Example: { "plan": "pro", "signupSource": "checkout" }

Response

object