Skip to content

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.

Agentfy → Store Deputy MCP → OpenCart REST → shop resources

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 ​

ResourceGET route(s)Response fields / relationshipsProposed operation kind
Products/products
/products/{id}
id, model, sku, identifiers, name, basePrice, currency, quantity, status, manufacturerId, taxClassId, revision, affectedStoreIdsproduct.create
product.update
product.delete
Base price/products/{id}/base-priceproductId, amount, currency, revision, affectedStoreIdsproduct.basePrice.set
Translations and SEO text/products/{id}/translationslanguage, name, description, tags, metaTitle, metaDescription, metaKeywordproduct.translation.set
Category tree/categories
/categories/{id}
id, parentId, pathIds, translations, storeIds, imageId, sortOrder, status, revisioncategory.create
category.update
category.move
category.delete
Product categories/products/{id}/categoriescategoryIds, revisionproduct.categories.set
Manufacturers/manufacturers
/manufacturers/{id}
id, name, imageId, storeIds, sortOrder, revisionmanufacturer.create
manufacturer.update
manufacturer.delete
Attribute groups/attribute-groups
/attribute-groups/{id}
id, translations, sortOrder, revisionattributeGroup.create
attributeGroup.update
attributeGroup.delete
Attribute definitions/attributes
/attributes/{id}
id, attributeGroupId, translations, sortOrder, revisionattribute.create
attribute.update
attribute.delete
Product attributes/products/{id}/attributesattributeId, values[{language,text}], revisionproduct.attributes.set
Option definitions/options
/options/{id}
/options/{id}/values
id, type, translations, values[{id,translations,imageId,sortOrder}], revisionoption.create
option.update
option.delete
option.value.create
option.value.update
option.value.delete
Product options/products/{id}/optionsid, optionId, required, value, values[{id,optionValueId,quantity,subtract,priceAdjustment,pointsAdjustment,weightAdjustment}], revisionproduct.options.set
Filters/filter-groups
/filter-groups/{id}
/filters
/filters/{id}
id, filterGroupId, translations, sortOrder, revisionfilterGroup.create
filterGroup.update
filterGroup.delete
filter.create
filter.update
filter.delete
Filter associations/products/{id}/filters
/categories/{id}/filters
filterIds, revisionproduct.filters.set
category.filters.set
Images/products/{id}/imagesimageId, role, sortOrder, revisionproduct.images.set
Related products/products/{id}/related-productsproductIds, revisionproduct.relatedProducts.set
Downloads/downloads
/downloads/{id}
/products/{id}/downloads
id, translations, displayFilename, mediaId, revision; downloadIdsdownload.create
download.update
download.delete
product.downloads.set
Reviews/reviews
/reviews/{id}
id, productId, customerId, author, text, rating, status, createdAt, revisionreview.create
review.update
review.moderate
review.delete
Recurring profiles/recurring-profiles
/recurring-profiles/{id}
/products/{id}/recurring-profiles
id, translations, price, frequency, cycle, duration, trial, status; customerGroupId—

Pricing and inventory ​

ResourceGET route(s)Response fields / relationshipsProposed operation kind
Quantity discounts/products/{id}/discountsid, customerGroupId, minQuantity, priority, price, dateStart, dateEnd, revisionproduct.discount.create
product.discount.update
product.discount.delete
Special prices/products/{id}/specialsid, customerGroupId, priority, price, dateStart, dateEnd, revisionproduct.special.create
product.special.update
product.special.delete
Inventory/products/{id}/inventoryquantity, subtract, minimum, stockStatusId, optionValues[{id,quantity,subtract}], revisionproduct.inventory.set
product.optionInventory.set
Product rewards/products/{id}/rewardspurchasePoints, earnPointsByCustomerGroup, revisionproduct.rewards.set
Physical properties/products/{id}/shippingrequiresShipping, weight, weightClassId, length, width, height, lengthClassId, location, revisionproduct.shipping.set

Orders and returns ​

ResourceGET route(s)Response fields / relationshipsProposed operation kind
Orders/orders
/orders/{id}
id, storeId, customerId, statusId, currency, currencyValue, total, createdAt, updatedAt, revision—
Order lines/orders/{id}/itemsid, productId, model, name, quantity, unitPrice, tax, total, options—
Order totals/orders/{id}/totalscode, title, amount, sortOrder—
Addresses and delivery/orders/{id}/addresses
/orders/{id}/shipping
paymentAddress, shippingAddress; method, code—
Order history/orders/{id}/historyid, statusId, comment, customerNotified, createdAtorder.history.add
Invoice number/orders/{id}/invoiceinvoiceNumber, invoicePrefixorder.invoiceNumber.allocate
Returns/returns
/returns/{id}
/returns/{id}/history
id, orderId, productId, customerId, quantity, opened, reasonId, actionId, statusId, comment, revisionreturn.create
return.update
return.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}/vouchersid, voucherId, description, amount—

Customers ​

