Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

update buyer in purchase order through rest api

Summary:

I want to update buyer in purchase order. I am using rest api to do the same. But it is throwing error


Content (please ensure you mask any confidential information):

Rest api :-

https://servicehost/fscmRestApi/resources/11.13.18.05/draftPurchaseOrders/3001

Method:- PATCH

Payload :-

{  "ChangeOrderDescription": "Change order",  "ChangeOrderInitiatingParty": "BUYER", "Buyer": "Kumar, arsalan"}

Error :-

{    "title": "Bad Request",    "status": "400",    "o:errorDetails": [        {            "detail": "Attribute set for BuyerId in entity DraftPurchaseOrdersRestServiceAM.DraftPurchaseOrderHeader1 failed",            "o:errorCode": "27004"        }    ]}

But through webservice (SOAP) buyer update is working. Please suggest if it is possible to use rest api for the same or it is not currently possible

Version (include the version you are using, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!