Create one requisition processing request header

post

/fscmRestApi/resources/11.13.18.05/requisitionProcessingRequests

Request

Header Parameters
  • This header accepts a string value. The string is a semi-colon separated list of =. It is used to perform effective date range operations. The accepted parameters are RangeMode, RangeSpan, RangeStartDate, RangeEndDate, RangeStartSequence and RangeEndSequence. The parameter values are always strings. The possible values for RangeMode are SET_LOGICAL_START, SET_LOGICAL_END, END_DATE, SET_EFFECTIVE_START, SET_EFFECTIVE_END, REPLACE_CORRECTION, REPLACE_UPDATE, RECONCILE_CORRECTION, CORRECTION, RECONCILE_UPDATE, UPDATE, ZAP and DELETE_CHANGES. The possible values for RangeSpan are PHYSICAL_ROW_END_DATE and LOGICAL_ROW_END_DATE. The values for RangeStartDate and RangeEndDate have to be a string representation of a date in yyyy-MM-dd format. The value for RangeStartSequence and RangeEndSequence must be strings such that when parsed they yield positive integers.
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Lines
Type: array
Title: Lines
The Lines resource manages the requisition lines that need to be processed into a procurement document.
Show Source
Nested Schema : requisitionProcessingRequests-lines-item-post-request
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : requisitionProcessingRequests-item-response
Type: object
Show Source
Nested Schema : Lines
Type: array
Title: Lines
The Lines resource manages the requisition lines that need to be processed into a procurement document.
Show Source
Nested Schema : requisitionProcessingRequests-lines-item-response
Type: object
Show Source
Back to Top

Examples

Example cURL Command

Use the following cURL command to submit a request on the REST resource.

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

The following examples describe how to create a requisition-processing request. In addition to creating a request header, you can also specify request lines in a single payload.

Example Number Description
Example 1 Create a requisition-processing request and specify a blanket purchase agreement to which the selected requisition lines should be sourced.
Example 2 Create a requisition-processing request that will group the requisition lines into a fewer purchase-order lines.
Example 3 Create a requisition-processing request providing the header ID of the draft purchase order for which the requisition line should be processed.
Example 4 Create a requisition-processing request and specify a contract purchase agreement to which the selected requisition lines should be sourced.

Example 1 Request Body

The following example includes the contents of the request body in JSON format to create a requisition-processing request from requisition lines awaiting processing. This example illustrates how requisition lines can be processed to a different agreement. Upon successful creation of the requisition-processing request, values for the following attributes are derived from the source agreement: Document Style, Supplier, Supplier Site, and Currency. This step is similar to adding requisition lines to the document builder online.

You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

{
    "ProcurementBU": "Vision Corporation",
    "RequisitioningBU": "Vision Corporation",
    "Type": "New Order",
    "SourceAgreement": "1002786",
    "lines": [
        {
            "RequisitionLineId": 300100542878086
        }
    ]
}

Example 1 Response Body

The following example includes the contents of the response body in JSON format:

{
    "RequestHeaderId": 300100542879973,
    "ProcurementBUId": 204,
    "ProcurementBU": "Vision Corporation",
    "RequisitioningBUId": 204,
    "RequisitioningBU": "Vision Corporation",
    "Type": "New Order",
    "SoldToLegalEntityId": null,
    "SoldToLegalEntity": null,
    "SupplierId": 1716,
    "Supplier": "CV_SuppA06",
    "SupplierSiteId": 1716,
    "SupplierSite": "CVSuppA06Site01",
    "DocumentStyleId": 1,
    "DocumentStyle": "Purchase Order",
    "SourceAgreementId": 594310,
    "SourceAgreement": "1002786",
    "CurrencyCode": "USD",
    "Currency": "US Dollar",
    "ConversionRateTypeCode": null,
    "ConversionRateType": null,
    "ConversionRateDate": null,
    "ConversionRate": null,
    "BuyerId": null,
    "Buyer": null,
    "GroupRequisitionLines": null,
    "lines": [
        {
            "RequestLineId": 300100542879974,
            "RequestHeaderId": 300100542879973,
            "RequisitionLineId": 300100542878086,
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542879973/child/lines/300100542879974",
                    "name": "lines",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542879973/child/lines/300100542879974",
                    "name": "lines",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542879973",
                    "name": "requisitionProcessingRequests",
                    "kind": "item"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542879973",
            "name": "requisitionProcessingRequests",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542879973",
            "name": "requisitionProcessingRequests",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542879973/child/lines",
            "name": "lines",
            "kind": "collection"
        },
        {
            "rel": "action",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542879973/action/processRequest",
            "name": "processRequest",
            "kind": "other"
        }
    ]
}

