Public M2M API — pricing
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/pricing
Exported methods: GET, POST
GET
- Resource scopes:
pricing:read - Query parameters:
isActive,limit,page,search,type - Shared pagination: Yes
- Response keys observed across outcomes:
discountRules,pagination,priceLists,tenantId
POST
- Resource scopes:
pricing:write - Explicit response statuses:
201,400,409,422 - Explicit error codes:
invalid_request,onboarding_incomplete,pricing_failed - Response keys observed across outcomes:
discountRule,priceList
Send a JSON object. Observed branch requirements: When discount rule or price-list create, provide name; When price-list update, provide id. Other fields and downstream service validation depend on the branch; verify the result.
JSON properties observed: code, currency, description, discountType, discountValue, id, isActive, isDefault, items, kind, minAmount, minQuantity, name, priority, type, value.
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.
/api/v1/pricing/{id}
Exported methods: GET, PATCH, DELETE
GET
- Resource scopes:
pricing:read - Path parameters:
id - Response keys observed across outcomes:
priceList
PATCH
- Resource scopes:
pricing:write - Path parameters:
id - Explicit response statuses:
422 - Explicit error codes:
invalid_request - Response keys observed across outcomes:
priceList
Validated request fields
DELETE
- Resource scopes:
pricing:write - Path parameters:
id - Response keys observed across outcomes:
deleted,id
Request input was not extracted for this operation; consult its specific contract before sending. Do not infer that no body is required.