ResourceGET route(s)Response fields / relationshipsProposed operation kind
Customers/customers
/customers/{id}
id, customerGroupId, storeId, firstname, lastname, email, telephone, status, newsletter, customFields, revisioncustomer.create
customer.update
customer.newsletter.set
Customer addresses/customers/{id}/addresses
/customers/{id}/addresses/{addressId}
id, firstname, lastname, company, address1, address2, city, postcode, countryId, zoneId, customFields, revisioncustomer.address.create
customer.address.update
customer.address.delete
Customer groups/customer-groups
/customer-groups/{id}
id, translations, approvalRequired, sortOrder, revisioncustomerGroup.create
customerGroup.update
Custom fields/custom-fields
/custom-fields/{id}
id, type, location, translations, values, customerGroupRules, validation, status, revision—
Customer notes/customers/{id}/historyid, comment, createdAtcustomer.history.add
Account credit ledger/customers/{id}/transactionsid, orderId, amount, description, createdAt; balance—
Customer reward ledger/customers/{id}/rewardsid, orderId, points, description, createdAt; balance—
Approvals/customer-approvals
/customer-approvals/{id}
id, customerId, type, createdAtcustomerApproval.approve
customerApproval.deny
Affiliate profiles/affiliates
/affiliates/{id}
customerId, company, website, trackingCode, commission, status—

Marketing ​

ResourceGET route(s)Response fields / relationshipsProposed operation kind
Coupons/coupons
/coupons/{id}
/coupons/{id}/history
id, name, code, type, discount, minimumTotal, loggedInRequired, shipping, dateStart, dateEnd, usesTotal, usesCustomer, status, productIds, categoryIds, revisioncoupon.create
coupon.update
coupon.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, revisionmarketingCampaign.create
marketingCampaign.update

Content and presentation ​

ResourceGET route(s)Response fields / relationshipsProposed operation kind
Information pages/pages
/pages/{id}
id, translations, storeIds, bottom, sortOrder, status, revisionpage.create
page.update
page.delete
SEO aliases/seo-urls
/seo-urls/{id}
id, storeId, language, resourceType, resourceId, keyword, revisionseoUrl.create
seoUrl.update
seoUrl.delete
Banners/banners
/banners/{id}
id, name, status, items[{language,title,link,imageId,sortOrder}], revisionbanner.create
banner.update
banner.delete
Media assets/media
/media/{id}
id, filename, mimeType, bytes, width, height, url, revisionmedia.register
media.delete
Layouts/layouts
/layouts/{id}
id, name, routes, modulePlacements—

Stores and reference data ​

ResourceGET route(s)Response fields / relationshipsProposed operation kind
Storefronts/stores
/stores/{id}
id, name, url, language, currency, timezone, priceSemantics—
Safe settings/store-settingsstoreId, 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 ​

ResourceGET route(s)Response fields / relationshipsProposed operation kind
Sales/reports/salesperiod, 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 ​

ResourceGET route(s)Response fields / relationshipsProposed operation kind
Verified session binding/shopper-bindings/{bindingId}bindingId, kind, storeId, expiresAt, capabilities—
Real storefront cart/shopper-bindings/{bindingId}/cartrevision, currency, items[{id,productId,options,quantity,price,total}], totals, warningscart.item.quantity.set
cart.item.remove
Wishlist/shopper-bindings/{bindingId}/wishlistproductIds, 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. affectedStoreIds must 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 /variants support.
  • 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.reply requires 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.register can 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.

json
{
  "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.

http
POST /v1/operations
Idempotency-Key: 4faf6b8a-887e-4c97-93b0-a5476ae95a75
Content-Type: application/json
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 familyTarget and preconditionPayload policy / receipt
*.create (proposal)Collection target, proposed stable clientReference; no existing resource IDExplicit required fields and reference validation; repeat returns the same created ID. Extension target/approval schemas still need freezing.
*.update, *.setExisting ID and expected revisionOnly an explicit per-kind field allowlist; omitted fields are unchanged. set on a collection replaces that collection only and requires its revision.
*.deleteExisting ID, expected revision and dependency previewNo hidden cascade; approval covers impact. Return a tombstone receipt, retain the operation journal.
order.history.addOrder ID, revision, new status, comment, explicit notification choiceMust execute platform transition rules and report notification/stock/reward effects separately. Never update only the status column.
order.invoiceNumber.allocateOrder ID and revisionAllocate 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 / pathMeaningStatus
POST /pairingsConsume one-time challenge using bootstrap authority; return server credentialsREST 1.0; bootstrap details still need vectors
GET /manifestIdentity, capabilities, pause, versions, limits and price semanticsREST 1.0
POST /operationsSubmit approved, idempotent commerce operationREST 1.0 base-price kind; other kinds proposed
GET /operations/{operationId}Reconcile the saved resultREST 1.0
GET /connectionNon-secret connection stateProposed
POST /connection/revocationsRevoke this connection and pending authorityProposed; replay/recovery receipt required
POST /connection/key-rotationsRotate directional credentials with bounded overlapProposed; never return through MCP
POST /shopper-bindingsServer-side verified shopper bootstrapSeparate Stage B; not a customerId supplied by a model
DELETE /shopper-bindings/{bindingId}Invalidate binding after logout or expiryProposed 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 ​

StageScopeEnablement
PilotPairing, manifest, products, base price, operation receiptsAccepted target; implementation and conformance must be verified
Catalogue extensionsCategories, translations, attributes/options, images, discounts, stock, reviewsProposed; enable one tested capability at a time
Operations workspaceOrders, customer projections, reports, content and marketingProposed; PII, side effects and permissions reviewed per action
ShopperSession binding, real cart and wishlistSeparate Stage B; never inherits employee authority
ExcludedCheckout, payment capture/refund, subscription billing, arbitrary SQL/PHP, secrets, plugin/theme installation, backup/restore, admin users/API keysNo 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.