Get Part Metadata Action
post
/rest/v19/partSetups/actions/getPartMetadata
Use this endpoint to retrieve return the metadata for CPQ standard and part custom fields.
Request
Supported Media Types
- application/json
Root Schema : Part Setups Get Part Metdata Request Definition
Type:
objectTitle:
Part Setups Get Part Metdata Request DefinitionResponse
Supported Media Types
- application/json
Default Response
Root Schema : Part Setups Get Part Metdata Response Definition
Type:
objectTitle:
Show Source
Part Setups Get Part Metdata Response Definition-
partMetadata:
object Part Metadata Response Model
Title:
Part Metadata Response ModelThe metadata definition for part setups.
Nested Schema : Part Metadata Response Model
Type:
objectTitle:
Part Metadata Response ModelThe metadata definition for part setups.
Show Source
-
partMetadata:
object Part Metadata Response Field
Title:
Part Metadata Response FieldThe metadata definition for part setups.
Nested Schema : Part Metadata Response Field
Type:
objectTitle:
Part Metadata Response FieldThe metadata definition for part setups.
Show Source
-
customFields:
object Part Setups Custom Fields
Title:
Part Setups Custom FieldsList of the custom fields for part setups. -
standardFields:
object Part Setups Standard Fields
Title:
Part Setups Standard FieldsList of the standard fields for part setups.
Nested Schema : Part Setups Custom Fields
Type:
objectTitle:
Part Setups Custom FieldsList of the custom fields for part setups.
Show Source
-
customFields:
array Custom Fields
Title:
Custom FieldsThe list of standard part setups fields.
Nested Schema : Part Setups Standard Fields
Type:
objectTitle:
Part Setups Standard FieldsList of the standard fields for part setups.
Show Source
-
standardFields:
array Standard Fields
Title:
Standard FieldsThe list of standard part setups fields.
Nested Schema : Custom Fields
Type:
arrayTitle:
Custom FieldsThe list of standard part setups fields.
Show Source
-
Array of:
object Part Setups Standard Field
Title:
Part Setups Standard FieldSingle part setups standard field definition.
Nested Schema : Part Setups Standard Field
Type:
objectTitle:
Part Setups Standard FieldSingle part setups standard field definition.
Show Source
-
fieldName:
string
Title:
Field NameThe name of the field. -
label:
string
Title:
LabelThe label of the field. -
required:
boolean
Title:
RequiredWhether the field is required. -
type:
string
Title:
TypeThe type of the field.
Nested Schema : Standard Fields
Type:
arrayTitle:
Standard FieldsThe list of standard part setups fields.
Show Source
-
Array of:
object Part Setups Standard Field
Title:
Part Setups Standard FieldSingle part setups standard field definition.
Examples
The following example shows how to retrieve return the metadata for standard and part custom fields by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/partSetups/actions/getPartMetadata
Response Body
{
"partMetadata": {
"standardFields": [{
"fieldName": "dateAdded",
"label": "Date Added",
"required": true,
"type": "Date"
}, {
"fieldName": "dateModified",
"label": "Date Modified",
"required": false,
"type": "Date"
}, {
"fieldName": "defaultUOMCode",
"label": "Default UOM Code",
"required": false,
"type": "String"
}, {
"fieldName": "description",
"label": "Description",
"required": false,
"type": "String"
}, {
"fieldName": "directBuy",
"label": "Direct Buy",
"required": true,
"type": "Single Select Menu"
}, {
"fieldName": "eligibleForService",
"label": "Eligible for Service",
"required": false,
"type": "String"
}, {
"fieldName": "eligibleToSell",
"label": "Eligible to Sell",
"required": false,
"type": "String"
}, {
"fieldName": "enableSelfService",
"label": "Enable Customer Self-Service",
"required": false,
"type": "String"
}, {
"fieldName": "externalKey1",
"label": "External Key 1",
"required": false,
"type": "String"
}, {
"fieldName": "externalKey2",
"label": "External Key 2",
"required": false,
"type": "String"
}, {
"fieldName": "id",
"label": "Id",
"required": false,
"type": "Integer"
}, {
"fieldName": "leadTime",
"label": "Lead Time",
"required": false,
"type": "Integer"
}, {
"fieldName": "numberOfPricePeriods",
"label": "Number of Price Periods",
"required": false,
"type": "Integer"
}, {
"fieldName": "partDisplayNumber",
"label": "Part Display Number",
"required": false,
"type": "String"
}, {
"fieldName": "partNumber",
"label": "Part Number",
"required": true,
"type": "String"
}, {
"fieldName": "partNumberLower",
"label": "Part Number Lower",
"required": false,
"type": "String"
}, {
"fieldName": "partnerOrganizationId",
"label": "Partner Organization Id",
"required": false,
"type": "String"
}, {
"fieldName": "partnerPartId",
"label": "Partner Part Id",
"required": false,
"type": "String"
}, {
"fieldName": "partnerStandardPriceBookEntryId",
"label": "Partner Standard Pricebook Entry Id",
"required": false,
"type": "String"
}, {
"fieldName": "pricePeriod",
"label": "Price Period",
"required": false,
"type": "String"
}, {
"fieldName": "priceType",
"label": "Price Type",
"required": false,
"type": "String"
}, {
"fieldName": "salesProductType",
"label": "Sales Product Type",
"required": false,
"type": "String"
}, {
"fieldName": "units",
"label": "Units",
"required": false,
"type": "String"
}
],
"customFields": [{
"fieldName": "_part_custom_field1",
"label": "Product Group",
"required": false,
"type": "String",
"showOnSearchPage": false,
"showOnSearchResultsPage": false,
"showOnBomPage": false,
"showOnDetailPage": false
}, {
"fieldName": "_part_custom_field10",
"label": "Product type",
"required": false,
"type": "Single Select Menu",
"showOnSearchPage": false,
"showOnSearchResultsPage": false,
"showOnBomPage": false,
"showOnDetailPage": false
}, {
"fieldName": "_part_custom_field2",
"label": "Part Availability",
"required": false,
"type": "Single Select Menu",
"showOnSearchPage": true,
"showOnSearchResultsPage": true,
"showOnBomPage": false,
"showOnDetailPage": false
}, {
"fieldName": "_part_custom_field3",
"label": "Max discount %",
"required": false,
"type": "String",
"showOnSearchPage": false,
"showOnSearchResultsPage": false,
"showOnBomPage": false,
"showOnDetailPage": false
}, {
"fieldName": "_part_custom_field4",
"label": "Price Period",
"required": false,
"type": "Single Select Menu",
"showOnSearchPage": false,
"showOnSearchResultsPage": false,
"showOnBomPage": false,
"showOnDetailPage": true
}, {
"fieldName": "_part_custom_field5",
"label": "Cost",
"required": false,
"type": "Number",
"showOnSearchPage": false,
"showOnSearchResultsPage": false,
"showOnBomPage": false,
"showOnDetailPage": false
}, {
"fieldName": "_part_custom_field8",
"label": "Price Type",
"required": false,
"type": "Single Select Menu",
"showOnSearchPage": false,
"showOnSearchResultsPage": false,
"showOnBomPage": false,
"showOnDetailPage": true
}, {
"fieldName": "_part_custom_field9",
"label": "product",
"required": false,
"type": "String",
"showOnSearchPage": false,
"showOnSearchResultsPage": false,
"showOnBomPage": false,
"showOnDetailPage": false
}
]
}
}