Want to create internal requisitions in approve status using rest API
Summary:
WE are using the below payload but we are getting the below error:
Attribute DocumentStatusCode in view object PurchaseRequisitionHeaderVO cannot be set.
{
"RequisitioningBUId":300000046987012,
"PreparerId":300000047340498,
"ExternallyManagedFlag": false,
"Description": "SSP21",
"ApprovedById":300000047340498,
"InterfaceSourceCode": "TestSS2",
"DocumentStatusCode" :APPROVED,
"lines": [
{
"LineNumber": 1,
"LineTypeId": 1,
"Item": "AS35013",
"RequesterId":300000047340498,
"Quantity": 1,
"UOMCode": "zzu",
"DestinationOrganizationCode": "002",
"DeliverToLocationCode": "Atlanta",
"DestinationTypeCode": "EXPENSE",
"RequestedDeliveryDate": "2024-04-19",
"SourceType": "Inventory",
"SourceOrganizationCode": "001",
"distributions":[
{
"DistributionNumber":1,
"Quantity":1
}
]
}
]
}
If we remove document status code then we are able to create internal requisition in incomplete status.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
0