Create a rule
/fscmRestApi/resources/11.13.18.05/costAccountingOverheadRules
Request
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Upsert-Mode: string
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
- application/json
object-
AbsorptionType(required): string
Title:
Absorption TypeMaximum Length:255 -
AbsorptionTypeCode(required): string
Title:
Absorption TypeMaximum Length:3 -
BasedOn: string
Title:
Based OnMaximum Length:30 -
CategoryId: integer
(int64)
Title:
Category ID -
CategoryName: string
Title:
Category NameMaximum Length:2400 -
CostBasis(required): string
Title:
Cost BasisMaximum Length:255 -
CostBasisCode(required): string
Title:
Cost BasisMaximum Length:18 -
CostBook(required): string
Title:
Cost BookMaximum Length:30 -
CostBookId(required): integer
(int64)
Title:
Cost Book ID -
CostElement(required): string
Title:
Cost ElementMaximum Length:30 -
CostElementId(required): integer
(int64)
Title:
Cost Element ID -
CostOrganizationId(required): integer
(int64)
Title:
Cost Organization ID -
CostOrganizationName(required): string
Title:
Cost OrganizationMaximum Length:240 -
ElementGroupId: integer
(int64)
Title:
Element Group ID -
ExpensePool(required): string
Title:
Expense PoolMaximum Length:30 -
ExpensePoolId(required): integer
(int64)
Title:
Expense Pool ID -
InventoryOrganizationCode: string
Title:
Inventory OrganizationMaximum Length:18 -
InventoryOrganizationId: integer
(int64)
Title:
Inventory Organization ID -
Item: string
Title:
ItemMaximum Length:300 -
ItemId: integer
(int64)
Title:
Item ID -
OverheadRuleDetails: array
OverheadRuleDetails
-
ProcessedFlagCode: string
Maximum Length:
1Default Value:N -
RuleName(required): string
Title:
Rule NameMaximum Length:30 -
TransactionFlow: string
Title:
Transaction FlowMaximum Length:255 -
TransactionFlowCode(required): string
Title:
Transaction FlowMaximum Length:18 -
TransactionGroup: string
Title:
Transaction GroupMaximum Length:255 -
TransactionGroupId(required): integer
(int64)
Title:
Transaction Group ID -
TransactionType: string
Title:
Transaction TypeMaximum Length:255 -
TransactionTypeId: integer
(int64)
Title:
Transaction Type ID
object-
EndDate: string
(date)
Title:
End Date -
FromPeriod: string
Title:
From Period -
FromPeriodStatusCode: string
Maximum Length:
80 -
Rate: number
Title:
Rate -
StartDate: string
(date)
Title:
Start Date -
ToPeriod: string
Title:
To Period -
ToPeriodStatusCode: string
Response
- application/json
Default Response
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
object-
AbsorptionType: string
Title:
Absorption TypeMaximum Length:255 -
AbsorptionTypeCode: string
Title:
Absorption TypeMaximum Length:3 -
BasedOn: string
Title:
Based OnMaximum Length:30 -
CategoryId: integer
(int64)
Title:
Category ID -
CategoryName: string
Title:
Category NameMaximum Length:2400 -
CostBasis: string
Title:
Cost BasisMaximum Length:255 -
CostBasisCode: string
Title:
Cost BasisMaximum Length:18 -
CostBook: string
Title:
Cost BookMaximum Length:30 -
CostBookId: integer
(int64)
Title:
Cost Book ID -
CostElement: string
Title:
Cost ElementMaximum Length:30 -
CostElementId: integer
(int64)
Title:
Cost Element ID -
CostOrganizationId: integer
(int64)
Title:
Cost Organization ID -
CostOrganizationName: string
Title:
Cost OrganizationMaximum Length:240 -
ElementGroupId: integer
(int64)
Title:
Element Group ID -
ExpensePool: string
Title:
Expense PoolMaximum Length:30 -
ExpensePoolId: integer
(int64)
Title:
Expense Pool ID -
InventoryOrganizationCode: string
Title:
Inventory OrganizationMaximum Length:18 -
InventoryOrganizationId: integer
(int64)
Title:
Inventory Organization ID -
InventoryOrganizationName: string
Read Only:
trueMaximum Length:240 -
IsCPRunning: string
Read Only:
trueMaximum Length:255 -
IsRecordUpdatable: string
Read Only:
trueMaximum Length:255 -
Item: string
Title:
ItemMaximum Length:300 -
ItemId: integer
(int64)
Title:
Item ID -
LastUpdateDate: string
(date-time)
Read Only:
true -
LatestRevisionEndDate: string
(date)
Read Only:
true -
LatestRevisionRate: number
Read Only:
true -
LatestRevisionStartDate: string
(date)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OverheadRuleDetails: array
OverheadRuleDetails
-
PeriodicAverageFlag: boolean
Read Only:
trueMaximum Length:1 -
ProcessedFlagCode: string
Maximum Length:
1Default Value:N -
ProcessedFlagMeaning: string
Title:
MeaningRead Only:trueMaximum Length:80 -
RuleId: integer
(int64)
Title:
Rule IDRead Only:true -
RuleName: string
Title:
Rule NameMaximum Length:30 -
StatusCode: string
Read Only:
trueMaximum Length:255 -
TransactionFlow: string
Title:
Transaction FlowMaximum Length:255 -
TransactionFlowCode: string
Title:
Transaction FlowMaximum Length:18 -
TransactionGroup: string
Title:
Transaction GroupMaximum Length:255 -
TransactionGroupId: integer
(int64)
Title:
Transaction Group ID -
TransactionType: string
Title:
Transaction TypeMaximum Length:255 -
TransactionTypeId: integer
(int64)
Title:
Transaction Type ID
arrayLinksobject-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
object-
CostBook: string
Read Only:
true -
CostOrganizationName: string
Read Only:
true -
EndDate: string
(date)
Title:
End Date -
FromPeriod: string
Title:
From Period -
FromPeriodStatus: string
Read Only:
true -
FromPeriodStatusCode: string
Maximum Length:
80 -
IsDetailUpdatable: string
Read Only:
trueMaximum Length:255 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ProcessedFlagMeaning: string
Title:
MeaningRead Only:trueMaximum Length:80 -
Rate: number
Title:
Rate -
RevisionNumber: integer
Title:
Revision NumberRead Only:true -
RuleDetailId: integer
(int64)
Title:
Rule Detail IDRead Only:true -
RuleId: integer
(int64)
Title:
Rule IDRead Only:true -
RuleName: string
Read Only:
true -
StartDate: string
(date)
Title:
Start Date -
ToPeriod: string
Title:
To Period -
ToPeriodStatusCode: string
arrayLinks- OverheadRuleDetails
-
Operation: /fscmRestApi/resources/11.13.18.05/costAccountingOverheadRules/{RuleId}/child/OverheadRuleDetailsParameters:
- RuleId:
$request.path.RuleId
- RuleId:
Examples
This example describes how to create one cost accounting overhead rule.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' servername/fscmRestApi/resources/version/costAccountingOverheadRules"
Example 1 Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.
{
"RuleName" : "Rule1",
"CostOrganizationName" : "Seattle",
"CostBook" : "Primary",
"ExpensePool" : "Electrical Expense",
"CostElement" : "Electricity",
"TransactionGroup" : "Purchase order transactions",
"TransactionType" : "Purchase Order Receipt",
"TransactionFlow" : "Receipt",
"CostBasis" : "Unit",
"AbsorptionType" : "Include in inventory",
"OverheadRuleDetails": [ {
"StartDate": "2017-01-01",
"Rate": 10
}
]
}
Example 1 Response Body
The following example includes the contents of the response body in JSON format:
{
"RuleId" : 300100111253919,
"RuleName" : "Rule1",
"CostOrganizationName" : "Seattle",
"CostOrganizationId" : 999993000015516,
"CostBook" : "Primary",
"CostBookId" : 300100003455478,
"ExpensePool" : "Electrical Expense",
"ExpensePoolId" : 300100089911214,
"CostElement" : "Electricity",
"CostElementId" : 300100089911236,
"TransactionGroup" : "Purchase order transactions",
"TransactionGroupId" : 5,
"TransactionType" : "Purchase Order Receipt",
"TransactionTypeId" : 18,
"TransactionFlow" : "Receipt",
"TransactionFlowCode" : "RECEIPT",
"InventoryOrganizationCode" : null,
"InventoryOrganizationId" : null,
"CategoryName" : null,
"CategoryId" : null,
"Item" : null,
"ItemId" : null,
"CostBasis" : "Unit",
"CostBasisCode" : "UNIT",
"BasedOn" : null,
"ElementGroupId" : null,
"AbsorptionType" : "Include in inventory",
"AbsorptionTypeCode" : "1",
"OverheadRuleDetails" : [ {
"RuleId" : 300100111253919,
"RuleDetailId" : 300100111253920,
"RevisionNumber" : 1,
"StartDate" : "2017-01-01",
"EndDate" : "4712-12-31",
"Rate" : 10
}
]
}
Example 2 Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.
{
"RuleName" : "Rule1",
"CostOrganizationName" : "Seattle",
"CostBook" : "Primary",
"ExpensePool" : "Electrical Expense",
"CostElement" : "Electricity",
"TransactionGroup" : "Purchase order transactions",
"TransactionType" : "Purchase Order Receipt",
"TransactionFlow" : "Receipt",
"CostBasis" : "Unit",
"AbsorptionType" : "Include in inventory",
"OverheadRuleDetails": [ {
"StartDate": "2017-01-01",
"EndDate" : "2017-01-31",
"Rate": 10
}, {
"StartDate": "2017-02-01",
"Rate": 20
}
]
}
Example 2 Response Body
The following example includes the contents of the response body in JSON format:
{
"RuleId" : 300100111253919,
"RuleName" : "Rule1",
"CostOrganizationName" : "Seattle",
"CostOrganizationId" : 999993000015516,
"CostBook" : "Primary",
"CostBookId" : 300100003455478,
"ExpensePool" : "Electrical Expense",
"ExpensePoolId" : 300100089911214,
"CostElement" : "Electricity",
"CostElementId" : 300100089911236,
"TransactionGroup" : "Purchase order transactions",
"TransactionGroupId" : 5,
"TransactionType" : "Purchase Order Receipt",
"TransactionTypeId" : 18,
"TransactionFlow" : "Receipt",
"TransactionFlowCode" : "RECEIPT",
"InventoryOrganizationCode" : null,
"InventoryOrganizationId" : null,
"CategoryName" : null,
"CategoryId" : null,
"Item" : null,
"ItemId" : null,
"CostBasis" : "Unit",
"CostBasisCode" : "UNIT",
"BasedOn" : null,
"ElementGroupId" : null,
"AbsorptionType" : "Include in inventory",
"AbsorptionTypeCode" : "1",
"OverheadRuleDetails" : [ {
"RuleId" : 300100111253919,
"RuleDetailId" : 300100111253920,
"RevisionNumber" : 1,
"StartDate" : "2017-01-01",
"EndDate" : "2017-01-31",
"Rate" : 10
},{
"RuleId" : 300100111253919,
"RuleDetailId" : 300100111253921,
"RevisionNumber" : 2,
"StartDate" : "2017-02-01",
"EndDate" : "4712-12-31",
"Rate" : 20
}
]
}
Example 3 Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.
{
"RuleName" : "Rule1",
"CostOrganizationId" : 999993000015516,
"CostBookId" : 300100003455478,
"ExpensePoolId" : 300100089911214,
"CostElementId" : 300100089911236,
"TransactionGroupId" : 5,
"TransactionTypeId" : 18,
"TransactionFlowCode" : "RECEIPT",
"CostBasisCode" : "UNIT",
"AbsorptionTypeCode" : "1",
"OverheadRuleDetails" : [ {
"StartDate" : "2017-01-01",
"Rate" : 10
}
]
}
Example 3 Response Body
The following example includes the contents of the response body in JSON format:
{
"RuleId" : 300100111253919,
"RuleName" : "Rule1",
"CostOrganizationName" : "Seattle",
"CostOrganizationId" : 999993000015516,
"CostBook" : "Primary",
"CostBookId" : 300100003455478,
"ExpensePool" : "Electrical Expense",
"ExpensePoolId" : 300100089911214,
"CostElement" : "Electricity",
"CostElementId" : 300100089911236,
"TransactionGroup" : "Purchase order transactions",
"TransactionGroupId" : 5,
"TransactionType" : "Purchase Order Receipt",
"TransactionTypeId" : 18,
"TransactionFlow" : "Receipt",
"TransactionFlowCode" : "RECEIPT",
"InventoryOrganizationCode" : null,
"InventoryOrganizationId" : null,
"CategoryName" : null,
"CategoryId" : null,
"Item" : null,
"ItemId" : null,
"CostBasis" : "Unit",
"CostBasisCode" : "UNIT",
"BasedOn" : null,
"ElementGroupId" : null,
"AbsorptionType" : "Include in inventory",
"AbsorptionTypeCode" : "1",
"OverheadRuleDetails" : [ {
"RuleId" : 300100111253919,
"RuleDetailId" : 300100111253920,
"RevisionNumber" : 1,
"StartDate" : "2017-01-01",
"EndDate" : "4712-12-31",
"Rate" : 10
}
]
}
Example 4 Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.
{
"RuleName": "Demo Rule 1",
"CostOrganizationName": "Auto1-CO",
"CostBook": "PAC BOOK 1",
"ExpensePool": "0554EP1",
"CostElement": "ZCST-Waste-Asset",
"TransactionGroup": "Inter organization transfers",
"TransactionType": "Transfer Order Interorganization Receipt",
"TransactionFlow": "Receipt",
"InventoryOrganizationCode": "CSTAUTO1",
"Item": "ZDQ-1000",
"CostBasis": "Lot",
"AbsorptionType": "Include in inventory",
"OverheadRuleDetails": [ {
"FromPeriod": "11-21",
"Rate": 10
}
]
}
Example 4 Response Body
{
"RuleId": 300100549680658,
"RuleName": "Demo Rule 1",
"CostOrganizationName": "Auto1-CO",
"CostOrganizationId": 300100172982769,
"CostBook": "PAC BOOK 1",
"CostBookId": 300100549317205,
"ExpensePool": "0554EP1",
"ExpensePoolId": 300100137341514,
"CostElement": "ZCST-Waste-Asset",
"CostElementId": 100000010001022,
"TransactionGroup": "Inter organization transfers",
"TransactionGroupId": 2,
"TransactionType": "Transfer Order Interorganization Receipt",
"TransactionTypeId": 61,
"TransactionFlow": "Receipt",
"TransactionFlowCode": "RECEIPT",
"InventoryOrganizationCode": "CSTAUTO1",
"InventoryOrganizationId": 300100172909868,
"CategoryName": null,
"CategoryId": null,
"Item": "ZDQ-1000",
"ItemId": 300100059785342,
"CostBasis": "Lot",
"CostBasisCode": "LOT",
"BasedOn": null,
"ElementGroupId": null,
"AbsorptionType": "Include in inventory",
"AbsorptionTypeCode": "1",
"PeriodicAverageFlag": true,
"ProcessedFlagMeaning": null,
"OverheadRuleDetails": [
{
"RuleId": 300100549680658,
"RuleDetailId": 300100549680663,
"RevisionNumber": 1,
"StartDate": "2021-11-01",
"EndDate": "4712-12-31",
"Rate": 10,
"FromPeriod": "11-21",
"ToPeriod": null,
"FromPeriodStatus": "Open",
"RuleName": "Demo Rule 1",
"CostOrganizationName": "Auto1-CO",
"CostBook": "PAC BOOK 1",
"ProcessedFlagMeaning": null,
"links": [
{
"rel": "self",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/child/OverheadRuleDetails/300100549680663",
"name": "OverheadRuleDetails",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/child/OverheadRuleDetails/300100549680663",
"name": "OverheadRuleDetails",
"kind": "item"
},
{
"rel": "parent",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658",
"name": "costAccountingOverheadRules",
"kind": "item"
}
]
}
],
"links": [
{
"rel": "self",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658",
"name": "costAccountingOverheadRules",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658",
"name": "costAccountingOverheadRules",
"kind": "item"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/CategoryLOV",
"name": "CategoryLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/CostDriverLOV",
"name": "CostDriverLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/CostElementLOV",
"name": "CostElementLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/ExpensePoolLOV",
"name": "ExpensePoolLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/TransactionTypeLOV",
"name": "TransactionTypeLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/TransactionFlowLOV",
"name": "TransactionFlowLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/CostOrganizationLOV",
"name": "CostOrganizationLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/CostBookLOV",
"name": "CostBookLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/TransactionGroupLOV",
"name": "TransactionGroupLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/InventoryOrganizationLOV",
"name": "InventoryOrganizationLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/ItemLOV",
"name": "ItemLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/AbsorptionTypeLOV",
"name": "AbsorptionTypeLOV",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/lov/CostElementGroupLOV",
"name": "CostElementGroupLOV",
"kind": "collection"
},
{
"rel": "child",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/child/OverheadRuleDetails",
"name": "OverheadRuleDetails",
"kind": "collection"
}
]
}