Unable to create a requisition using rest API
Summary:
Hi,
I am trying to create a requsition using restAPI with the below payload.
{ "RequisitioningBUId" : 3000000XXXXXX, "PreparerId" : 3000000XXXXX, "Description" : "Purchase Re NEW", "InterfaceSourceCode" : "WACS", "ExternallyManagedFlag" : false, "lines" : [ { "LineNumber" : 1, "LineTypeCode" : "Goods", "ItemDescription" : "TEST1104", "ItemId" : "3000000XXXXXX", "Quantity" : 5, "CurrencyCode" : "USD", "UOM" : "each", "Price" : 50, "RequesterId" : 3000000XXXXX, "RequestedDeliveryDate" : "2025-02-21", "DestinationTypeCode" : "EXPENSE", "DestinationOrganizationCode" : "1010", "DeliverToLocationCode" : "Seattle", "DFF" : [ { "wacsPrNumC" : "20250000000011", "wacsPrHdrIdC" : "08262232287443", "wacsPrLineIdC" : "31203875131119", "__FLEX_Context" : "WACS" } ], "distributions" : [ { "Quantity" : 5, "DistributionNumber" : 1, "ChargeAccount" : "", "DFF" : [ { "__FLEX_Context" : "WACS", "itngSourceSeg" : "WACS" } ] } ] } ]}
However, it is still giving me below errors:
LineNumber 1: You must either enter a valid value or an existing value for the CategoryId attribute. The current value is 3000000XXXXXX. (POR-2010892)
LineNumber 1: You don't have the required privilege to change item details. (POR-2011030)