Public M2M API — ecommerce
Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.
Authentication and permissions · Requests, results and recovery
/api/v1/ecommerce
Exported methods: GET, POST
GET
- Resource scopes:
ecommerce:read - Query parameters:
category,entity,limit,page,paymentStatus,search,status - Shared pagination: Yes
- Response keys observed across outcomes:
orders,pagination,products,stats,tenantId
POST
- Resource scopes:
ecommerce:write - Explicit response statuses:
201,400,409,422 - Explicit error codes:
ecommerce_action_failed,invalid_request,onboarding_incomplete - Response keys observed across outcomes:
order,product
This table describes the validated form after server-side normalization; submitted aliases or omissions can be handled differently by this route.
The order branch is selected by entity: "order" or an array items; a string id and truthy status update an order, otherwise the order creation schema applies. Other requests update a product when id is a string and sku is absent or falsy; otherwise the product creation schema applies. The update branches pass the object to the service without those creation schemas.
JSON properties observed: entity, id, items, sku, status.
These names are read by the handler; they are not a complete schema or a promise that every property applies to every branch. Check the validation messages and operation result.
The handler uses multiple observed validation schemas. These tables are not a merged schema; branch selection and unvalidated paths may have different inputs.