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
| Field | What it is |
|---|---|
subscriber_id | Your own reference for the customer. |
norbr_subscriber_id | The identifier the platform gives the subscriber. Use it as {id} in PATCH /subscriber/{id}. |
Subscriber fields
| Field | Type | Description |
|---|---|---|
email | string | Email of the subscriber. Unique among the subscribers of your merchant account. |
first_name | string | First name of the subscriber. |
last_name | string | Last name of the subscriber. |
phone_number | string | Phone number of the subscriber. |
status | string | active 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" }| Change | Effect on the subscriptions |
|---|---|
status: inactive | All running subscriptions of the subscriber become paused, with no end date. |
status: active | The 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
| HTTP | Code | Cause | What to do |
|---|---|---|---|
401 | 111022 | No API key, an unknown or inactive key, or a public key. | Call from your server with a valid private key. |
400 | 111012 | A field that cannot be changed was sent, for example token. | Remove the field. To change the card, use the hosted payment page. |
404 | 111012 | No subscriber with this id in your merchant account. | Check the id and the merchant account. |
409 | 111012 | The email is already used by another subscriber of your merchant account. | Use another email. |
Related pages
Updated about 17 hours ago