Example 2 Request Body

The following example includes the contents of the request body in JSON format to create a requisition-processing request and consolidate the requisition lines into a single order line. The GroupRequisitionLines attribute determines whether each requisition line fulfilled in the document should have its own order line, or should be combined with other requisition lines.

You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

{
    "ProcurementBU": "Vision Corporation",
    "RequisitioningBU": "Vision Corporation",
    "Type": "New Order",
    "Supplier": "Tall Manufacturing",
    "SupplierSite": "New York",
    "GroupRequisitionLines": "Y",
    "lines": [
        {
            "RequisitionLineId": 300100542407035
        },
        {
            "RequisitionLineId": 300100542407037
        }
    ]
}

Example 2 Response Body

Here's an example of the response body in JSON format.

{
    "RequestHeaderId": 300100542745176,
    "ProcurementBUId": 204,
    "ProcurementBU": "Vision Corporation",
    "RequisitioningBUId": 204,
    "RequisitioningBU": "Vision Corporation",
    "Type": "New Order",
    "SoldToLegalEntityId": null,
    "SoldToLegalEntity": null,
    "SupplierId": 254,
    "Supplier": "Tall Manufacturing",
    "SupplierSiteId": 32,
    "SupplierSite": "New York",
    "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": "Y",
    "lines": [
        {
            "RequestLineId": 300100542745177,
            "RequestHeaderId": 300100542745176,
            "RequisitionLineId": 300100542407035,
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542745176/child/lines/300100542745177",
                    "name": "lines",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542745176/child/lines/300100542745177",
                    "name": "lines",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542745176",
                    "name": "requisitionProcessingRequests",
                    "kind": "item"
                }
            ]
        },
        {
            "RequestLineId": 300100542745178,
            "RequestHeaderId": 300100542745176,
            "RequisitionLineId": 300100542407037,
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542745176/child/lines/300100542745178",
                    "name": "lines",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542745176/child/lines/300100542745178",
                    "name": "lines",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542745176",
                    "name": "requisitionProcessingRequests",
                    "kind": "item"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542745176",
            "name": "requisitionProcessingRequests",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542745176",
            "name": "requisitionProcessingRequests",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542745176/child/lines",
            "name": "lines",
            "kind": "collection"
        },
        {
            "rel": "action",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100542745176/action/processRequest",
            "name": "processRequest",
            "kind": "other"
        }
    ]
}

Example 3 Request Body

The following example includes the contents of the request body in JSON format. This step is like adding requisition lines to the document builder online. In this example, you provide the header ID of the draft purchase order for which the requisition line should be processed.

You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

Here's an example of the request body in JSON format.
{ 
  "Type" : "Existing Order",
     "POHeaderId": 593296,
 
   "lines": [	
		{
			"RequisitionLineId": 300100551698198
			
		}
	]
 }

Example 3 Response Body

