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