How to Create Cost Adjustment for an Item Cost using REST API.
Hi Team,
I am trying to create Cost Adjustments for an Item cost using the below Payload:
{
"TransactionId" : 12586,
"AdjustmentType" : "Perpetual",
"AdjustmentTypeCode": "P",
"AdjustmentStatusCode": "PR",
"ReasonCode": "CST_ADJ",
"Reason": "Cost Adjustement",
"AdjustmentDate": null,
"ItemId": 100000005020,
"CostOrganizationId": 300000003396,
"CostBookId": 300000003399,
"AdjustmentStatus": "Submitted",
"QuantityOnhand": 5.0,
"ReceiptNumber": null,
"ReceiptQuantity":null,
"UOMCode": "EA",
"AdjustmentDetail" : [
{
"CostElement" : "MATERIAL",
"NewCost" : 0
}
]
}
But i am receiving the error as 'The value of the attribute Remaining Receipt Quantity isn't valid.' Please help me to resolve this error. While creating the Cost adjustments which transaction ID we have to use?