HTTP API

REST API for partners building direct integrations with Order Change.

Overview

The Order Change REST API allows partner systems to read order details, check edit eligibility, and apply changes on behalf of merchants. All edits respect the merchant's configured settings: edit window, enabled capabilities, and plan limits.

Order Change also provides an MCP Streamable HTTP interface at https://mcp.orderchange.com/mcp with the same capabilities for AI agents.

Base URL

https://api.orderchange.com

Authentication

API requests require authentication via API key or OAuth2. The API supports both ApiKeyAuth and OAuth2 schemes. Authentication credentials are issued per merchant and scoped to a single Shopify store.

Contact support@orderchange.com for API credentials and integration assistance.

Plan capabilities

Order Change has three plans. Caps count store orders each month, not edits. The API and MCP are available on Free and Pro. Enterprise raises limits and adds partner credentials. It does not remove the tools on the lower plans.

Free ($0/mo)

Up to 1,000 orders a month

  • ✓ Address corrections
  • ✓ Contact info updates (email, phone)
  • ✓ Order cancellation

Pro ($49/mo)

Up to 5,000 orders a month

  • ✓ Everything in Free
  • ✓ Line item & variant changes
  • ✓ Item removal
  • ✓ Shipping upgrades (paid)
  • ✓ Discount code application
  • ✓ One-click upsells (merchant keeps 100% GMV)

Enterprise

Custom · above 5,000 orders a month

  • ✓ One-click upsells (merchant keeps 100% GMV)
  • ✓ Custom integrations (subscription apps, warehouse/ERP, helpdesk)
  • ✓ A dedicated contact and a shared Slack channel
  • ✓ Priority support with an SLA
  • ✓ Security review, DPA, and custom terms
  • ✓ Higher API and MCP limits, plus partner keys
  • ✓ Custom edit rules
  • ✓ Hands-on onboarding
  • ✓ Early access to new features

API requests to Pro-only endpoints return a 403 error if the merchant is on the Free plan. Check eligibility first with GET /v1/stores/:store_id/orders/:order_id, which returns the order plus its eligibility. For only the edit window, use GET /v1/stores/:store_id/orders/:order_id/change-window.

Preview & Commit Pattern

Mutation endpoints follow a two-phase pattern: preview the change, then commit it.

  1. Preview: Try the change without applying it. A preview never changes the order, and it returns a preview_id for the commit call.
  2. Commit: Apply the previewed change. Must be called within the merchant's configured edit window.

This pattern lets customers and partners see the proposed change before the order is modified.

Key Endpoints

Read endpoints are scoped per order: /v1/stores/:store_id/orders/:order_id/...

Mutation endpoints use the custom method pattern: /v1/stores/:store_id/edits/resource:action

Read Endpoints

GET/v1/health

Health check endpoint.

GET/v1/stores/:store_id/orders/:order_id

Retrieve order details. Returns line items, customer info, shipping address, and current fulfillment status.

GET/v1/stores/:store_id/orders/:order_id/change-window

Get the edit window status for this order. Returns whether the window is still open and when it closes.

GET/v1/stores/:store_id/orders/:order_id/edits

List edit history for this order. Shows which edits were applied and when.

Mutation Endpoints

All mutations follow the custom method pattern with :preview and :commit suffixes.

POST/v1/stores/:store_id/edits/address:preview

Preview an address change without saving it. Returns a preview_id for the commit call. Free plan.

POST/v1/stores/:store_id/edits/address:commit

Commit a previewed address change. Free plan.

POST/v1/stores/:store_id/edits/items:preview

Preview line item changes: remove an item, change a quantity or swap a variant. Returns the updated order total. Pro plan.

POST/v1/stores/:store_id/edits/items:commit

Commit previewed item changes. Pro plan.

POST/v1/stores/:store_id/edits/discount:preview

Preview applying a discount code. Returns updated totals. Pro plan.

POST/v1/stores/:store_id/edits/discount:commit

Commit a previewed discount. Pro plan.

POST/v1/stores/:store_id/edits/cancel:preview

Preview order cancellation. Returns refund details. Free plan.

POST/v1/stores/:store_id/edits/cancel:commit

Cancel the order and issue a refund. Free plan.

MCP Interface Available

All REST API capabilities are also available through the MCP Streamable HTTP interface at https://mcp.orderchange.com/mcp. AI agents and MCP-compatible clients can use the same tool catalog with Bearer authentication.

Note on undocumented endpoints

This documentation covers partner-facing and agent-accessible endpoints. Internal endpoints (including service-to-service authentication and internal plan management) are not documented here and are subject to change without notice. Contact support@orderchange.com if you need access to capabilities not listed above.

Error Responses

The API returns standard HTTP status codes. Error responses include a JSON body with details:

{
  "error": {
    "code": "edit_window_closed",
    "message": "This order's edit window has expired.",
    "details": {
      "window_closed_at": "2026-09-20T14:30:00Z"
    }
  }
}

400: Invalid request (malformed JSON, missing required fields, validation failure)

401: Missing or invalid authentication token

403: Forbidden (plan limit reached, capability disabled by merchant, or operation not allowed for this order)

404: Order not found or not accessible with this token

429: Rate limit exceeded (see below)

500: Internal server error

Rate Limits

Rate limits are applied per merchant and vary by plan. Free and Pro include the API and MCP. Enterprise includes higher API and MCP limits and partner keys. For quota increases or custom integrations, talk to us. General API questions still go to support@orderchange.com.

Need help?

Partner support is available at support@orderchange.com.