- Customization & development
Using extended properties
Overview
Extended Properties (XP) enable data model customization in OrderCloud. This feature provides:
- JSON-based property extension
- Custom field addition
- Complex data structures
- List endpoint filtering
Implementation details
Constraints
- 8000 byte size limit
- Valid JSON structure
- Consistent typing per object
- Null default value
Data types
- Numbers
- Strings
- Booleans
- Arrays
- Nested objects
Implementation examples
Basic property addition
Example: Adding user demographics
http
json
Nested object implementation
Example: Adding employment details
http
json
Property modification
Example: Updating specific fields
http
json
Property removal
Options:
-
Update method (PUT):
- Get current resource
- Remove target property
- Update entire object
-
Null assignment:
- Set property value to null
- Maintain property existence
Example: Removing age property
http
json
Search capabilities
Index configuration
Requirements:
- Create XP index before filtering
- Index creation endpoint
- Processing time for retroactive updates
Exceptions:
- Product XP
- Submitted Order XP
- Premium search enabled resources
Filter implementation
Example: Department filter
http
Features:
- Dot notation for nested fields
- Standard operators (
=,<,>) - Advanced querying support
Related reading
- Leveraging extended properties in the development of custom eCommerce apps
- Why you should never use FullAccess
- Using webhooks
If you have suggestions for improving this article, let us know!