Subscribers
Manage subscribers.
Get Subscribers
GET https://api.bigcommerce.com/stores/{store_hash}/v3/customers/subscribersRequest
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- email in query - string
Filter items by email.
- first_name in query - string
Filter items by first_name.
- last_name in query - string
Filter items by last_name.
- source in query - string
Filter items by source.
- order_id in query - integer
Filter items by order_id.
- date_created in query - string
Filter items by date_created.
- date_created:min in query - stringFilter items by minimum date created, for example,
2024-05-14T09:34:00
or2024-05-14
. Returns metafields created after this date. - date_created:max in query - stringFilter items by maximum date created, for example,
2024-05-14T09:34:00
or2024-05-14
. Returns metafields created before this date. - date_modified in query - stringFilter items by date_modified. For example
v3/catalog/products?date_last_imported:min=2018-06-15
- date_modified:min in query - stringFilter items by minimum date modified, for example,
2024-05-14T09:34:00
or2024-05-14
. Returns metafields modified after this date. - date_modified:max in query - stringFilter items by maximum date modified, for example,
2024-05-14T09:34:00
or2024-05-14
. Returns metafields modified before this date. - page in query - integerSpecifies the page number in a limited (paginated) list of products.
- limit in query - integerControls the number of items per page in a limited (paginated) list of products.
- id in query - integerrequired
Filter items by ID.
- id:in in query - array
Filter items by ID.
id:in=4,5,6
Type: array[integer]
example
Response
Body
Response payload for the BigCommerce API.
dataarray[object]
example
Create a Subscriber
POST https://api.bigcommerce.com/stores/{store_hash}/v3/customers/subscribersRequest
Creates a Subscriber.
Required Fields
Read Only Fields
- id
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
The model for a POST to create a subscriber.
emailstring
The email of the subscriber. Must be unique.
first_namestring
>= 0 characters<= 255 charactersThe first name of the subscriber.
last_namestring
>= 0 characters<= 255 charactersThe last name of the subscriber.
sourcestring
>= 0 characters<= 255 charactersThe source of the subscriber. Values are:
storefront
,order
, orcustom
.order_idinteger or null
The ID of the source order, if source was an order.
Min: 1Max: 2147483647channel_idinteger
The channel ID where the subscriber was created.Min: 1Max: 2147483647
example
Response
Body
dataobject
Full subscriber object returned in responses.
example
Delete Subscribers
DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/customers/subscribersRequest
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- email in query - string
Filter items by email.
- first_name in query - string
Filter items by first_name.
- last_name in query - string
Filter items by last_name.
- source in query - string
Filter items by source.
- order_id in query - integer
Filter items by order_id.
- date_created in query - string
Filter items by date_created.
- date_modified in query - stringFilter items by date_modified. For example
v3/catalog/products?date_last_imported:min=2018-06-15
example
Response
Get a Subscriber
GET https://api.bigcommerce.com/stores/{store_hash}/v3/customers/subscribers/{subscriber_id}Request
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- subscriber_id in path - integerrequired
The ID of the
Subscriber
requested.
example
Response
Body
dataobject
Full subscriber object returned in responses.
example
Update a Subscriber
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/customers/subscribers/{subscriber_id}Request
Updates a Subscriber.
Read Only Fields
- id
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- subscriber_id in path - integerrequired
The ID of the
Subscriber
requested. - Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
The model for a PUT to update a subscriber.
emailstring
The email of the subscriber. Must be unique.
first_namestring
>= 0 characters<= 255 charactersThe first name of the subscriber.
last_namestring
>= 0 characters<= 255 charactersThe last name of the subscriber.
sourcestring
>= 0 characters<= 255 charactersThe source of the subscriber. Values are:
storefront
,order
, orcustom
.order_idinteger or null
The ID of the source order, if source was an order.
Min: 1Max: 2147483647channel_idinteger
The channel ID where the subscriber was created.Min: 1Max: 2147483647
example
Response
Body
dataobject
Full subscriber object returned in responses.
example
Delete a Subscriber
DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/customers/subscribers/{subscriber_id}Request
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- subscriber_id in path - integerrequired
The ID of the
Subscriber
requested.
example
Response
See something you can improve? Edit this file on GitHub