Cost Scenarios
costScenariosV2 Based on 26C
Create, change, delete and look up Cost Scenarios, with scenario timeline and work definition criteria. Actions include run scenario processor.
- Operations
- GET (list)GET (one)POST (create)PATCH (update)DELETE1 action
- Record key
ScenarioId- Required on create
EffectiveStartDateScenarioNumber- At a glance
- 46 fields4 finders4 children
Try it
Only attributes Oracle marks as searchable are offered.
GET /fscmRestApi/resources/11.13.18.05/costScenariosV2?fields=AssignmentSetId,AssignmentSetName,AttachmentEntityName,Comments,CostBookCode&limit=25&onlyData=true
{
"items": [
{
"AssignmentSetId": 0,
"AssignmentSetName": "<string, max 34>",
"AttachmentEntityName": "<string, max 255>",
"Comments": "<string, max 1000>",
"CostBookCode": "<string, max 30>"
}
],
"count": 25,
"hasMore": true,
"limit": 25,
"offset": 0
}Shapes and placeholders, not real data. Replace https://<your-pod> and the login with your own: this site never sees them. Based on Oracle's 26C REST specification.
Fields 46
| Attribute | Type | Use |
|---|---|---|
AssignmentSetId | number | Optional on createUpdatableSearchable |
AssignmentSetName | text · max 34 | Optional on createUpdatableSearchable |
AttachmentEntityName | text · max 255 | Optional on createUpdatable |
Comments | text · max 1000 | Optional on createUpdatableSearchable |
CostBookCode | text · max 30 | Optional on createUpdatableSearchable |
CostBookDescription | text · max 240 | Optional on createUpdatableSearchable |
CostBookId | number · default -1 | Optional on createUpdatableSearchable |
CostOrgCode | text · max 150 | Optional on createUpdatableSearchable |
CostOrgId | number · default -1 | Optional on createUpdatableSearchable |
CostOrgName | text · max 240 | Optional on createUpdatableSearchable |
CreatedBy | text · max 64 | Read-onlySearchable |
CreationDate | date-time | Read-onlySearchable |
DownstreamDataExistsFlag | yes/no | Read-only |
EffectiveStartDate | date | Required on createUpdatableSearchable |
IsDeleteAllowedFlag | yes/no | Read-onlySearchable |
IsEditAllowedFlag | yes/no · max 1 | Read-onlySearchable |
IsPublishEnabledFlag | yes/no · max 1 | Read-onlySearchable |
IsRollupEnabledFlag | yes/no · max 1 | Read-onlySearchable |
IsUnpublishEnabledFlag | yes/no · max 1 | Read-onlySearchable |
LastUpdateDate | date-time | Read-onlySearchable |
LastUpdatedBy | text · max 64 | Read-onlySearchable |
OrgContextMeaning | text · max 80 | Read-onlySearchable |
OrganizationContext | text · max 30 | Optional on createUpdatable |
PeriodName | text · max 15 | Optional on createUpdatableSearchable |
PeriodStatus | text · max 255 | Read-onlySearchable |
PeriodStatusMeaning | text · max 255 | Read-onlySearchable |
PeriodicAverageFlag | yes/no · max 1 | Read-onlySearchable |
PrimaryBookFlag | yes/no · max 1 | Read-onlySearchable |
ReasonCode | text · max 30 | Optional on createUpdatableSearchable |
ReasonMeaning | text · max 80 | Read-onlySearchable |
RollupGroupDescription | text · max 240 | Optional on createUpdatableSearchable |
RollupGroupId | number · default -1 | Optional on createUpdatableSearchable |
RollupGroupName | text · max 80 | Optional on createUpdatableSearchable |
RollupScope | text · max 30 · default ALL_ITEMS | Optional on createUpdatableSearchable |
RollupScopeMeaning | text · max 80 | Read-onlySearchable |
RuleSetName | text · max 80 | Optional on createUpdatableSearchable |
ScenarioId | number | Optional on createUpdatableSearchable |
ScenarioNumber | text · max 30 | Required on createUpdatableSearchable |
ScenarioType | text · max 30 · default STANDARD | Optional on createUpdatableSearchable |
ScenarioTypeMeaning | text · max 255 | Read-onlySearchable |
StateCode | text · max 30 · default NEW | Optional on createUpdatableSearchable |
StateMeaning | text · max 80 | Read-onlySearchable |
StatusCode | text · max 30 · default NEW | Optional on createUpdatableSearchable |
StatusMeaning | text · max 80 | Read-onlySearchable |
SupplyChainRollupFlag | yes/no · max 1 · default false | Optional on createUpdatableSearchable |
TransferCostRuleSetId | number | Optional on createUpdatableSearchable |
Names, types, labels and flags from Oracle's REST specification (26C). Flexfield and custom attributes vary by pod: check /describe for yours.
Finders 4
Predefined searches: ?finder=Name;variable=value,variable2=value2. Pick one in Try it to build the call.
findByCostOrgCostBook·bindCostBookCodebindCostOrgNamefindByScenarioNumber·bindScenarioNumberfindUnpublishedByCostOrgCostBook·bindCostBookCodebindCostOrgNamegetUnPublishedScenarioByCostOrgId·bind_CostOrgId
Check a payload
Checked in your browser only; nothing you paste is sent anywhere. Checks names and flags, not values.
Children 4
Child resources sit under one record: /fscmRestApi/resources/11.13.18.05/costScenariosV2/{ScenarioId}/child/<name>. Add them to a GET with expand.
AttachmentsVAGET · POST · PATCH · DELETE Attachments · 32 fieldsAsyncTrackerIdAttachedDocumentIdCategoryNameContentRepositoryFileSharedCreatedByCreatedByUserNameCreationDateDatatypeCodeDescriptionDmDocumentIdDmFolderPathDmVersionNumberDownloadInfoErrorStatusCodeErrorStatusMessageExpirationDateFileContentsFileNameFileUrlFileWebImageLastUpdateDateLastUpdatedByLastUpdatedByUserNamePostProcessingActionTitleUploadedFileContentTypeUploadedFileLengthUploadedFileNameUploadedTextUriUrlUserNameScenarioTimelineGET Cost Scenario Events Timeline · 20 fieldsCompletedCountEndTimeErrorCountFailedCountMaximumEventDateMinimumEventDateProcessIdScenarioEventDateScenarioEventIdScenarioEventNumberScenarioEventTypeScenarioIdScenarioNumberStartTimeStatusStatusCodeSubmitterTimeElapsedTotalCountWarningCountWorkDefinitionCriteriaGET · POST · PATCH Work Definition Criteria · 16 fieldsExplosionBasisExplosionSequenceExplosionSequenceMeaningOneExplosionSequenceMeaningThreeExplosionSequenceMeaningTwoExplosionSequenceOneExplosionSequenceThreeExplosionSequenceTwoLastNDaysRefreshWdFlagScenarioIdSingleLevelRollupFlagUnprocessedOrdersDateWdCriterionIdWorkDefNameWorkDefinitionNameIdWorkDefinitionCriteriaDetailsGET · POST · PATCH · DELETE Work Definition Criteria Details · 14 fieldsCategoryDescriptionCategoryIdCategoryNameCategorySetDescriptionCategorySetIdCategorySetNameInventoryItemIdItemDescriptionItemNumberResourceCodeResourceIdResourceNameResourceTypeWdCriterionDetailId
Actions 1
POST …/{ScenarioId}/action/runScenarioProcessor·scenarioEventType
Actions use Content-Type: application/vnd.oracle.adf.action+json. A path with a {key} runs on one record.
Use in AI Agent Studio
- Point a Business Object or REST tool at
/fscmRestApi/resources/11.13.18.05/costScenariosV2and ask only for the fields the agent needs withfields=. Big responses cost tokens and slow the agent. - Prefer a finder such as
findByCostOrgCostBookfor the agent's main search: its variables become clean tool parameters. - Narrow with
q=on searchable fields and a smalllimit; for a count usetotalResults=true&limit=1. - Call once and pass the result on to later steps rather than calling the same endpoint again.
- This resource can change data. Put a human approval step before any create, update, delete or action call.
More in For Builders.
Pitfalls
- Attribute names are case-sensitive in
q,fieldsand bodies:AssignmentSetId, notassignmentsetid. - 20 fields are read-only: sending them in POST or PATCH fails or is ignored. The builder leaves them out.
- Send dates as
YYYY-MM-DD; date-time fields take ISO 8601 with a time zone. - A list returns 25 rows unless you set
limit; readhasMoreand moveoffsetto page through. - Text fields have maximum lengths (shown in the field table). Longer values are rejected.