Commerce Layout & Metadata REST APIs
Overview
The Commerce Administration REST APIs expose additional transactional data, metadata, layout, rules, and actions to enable seamless integration with third party user interfaces, such as the ADF UI and the Salesforce Lightning UI. These services are available v3 and higher RESTful services.
The information for these items is organized in a hierarchical structure. The following image displays the parent child relationship for main documents, sub-documents, actions, attributes, menu items, and translations.
A REST call to retrieve data for an object will return object's information and links to the child objects. For example, "Get Metadata for a Document" will return the object's definition information and links to actions and attributes. URI Endpoint queries can be used to expand or limit the returned data.
- The "Expand All" query parameter can be used to return expanded actions, attributes, menu items, and translations as part of the response. To include child data in the response, append the "
?expand=all*
" query parameter to the end of the URI Endpoint.
Returns Oracle CPQ transaction desktop layout definitions for UI frameworks, like Oracle ADF (Application Development Framework) and Salesforce.com Lightning UI, to consume. The desktop layout definition contains the following items:
- Layout parameters and properties for panels, tabs, columns, action strips, and transaction line grids
- Properties for actions and attributes
- Translations for layout items
Expose information about the definitions of the Commerce main document, sub-document, actions, attributes, and translations.
Action Metadata REST APIs Overview
These services return the action metadata for the specified Commerce main document or sub-document.
The action metadata is comprised of the following information:
- The defined action properties that are defined on the Admin Action page
- Possible action states, such as whether an action can be visible or enabled
- Dependencies and possible states, if an action can be altered by a step or rule
- Links to the current REST call, parent items, and translations
Array Set Metadata REST APIs Overview
These services return the array set metadata for the specified Commerce document.
The array set metadata is comprised of the following information:
- The defined array set properties for all array sets defined for the specified Commerce document.
- The defined array set attribute properties that are defined on the Attribute Editor page
- Possible attribute states, such as whether an attribute is updatable, required, or visible. Other attribute states are domain, messages, hasError, hasWarning, or hasContraintViolation.
- Dependencies and possible states, if an attribute can be altered by a formula, step, or rule
- Links to the current REST call, parent items, menu items, and translations
Attribute Metadata REST APIs Overview
These services return the attribute metadata for the specified Commerce document.
The attribute metadata is comprised of the following information:
- The defined attribute properties that are defined on the Attribute Editor page
- Possible attribute states, such as whether an attribute is updatable, required, or visible. Other attribute states are domain, messages, hasError, hasWarning, or hasContraintViolation.
- Dependencies and possible states, if an attribute can be altered by a formula, step, or rule
- Links to the current REST call, parent items, menu items, and translations
Menu Item Metadata REST APIs Overview
These services return the menu item metadata for the specified attribute.
The menu item metadata is comprised of the following information:
- Menu items are returned as composite values containing menu properties and domain items
- Links to the current REST call, parent items, and translations
Translation Service REST APIs Overview
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
- 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. For example, the following sample shows the reduced content response.
https://sitename.oracle.com/rest/v17/commerceProcesses/transaction_bmClone_2/documents/quote/actionDefs/reject_submit/translations
In the following sample, the data for the "de" translation is not returned because both label and description values for the "de" translation are empty strings.
Administration
This API is used to retrieve Layout and Metadata information for Commerce documents, actions, attributes, menu items and translations. The endpoint for each REST API appends onto:
https://{siteurl}/rest/v17/commerceDocuments/{processVarName}
https://{siteurl}
, where{siteurl}
is the base URL of the Oracle CPQ site.
Sales User Access to Buy-Side Get Metadata REST APIs
Oracle CPQ 20A allows sales users access to Commerce and Configuration buy-side metadata information, including layout details, translated labels, action and attribute types, attribute input parameters, and display properties. Sales Agents, Channel Agents, and Restricted Access users can be granted access to the following Get Commerce Layout and Get Commerce Document Metadata REST APIs. Guest Users are not allowed access to these Commerce REST APIs.
To enable this feature, administrators must open a Service Request (SR) on My Oracle Support. This feature should only be enabled if there is a specific need to expose the metadata (i.e. digital assistant). This feature does not change the accessibility of administrator-only metadata. Sales users are not able to access the metadata REST API information for Data Tables, BML, rules, and formulas.
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/layouts/transaction
Get Commerce Documents Metadata
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents
{ "items": [{ "id": 36244074, "dateModified": "2019-02-01", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs" } ], "variableName": "transaction", "label": "Transaction", "description": "Main (Header Level) Commerce Document - serves as Quote/Order depending on step in process flow", "resourceVarName": "commerceDocumentsOraclecpqoTransaction", "type": { "lookupCode": "0", "displayValue": "Main Document" }, "process": { "id": 36244034, "variableName": "oraclecpqo" } }, { "id": 36244118, "dateModified": "2017-11-17", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transactionLine" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transactionLine/attributes" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transactionLine/actionDefs" } ], "variableName": "transactionLine", "label": "Transaction Line", "description": "Line Level Document - Captures pricing and data at the line level", "resourceVarName": "commerceDocumentsOraclecpqoTransactionTransactionLine", "type": { "lookupCode": "1", "displayValue": "Sub Document" }, "process": { "id": 36244034, "variableName": "oraclecpqo" } } ], "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents" } ], }
Get Commerce Document Metadata
Use Case Examples
Get document metadata for "transaction"
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction
{ "id": 36244074, "dateModified": "2019-02-01", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs" } ], "variableName": "transaction", "label": "Transaction", "description": "Main (Header Level) Commerce Document - serves as Quote/Order depending on step in process flow", "resourceVarName": "commerceDocumentsOraclecpqoTransaction", "type": { "lookupCode": "0", "displayValue": "Main Document" }, "process": { "id": 36244034, "variableName": "oraclecpqo" } }
Get document metadata for "transaction" using the 'Expand All' parameter to include metadata for all related actions, attributes, and translations
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction?expand=all*
Use Case Examples
URI Endpoint Sample Get metadata for all "transaction" actions
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs
URI Endpoint Sample Get metadata for all "transaction" actions using the 'Expand All' parameter to include all translations
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs?expand=all*
URI Endpoint Sample Get action metadata for "update_line_items"
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs/_update_line_items
{ "id": 36244182, "dateModified": "2015-10-26", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs/_update_line_items" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs/_update_line_items/translations" } ], "label": "Update Line Items", "description": "Default action to update Line Items", "variableName": "_update_line_items", "isRemote": false, "evalReasonTree": false, "actionTimeout": -1, "usageType": { "lookupCode": "0", "displayValue": "System" }, "type": { "lookupCode": "CmUpdateLineItemsAction", "displayValue": "Update Line Item" }, "destinationType": { "lookupCode": "1", "displayValue": "Same Page" }, "resetReasonType": { "lookupCode": "1", "displayValue": "Simple" }, "validationType": { "lookupCode": "0", "displayValue": "Simple Validations" }, "parentAction": null, "dependencies": {}, "potentialStates": ["visible", "enabled"], "additional": null, "actionSet": null, "isShowLoadingDialog": true }
Get Commerce Array Sets Metadata
Description |
This service returns metadata for all array sets defined for the specified Commerce document. |
|
---|---|---|
URI Endpoint |
/rest/v17/commerceProcesses/{processVarName}/documents/{docVarName}/arraySets |
|
Endpoint Parameters |
processVarName |
The variable name of the Commerce process |
docVarName |
The variable name of the main or sub-document |
|
HTTP Method |
GET |
|
Request Body Parameters |
None |
|
Response Body Parameters |
JSON data containing the array sets metadata for a specific Commerce document |
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets
{ "items": [{ "id": 36642830, "dateModified": "2019-02-01", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/financeOptions" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/financeOptions/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/financeOptions/attributes" } ], "label": "Finance Options", "description": "", "variableName": "financeOptions", "type": { "lookupCode": "CmArrayAttrSet", "displayValue": "Array Set" } }, { "id": 36641143, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes" } ], "label": "Labor Services", "description": "", "variableName": "laborServices", "type": { "lookupCode": "CmArrayAttrSet", "displayValue": "Array Set" } } ], "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets" } ] }
Get Commerce Array Set Metadata
Description |
This service returns metadata for the specified array set. |
|
---|---|---|
URI Endpoint |
/rest/v17/commerceProcesses/{processVarName}/documents/{docVarName}/arraySets/{arraySetVarName} |
|
Endpoint Parameters |
processVarName |
The variable name of the Commerce process |
docVarName |
The variable name of the main or sub-document |
|
arraySetVarName |
The variable name of the array set |
|
HTTP Method |
GET |
|
Request Body Parameters |
None |
|
Response Body Parameters |
JSON data containing the metadata for a specified array set |
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices
{ "id": 36641143, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes" } ], "label": "Labor Services", "description": "", "variableName": "laborServices", "type": { "lookupCode": "CmArrayAttrSet", "displayValue": "Array Set" } }
Get Commerce Array Attributes Metadata
Description |
This service returns metadata for all attributes defined for the specified array set. |
|
---|---|---|
URI Endpoint |
/rest/v17/commerceProcesses/{processVarName}/documents/{docVarName}/arraySets/{arraySetVarName}/attributes |
|
Endpoint Parameters |
processVarName |
The variable name of the Commerce process |
docVarName |
The variable name of the main or sub-document |
|
arraySetVarName |
The variable name of the array set |
|
HTTP Method |
GET |
|
Request Body Parameters |
None |
|
Response Body Parameters |
JSON data containing the attribute metadata for a specified array set |
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes
{ "items": [{ "id": 36641145, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/laborCategory" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/laborCategory/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/laborCategory/menuItems" } ], "label": "Labor Category", "description": "", "userDefault": null, "variableName": "laborCategory", "required": false, "autoUpdate": false, "hideForModels": false, "hideForParts": false, "hideForSegments": "", "orderNumber": 161, "excludeFromXml": false, "hideLabel": false, "systemDefault": null, "type": { "lookupCode": "CmMenuAttribute", "displayValue": "Menu" }, "usageType": { "lookupCode": "1", "displayValue": "General" }, "validationMethod": null, "defaultDataType": { "lookupCode": "0", "displayValue": "None" }, "dependencies": {}, "potentialStates": [], "additional": { "menu_type": { "lookupCode": "0", "displayValue": "Single-Select Menu" }, "constraint_behavior": { "lookupCode": "0", "displayValue": "Hide" } }, "attributeSet": null, "ajaxSensitive": false }, { "id": 36641199, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/description" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/description/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/description/menuItems" } ], "label": "Description", "description": "", "userDefault": null, "variableName": "description", "required": false, "autoUpdate": false, "hideForModels": false, "hideForParts": false, "hideForSegments": "", "orderNumber": 162, "excludeFromXml": false, "hideLabel": false, "systemDefault": null, "type": { "lookupCode": "CmTextAreaAttribute", "displayValue": "Text Area" }, "usageType": { "lookupCode": "1", "displayValue": "General" }, "validationMethod": null, "defaultDataType": { "lookupCode": "0", "displayValue": "None" }, "dependencies": {}, "potentialStates": [], "additional": {}, "attributeSet": null, "ajaxSensitive": false }, { "id": 36641250, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/region" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/region/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/region/menuItems" } ], "label": "Region", "description": "", "userDefault": null, "variableName": "region", "required": false, "autoUpdate": false, "hideForModels": false, "hideForParts": false, "hideForSegments": "", "orderNumber": 163, "excludeFromXml": false, "hideLabel": false, "systemDefault": null, "type": { "lookupCode": "CmTextAttribute", "displayValue": "Text" }, "usageType": { "lookupCode": "1", "displayValue": "General" }, "validationMethod": null, "defaultDataType": { "lookupCode": "0", "displayValue": "None" }, "dependencies": {}, "potentialStates": [], "additional": { "field_width": 30, "max_length": 255 }, "attributeSet": null, "ajaxSensitive": false }, { "id": 36641301, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/language" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/language/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/language/menuItems" } ], "label": "Language", "description": "", "userDefault": null, "variableName": "language", "required": false, "autoUpdate": false, "hideForModels": false, "hideForParts": false, "hideForSegments": "", "orderNumber": 164, "excludeFromXml": false, "hideLabel": false, "systemDefault": null, "type": { "lookupCode": "CmLanguageAttribute", "displayValue": "Language" }, "usageType": { "lookupCode": "1", "displayValue": "General" }, "validationMethod": null, "defaultDataType": { "lookupCode": "0", "displayValue": "None" }, "dependencies": {}, "potentialStates": [], "additional": { "menu_type": { "lookupCode": "0", "displayValue": "Single-Select Menu" }, "constraint_behavior": { "lookupCode": "0", "displayValue": "Hide" } }, "attributeSet": null, "ajaxSensitive": false }, { "id": 36641352, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/hours" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/hours/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/hours/menuItems" } ], "label": "Hours", "description": "", "userDefault": null, "variableName": "hours", "required": false, "autoUpdate": false, "hideForModels": false, "hideForParts": false, "hideForSegments": "", "orderNumber": 165, "excludeFromXml": false, "hideLabel": false, "systemDefault": null, "type": { "lookupCode": "CmNumberAttribute", "displayValue": "Integer" }, "usageType": { "lookupCode": "1", "displayValue": "General" }, "validationMethod": { "lookupCode": "0", "displayValue": "Check Numeric" }, "defaultDataType": { "lookupCode": "0", "displayValue": "None" }, "dependencies": {}, "potentialStates": [], "additional": { "attributeE": "", "attributeD": "", "field_width": 30, "scoreMethod": "1", "attributeF": "", "attributeA": "", "priceScoreWeightingAttr": "1", "attributeC": "", "attributeB": "", "attributeAValue": "0", "unit_price_var": "", "max_val": "", "net_price_var": "", "min_val": "", "attributeEValue": "0", "list_price_var": "", "attributeBValue": "0", "max_length": 255, "attributeCValue": "0", "boundaryMin": "1", "attributeFValue": "0", "enablePriceScore": "0", "priceScoreLineAttr": "1", "attributeDValue": "0", "boundaryMax": "9", "basis_price_var": "", "priceScoreSelection": "1", "boundaryUndefined": "1" }, "attributeSet": null, "ajaxSensitive": false }, { "id": 36641403, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/hourlyRate" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/hourlyRate/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/hourlyRate/menuItems" } ], "label": "Hourly Rate", "description": "", "userDefault": null, "variableName": "hourlyRate", "required": false, "autoUpdate": false, "hideForModels": false, "hideForParts": false, "hideForSegments": "", "orderNumber": 166, "excludeFromXml": false, "hideLabel": false, "systemDefault": null, "type": { "lookupCode": "CmCurrencyAttribute", "displayValue": "Currency" }, "usageType": { "lookupCode": "1", "displayValue": "General" }, "validationMethod": { "lookupCode": "0", "displayValue": "Check Currency" }, "defaultDataType": { "lookupCode": "0", "displayValue": "None" }, "dependencies": {}, "potentialStates": [], "additional": { "field_width": 30, "customerField": "", "dateField": "", "precision_GBP": "", "duration": "", "max_val": "", "netPriceField": "", "filterValue": "", "filterAttribute": "", "dealNegotiation": "", "precision_EUR": "", "min_val": "", "precision_USD": "2", "max_length": 255 }, "attributeSet": null, "ajaxSensitive": false }, { "id": 36641454, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/requiredService" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/requiredService/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/requiredService/menuItems" } ], "label": "Required Service", "description": "", "userDefault": "false", "variableName": "requiredService", "required": false, "autoUpdate": false, "hideForModels": false, "hideForParts": false, "hideForSegments": "", "orderNumber": 167, "excludeFromXml": false, "hideLabel": false, "systemDefault": null, "type": { "lookupCode": "CmBooleanAttribute", "displayValue": "Boolean" }, "usageType": { "lookupCode": "1", "displayValue": "General" }, "validationMethod": { "lookupCode": "0", "displayValue": "None" }, "defaultDataType": { "lookupCode": "2", "displayValue": "Data" }, "dependencies": {}, "potentialStates": [], "additional": { "_display_type": { "lookupCode": "0", "displayValue": "Radio Buttons" } }, "attributeSet": null, "ajaxSensitive": false }, { "id": 36641508, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/startDate" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/startDate/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/startDate/menuItems" } ], "label": "Start Date", "description": "", "userDefault": null, "variableName": "startDate", "required": false, "autoUpdate": false, "hideForModels": false, "hideForParts": false, "hideForSegments": "", "orderNumber": 168, "excludeFromXml": false, "hideLabel": false, "systemDefault": null, "type": { "lookupCode": "CmDateAttribute", "displayValue": "Date" }, "usageType": { "lookupCode": "1", "displayValue": "General" }, "validationMethod": { "lookupCode": "0", "displayValue": "None" }, "defaultDataType": { "lookupCode": "0", "displayValue": "None" }, "dependencies": {}, "potentialStates": [], "additional": { "end_date": "", "date_time": "false", "field_width": 16, "max_length": 25, "start_date": "" }, "attributeSet": null, "ajaxSensitive": false } ], "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes" } ] }
Get Commerce Array Attribute Metadata
Description |
This service returns metadata for the specified array attribute. |
|
---|---|---|
URI Endpoint |
/rest/v17/commerceProcesses/{processVarName}/documents/{docVarName}/arraySets/{arraySetVarName}/attributes/(attributeVarName} |
|
Endpoint Parameters |
processVarName |
The variable name of the Commerce process |
docVarName |
The variable name of the main or sub-document |
|
arraySetVarName |
The variable name of the array set |
|
attributeVarName |
The variable name of the array attribute |
|
HTTP Method |
GET |
|
Request Body Parameters |
None |
|
Response Body Parameters |
JSON data containing the metadata for a specified array attribute |
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/laborCategory
{ "id": 36641145, "dateModified": "2019-01-28", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/laborCategory" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/laborCategory/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/arraySets/laborServices/attributes/laborCategory/menuItems" } ], "label": "Labor Category", "description": "", "userDefault": null, "variableName": "laborCategory", "required": false, "autoUpdate": false, "hideForModels": false, "hideForParts": false, "hideForSegments": "", "orderNumber": 161, "excludeFromXml": false, "hideLabel": false, "systemDefault": null, "type": { "lookupCode": "CmMenuAttribute", "displayValue": "Menu" }, "usageType": { "lookupCode": "1", "displayValue": "General" }, "validationMethod": null, "defaultDataType": { "lookupCode": "0", "displayValue": "None" }, "dependencies": {}, "potentialStates": [], "additional": { "menu_type": { "lookupCode": "0", "displayValue": "Single-Select Menu" }, "constraint_behavior": { "lookupCode": "0", "displayValue": "Hide" } }, "attributeSet": null, "ajaxSensitive": false }
Get Commerce Attributes Metadata
Use Case Examples
URI Endpoint Sample Get metadata for all "transaction" attributes
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes
URI Endpoint Sample Get metadata for all "transaction" attributes using the 'Expand All' parameter to include all translations
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes?expand=all*
Get Commerce Attribute Metadata
URI Endpoint Sample Get attribute metadata for "_customer_t_email "
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email
{ "id": 36244262, "dateModified": "2014-02-24", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email/translations" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email/menuItems" } ], "description": "", "label": "Customer Email", "userDefault": null, "variableName": "_customer_t_email", "required": false, "autoUpdate": false, "hideForModels": false, "hideForParts": false, "hideForSegments": "", "orderNumber": 18, "excludeFromXml": false, "hideLabel": false, "systemDefault": null, "type": { "lookupCode": "CmTextAttribute", "displayValue": "Text" }, "usageType": { "lookupCode": "14", "displayValue": "Additional Address" }, "validationMethod": null, "defaultDataType": { "lookupCode": "0", "displayValue": "None" }, "dependencies": {}, "potentialStates": ["updatable"], "additional": { "max_length": 255, "field_width": 30 }, "attributeSet": { "id": 36244225, "variableName": "customer_t" } }
Get Commerce Menu Items Metadata
URI Endpoint Sample Get menu item metadata for " paymentTerms_t "
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems
{ "id": 36244404, "dateModified": "2014-02-24", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244404" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244404/translations" } ], "displayValue": "Net 30", "value": "Net 30", "orderNumber": 1 }, { "id": 36244405, "dateModified": "2014-02-24", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405/translations" } ], "displayValue": "Net 60", "value": "Net 60", "orderNumber": 2 } ], "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems" } ] }
Get Commerce Menu Item Metadata
URI Endpoint Sample Get metadata for the "paymentTerms_t" menu item 36244405
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405
{ "id": 36244405, "dateModified": "2014-02-24", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405/translations" } ], "displayValue": "Net 60", "value": "Net 60", "orderNumber": 2 }
Get Commerce Action Translations
URI Endpoint Sample Get all translations for "_update_line_items" action
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs/_update_line_items/translations
Get Commerce Action Translation
URI Endpoint Sample Get French translation for "_update_line_items" action
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs/_update_line_items/translations/fr
{ "language": {"languageCode": "fr", "languageNumber": 1}, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs/_update_line_items/translations/fr" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/actionDefs/_update_line_items" } ], "label": "Mettre à jour les lignes de revenu", "description": "Action par défaut de mise à jour des lignes de revenu" }
Get Commerce Attribute Translations
URI Endpoint Sample Get all translations for "_customer_t_email" attribute
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email/translations
Get Commerce Attribute Translation
URI Endpoint Sample Get German translation for "_customer_t_email " attribute
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email/translations/de
{ "language": {"languageCode": "de", "languageNumber": 0}, "links": [ { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email/translations/de" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email" } ], "description": "", "label": "E-Mail Kunde", "userDefault": "" }
Get Commerce Menu Item Translations
URI Endpoint Sample Get all translations for "paymentTerms_t" menu item 3624405
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405/translations
Get Commerce Menu Item Translation
URI Endpoint Sample Get Spanish translation for "paymentTerms_t" menu item 3624405
https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405/translations/es
{ "language": {"languageCode": "es", "languageNumber": 2}, "links": [ { "rel": "self", "href": " "https://sitename.oracle.com/rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405/translations/es" }, { "rel": "parent", "href": " "https://sitename.oracle.com//rest/v17/commerceProcesses/oraclecpqo/documents/transaction/attributes/paymentTerms_t/menuItems/36244405" } ], "displayValue": "Neto a 60" }