Manage subscribers

Identify, update, deactivate and reactivate the subscribers behind your subscriptions.

A subscriber is the end customer behind one or more subscriptions. It holds the contact details of your customer and a status. Each subscription belongs to one subscriber, and one subscriber can have several subscriptions.

Identifiers

FieldWhat it is
subscriber_idYour own reference for the customer.
norbr_subscriber_idThe identifier the platform gives the subscriber. Use it as {id} in PATCH /subscriber/{id}.

Subscriber fields

FieldTypeDescription
emailstringEmail of the subscriber. Unique among the subscribers of your merchant account.
first_namestringFirst name of the subscriber.
last_namestringLast name of the subscriber.
phone_numberstringPhone number of the subscriber.
statusstringactive or inactive.

Every subscription webhook carries the subscriber of the subscription: subscriber_id, norbr_subscriber_id, subscriber_email and subscriber_full_name. See Configure & Customize Webhooks.

In the Console, subscribers are listed under Subscriptions › Subscribers.

Update contact details

Send PATCH /subscriber/{id} from your server with your private API key in the x-api-key header. Send at least one field; the others keep their value.

{ "email": "[email protected]", "phone_number": "+33600000000" }

The response returns the subscriber:

{
  "id": "6a3c5e2f9b1d4c8a7e0f2b64",
  "email": "[email protected]",
  "first_name": "Jane",
  "last_name": "Doe",
  "phone_number": "+33600000000",
  "status": "active",
  "subscriptions_touched": 0
}

token, tokens, subscriber_id, norbr_subscriber_id and merchant_account cannot be changed with this endpoint. To change the card used for the rebills, see Update the payment method.

Deactivate and reactivate a subscriber

Deactivating a subscriber stops the billing of all their subscriptions at once.

{ "status": "inactive" }
ChangeEffect on the subscriptions
status: inactiveAll running subscriptions of the subscriber become paused, with no end date.
status: activeThe subscriptions paused by the deactivation or by a retry policy resume. The subscriptions you paused yourself stay paused.

subscriptions_touched in the response gives the number of subscriptions paused or resumed by the change.

A subscription whose next rebill would fall after the end date of its offer stays paused when you reactivate its subscriber. See Subscription lifecycle.

Errors

HTTPCodeCauseWhat to do
401111022No API key, an unknown or inactive key, or a public key.Call from your server with a valid private key.
400111012A field that cannot be changed was sent, for example token.Remove the field. To change the card, use the hosted payment page.
404111012No subscriber with this id in your merchant account.Check the id and the merchant account.
409111012The email is already used by another subscriber of your merchant account.Use another email.

Related pages