Here's an example of the response body in JSON format.
{
    "RequestHeaderId": 300100551759371,
    "ProcurementBUId": 204,
    "ProcurementBU": "Vision Corporation",
    "RequisitioningBUId": 204,
    "RequisitioningBU": "Vision Corporation",
    "Type": "Existing Order",
    "SoldToLegalEntityId": 204,
    "SoldToLegalEntity": "Vision Corporation",
    "SupplierId": 415,
    "Supplier": "CV_SuppA03",
    "SupplierSiteId": 2078,
    "SupplierSite": "05",
    "DocumentStyleId": 1,
    "DocumentStyle": "Purchase Order",
    "SourceAgreementId": null,
    "SourceAgreement": null,
    "CurrencyCode": "USD",
    "Currency": "US Dollar",
    "ConversionRateTypeCode": null,
    "ConversionRateType": null,
    "ConversionRateDate": null,
    "ConversionRate": null,
    "BuyerId": 100010026863783,
    "Buyer": "Furey,Clare",
    "GroupRequisitionLines": null,
    "OrderNumber": "1005382",
    "POHeaderId": 593296,
    "lines": [
        {
            "RequestLineId": 300100551759372,
            "RequestHeaderId": 300100551759371,
            "RequisitionLineId": 184414,
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100551759371/child/lines/300100551759372",
                    "name": "lines",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100551759371/child/lines/300100551759372",
                    "name": "lines",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100551759371",
                    "name": "requisitionProcessingRequests",
                    "kind": "item"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100551759371",
            "name": "requisitionProcessingRequests",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100551759371",
            "name": "requisitionProcessingRequests",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100551759371/child/lines",
            "name": "lines",
            "kind": "collection"
        },
        {
            "rel": "action",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100551759371/action/processRequest",
            "name": "processRequest",
            "kind": "other"
        }
    ]
}

Example 4 Request Body

The following example includes the contents of the request body in JSON format to create a requisition-processing request from requisition lines awaiting processing. This example illustrates how requisition lines can be processed by specifying a contract purchase agreement. After you successfully create the requisition-processing request, values for these attributes are derived from the source agreement: Document Style, Supplier, and Supplier Site. This step is similar to adding requisition lines to the document builder online. To create the purchase order, you need to submit the requisition-processing request.

You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

Note:

If you don't provide the currency while processing the request, the currency defaults from the requisition line when you submit the request.

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

Example 4 Response Body

Here's an example of the response body in JSON format.
{
    "RequestHeaderId": 300100563068401,
    "ProcurementBUId": 204,
    "ProcurementBU": "Vision Corporation",
    "RequisitioningBUId": 204,
    "RequisitioningBU": "Vision Corporation",
    "Type": "New Order",
    "SoldToLegalEntityId": null,
    "SoldToLegalEntity": null,
    "SupplierId": 100000011547508,
    "Supplier": "cPO-Supplier09",
    "SupplierSiteId": 100000011547553,
    "SupplierSite": "cPO-SITE01",
    "DocumentStyleId": 1,
    "DocumentStyle": "Purchase Order",
    "SourceAgreementId": 100000012298234,
    "SourceAgreement": "1000320",
    "CurrencyCode": null,
    "Currency": null,
    "ConversionRateTypeCode": null,
    "ConversionRateType": null,
    "ConversionRateDate": null,
    "ConversionRate": null,
    "BuyerId": null,
    "Buyer": null,
    "GroupRequisitionLines": null,
    "OrderNumber": null,
    "POHeaderId": null,
    "lines": [
        {
            "RequestLineId": 300100563068402,
            "RequestHeaderId": 300100563068401,
            "RequisitionLineId": 100100867265689,
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100563068401/child/lines/300100563068402",
                    "name": "lines",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100563068401/child/lines/300100563068402",
                    "name": "lines",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100563068401",
                    "name": "requisitionProcessingRequests",
                    "kind": "item"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100563068401",
            "name": "requisitionProcessingRequests",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100563068401",
            "name": "requisitionProcessingRequests",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100563068401/child/lines",
            "name": "lines",
            "kind": "collection"
        },
        {
            "rel": "action",
            "href": "https://servername/fscmRestApi/resources/version/requisitionProcessingRequests/300100563068401/action/processRequest",
            "name": "processRequest",
            "kind": "other"
        }
    ]
}
Back to Top