Resource Model

API Fundamentals

Resource Model

LCE APIs organize commerce data by business domain. Requests use operation-specific models, while responses commonly wrap the requested resource or result collection in a service response envelope.

Domain-oriented resources

A resource represents a business concept owned by an LCE service. Integrations should follow the model documented for the selected operation instead of assuming that fields are identical across domains.

Catalog

Products and metadata

Products, variants, categories, brands, properties, options and translations.

Commerce

Inventory and orders

SKUs, prices, stock, carts, orders, deliveries, claims and related processes.

Platform

Identity and organization

Users, roles, applications, tenants, organizations, branches and contacts.

Query and command operations

Operation patternPurposeClient guidance
/query/...Retrieves one or more resources using a JSON query model.Treat as read-only when the operation description confirms query behavior, even if the HTTP method is POST.
/createCreates a new resource or relationship.Use the exact create model and retain the identifiers returned by the service.
/updateChanges an existing resource.Send only fields supported by that update model; do not substitute a create model.
/deleteRemoves or deactivates a resource according to domain rules.Confirm the target identifier and do not automatically retry an uncertain result.
/processRuns a domain workflow or action.Assume side effects and follow operation-specific validation and retry guidance.

Service response envelope

Many LCE operations return a domain-specific service response. Query responses commonly include the following fields:

{
  "type": "Success",
  "result": [ ... ],
  "resultCount": 20,
  "totalCount": 126,
  "currentPageIndex": 0,
  "code": null,
  "message": null,
  "errors": null,
  "serviceTook": 18,
  "totalTook": 24
}
FieldMeaning
typeService outcome such as Success, Completed, Pending, Timeout or Error.
resultThe resource, collection or operation result defined by the endpoint schema.
resultCountNumber of records returned in the current response.
totalCountTotal number of matching records when supplied by the operation.
code, message, errorsService-level outcome and diagnostic information.
serviceTook, totalTookTiming information when populated by the service.

Common data conventions

  • Date-time values use the OpenAPI date-time format.
  • Status and outcome values are represented by the enum defined in the operation schema.
  • Nullable fields can be absent or null; do not replace them with empty strings or zero unless the API defines that meaning.
  • Tenant, application and user context can be part of a request model. Supply only values assigned to the target environment.
  • Relationship expansion is operation-specific and can be requested through includes where supported.