Create cost adjustments
/fscmRestApi/resources/11.13.18.05/periodicAverageCostAdjustments
Request
-
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.
-
Upsert-Mode:
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
-
Account: string
Title:
Account
Maximum Length:1000
Combination of the segment attributes of the account key. -
AccountCodeCombinationId: integer
(int64)
Title:
Account Code Combination ID
Optional account code combination ID for the adjustment transaction. -
AdjustmentStatusCode: string
Title:
Adjustment Status Code
Maximum Length:1
Default Value:S
Abbreviation that identifies the adjustment status. Values include D-Draft, S-Submitted, Y-Processed, X-Deleted, and F-Failed. -
AdjustmentTypeCode(required): string
Title:
Adjustment Type Code
Maximum Length:30
Abbreviation that identifies the adjustment type. Values include VALUE-Value and OPENING_BALANCE-Opening cost override. -
Attachments: array
Attachments
Title:
Attachments
The attachments resource is used to view, create, and update attachments. -
ChartOfAccountsId: integer
(int64)
Chart of Accounts
-
costAdjustmentDetails: array
Periodic Average Cost Adjustment Details
Title:
Periodic Average Cost Adjustment Details
The Cost Adjustment Details resource manages cost element level details for the periodic average cost adjustment. -
CostBook(required): string
Title:
Cost Book
Maximum Length:30
Name of the cost book for the adjustment. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Cost Books task. -
CostBookId(required): integer
(int64)
Title:
Cost Book ID
Value that uniquely identifies the cost book. -
CostOrganizationId(required): integer
(int64)
Title:
Cost Organization ID
Value that uniquely identifies the cost organization. -
CostOrganizationName(required): string
Title:
Cost Organization Name
Maximum Length:240
Name of the cost organization for the adjustment. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Cost Organizations task. -
CostProfileId(required): integer
(int64)
Title:
Cost Profile ID
Cost profile used for processing the adjustment. The application generates this value. -
HeaderReferenceNumber: string
Maximum Length:
18
A unique reference number added by the user to identify the adjustment. -
Item: string
Maximum Length:
255
Name of the inventory item for the adjustment. -
ItemCostProfileId(required): integer
(int64)
Title:
Item Cost Profile ID
Item Cost profile used for processing the adjustment. The application generates this value. -
ItemId(required): integer
(int64)
Title:
Item ID
Value that uniquely identifies the item. -
PeriodName(required): string
Title:
Period Name
Maximum Length:15
Period of the costing transaction for the adjustment. Adjustments can only be created in costing periods when the period status is open or pending close. -
ReasonCode(required): string
Title:
Reason Code
Maximum Length:200
Abbreviation that identifies the reason for the cost adjustment transaction. -
TotalUnitCost: number
Title:
Total Unit Cost
Total unit cost for the adjustment transaction, which is the sum of the unit cost of all the cost elements. -
ValuationUnit(required): string
Title:
Valuation Unit
Maximum Length:1000
Valuation unit code for the cost adjustment transaction. -
ValuationUnitId(required): integer
(int64)
Title:
Valuation Unit ID
Value that uniquely identifies the valuation unit. -
ValuationUnitType(required): string
Title:
Valuation Unit Type
Maximum Length:255
Type of valuation unit. Values include Asset and Expense.
array
Attachments
array
Periodic Average Cost Adjustment Details
object
-
AsyncTrackerId: string
Title:
Asynchronous Upload Tracker Id
Attribute provided for the exclusive use by the Attachment UI components to assist in uploading files. -
AttachedDocumentId: integer
(int64)
Title:
Attached Document Id
The unique identifier of the attached document. -
CategoryName: string
Title:
Category
Maximum Length:30
The category of the attachment. - ContentRepositoryFileShared: boolean
-
DatatypeCode: string
Title:
Type
Maximum Length:30
Default Value:FILE
A value that indicates the data type. -
Description: string
Title:
Description
Maximum Length:255
The description of the attachment. -
DmDocumentId: string
Maximum Length:
255
The document ID from which the attachment is created. -
DmFolderPath: string
Title:
Dm Folder Path
Maximum Length:1000
The folder path from which the attachment is created. -
DmVersionNumber: string
Maximum Length:
255
The document version number from which the attachment is created. -
DownloadInfo: string
Title:
DownloadInfo
JSON object represented as a string containing information used to programmatically retrieve a file attachment. -
ErrorStatusCode: string
Title:
Error Status Code
The error code, if any, for the attachment. -
ErrorStatusMessage: string
Title:
Error Status Message
The error message, if any, for the attachment. -
ExpirationDate: string
(date-time)
Title:
Expiration Date
The expiration date of the contents in the attachment. -
FileContents: string
(byte)
Title:
File Contents
The contents of the attachment. -
FileName: string
Title:
File Name
Maximum Length:2048
The file name of the attachment. -
FileUrl: string
Title:
File Url
The URI of the file. -
PostProcessingAction: string
Title:
PostProcessingAction
The name of the action that can be performed after an attachment is uploaded. -
Title: string
Title:
Title
The title of the attachment. -
UploadedFileContentType: string
Title:
Uploaded File Content Type
The content type of the attachment. -
UploadedFileLength: integer
Title:
File Size
The size of the attachment file. -
UploadedFileName: string
Title:
Uploaded File Name
The name to assign to a new attachment file. -
UploadedText: string
Title:
Uploaded Text
The text content for a new text attachment. -
Uri: string
Title:
Uri
Maximum Length:4000
The URI of a Topology Manager type attachment. -
Url: string
Title:
Url
Maximum Length:4000
The URL of a web page type attachment.
object
-
AdjustmentHeaderId: integer
(int64)
Title:
Adjustment Header ID
Value that uniquely identifies the cost adjustment header for the cost adjustment details. -
CostElement: string
Title:
Cost Element
Maximum Length:30
Cost element to use when creating an adjustment detail. -
CostElementId: integer
(int64)
Title:
Cost Element ID
Value that uniquely identifies the cost element. -
UnitCost: number
Title:
Unit Cost
New unit cost for the cost element for the Opening Balance Adjustment. -
UserAdjustmentId: integer
(int64)
Title:
User Adjustment ID
Value that uniquely identifies the cost adjustment detail. -
ValueCost: number
Incremental value of the cost element for the value adjustment.
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
-
Account: string
Title:
Account
Maximum Length:1000
Combination of the segment attributes of the account key. -
AccountCodeCombinationId: integer
(int64)
Title:
Account Code Combination ID
Optional account code combination ID for the adjustment transaction. -
AdjustmentDate: string
(date-time)
Title:
Adjustment Date
Read Only:true
Date when the cost adjustment was made. -
AdjustmentHeaderId: integer
(int64)
Title:
Adjustment Header ID
Read Only:true
Value that uniquely identifies the adjustment header. The application generates this value. -
AdjustmentNumber: string
Title:
Adjustment Number
Read Only:true
Maximum Length:50
Number that identifies the adjustment. The application generates this value. -
AdjustmentStatus: string
Title:
Adjustment Status
Read Only:true
Maximum Length:80
Status of the adjustment. Values are Draft, Submitted, Processed, Deleted, and Failed. -
AdjustmentStatusCode: string
Title:
Adjustment Status Code
Maximum Length:1
Default Value:S
Abbreviation that identifies the adjustment status. Values include D-Draft, S-Submitted, Y-Processed, X-Deleted, and F-Failed. -
AdjustmentType: string
Title:
Adjustment Type
Read Only:true
Maximum Length:80
Type of adjustment. Values include Value and Opening cost override. -
AdjustmentTypeCode: string
Title:
Adjustment Type Code
Maximum Length:30
Abbreviation that identifies the adjustment type. Values include VALUE-Value and OPENING_BALANCE-Opening cost override. -
Attachments: array
Attachments
Title:
Attachments
The attachments resource is used to view, create, and update attachments. -
ChartOfAccountsId: integer
(int64)
Chart of Accounts
-
costAdjustmentDetails: array
Periodic Average Cost Adjustment Details
Title:
Periodic Average Cost Adjustment Details
The Cost Adjustment Details resource manages cost element level details for the periodic average cost adjustment. -
CostBook: string
Title:
Cost Book
Maximum Length:30
Name of the cost book for the adjustment. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Cost Books task. -
CostBookId: integer
(int64)
Title:
Cost Book ID
Value that uniquely identifies the cost book. -
CostOrganizationId: integer
(int64)
Title:
Cost Organization ID
Value that uniquely identifies the cost organization. -
CostOrganizationName: string
Title:
Cost Organization Name
Maximum Length:240
Name of the cost organization for the adjustment. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Cost Organizations task. -
CostProfileId: integer
(int64)
Title:
Cost Profile ID
Cost profile used for processing the adjustment. The application generates this value. -
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
Created By -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
Creation Date -
CurrencyCode: string
Title:
Currency Code
Read Only:true
Maximum Length:255
Abbreviation that identifies the currency. -
ErrorMessage: string
Read Only:
true
Maximum Length:60
System-generated message to indicate that an error occurred while processing the adjustment. -
HeaderReferenceNumber: string
Maximum Length:
18
A unique reference number added by the user to identify the adjustment. -
Item: string
Maximum Length:
255
Name of the inventory item for the adjustment. -
ItemCostProfileId: integer
(int64)
Title:
Item Cost Profile ID
Item Cost profile used for processing the adjustment. The application generates this value. -
ItemId: integer
(int64)
Title:
Item ID
Value that uniquely identifies the item. -
LastUpdateDate: string
(date-time)
Title:
Last Update Date
Read Only:true
Last Update Date -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
Last Updated By -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PeriodName: string
Title:
Period Name
Maximum Length:15
Period of the costing transaction for the adjustment. Adjustments can only be created in costing periods when the period status is open or pending close. -
PeriodStatus: string
Title:
Period Status
Read Only:true
Maximum Length:255
Period status of the cost adjustment. -
PeriodStatusCode: string
Title:
Period Status Code
Read Only:true
Maximum Length:255
Period status code of the adjustment. -
Reason: string
Title:
Reason
Read Only:true
Maximum Length:80
Reason for the cost adjustment transaction. -
ReasonCode: string
Title:
Reason Code
Maximum Length:200
Abbreviation that identifies the reason for the cost adjustment transaction. -
TotalUnitCost: number
Title:
Total Unit Cost
Total unit cost for the adjustment transaction, which is the sum of the unit cost of all the cost elements. -
TransactionId: integer
(int64)
Title:
Transaction ID
Read Only:true
Default Value:0
Value that uniquely identifies the transaction in costing. -
UOMCode: string
Title:
UOM Code
Read Only:true
Maximum Length:255
Abbreviation that identifies the unit of measure. -
ValuationUnit: string
Title:
Valuation Unit
Maximum Length:1000
Valuation unit code for the cost adjustment transaction. -
ValuationUnitId: integer
(int64)
Title:
Valuation Unit ID
Value that uniquely identifies the valuation unit. -
ValuationUnitType: string
Title:
Valuation Unit Type
Maximum Length:255
Type of valuation unit. Values include Asset and Expense.
array
Attachments
array
Periodic Average Cost Adjustment Details
array
Links
object
-
AsyncTrackerId: string
Title:
Asynchronous Upload Tracker Id
Attribute provided for the exclusive use by the Attachment UI components to assist in uploading files. -
AttachedDocumentId: integer
(int64)
Title:
Attached Document Id
The unique identifier of the attached document. -
CategoryName: string
Title:
Category
Maximum Length:30
The category of the attachment. - ContentRepositoryFileShared: boolean
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:255
The user who created the record. -
CreatedByUserName: string
Title:
Created By User Name
Read Only:true
The user name who created the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date when the record was created. -
DatatypeCode: string
Title:
Type
Maximum Length:30
Default Value:FILE
A value that indicates the data type. -
Description: string
Title:
Description
Maximum Length:255
The description of the attachment. -
DmDocumentId: string
Maximum Length:
255
The document ID from which the attachment is created. -
DmFolderPath: string
Title:
Dm Folder Path
Maximum Length:1000
The folder path from which the attachment is created. -
DmVersionNumber: string
Maximum Length:
255
The document version number from which the attachment is created. -
DownloadInfo: string
Title:
DownloadInfo
JSON object represented as a string containing information used to programmatically retrieve a file attachment. -
ErrorStatusCode: string
Title:
Error Status Code
The error code, if any, for the attachment. -
ErrorStatusMessage: string
Title:
Error Status Message
The error message, if any, for the attachment. -
ExpirationDate: string
(date-time)
Title:
Expiration Date
The expiration date of the contents in the attachment. -
FileContents: string
(byte)
Title:
File Contents
The contents of the attachment. -
FileName: string
Title:
File Name
Maximum Length:2048
The file name of the attachment. -
FileUrl: string
Title:
File Url
The URI of the file. -
FileWebImage: string
(byte)
Title:
File Web Image
Read Only:true
The base64 encoded image of the file displayed in .png format if the source is a convertible image. -
LastUpdateDate: string
(date-time)
Title:
Last Update Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:255
The user who last updated the record. -
LastUpdatedByUserName: string
Title:
Last Updated By User
Read Only:true
The user name who last updated the record. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PostProcessingAction: string
Title:
PostProcessingAction
The name of the action that can be performed after an attachment is uploaded. -
Title: string
Title:
Title
The title of the attachment. -
UploadedFileContentType: string
Title:
Uploaded File Content Type
The content type of the attachment. -
UploadedFileLength: integer
Title:
File Size
The size of the attachment file. -
UploadedFileName: string
Title:
Uploaded File Name
The name to assign to a new attachment file. -
UploadedText: string
Title:
Uploaded Text
The text content for a new text attachment. -
Uri: string
Title:
Uri
Maximum Length:4000
The URI of a Topology Manager type attachment. -
Url: string
Title:
Url
Maximum Length:4000
The URL of a web page type attachment. -
UserName: string
Title:
User Name
Read Only:true
Maximum Length:255
The login credentials of the user who created the attachment.
array
Links
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed 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
-
AdjustmentCreationDate: string
(date-time)
Title:
Effective Date
Read Only:true
System-generated timestamp to indicate when the adjustment was created for the cost element. -
AdjustmentHeaderId: integer
(int64)
Title:
Adjustment Header ID
Value that uniquely identifies the cost adjustment header for the cost adjustment details. -
CostElement: string
Title:
Cost Element
Maximum Length:30
Cost element to use when creating an adjustment detail. -
CostElementId: integer
(int64)
Title:
Cost Element ID
Value that uniquely identifies the cost element. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
UnitCost: number
Title:
Unit Cost
New unit cost for the cost element for the Opening Balance Adjustment. -
UserAdjustmentId: integer
(int64)
Title:
User Adjustment ID
Value that uniquely identifies the cost adjustment detail. -
ValueCost: number
Incremental value of the cost element for the value adjustment.
array
Links
- Attachments
-
Parameters:
- AdjustmentHeaderId:
$request.path.AdjustmentHeaderId
The attachments resource is used to view, create, and update attachments. - AdjustmentHeaderId:
- costAdjustmentDetails
-
Parameters:
- AdjustmentHeaderId:
$request.path.AdjustmentHeaderId
The Cost Adjustment Details resource manages cost element level details for the periodic average cost adjustment. - AdjustmentHeaderId:
Examples
This example describes how to create cost adjustments.
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' "https://servername/fscmRestApi/resources/version/periodicAverageCostAdjustments"
Example 1
This example is for value adjustment with multiple cost elements.
Example 1 Request Body
The following example includes the contents of the request body in JSON format:
"{ "AdjustmentTypeCode": "VALUE", "CostOrganizationName": "ZCST-Vision Ops", "CostBook": "ADJ_TEST2", "Item": "AS54888", "ValuationUnitType": "ASSET", "ValuationUnit": "ORG4-V1", "PeriodName": "Dec-21", "ReasonCode": “Rebate” "Account": "01-720-1640-0000-000", "costAdjustmentDetails": [ { "CostElement": "ZCST-MATERIAL", "ValueCost": 10 }, { "CostElement": "ZCST-OVERHEAD", "ValueCost": 20 } ] }"
Example 1 Response Body
The following example includes the contents of the response body in JSON format:
"{ "AdjustmentHeaderId": 58003, "HeaderReferenceNumber": "58003", "AdjustmentNumber": "58003", "AdjustmentTypeCode": "VALUE", "CostOrganizationId": 100000012270096, "CostBookId": 300100549272166, "ItemId": 300100549285667, "ValuationUnitId": 300100549307298, "ItemCostProfileId": 300100549295914, "CostProfileId": 300100549272303, "TransactionId": 0, "ReasonCode": “REBATE, "TotalUnitCost": 4E+1, "ErrorMessage": null, "AdjustmentStatusCode": "S", "AccountCodeCombinationId": null, "PeriodName": "Apr-22", "Item": "PM1000", "ValuationUnitType": "ASSET", "PeriodStatusCode": null, "PeriodStatus": null, "CostOrganizationName": "ZCST-Vision Ops", "CostBook": "ADJ_TEST2", "ValuationUnit": "ORG4-V1", "AdjustmentType": null, "AdjustmentStatus": null, "Reason": null, "ChartOfAccountsId": null, "CurrencyCode": "USD", "UOMCode": "Ea", "AdjustmentDate": "2022-04-30T00:00:00+00:00", "CreatedBy": "COST_ACCT_ALL_COST_ORGS", "CreationDate": "2022-04-25T09:50:49+00:00", "LastUpdateDate": "2022-04-25T09:50:49.347+00:00", "LastUpdatedBy": "COST_ACCT_ALL_COST_ORGS", "Account": null, "costAdjustmentDetails": [ { "UserAdjustmentId": 43003, "AdjustmentHeaderId": 58003, "CostElementId": 300100071793419, "AdjustmentCreationDate": "2022-04-25T09:50:49.418+00:00", "UnitCost": null, "ValueCost": 2E+1, "CostElement": “ZCST- MATERIAL, "links": [ { "rel": "self", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58003/child/costAdjustmentDetails/43003", "name": "costAdjustmentDetails", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58003/child/costAdjustmentDetails/43003", "name": "costAdjustmentDetails", "kind": "item" }, { "rel": "parent", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58003", "name": "periodicAverageCostAdjustments", "kind": "item" } ] }, { "UserAdjustmentId": 43004, "AdjustmentHeaderId": 58003, "CostElementId": 100000010001028, "AdjustmentCreationDate": "2022-04-25T09:50:49.453+00:00", "UnitCost": null, "ValueCost": 2E+1, "CostElement": "ZCST-OVERHEAD, "links": [ { "rel": "self", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58003/child/costAdjustmentDetails/43004", "name": "costAdjustmentDetails", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58003/child/costAdjustmentDetails/43004", "name": "costAdjustmentDetails", "kind": "item" }, { "rel": "parent", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58003", "name": "periodicAverageCostAdjustments", "kind": "item" } ] } ], "links": [ { "rel": "self", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58003", "name": "periodicAverageCostAdjustments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58003", "name": "periodicAverageCostAdjustments", "kind": "item" }, { "rel": "child", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58003/child/Attachments", "name": "Attachments", "kind": "collection" }, { "rel": "child", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58003/child/costAdjustmentDetails", "name": "costAdjustmentDetails", "kind": "collection" } ] }"
Example 2
This example is for value adjustment with one cost element.
Example 2 Request Body
The following example includes the contents of the request body in JSON format:
"{ "AdjustmentTypeCode": "VALUE", "CostOrganizationName": "ZCST-Vision Ops", "CostBook": "ZCST-Vision Ops", "Item": "AS54888", "ValuationUnitType": "ASSET", "ValuationUnit": "ORG4-V1", "PeriodName": "Dec-21", "ReasonCode": “Discount” "Account": "01-720-1640-0000-000", "costAdjustmentDetails": [ { "CostElement": "ZCST-SERVICES", "ValueCost": 10 } ] }"
Example 2 Response Body
The following example includes the contents of the response body in JSON format:
"{ "AdjustmentHeaderId": 58004, "HeaderReferenceNumber": "58004", "AdjustmentNumber": "58004", "AdjustmentTypeCode": "VALUE", "CostOrganizationId": 100000012270096, "CostBookId": 300100549272166, "ItemId": 300100549285667, "ValuationUnitId": 300100549307298, "ItemCostProfileId": 300100549295914, "CostProfileId": 300100549272303, "TransactionId": 0, "ReasonCode": "Discount", "TotalUnitCost": 2E+1, "ErrorMessage": null, "AdjustmentStatusCode": "S", "AccountCodeCombinationId": null, "PeriodName": "Apr-22", "Item": "PM1000", "ValuationUnitType": "ASSET", "PeriodStatusCode": null, "PeriodStatus": null, "CostOrganizationName": "ZCST-Vision Ops", "CostBook": "ADJ_TEST2", "ValuationUnit": "ORG4-V1", "AdjustmentType": null, "AdjustmentStatus": null, "Reason": null, "ChartOfAccountsId": null, "CurrencyCode": "USD", "UOMCode": "Ea", "AdjustmentDate": "2022-04-30T00:00:00+00:00", "CreatedBy": "COST_ACCT_ALL_COST_ORGS", "CreationDate": "2022-04-25T10:01:45+00:00", "LastUpdateDate": "2022-04-25T10:01:45.778+00:00", "LastUpdatedBy": "COST_ACCT_ALL_COST_ORGS", "Account": null, "costAdjustmentDetails": [ { "UserAdjustmentId": 43005, "AdjustmentHeaderId": 58004, "CostElementId": 100000010001028, "AdjustmentCreationDate": "2022-04-25T10:01:45.801+00:00", "UnitCost": null, "ValueCost": 2E+1, "CostElement": "ZCST-SERVICES", "links": [ { "rel": "self", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58004/child/costAdjustmentDetails/43005", "name": "costAdjustmentDetails", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58004/child/costAdjustmentDetails/43005", "name": "costAdjustmentDetails", "kind": "item" }, { "rel": "parent", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58004", "name": "periodicAverageCostAdjustments", "kind": "item" } ] } ], "links": [ { "rel": "self", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58004", "name": "periodicAverageCostAdjustments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58004", "name": "periodicAverageCostAdjustments", "kind": "item" }, { "rel": "child", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58004/child/Attachments", "name": "Attachments", "kind": "collection" }, { "rel": "child", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58004/child/costAdjustmentDetails", "name": "costAdjustmentDetails", "kind": "collection" } ] }"
Example 3
This example is for opening cost override with multiple cost elements.
Example 3 Request Body
{ "AdjustmentTypeCode": "OPENING_BALANCE", "CostBook": "ADJ_TEST2", "CostOrganizationName": "ZCST-Vision Ops", "Item": "PM1300", "PeriodName": "Apr-22", "ReasonCode": "Rebate", "ValuationUnit": "ORG4-V1", "ValuationUnitType": "ASSET", "costAdjustmentDetails": [ { "CostElement": "CML Material", "UnitCost": -20 }, { "CostElement": "ZCST-MATERIAL", "UnitCost": 20 }
Example 3 Response Body
{ "AdjustmentHeaderId": 58011, "HeaderReferenceNumber": "58011", "AdjustmentNumber": "58011", "AdjustmentTypeCode": "OPENING_BALANCE", "CostOrganizationId": 100000012270096, "CostBookId": 300100549272166, "ItemId": 300100549479117, "ValuationUnitId": 300100549307298, "ItemCostProfileId": 300100549479214, "CostProfileId": 300100549249016, "TransactionId": 0, "ReasonCode": "Rebate", "TotalUnitCost": null, "ErrorMessage": null, "AdjustmentStatusCode": "S", "AccountCodeCombinationId": null, "PeriodName": "Apr-22", "Item": "PM1300", "ValuationUnitType": "ASSET", "PeriodStatusCode": null, "PeriodStatus": null, "CostOrganizationName": "ZCST-Vision Ops", "CostBook": "ADJ_TEST2", "ValuationUnit": "ORG4-V1", "AdjustmentType": null, "AdjustmentStatus": null, "Reason": null, "ChartOfAccountsId": null, "CurrencyCode": "USD", "UOMCode": "Ea", "AdjustmentDate": "2022-04-01T00:00:00+00:00", "CreatedBy": "COST_ACCT_ALL_COST_ORGS", "CreationDate": "2022-04-25T11:38:14+00:00", "LastUpdateDate": "2022-04-25T11:38:14.483+00:00", "LastUpdatedBy": "COST_ACCT_ALL_COST_ORGS", "Account": null, "costAdjustmentDetails": [ { "UserAdjustmentId": 43015, "AdjustmentHeaderId": 58011, "CostElementId": 300100071793419, "AdjustmentCreationDate": "2022-04-25T11:38:14.710+00:00", "UnitCost": -2E+1, "ValueCost": null, "CostElement": "CML Material", "links": [ { "rel": "self", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58011/child/costAdjustmentDetails/43015", "name": "costAdjustmentDetails", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58011/child/costAdjustmentDetails/43015", "name": "costAdjustmentDetails", "kind": "item" }, { "rel": "parent", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58011", "name": "periodicAverageCostAdjustments", "kind": "item" } ] }, { "UserAdjustmentId": 43016, "AdjustmentHeaderId": 58011, "CostElementId": 100000010001028, "AdjustmentCreationDate": "2022-04-25T11:38:14.754+00:00", "UnitCost": 2E+1, "ValueCost": null, "CostElement": "ZCST-MATERIAL", "links": [ { "rel": "self", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58011/child/costAdjustmentDetails/43016", "name": "costAdjustmentDetails", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58011/child/costAdjustmentDetails/43016", "name": "costAdjustmentDetails", "kind": "item" }, { "rel": "parent", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58011", "name": "periodicAverageCostAdjustments", "kind": "item" } ] } ], "links": [ { "rel": "self", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58011", "name": "periodicAverageCostAdjustments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58011", "name": "periodicAverageCostAdjustments", "kind": "item" }, { "rel": "child", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58011/child/Attachments", "name": "Attachments", "kind": "collection" }, { "rel": "child", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58011/child/costAdjustmentDetails", "name": "costAdjustmentDetails", "kind": "collection" } ] }
Example 4
This example is for opening cost override with one cost element.
Example 4 Request Body
{ "AdjustmentTypeCode": "OPENING_BALANCE", "CostBook": "ADJ_TEST2", "CostOrganizationName": "ZCST-Vision Ops", "Item": "PM1200", "PeriodName": "Apr-22", "ReasonCode": "ST_ADJ", "ValuationUnit": "ORG4-V1", "ValuationUnitType": "ASSET", "costAdjustmentDetails": [ { "CostElement": "ZCST-MATERIAL", "UnitCost": 120 } ] }
Example 4 Response Body
{ "AdjustmentHeaderId": 58013, "HeaderReferenceNumber": "58013", "AdjustmentNumber": "58013", "AdjustmentTypeCode": "OPENING_BALANCE", "CostOrganizationId": 100000012270096, "CostBookId": 300100549272166, "ItemId": 300100549479115, "ValuationUnitId": 300100549307298, "ItemCostProfileId": 300100549479193, "CostProfileId": 300100549272303, "TransactionId": 0, "ReasonCode": "ST_ADJ", "TotalUnitCost": null, "ErrorMessage": null, "AdjustmentStatusCode": "S", "AccountCodeCombinationId": null, "PeriodName": "Apr-22", "Item": "PM1200", "ValuationUnitType": "ASSET", "PeriodStatusCode": null, "PeriodStatus": null, "CostOrganizationName": "ZCST-Vision Ops", "CostBook": "ADJ_TEST2", "ValuationUnit": "ORG4-V1", "AdjustmentType": null, "AdjustmentStatus": null, "Reason": null, "ChartOfAccountsId": null, "CurrencyCode": "USD", "UOMCode": "Ea", "AdjustmentDate": "2022-04-01T00:00:00+00:00", "CreatedBy": "COST_ACCT_ALL_COST_ORGS", "CreationDate": "2022-04-25T11:41:42+00:00", "LastUpdateDate": "2022-04-25T11:41:42.479+00:00", "LastUpdatedBy": "COST_ACCT_ALL_COST_ORGS", "Account": null, "costAdjustmentDetails": [ { "UserAdjustmentId": 43017, "AdjustmentHeaderId": 58013, "CostElementId": 100000010001028, "AdjustmentCreationDate": "2022-04-25T11:41:43.127+00:00", "UnitCost": 1.2E+2, "ValueCost": null, "CostElement": "ZCST-MATERIAL", "links": [ { "rel": "self", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58013/child/costAdjustmentDetails/43017", "name": "costAdjustmentDetails", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58013/child/costAdjustmentDetails/43017", "name": "costAdjustmentDetails", "kind": "item" }, { "rel": "parent", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58013", "name": "periodicAverageCostAdjustments", "kind": "item" } ] } ], "links": [ { "rel": "self", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58013", "name": "periodicAverageCostAdjustments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58013", "name": "periodicAverageCostAdjustments", "kind": "item" }, { "rel": "child", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58013/child/Attachments", "name": "Attachments", "kind": "collection" }, { "rel": "child", "href": "https://server/fscmRestApi/resources/version/periodicAverageCostAdjustments/58013/child/costAdjustmentDetails", "name": "costAdjustmentDetails", "kind": "collection" } ] }