Fulfillment and returns data mapping for OpenAI

Ask about this Page
Copy for LLM
View as Markdown

Understand how fulfillment and returns data maps to OpenAI fields.

Fulfillment

OpenAI FieldRelated commercetools fieldRequiredMapping Logic
shippingUse Reference Expansion on shippingMethod.zoneRates[*].zone.
Join shippingMethod.zoneRates[*].zone.country : shippingMethod.zoneRates[*].zone.locations.state : shippingMethod.name : shippingMethod.zoneRates[*].shippingRate.price
ConditionalThe country, state/region, localized name of shipping method, and price. These values must be mapped to country:region:service_class:price.
For example: US:TX:Overnight:16.00 USD. Multiple shipping methods can be included by separating them with semicolons.

Returns

By default, return_policy and return_window are mapped from Custom Fields on the Store. The returnPolicyUrl field should be a CustomFieldStringType and the returnWindowDays field should be a CustomFieldNumberType. You can modify the template to source these values differently.
OpenAI FieldRelated commercetools fieldRequiredMapping Logic
return_policystore.custom.fields.returnPolicyUrlRequired in the feedA direct link to the return policy page.
For example: https://example.com/returns.
return_windowstore.custom.fields.returnWindowDaysRequired in the feedThe number of days that the customer has to return the item. For example: 30.