Process Requisition Lines into a New Order

The Requisition Processing Requests REST resource is used to process approved requisition lines into a new purchase order.

Here's a typical application processing flow for the scenarios:
  1. You identify the requisition lines that you want to process into a new purchase order.
  2. You create a requisition processing request by including the requisition lines.
  3. You submit the requisition processing request to create a new purchase order.
  4. You submit the incomplete purchase order.

Note:

Processing requisition lines into a new negotiation isn't supported in the current update.

Identify Requisition Lines

In this scenario, you identify the requisition lines for processing into a new order. To query lines for a given requisition, use the Purchase Requisitions REST service or create a BI Publisher report to identify all requisition lines that are awaiting processing.

Create a Requisition Processing Request

In this scenario, you create a requisition processing request. This step is similar to adding requisition lines to the document builder online. This example illustrates how requisition lines can be processed to a different supplier.

Example URL

Use this resource URL format:

POST

cURL Command

curl -u username:password -X POST -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests"

Example Request

Here's an example of the request body in JSON format:
{
    "ProcurementBU": "Vision Corporation",
    "RequisitioningBU": "Vision Corporation",
    "Type": "New Order",
    "Supplier": "Seven Corporation",
    "lines": [
        {
            "RequisitionLineId": 300100542878364
        }
    ]
}

Example Response

Here's an example of the response body in JSON format:
{
    "RequestHeaderId": 300100542880031,
    "ProcurementBUId": 204,
    "ProcurementBU": "Vision Corporation",
    "RequisitioningBUId": 204,
    "RequisitioningBU": "Vision Corporation",
    "Type": "New Order",
    "SoldToLegalEntityId": null,
    "SoldToLegalEntity": null,
    "SupplierId": 559,
    "Supplier": "Seven Corporation",
    "SupplierSiteId": null,
    "SupplierSite": null,
    "DocumentStyleId": null,
    "DocumentStyle": null,
    "SourceAgreementId": null,
    "SourceAgreement": null,
    "CurrencyCode": null,
    "Currency": null,
    "ConversionRateTypeCode": null,
    "ConversionRateType": null,
    "ConversionRateDate": null,
    "ConversionRate": null,
    "BuyerId": null,
    "Buyer": null,
    "GroupRequisitionLines": null,
    "lines": [
        {
            "RequestLineId": 300100542880032,
            "RequestHeaderId": 300100542880031,
            "RequisitionLineId": 300100542878364,
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542880031/child/lines/300100542880032",
                    "name": "lines",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542880031/child/lines/300100542880032",
                    "name": "lines",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542880031",
                    "name": "requisitionProcessingRequests",
                    "kind": "item"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542880031",
            "name": "requisitionProcessingRequests",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542880031",
            "name": "requisitionProcessingRequests",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542880031/child/lines",
            "name": "lines",
            "kind": "collection"
        },
        {
            "rel": "action",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542880031/action/processRequest",
            "name": "processRequest",
            "kind": "other"
        }
    ]
}

Submit the Requisition Processing Request

In this scenario, you submit the requisition processing request to create a new purchase order. The purchase order will be created in the incomplete status.

Example URL

Use this resource URL format:

POST

cURL Command
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.action+json" -d 'request payload'  
"https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/RequestHeaderId"

Example Request

Here's an example of the request body in JSON format:
{
    "name": "processRequest",
    "parameters": [
        {
            "bypassWarningsFlag": "true"
        }
    ]
}

Example Response

Here's an example of the response body in JSON format:
{
    "result": "The document (Purchase Order) 1005149 was created."
} 

Submit the Purchase Order

In this scenario, you submit the incomplete purchase order for approval.

Example URL

Use this resource URL format:

POST

cURL Command
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.action+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/draftPurchaseOrders/POHeaderId"

Example Request

Here's an example of the request body in JSON format:
{
	"name": "submit"
}

Example Response

Here's an example of the response body in JSON format:
{
	"result": "SUCCESS"
}