BigCommerce
Management API
Attribute Values

Customers V3

Get All Customer Attribute Values

GET /customers/attribute-values

Request

Returns a list of Customer Attribute Values. Optional filter parameters can be passed in.

Authentication

  • X-Auth-Token in header - required

Parameters

  • store_hash in path - string
  • Accept in header with default of application/json - string
  • Content-Type in header with default of application/json - string
  • page in query - integer

    Page number. page=1

  • limit in query - number

    Items count per page. limit=50

  • customer_id:in in query - array

    Filter items by the customer ID. customer_id:in=23,24,55

  • attribute_id:in in query - array

    Filter items by the attribute ID. attribute_id:in=1,2

  • name in query - string

    Filter items by the attribute name. name=age

  • date_created in query - string

    Filter items by date_created. date_created=2018-09-05T13:43:54

  • date_created:max in query - string

    Filter items by maximum date_created. ISO 8601 full-date is required, ISO 8601 full-time is not required. UNIX timestamp also accepted. date_created=2021-01-07 or date_created=1610051296000

  • date_created:min in query - string

    Filter items by minimum date_created. ISO 8601 full-date is required, ISO 8601 full-time is not required. UNIX timestamp also accepted. date_created=2021-01-07 or date_created=1610051296000

  • date_modified in query - string

    Filter items by date_modified. date_modified=2018-09-05T13:45:03

  • date_modified:max in query - string

    Filter items by maximum date_modified. ISO 8601 full-date is required, ISO 8601 full-time is not required. UNIX timestamp also accepted. date_created=2021-01-07 or date_created=1610051296000

  • date_modified:min in query - string

    Filter items by minimum date_modified. ISO 8601 full-date is required, ISO 8601 full-time is not required. UNIX timestamp also accepted. date_created=2021-01-07 or date_created=1610051296000

example

Response

Body

object | application/json

Response payload for the BigCommerce API.

  • data
    array[object]

  • meta
    object

    Data about the response, including pagination and collection totals.

example

Upsert Customer Attribute Values

PUT /customers/attribute-values

Request

Upserts Customer Attribute Values. Updates the attribute values on the Customer. Multiple customer attribute values can be updated in one call.

Upsert checks for an existing record. If there is none, it creates the record, if there is a matching record, it updates that record.

Limits

  • 10 per call limit.

Authentication

  • X-Auth-Token in header - required

Parameters

  • store_hash in path - string
  • Accept in header with default of application/json - string
  • Content-Type in header with default of application/json - string

Body

array | application/json
  • id
    integer

    Attribute value ID.

  • attribute_id
    integer
    required

    Attribute ID.

  • value
    string
    required

    Attribute value. This will always be a string, regardless of the attributeʼs type.

    Corresponds to attribute_value used in customer attribute values GET requests.

    >= 0 characters<= 255 characters

    Example: string

  • customer_id
    integer
    required

    Customer ID.

    Example: 8504

Example

Response

Body

object | application/json

Response payload for the BigCommerce API.

  • data
    array[object]

  • meta
    object

    Data about the response, including pagination and collection totals.

example

Delete Customer Attribute Values

DELETE /customers/attribute-values

Request

Deletes Customer Attribute Values. Deletes the attribute value from the customer.

Required Query

  • id:in - ID of the Customer Attribute Value

Authentication

  • X-Auth-Token in header - required

Parameters

  • store_hash in path - string
  • id:in in query - array - required

    Filter items by ID. id:in=4,5,6

  • Accept in header with default of application/json - string
  • Content-Type in header with default of application/json - string

example

Response

Did you find what you were looking for?