Bc customers

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Bc customers is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Work with BigCommerce customers — Customer API, customer groups, addresses, stored instruments, attributes, Customer Login API (SSO), and customer segmentation. Use when building customer-facing features or integrating customer data.

How to use this skill

Skill file

BigCommerce Customer Management

Before writing code

Fetch live docs:

  1. Web-search site:developer.bigcommerce.com rest customers for Customers API reference
  2. Fetch https://docs.bigcommerce.com/developer/docs/storefront/guides/customer-authentication/customer-login for Customer Login API
  3. Web-search bigcommerce customer groups api for customer group management

Customer API (V3)

Endpoints

| Endpoint | Methods | Description |

|----------|---------|-------------|

| /v3/customers | GET, POST, PUT, DELETE | Customer CRUD |

| /v3/customers/addresses | GET, POST, PUT, DELETE | Customer addresses |

| /v3/customers/attributes | GET, POST, PUT, DELETE | Custom attribute definitions |

| /v3/customers/attribute-values | GET, PUT, DELETE | Attribute values per customer |

| /v3/customers/form-field-values | GET, PUT | Form field values |

| /v3/customers/settings | GET, PUT | Customer settings |

Customer Fields

Core fields:

Creating Customers

POST /v3/customers
[{
  "email": "customer@example.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "authentication": {
    "new_password": "SecurePassword123!"
  }
}]

Note: V3 accepts arrays — batch create/update multiple customers at once.

Customer Groups

What They Do

Segment customers for pricing, access, and promotions:

Managing Groups

Default Groups

| Group | Description |

|-------|-------------|

| Guest | Non-logged-in visitors |

| Default | Default for new customers |

| Custom groups | Merchant-defined segments |

Customer Addresses

CRUD Operations

POST /v3/customers/addresses
[{
  "customer_id": 123,
  "first_name": "Jane",
  "last_name": "Doe",
  "address1": "123 Main St",
  "city": "Austin",
  "state_or_province": "Texas",
  "postal_code": "78701",
  "country_code": "US",
  "address_type": "residential"
}]

Custom Attributes

Attribute Definitions

Create custom fields for customer profiles:

POST /v3/customers/attributes
[{
  "name": "Loyalty Tier",
  "type": "string"
}]

Types: string, number, date, dropdown

Attribute Values

Set per customer:

PUT /v3/customers/attribute-values
[{
  "customer_id": 123,
  "attribute_id": 1,
  "value": "Gold"
}]

Customer Login API (SSO)

How It Works

Log customers into BigCommerce storefront from an external system:

  1. Generate a JWT token on your server with customer info
  2. Sign with your Client Secret
  3. Redirect customer to https://{store_url}/login/token/{jwt}
  4. BigCommerce validates the JWT and creates a session

JWT Payload

{
  "iss": "your_client_id",
  "iat": 1706140800,
  "jti": "unique-request-id",
  "operation": "customer_login",
  "store_hash": "abc123",
  "customer_id": 456,
  "redirect_to": "/account",
  "channel_id": 1
}

Sign with HMAC-SHA256 using your Client Secret.

Use Cases

Customer Impersonation (GraphQL)

For accessing customer-specific data in the GraphQL Storefront API:

Querying Customers

V3 Filters

Best Practices

Fetch the BigCommerce Customers API reference and Customer Login API documentation for exact endpoints, JWT format, and attribute types before implementing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.