Primitive Types
string
- Text data encoded in UTF-8
- No maximum length restriction
- Empty string "" valid for optional fields
number
- Decimal numbers for prices and percentages
- Supports negative values for discounts
- Example: 74999.99, 15.5
integer
- Whole numbers only
- No decimal places
- Example: 5, 100
boolean
- true or false only
- No string representations (“true” is invalid)
Complex Types
string (ISO 8601)
- Timestamp format: YYYY-MM-DDTHH:mm:ss±HH:mm
- Include timezone offset
- Example: “2026-02-05T13:20:30+05:30”
array
- Ordered collection of objects
- JSON array format
- Example:
[{"product_id": "123"}, {"product_id": "456"}]
object
- Key-value pairs
- Nested structure allowed
- Example:
{"first_name": "Rajesh", "last_name": "Kumar"}
Currency Codes (ISO 4217)
Common currency codes for e-commerce:| Code | Currency | Symbol |
|---|---|---|
| INR | Indian Rupee | ₹ |
| USD | US Dollar | $ |
| EUR | Euro | € |
| GBP | British Pound | £ |
| AED | UAE Dirham | د.إ |
| SGD | Singapore Dollar | S$ |