Skip to Content
EquinoxAPI and integrationsPublic M2M APIPublic M2M API — ecommerce

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.

Observed validation schema 1

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
customerNamestringNoNo—min(1), max(500)
customerEmailstringNoNo—email(), max(500)
customerPhonestringYesNo—max(50)
shippingAddressstringYesNo—max(2000)
billingAddressstringYesNo—max(2000)
statusenumYesNopending, confirmed, processing, shipped, delivered, cancelled, refunded—
subtotalnumberNoNo—min(0)
taxAmountnumberYesNo—min(0)
shippingCostnumberYesNo—min(0)
discountAmountnumberYesNo—min(0)
totalAmountnumberNoNo—min(0)
currencystringYesNo—length(3)
paymentMethodstringYesNo—max(100)
paymentStatusenumYesNounpaid, paid, refunded, partial—
notesstringYesNo—max(2000)
itemsarrayNoNo—min(1)
items[].productIdstringYesNo——
items[].productNamestringNoNo—min(1), max(500)
items[].skustringYesNo—max(200)
items[].quantitynumberNoNo—int(), positive()
items[].unitPricenumberNoNo—min(0)
items[].taxRatenumberYesNo—min(0), max(100)
items[].totalPricenumberNoNo—min(0)

Observed validation schema 2

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
productIdstringYesNo——
skustringNoNo—min(1), max(200)
namestringNoNo—min(1), max(500)
slugstringYesNo—min(1), max(500)
descriptionstringYesNo—max(10000)
shortDescriptionstringYesNo—max(1000)
pricenumberNoNo—min(0)
compareAtPricenumberYesNo—min(0)
currencystringYesNo—length(3)
taxRatenumberYesNo—min(0), max(100)
isPublishedbooleanYesNo——
isFeaturedbooleanYesNo——
categorystringYesNo—max(200)
tagsstringYesNo—max(1000)
imageUrlstringYesNo—url(), max(2000)
weightnumberYesNo—min(0)
stocknumberYesNo—int(), min(0)
lowStockThresholdnumberYesNo—int(), min(0)
sortOrdernumberYesNo—int()
seoTitlestringYesNo—max(200)
seoDescriptionstringYesNo—max(500)