Schema

Schema Discovery API

Discover available fields, validation rules, and data types for each resource type.

GET/v1/schema/:resource
Get the field schema for a resource type

Path Parameters

ParameterTypeDescription
resourcestringResource type: order, product, inventory, customer

Query Parameters

ParameterTypeDefaultDescription
groupedbooleanfalseGroup fields by category
categorystring-Filter by category (core, customer, shipping, payment, metadata)
requiredboolean-Filter to required fields only
curl -X GET "https://gateway.regentherapy.com/api/v1/schema/order?grouped=true" \
  -H "X-API-Key: your_api_key"
Field Schema Object
Structure of each field in the schema response
FieldTypeDescription
fieldPathstringFull path to the field (e.g., "items[].sku", "shippingAddress.city")
fieldNamestringField name without path
displayNamestringHuman-readable label
descriptionstringDetailed description of the field
dataTypestringData type: string, number, boolean, date, array, object
isRequiredbooleanWhether the field is required
isArraybooleanWhether the field is an array
validationPatternstringRegex pattern for validation (if applicable)
validationMessagestringError message when validation fails
minValue / maxValuenumberMin/max for numeric fields
minLength / maxLengthnumberMin/max length for string fields
enumValuesarrayAllowed values (if restricted)
exampleValuestringExample value for documentation
categorystringField category (core, customer, shipping, etc.)
isDeprecatedbooleanWhether the field is deprecated
Available Resource Types
ResourceDescriptionCategories
orderOrder submission fieldscore, customer, shipping, payment, pricing, metadata
productProduct creation/update fieldscore, pricing, inventory, shipping, classification, status
inventoryInventory adjustment fieldscore, location, metadata
customerCustomer data fieldscore, contact, address, metadata