Get Menu Item Translation
get
/rest/v7/commerceProcesses/{processVarName}/documents/{docVarName}/attributes/{attributeVarName}/menuItems/{menuItemId}/translations/{languageCode}
This service returns the specified language translation for a menu item.
Request
Path Parameters
-
attributeVarName: string
Attribute Variable Name
-
docVarName: string
Document Variable Name
-
languageCode: string
Language Code for the requested language
- menuItemId: string
-
processVarName: string
Process Variable Name
Response
Default Response
Root Schema : CommerceMenuItemTranslation
Type:
Show Source
object-
displayValue(optional):
string
Title:
Display TextMenu Item Display Text -
language(optional):
object language
- links(optional): object menuItemTranslationLinks
Nested Schema : language
Type:
Show Source
object-
languageCode(optional):
string
Title:
Language CodeUnique language code -
languageNumber(optional):
integer
Title:
Language NumberUnique language number.
Examples
The following example shows how to retrieve the specified translation for a menu item by submitting a GET request to the REST resource using cURl. For more information about cURL, see Use cURL.
curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v7/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405/translations/es
Response Body Sample
{
"language": {"languageCode": "es", "languageNumber": 2},
"links": [
{
"rel": "self",
"href": " "https://sitename.oracle.com/rest/v7/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405/translations/es"
},
{
"rel": "parent",
"href": " "https://sitename.oracle.com//rest/v7/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405"
}
],
"displayValue": "Neto a 60"
}