Add Types and Custom Fields to your Project

Use Composable Commerce Types to define the schema for the Custom Fields that commercetools InStore requires.

You must create these Types or extend existing Types with the required Custom Fields.

If you are new to commercetools and don't have existing Types defined, use the sample Terraform scripts provided by your commercetools representative to configure your Project with the required Types and Custom Field definitions.

Including Custom Fields in your Project

To correctly define Custom Fields in your Project, you need to be aware of the InStore requirements for these. InStore relies on the following Composable Commerce resources to function properly:

These resources can be extended using Custom Fields to add the attributes necessary for InStore features. You may need to add more Custom Fields than the defaults.

Ensure that your final Terraform scripts include the following Types and attributes:

Type KeyInStore field
Cart/OrderORDER_LOCATIONID_FIELD
Cart/OrderORDER_ORDERTYPE_FIELD
Cart/OrderORDER_SEQUENCE_NUMBER_FIELD
Cart/OrderORDER_USERID_FIELD
Cart/OrderORDER_WORKSTATIONID_FIELD
CustomerCUSTOMER_PAYMENTACCOUNTIDS_FIELD
LineItemLINEITEM_FULFILLMENT_FIELD
LineItemLINEITEM_ISGIFT_FIELD
LineItemLINEITEM_MISTID_FIELD
LineItemLINEITEM_PRICEOVERRIDEAPPROVER_FIELD
LineItemLINEITEM_PRICEOVERRIDECODE_FIELD
LineItemLINEITEM_PRICEOVERRIDETYPE_FIELD
LineItemLINEITEM_PRICEOVERRIDEVALUE_FIELD
LineItemLINEITEM_PURCHASELINEITEM_ID_FIELD
LineItemLINEITEM_PURCHASEORDERID_FIELD
LineItemLINEITEM_RETURNCOMMENT_FIELD
LineItemLINEITEM_SALESPERSONID_FIELD
PaymentPAYMENT_ACCOUNTNAME_FIELD
PaymentPAYMENT_ACCOUNTNUMBER_FIELD
PaymentPAYMENT_BARCODE_FIELD
PaymentPAYMENT_CUSTOMERNUMBER_FIELD
PaymentPAYMENT_ISSUERID_FIELD
PaymentPAYMENT_MISTID_FIELD
TransactionORDER_EMAILTRIGGERED_FIELD
TransactionPAYMENT_CASHROUNDING_FIELD
TransactionPAYMENT_MISTID_FIELD
TransactionTRANSACTION_MISTID_FIELD

To learn more about these attributes, see the required attribute definitions.