ARCHIVE
Domain research (1 October 2026): the OpenCart resource map behind the former REST design. Transport and method names on this page are superseded by Module Protocol 1 and the operation shape; the inventory of entities remains useful research, not a requirement to implement every route.
OpenCart: complete REST resource map
API design based on OpenCart 3.0.3.5 and 3.0.5.1 · 6 October 2026. This page maps the core shop domains to our module API, not OpenCart’s built-in API. It is a comprehensive resource inventory and proposed extension plan, not a claim that these endpoints exist. The accepted pilot remains connection, catalog reads and approved base-price changes. Only capabilities proved by the installed module may be enabled.
Read REST 1.0 for connection, signatures, authority, receipts and recovery. That contract governs the pilot. Routes beyond it below are proposals; their exact schemas and capability versions must be frozen before implementation. OpenCart 4 requires a separate adapter and compatibility review.
Download the resource inventory (JSON). This file is a design catalogue, not executable OpenAPI. The old contracts/module-rest/openapi.yaml still describes a conflicting /v2 draft; it must not be used as the REST 1.0 specification.
Stable REST and flexible MCP tools
One interface for the agent, one contract for modules
Agentfy calls https://api.storedeputy.ai/mcp. Store Deputy resolves the authorized shop from trusted context and calls its registered base, for example https://shop.example/storedeputy.php/v1. The model cannot supply an arbitrary host, connection credential, employee identity or approval.
The module maps these resources to platform models and enforces local permissions. Store Deputy owns employee authority, approvals and the cross-platform tool interface. A list of database tables is not an API: implementation details and secrets stay inside the shop.
How to read the map
All paths in the tables are relative to /v1; every listed resource path is a GET. A semicolon separates independently addressable routes. {id} belongs to the preceding resource, and nested IDs must belong to that parent. Read-only means no mutation is proposed here, not public access.
Writes use POST /operations, with the indicated kind, and are read back through GET /operations/{operationId}. No parallel undocumented PATCH/DELETE mechanism is implied. For example, category creation is kind: category.create, not POST /categories/{id}. An operation is a first-class REST resource with identity and a result.
Fields describe the normalized response projection, not writable mass-assignment input. Every mutable projection also needs a strong revision. Personal fields require explicit access; omitted sensitive fields must not be inferred as empty. All extension mutations below need separate input schemas, capabilities, approval rules and conformance tests.
Catalog
| Resource | GET route(s) | Response fields / relationships | Proposed operation kind |
|---|---|---|---|
| Products | /products/products/{id} | id, model, sku, identifiers, name, basePrice, currency, quantity, status, manufacturerId, taxClassId, revision, affectedStoreIds | product.createproduct.updateproduct.delete |
| Base price | /products/{id}/base-price | productId, amount, currency, revision, affectedStoreIds | product.basePrice.set |
| Translations and SEO text | /products/{id}/translations | language, name, description, tags, metaTitle, metaDescription, metaKeyword | product.translation.set |
| Category tree | /categories/categories/{id} | id, parentId, pathIds, translations, storeIds, imageId, sortOrder, status, revision | category.createcategory.updatecategory.movecategory.delete |
| Product categories | /products/{id}/categories | categoryIds, revision | product.categories.set |
| Manufacturers | /manufacturers/manufacturers/{id} | id, name, imageId, storeIds, sortOrder, revision | manufacturer.createmanufacturer.updatemanufacturer.delete |
| Attribute groups | /attribute-groups/attribute-groups/{id} | id, translations, sortOrder, revision | attributeGroup.createattributeGroup.updateattributeGroup.delete |
| Attribute definitions | /attributes/attributes/{id} | id, attributeGroupId, translations, sortOrder, revision | attribute.createattribute.updateattribute.delete |
| Product attributes | /products/{id}/attributes | attributeId, values[{language,text}], revision | product.attributes.set |
| Option definitions | /options/options/{id}/options/{id}/values | id, type, translations, values[{id,translations,imageId,sortOrder}], revision | option.createoption.updateoption.deleteoption.value.createoption.value.updateoption.value.delete |
| Product options | /products/{id}/options | id, optionId, required, value, values[{id,optionValueId,quantity,subtract,priceAdjustment,pointsAdjustment,weightAdjustment}], revision | product.options.set |
| Filters | /filter-groups/filter-groups/{id}/filters/filters/{id} | id, filterGroupId, translations, sortOrder, revision | filterGroup.createfilterGroup.updatefilterGroup.deletefilter.createfilter.updatefilter.delete |
| Filter associations | /products/{id}/filters/categories/{id}/filters | filterIds, revision | product.filters.setcategory.filters.set |
| Images | /products/{id}/images | imageId, role, sortOrder, revision | product.images.set |
| Related products | /products/{id}/related-products | productIds, revision | product.relatedProducts.set |
| Downloads | /downloads/downloads/{id}/products/{id}/downloads | id, translations, displayFilename, mediaId, revision; downloadIds | download.createdownload.updatedownload.deleteproduct.downloads.set |
| Reviews | /reviews/reviews/{id} | id, productId, customerId, author, text, rating, status, createdAt, revision | review.createreview.updatereview.moderatereview.delete |
| Recurring profiles | /recurring-profiles/recurring-profiles/{id}/products/{id}/recurring-profiles | id, translations, price, frequency, cycle, duration, trial, status; customerGroupId | — |
Pricing and inventory
| Resource | GET route(s) | Response fields / relationships | Proposed operation kind |
|---|---|---|---|
| Quantity discounts | /products/{id}/discounts | id, customerGroupId, minQuantity, priority, price, dateStart, dateEnd, revision | product.discount.createproduct.discount.updateproduct.discount.delete |
| Special prices | /products/{id}/specials | id, customerGroupId, priority, price, dateStart, dateEnd, revision | product.special.createproduct.special.updateproduct.special.delete |
| Inventory | /products/{id}/inventory | quantity, subtract, minimum, stockStatusId, optionValues[{id,quantity,subtract}], revision | product.inventory.setproduct.optionInventory.set |
| Product rewards | /products/{id}/rewards | purchasePoints, earnPointsByCustomerGroup, revision | product.rewards.set |
| Physical properties | /products/{id}/shipping | requiresShipping, weight, weightClassId, length, width, height, lengthClassId, location, revision | product.shipping.set |
Orders and returns
| Resource | GET route(s) | Response fields / relationships | Proposed operation kind |
|---|---|---|---|
| Orders | /orders/orders/{id} | id, storeId, customerId, statusId, currency, currencyValue, total, createdAt, updatedAt, revision | — |
| Order lines | /orders/{id}/items | id, productId, model, name, quantity, unitPrice, tax, total, options | — |
| Order totals | /orders/{id}/totals | code, title, amount, sortOrder | — |
| Addresses and delivery | /orders/{id}/addresses/orders/{id}/shipping | paymentAddress, shippingAddress; method, code | — |
| Order history | /orders/{id}/history | id, statusId, comment, customerNotified, createdAt | order.history.add |
| Invoice number | /orders/{id}/invoice | invoiceNumber, invoicePrefix | order.invoiceNumber.allocate |
| Returns | /returns/returns/{id}/returns/{id}/history | id, orderId, productId, customerId, quantity, opened, reasonId, actionId, statusId, comment, revision | return.createreturn.updatereturn.history.add |
| Recurring transactions | /order-recurrings/order-recurrings/{id}/order-recurrings/{id}/transactions | id, orderId, productId, recurringProfileSnapshot, status; transactions[{id,type,amount,createdAt}] | — |
| Order vouchers | /orders/{id}/vouchers | id, voucherId, description, amount | — |
Customers
| Resource | GET route(s) | Response fields / relationships | Proposed operation kind |
|---|---|---|---|
| Customers | /customers/customers/{id} | id, customerGroupId, storeId, firstname, lastname, email, telephone, status, newsletter, customFields, revision | customer.createcustomer.updatecustomer.newsletter.set |
| Customer addresses | /customers/{id}/addresses/customers/{id}/addresses/{addressId} | id, firstname, lastname, company, address1, address2, city, postcode, countryId, zoneId, customFields, revision | customer.address.createcustomer.address.updatecustomer.address.delete |
| Customer groups | /customer-groups/customer-groups/{id} | id, translations, approvalRequired, sortOrder, revision | customerGroup.createcustomerGroup.update |
| Custom fields | /custom-fields/custom-fields/{id} | id, type, location, translations, values, customerGroupRules, validation, status, revision | — |
| Customer notes | /customers/{id}/history | id, comment, createdAt | customer.history.add |
| Account credit ledger | /customers/{id}/transactions | id, orderId, amount, description, createdAt; balance | — |
| Customer reward ledger | /customers/{id}/rewards | id, orderId, points, description, createdAt; balance | — |
| Approvals | /customer-approvals/customer-approvals/{id} | id, customerId, type, createdAt | customerApproval.approvecustomerApproval.deny |
| Affiliate profiles | /affiliates/affiliates/{id} | customerId, company, website, trackingCode, commission, status | — |
Marketing
| Resource | GET route(s) | Response fields / relationships | Proposed operation kind |
|---|---|---|---|
| Coupons | /coupons/coupons/{id}/coupons/{id}/history | id, name, code, type, discount, minimumTotal, loggedInRequired, shipping, dateStart, dateEnd, usesTotal, usesCustomer, status, productIds, categoryIds, revision | coupon.createcoupon.updatecoupon.disable |
| Gift vouchers | /vouchers/vouchers/{id}/vouchers/{id}/history | id, code, fromName, toName, themeId, amount, currency, status, redeemedAmount, revision | — |
| Voucher themes | /voucher-themes/voucher-themes/{id} | id, translations, imageId | — |
| Tracking campaigns | /marketing-campaigns/marketing-campaigns/{id} | id, name, description, trackingCode, clicks, createdAt, revision | marketingCampaign.createmarketingCampaign.update |
Content and presentation
| Resource | GET route(s) | Response fields / relationships | Proposed operation kind |
|---|---|---|---|
| Information pages | /pages/pages/{id} | id, translations, storeIds, bottom, sortOrder, status, revision | page.createpage.updatepage.delete |
| SEO aliases | /seo-urls/seo-urls/{id} | id, storeId, language, resourceType, resourceId, keyword, revision | seoUrl.createseoUrl.updateseoUrl.delete |
| Banners | /banners/banners/{id} | id, name, status, items[{language,title,link,imageId,sortOrder}], revision | banner.createbanner.updatebanner.delete |
| Media assets | /media/media/{id} | id, filename, mimeType, bytes, width, height, url, revision | media.registermedia.delete |
| Layouts | /layouts/layouts/{id} | id, name, routes, modulePlacements | — |
Stores and reference data
| Resource | GET route(s) | Response fields / relationships | Proposed operation kind |
|---|---|---|---|
| Storefronts | /stores/stores/{id} | id, name, url, language, currency, timezone, priceSemantics | — |
| Safe settings | /store-settings | storeId, displayName, locale, currency, weightClassId, lengthClassId, limits | — |
| Languages | /languages/languages/{id} | id, code, name, status, sortOrder | — |
| Currencies | /currencies/currencies/{id} | id, code, title, symbolLeft, symbolRight, decimalPlaces, value, updatedAt | — |
| Countries and zones | /countries/countries/{id}/countries/{id}/zones/zones/{id} | id, name, isoCode2, isoCode3, addressFormat, postcodeRequired, status; countryId, code | — |
| Geo zones | /geo-zones/geo-zones/{id} | id, name, description, members[{countryId,zoneId}] | — |
| Taxes | /tax-classes/tax-classes/{id}/tax-rates/tax-rates/{id} | id, title, description, rules[{taxRateId,based,priority}]; rate, type, geoZoneId, customerGroupIds | — |
| Status dictionaries | /order-statuses/stock-statuses/return-statuses/return-reasons/return-actions | id, translations | — |
| Measurement units | /weight-classes/length-classes | id, translations, unit, conversionValue | — |
| Locations | /locations/locations/{id} | id, name, address, geocode, telephone, openingHours, imageId | — |
Reports
| Resource | GET route(s) | Response fields / relationships | Proposed operation kind |
|---|---|---|---|
| Sales | /reports/sales | period, currency, orderStatusIds, orderCount, productCount, tax, total | — |
| Products | /reports/products-purchased/reports/products-viewed | productId, name, model, quantity, revenue; views | — |
| Customers | /reports/customers-orders/reports/customer-rewards/reports/customer-transactions | customerId, orderCount, total; points; credit | — |
| Discounts and returns | /reports/coupons/reports/returns | couponId, uses, discountTotal; returnStatusId, count | — |
| Taxes and shipping | /reports/taxes/reports/shipping | code, title, orders, amount, currency | — |
Shopper session — separate stage
| Resource | GET route(s) | Response fields / relationships | Proposed operation kind |
|---|---|---|---|
| Verified session binding | /shopper-bindings/{bindingId} | bindingId, kind, storeId, expiresAt, capabilities | — |
| Real storefront cart | /shopper-bindings/{bindingId}/cart | revision, currency, items[{id,productId,options,quantity,price,total}], totals, warnings | cart.item.quantity.setcart.item.remove |
| Wishlist | /shopper-bindings/{bindingId}/wishlist | productIds, revision | — |
Relationships and OpenCart semantics
- A product belongs to several categories and storefronts; categories form a parent/child tree. Prevent cycles when moving a category. A category delete must enumerate affected descendants and assignments, not silently cascade.
- Product base price and stock can be shared across storefronts.
affectedStoreIdsmust cover every affected store; selecting one storefront does not grant authority over the others. - Attribute values describe a product. Option values can change price, weight, points and stock. Core product options are not a guaranteed SKU/variant-combination inventory system; do not invent
/variantssupport. - Quantity discounts and special prices are separate collections, with customer group, priority and dates. Base price is not necessarily the price shown to a shopper. Money never uses binary-float JSON values.
- Orders preserve purchased names, prices, options, addresses and currency conversion as snapshots. Joining current products does not reconstruct an old order. Guest orders can have no registered customer; return records can refer to products/orders no longer present.
- Customer groups affect pricing and tax rules. Credit transactions and reward points are ledgers; changing a profile is not authorization to change either balance.
- Recurring profiles configure product subscriptions; order recurring records and transactions describe actual subscriptions. Payment-provider execution is outside this adapter proposal.
- Reviews support author, text, rating and moderation in core OpenCart 3. A merchant reply/thread is not a core field:
review.replyrequires a separately advertised extension. - Media IDs are a proposed module abstraction over OpenCart file paths. Expose no filesystem paths or arbitrary server-side URL fetch. Upload staging and type/size validation need their own capability before
media.registercan be enabled. - SEO records can target several resource types. Expose a validated resource reference, not OpenCart’s arbitrary internal query string. Layout/theme code and executable extensions stay outside agent writes.
List queries, identifiers and types
The pilot product list retains cursor, limit (1–100, default 50), exact sku and advertised language. Stable order is product ID. Proposed extensions: products categoryId, manufacturerId, status; orders statusId, customerId, dateFrom, dateTo; reviews productId, status; customers exact email, customerGroupId; reports date range, period and order-status selection. These filters are not part of the pilot until advertised and frozen. Reject unsupported parameters rather than returning an unexpectedly broad result.
All collections, including nested collections, use bounded pagination. Singleton projections (price, inventory, settings, cart) use a single data object. IDs and decimal amounts are strings; quantity is an integer; dates/timestamps use documented ISO formats. Localized text uses advertised language codes. null differs from a missing field. Database names are mapped to camelCase; no raw SQL columns are promised.
A cursor is opaque and bound to store, filter and ordering. A paginated catalogue is not a snapshot; reliable full exports require a separate design. SKU is not unique. Any search with several matches returns all candidates.
{
"data": [{
"id": "42", "sku": "MUG-01", "name": "Ceramic mug",
"basePrice": "19.9900", "currency": "USD",
"revision": "price-r17", "affectedStoreIds": ["0"],
"warnings": []
}],
"page": { "nextCursor": null },
"meta": { "requestId": "req_demo", "protocol": "1.0" }
}Creation, update and deletion through operations
For all operation kinds, operationId equals Idempotency-Key. Store Deputy binds trusted actor and approval outside model arguments. The module stores a unique (connectionId, storeId, operationId) claim and semantic payload hash before execution. A retry keeps the key/body but gets fresh transport authentication; a different body with the same key is a conflict.
For the accepted base-price action, the action hash covers exactly {connectionId, storeId, kind, target, expected, set, affectedStoreIds} as defined in REST 1.0. The example below is the accepted envelope; signatures are omitted only for readability.
POST /v1/operations
Idempotency-Key: 4faf6b8a-887e-4c97-93b0-a5476ae95a75
Content-Type: application/json{
"operationId": "4faf6b8a-887e-4c97-93b0-a5476ae95a75",
"connectionId": "conn_demo",
"storeId": "0",
"kind": "product.basePrice.set",
"target": { "productId": "42" },
"expected": { "revision": "price-r17", "amount": "19.9900" },
"set": { "amount": "21.5000", "currency": "USD" },
"affectedStoreIds": ["0"],
"context": { "actorId": "user_demo", "actorKind": "employee", "runId": "run_demo" },
"approval": { "id": "apr_demo", "actionHash": "<sha256-hex>", "expiresAt": "2026-10-06T12:05:00Z" }
}| Action family | Target and precondition | Payload policy / receipt |
|---|---|---|
*.create (proposal) | Collection target, proposed stable clientReference; no existing resource ID | Explicit required fields and reference validation; repeat returns the same created ID. Extension target/approval schemas still need freezing. |
*.update, *.set | Existing ID and expected revision | Only an explicit per-kind field allowlist; omitted fields are unchanged. set on a collection replaces that collection only and requires its revision. |
*.delete | Existing ID, expected revision and dependency preview | No hidden cascade; approval covers impact. Return a tombstone receipt, retain the operation journal. |
order.history.add | Order ID, revision, new status, comment, explicit notification choice | Must execute platform transition rules and report notification/stock/reward effects separately. Never update only the status column. |
order.invoiceNumber.allocate | Order ID and revision | Allocate once; this does not charge, create a payment or deliver a PDF. |
| Ledger/payment writes | — | Not exposed by this proposal. A profile update must never change money, rewards or payment authority. |
The new *.create, delete, media and order kinds are extension designs, not silently added members of the frozen pilot union. Before enabling one, add a concrete JSON Schema and corresponding PHP/Node fixtures. One operation changes one resource; a batch creates separately tracked operations, with no false all-or-nothing promise.
Results, conflicts and recovery
A successful receipt identifies the resource, previous/next revision, verified values, affected stores and cache/hook outcomes. The model receives a normalized result, not a database success boolean. 201 can return a completed operation; 202 means it is still running. A lost/unsigned response leaves the outcome unresolved. Read the operation before attempting another write; never create a fresh operation just because a request timed out.
Reject changed revisions with 409 REVISION_CONFLICT, changed intent under the same key with 409 IDEMPOTENCY_MISMATCH, missing authority with 403, invalid fields with 422. Use application/problem+json and stable codes from REST 1.0. Stock and manual admin changes must participate in revision checks; a timestamp alone is not proof against concurrent changes.
Connection and control resources
These are module control resources, separate from commerce operations. Only the first three routes and operation lookup follow the current protocol; the additional lifecycle route names are proposed and need frozen wire schemas.
| Method / path | Meaning | Status |
|---|---|---|
POST /pairings | Consume one-time challenge using bootstrap authority; return server credentials | REST 1.0; bootstrap details still need vectors |
GET /manifest | Identity, capabilities, pause, versions, limits and price semantics | REST 1.0 |
POST /operations | Submit approved, idempotent commerce operation | REST 1.0 base-price kind; other kinds proposed |
GET /operations/{operationId} | Reconcile the saved result | REST 1.0 |
GET /connection | Non-secret connection state | Proposed |
POST /connection/revocations | Revoke this connection and pending authority | Proposed; replay/recovery receipt required |
POST /connection/key-rotations | Rotate directional credentials with bounded overlap | Proposed; never return through MCP |
POST /shopper-bindings | Server-side verified shopper bootstrap | Separate Stage B; not a customerId supplied by a model |
DELETE /shopper-bindings/{bindingId} | Invalidate binding after logout or expiry | Proposed Stage B control route |
The browser is not a client of this administrative REST API. Local module UI authenticates through OpenCart; frontend session bootstrap requires its own same-origin/CSRF-protected flow. Private customer/cart data is inaccessible through a static service key alone.
Delivery boundaries
| Stage | Scope | Enablement |
|---|---|---|
| Pilot | Pairing, manifest, products, base price, operation receipts | Accepted target; implementation and conformance must be verified |
| Catalogue extensions | Categories, translations, attributes/options, images, discounts, stock, reviews | Proposed; enable one tested capability at a time |
| Operations workspace | Orders, customer projections, reports, content and marketing | Proposed; PII, side effects and permissions reviewed per action |
| Shopper | Session binding, real cart and wishlist | Separate Stage B; never inherits employee authority |
| Excluded | Checkout, payment capture/refund, subscription billing, arbitrary SQL/PHP, secrets, plugin/theme installation, backup/restore, admin users/API keys | No agent tools in this design |
Reference data, layouts, financial ledgers and recurring entities are intentionally read-only in this map. Customer deletion/anonymization and marketing email delivery need separate workflows. Extensions such as marketplace connectors, external warehouses and shipping tracking are not falsely presented as core OpenCart features.
Artem owns the OpenCart module; Yevhen owns Store Deputy REST client, MCP mapping and shared schemas. Both use the same contract fixtures. A capability is advertised only after its route, semantics, permissions and recovery tests pass.
Sources and audit trail
The inventory was checked against both tagged official model trees; detailed behavior was inspected in the 3.0.3.5 product, category, option, review, customer, order, return, recurring, coupon, store and SEO models. Route names and normalized fields on this page are Store Deputy proposals, not routes supplied by those sources.