Bc api rest

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

Bc api rest is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Use BigCommerce REST APIs — V2 and V3 endpoints, authentication, rate limiting, pagination, filtering, batch operations, and error handling. Use when integrating with BigCommerce data via REST API.

How to use this skill

Skill file

BigCommerce REST API Development

Before writing code

Fetch live docs:

  1. Fetch https://docs.bigcommerce.com/developer/api-reference/rest/admin/management/abandoned-carts for REST API overview
  2. Web-search site:developer.bigcommerce.com rest-management for Management API reference
  3. Web-search bigcommerce api v3 rate limits pagination for rate limit details

API Architecture

Two API Versions

| Version | Base URL | Notes |

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

| V2 | /stores/{hash}/v2/ | Legacy — orders, some customer endpoints |

| V3 | /stores/{hash}/v3/ | Modern — most resources, JSON:API-like |

V3 is preferred for all new development. V2 is still required for some resources that haven't been migrated.

Base URL

https://api.bigcommerce.com/stores/{store_hash}/v3/

The store_hash is found in the API Path when creating credentials.

Authentication

API Account Tokens

For server-to-server requests:

X-Auth-Token: {access_token}
Content-Type: application/json
Accept: application/json

OAuth Tokens

For apps using the OAuth flow — same header format, token obtained during installation.

Scopes

Tokens have scopes that control access:

Key V3 Endpoints

Catalog

| Endpoint | Methods | Description |

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

| /v3/catalog/products | GET, POST, PUT, DELETE | Products CRUD |

| /v3/catalog/products/{id}/variants | GET, POST, PUT, DELETE | Product variants |

| /v3/catalog/products/{id}/images | GET, POST, PUT, DELETE | Product images |

| /v3/catalog/categories | GET, POST, PUT, DELETE | Categories |

| /v3/catalog/brands | GET, POST, PUT, DELETE | Brands |

| /v3/catalog/products/channel-assignments | GET, PUT | Channel product assignments |

Orders (V2 — legacy but current)

| Endpoint | Methods | Description |

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

| /v2/orders | GET, POST, PUT | Orders |

| /v2/orders/{id}/products | GET | Order line items |

| /v2/orders/{id}/shipments | GET, POST, PUT | Shipments |

| /v2/orders/{id}/shipping_addresses | GET | Shipping addresses |

Customers

| Endpoint | Methods | Description |

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

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

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

| /v3/customers/attribute-values | GET, PUT, DELETE | Customer attributes |

Other Key Endpoints

| Endpoint | Description |

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

| /v3/channels | Storefronts/channels |

| /v3/carts | Server-side cart |

| /v3/checkouts | Server-side checkout |

| /v3/payments | Payment processing |

| /v3/content/widgets | Widgets |

| /v3/themes | Theme management |

| /v3/hooks | Webhooks |

| /v3/storefront/api-token | Storefront API tokens |

Pagination

V3 Pagination

Query parameters:

Response includes meta.pagination:

{
  "data": [...],
  "meta": {
    "pagination": {
      "total": 250,
      "count": 50,
      "per_page": 50,
      "current_page": 1,
      "total_pages": 5
    }
  }
}

V2 Pagination

Uses Link header with rel="next" and rel="previous".

Filtering

V3 Query Parameters

Rate Limiting

Default Limits

Typically 450 requests per 30-second window (varies by plan):

Headers

Best Practices for Rate Limits

Batch Operations

Some V3 endpoints support batch operations:

Error Handling

Response Format

{
  "status": 422,
  "title": "Unprocessable Entity",
  "type": "https://docs.bigcommerce.com/developer/api-reference/rest/overview",
  "errors": {
    "name": "Product name is required"
  }
}

Common Status Codes

| Code | Meaning |

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

| 200 | Success |

| 201 | Created |

| 204 | No Content (successful delete) |

| 400 | Bad Request (invalid parameters) |

| 401 | Unauthorized (invalid token) |

| 403 | Forbidden (insufficient scope) |

| 404 | Not Found |

| 409 | Conflict (duplicate resource) |

| 422 | Unprocessable Entity (validation error) |

| 429 | Rate Limited |

| 500 | Internal Server Error |

Best Practices

Fetch the BigCommerce REST API reference for exact endpoint paths, query parameters, request/response schemas, and current rate limits 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.