For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
Creating a supplier via REST does not allow Status value to be set. If Status is listed in payload, regardless of value, request fails with status code 400
Example from documentation with added Status line (https://docs.oracle.com/en/cloud/saas/procurement/19d/fapra/op-suppliers-post.html):
{
"Supplier" : "Tall Manufacturing",
"TaxOrganizationType" : "Corporation",
"SupplierType" : "Services",
"BusinessRelationship" : "Prospective",
"DUNSNumber" : "221134568",
"OneTimeSupplierFlag" : false,
"TaxpayerCountry" : "United States",
"TaxpayerId" : "98-03376373",
"Status" : "ACTIVE" # IF THIS LINE IS PRESENT, REST POST FAILS with error: "Attribute Status in view object SupplierVO cannot be set."
}
Comment
The attribute Status is listed in the example of the response payload. This is an example of what is returned after submitting a POST request to create supplier and the request was successfully processed. When submitting request to create supplier, this attribute is not directly set. You can use InactiveDate attribute and the Status of the supplier will reflect accordingly.
Be the first to rate this
|
Sign in to rate this
Yes, it's listed as a response, but it's also listed in the body parameters in the request for the task:
If it can't be set, why is it listed as one of the body parameters?
If I can't set it when submitting a request to create, what other method can I use to change it's value?
Be the first to rate this
|
Sign in to rate this
You can use InactiveDate attribute and the Status of the supplier will reflect accordingly.
Be the first to rate this
|
Sign in to rate this