Documentation for the alternative REST API for inserting and linking requisition into negotiations
Since a solution for IDEA 686846 (REST API to process requests into Negotiations and have the linkage between PR and RFQ) has not yet been developed, using FBDI does not meet our needs. We found another solution: using the REST-API stagedDocuments.
Example:
URL: instance/fscmRestApi/resources/11.13.18.05/stagedDocuments
Method: POST
Content-Type: application/vnd.oracle.adf.resourceitem+json
Body: {
"ProcurementBUId":"999999999999999",
"RequisitioningBUId":"999999999999999",
"SupplierId":"",
"SupplierSiteId":"",
"SourceAgreementHeaderId":"",
"StagedDocumentStatus":"STAGE_DOCUMENT_DRAFTED",
"DocumentOutcomeCode":"NEW_NEGOTIATION",
"DocumentStyleId":1,
"SoldToLeId":"999999999999999",
"BuyerId":"999999999999999",
"GroupRequisitionLinesFlag":"N",
"NegotiationTemplateId":"999999999999999",
"CurrencyCode": "BRL",
"NegotiationTitle": "Testing",
"lines":[
{"RequisitionLineId":"999999999999999"}]
}
And then:
URL: instance/fscmRestApi/resources/11.13.18.05/stagedDocuments/999999999999999/action/processStagedDocument
Method: POST
Content-Type: application/vnd.oracle.adf.action+json
Body: {"bypassWarningsFlag":false}