Translations REST Endpoints
Commerce Administration/Translations
The translation services retrieve translations for actions, attributes, and menu items. Translations for all site-supported languages can be retrieved. If a translation is not defined, an empty string is returned for the requested value. The following fields are translatable: Actions (labels and descriptions), Attributes (labels, descriptions, and user defaults), and Menu Items (display values). When translations are requested, translations that have an empty value for all the properties are not returned. Translation data is returned if any of the property values are populated.
- Get Action Translation
- Method: getPath:
/rest/v7/commerceProcesses/{processVarName}/documents/{docVarName}/actionDefs/{actionVarName}/translations/{languageCode}
- Get Action Translations
- Method: getPath:
/rest/v7/commerceProcesses/{processVarName}/documents/{docVarName}/actionDefs/{actionVarName}/translations
- Get Attribute Translation
- Method: getPath:
/rest/v7/commerceProcesses/{processVarName}/documents/{docVarName}/attributes/{attributeVarName}/translations/{languageCode}
- Get Attribute Translations
- Method: getPath:
/rest/v7/commerceProcesses/{processVarName}/documents/{docVarName}/attributes/{attributeVarName}/translations
- Get Menu Item Translation
- Method: getPath:
/rest/v7/commerceProcesses/{processVarName}/documents/{docVarName}/attributes/{attributeVarName}/menuItems/{menuItemId}/translations/{languageCode}
- Get Menu Item Translations
- Method: getPath:
/rest/v7/commerceProcesses/{processVarName}/documents/{docVarName}/attributes/{attributeVarName}/menuItems/{menuItemId}/translations