Validate attribute values against their attribute descriptions without persisting
POST/v2/attributes/:resourceType/validate
Validate a set of attribute values for a resource type without creating, updating, or deleting anything.
This endpoint runs the same per-attribute validation used by the create/bulk endpoints — resolving each attribute's AttributeDescription (by id or name, scoped to the given resource type) and validating its value against the description's type — but does not persist any data, emit any events, or verify that the owning resource (order, order item, ...) actually exists.
Intended for callers that need to validate attributes before the resource they belong to has been created, e.g. order-helper validating cart/tender attributes prior to order creation.
Validation results are aggregated per attribute; the request never fails solely because one or more individual attributes are invalid — check the valid flag on the response and on each result instead.
Request
Responses
- 200
- 400
- 401
Validation completed. Check data.valid and per-attribute data.results for the outcome.
Invalid request parameters or malformed body
Authentication required - Invalid or missing OAuth2 token