Bc orders

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

Bc orders is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Work with BigCommerce orders — order lifecycle, statuses, line items, shipments, refunds, order metafields, and fulfillment. Use when building order management integrations or processing orders programmatically.

How to use this skill

Skill file

BigCommerce Order Management

Before writing code

Fetch live docs:

  1. Web-search site:developer.bigcommerce.com rest orders for Orders API reference
  2. Web-search bigcommerce order api v2 v3 for endpoint availability
  3. Web-search bigcommerce order status list for status definitions

API Endpoints

V2 Orders (Primary)

Orders are primarily managed via V2 API:

| Endpoint | Methods | Description |

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

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

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

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

| /v2/orders/{id}/coupons | GET | Applied coupons |

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

| /v2/orders/{id}/taxes | GET | Tax details |

| /v2/order_statuses | GET | Available order statuses |

V3 Order Extensions

| Endpoint | Description |

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

| /v3/orders/{id}/metafields | Order metafields |

| /v3/orders/{id}/payment_actions | Payment actions (capture, void) |

| /v3/orders/settings | Order-level settings |

| /v3/orders/{id}/transactions | Payment transactions |

Order Lifecycle

Status Flow

Incomplete → Pending → Awaiting Payment → Awaiting Fulfillment
    → Partially Shipped → Shipped → Completed
    → Awaiting Pickup → Picked Up
    → Cancelled / Declined / Refunded / Disputed

Standard Statuses

| ID | Status | Description |

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

| 0 | Incomplete | Checkout not completed |

| 1 | Pending | Awaiting processing |

| 2 | Shipped | All items shipped |

| 3 | Partially Shipped | Some items shipped |

| 4 | Refunded | Fully refunded |

| 5 | Cancelled | Order cancelled |

| 6 | Declined | Payment declined |

| 7 | Awaiting Payment | Payment not yet received |

| 8 | Awaiting Pickup | Ready for customer pickup |

| 9 | Awaiting Shipment | Awaiting fulfillment |

| 10 | Completed | Order completed |

| 11 | Awaiting Fulfillment | Ready to be fulfilled |

| 12 | Manual Verification Required | Payment needs manual review |

| 13 | Disputed | Payment dispute opened |

| 14 | Partially Refunded | Partial refund issued |

Custom Statuses

Create custom statuses via admin or API — they map to one of the standard status groups for reporting.

Order Structure

Order Fields

Key fields returned by GET /v2/orders/{id}:

Line Items

GET /v2/orders/{id}/products returns:

Creating Orders

Server-Side Order Creation

POST /v2/orders with:

Useful for: POS integrations, phone orders, order imports.

Shipments

Creating Shipments

POST /v2/orders/{id}/shipments:

{
  "tracking_number": "1Z999AA10123456784",
  "shipping_method": "UPS Ground",
  "shipping_provider": "ups",
  "items": [
    { "order_product_id": 15, "quantity": 1 }
  ]
}

Shipment Flow

  1. Create shipment with tracking info and items
  2. Order status auto-updates to "Partially Shipped" or "Shipped"
  3. Customer receives shipping notification email
  4. Tracking info displayed in customer order history

Refunds

Creating Refunds

POST /v3/orders/{id}/payment_actions/refund:

{
  "items": [
    {
      "item_type": "PRODUCT",
      "item_id": 123,
      "quantity": 1,
      "reason": "Customer requested return"
    }
  ]
}

Refund Types

Order Metafields

Store custom data on orders (V3):

Querying Orders

Filters

Pagination

V2 uses page and limit parameters, plus Link headers for navigation.

Best Practices

Fetch the BigCommerce Orders API reference for exact endpoint paths, request/response schemas, and status definitions 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.