Get Attribute Metadata
get
/rest/v19/commerceProcesses/{processVarName}/documents/{docVarName}/attributes/{attributeVarName}
This service returns the metadata for a specific Commerce attribute.
Request
Path Parameters
-
attributeVarName(required): string
Variable Name of the attribute.
-
docVarName(required): string
Variable Name of the parent document.
-
processVarName(required): string
Variable Name of the parent process.
Response
Default Response
Root Schema : CommerceAttributes
Type:
Show Source
object-
additional:
object Additional
Title:
AdditionalAdditional fields. -
ajaxSensitive:
boolean
Title:
Ajax Sensitive flagBoolean to determine if the attribute takes part in any rules that will can potentially change state. -
attributeSet:
object foreignKey
-
autoUpdate:
boolean
Title:
Trigger Auto UpdateAuto Update -
dateModified:
string
Title:
Date Last ModifiedSystem field indicating the date on which the object was last modified. -
defaultDataType:
object lookup
-
dependencies:
object dependencies
-
description:
string
Title:
DescriptionDescription -
excludeFromXml:
boolean
Title:
Exclude From XML -
hideForModels:
boolean
Title:
Hide For ModelsHide For Models -
hideForParts:
boolean
Title:
Hide For PartsHide For Parts -
hideForSegments:
string
Title:
Hide For SegmentsHide For Segments -
hideLabel:
boolean
Title:
Hide Label -
id:
integer
Title:
IdPrimary Key of Commerce Attributes. -
label:
string
Title:
Display NameAttribute Name -
links:
object attributeLinks
-
orderNumber:
integer
Title:
OrderOrder Number -
potentialStates:
object Potential States
Title:
Potential StatesSet of states for this attribute. -
required:
boolean
Title:
RequiredRequired -
systemDefault:
object System Default
Title:
System DefaultSystem Default -
type:
object lookup
-
usageType:
object lookup
-
userDefault:
string
Title:
User DefaultUser defined default value -
validationMethod:
object lookup
-
variableName:
string
Title:
Variable NameVariable Name
Nested Schema : Additional
Type:
objectTitle:
AdditionalAdditional fields.
Nested Schema : foreignKey
Type:
Show Source
object-
id:
integer
Title:
IdId -
variableName:
string
Title:
Variable NameVariable Name
Nested Schema : lookup
Type:
Show Source
object-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : dependencies
Type:
Show Source
object-
actions:
object Actions
Title:
ActionsArray of actions -
attributes:
object Attributes
Title:
AttributesArray of attributes -
resources:
object Resources
Title:
ResourcesArray of resources
Nested Schema : attributeLinks
Type:
Show Source
object-
parent:
string
Link to parent Commerce process document attribute.
Nested Schema : Potential States
Type:
objectTitle:
Potential StatesSet of states for this attribute.
Nested Schema : System Default
Type:
objectTitle:
System DefaultSystem Default
Show Source
-
prefix:
string
Title:
PrefixPrefix for system_variable default data. -
suffix:
string
Title:
SuffixSuffix for system_variable default data. -
systemVariable:
string
Title:
System VariableSystem Variable
Nested Schema : Actions
Type:
objectTitle:
ActionsArray of actions
Nested Schema : Attributes
Type:
objectTitle:
AttributesArray of attributes
Nested Schema : Resources
Type:
objectTitle:
ResourcesArray of resources
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 -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/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/v19/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents/transaction"
}, {
"rel": "child",
"href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents/transaction/attributes/_customer_t_email/translations"
}, {
"rel": "child",
"href": "https://sitename.oracle.com/rest/v19/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"
}
}