Get Attribute Metadata

get

/rest/v16/commerceProcesses/{processVarName}/documents/{docVarName}/attributes/{attributeVarName}

This service returns the metadata for a specific Commerce attribute.

Request

Path Parameters
Back to Top

Response

Default Response

Body ()
Root Schema : CommerceAttributes
Type: object
Show Source
Nested Schema : Additional
Type: object
Title: Additional
Additional fields.
Nested Schema : foreignKey
Type: object
Show Source
Nested Schema : lookup
Type: object
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : dependencies
Type: object
Show Source
Nested Schema : Potential States
Type: object
Title: Potential States
Set of states for this attribute.
Nested Schema : System Default
Type: object
Title: System Default
System Default
Show Source
Nested Schema : Actions
Type: object
Title: Actions
Array of actions
Nested Schema : Attributes
Type: object
Title: Attributes
Array of attributes
Nested Schema : Resources
Type: object
Title: Resources
Array of resources
Back to Top

Examples

The following example shows how to retrieve metadata for the specified attribute 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/v16/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email

Response Body Sample

{
   "id": 36244262,
   "dateModified": "2014-02-24",
   "links": [{
         "rel": "self",
         "href": "https://sitename.oracle.com/rest/v16/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email"
      }, {
         "rel": "parent",
         "href": "https://sitename.oracle.com/rest/v16/commerceProcesses/oraclecpqo/documents/transaction"
      }, {
         "rel": "child",
         "href": "https://sitename.oracle.com/rest/v16/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email/translations"
      }, {
         "rel": "child",
         "href": "https://sitename.oracle.com/rest/v16/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"
   }
}
Back to Top