Commercetools
Intermediate

Custom Fields, Custom Objects, and States

Extend data safely with Types, Custom Fields, Custom Objects, and States without creating an ungoverned schema.

50 min
3 sections
custom-fields
custom-objects
states
1
2
3

01. Use Types for resource-owned attributes

Section 1 of 3

Types define project-specific Custom Fields on supported resources and data types. Use them for structured fields that belong with the resource, such as contract ID on a Cart, regulatory approval status on a Product, or routing priority on an Order.

text
Custom Field examples:

Product:
- regulatoryClass
- approvedCountries
- hazardousShippingCode

Cart:
- purchaseOrderNumber
- taxExemptionCertificateId
- buyerCostCenter

Order:
- omsCorrelationId
- fraudReviewStatus
- invoiceExportStatus
Back to Course