Create lines

post

/fscmRestApi/resources/11.13.18.05/publicShoppingListLines

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.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
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 : publicShoppingListLines-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to create lines.

Example 1 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/vnd.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/publicShoppingListLines"

Example 1 Request Body

The following example includes the contents of the request body in JSON format. 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 Operations",
	"PublicShoppingList": "MP_PSL02",
	"Item": "RCV-100",
	"SuggestedQuantity": 9
}

Example 1 Response Body

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

{
	"ProcurementBUId": 204,
	"ProcurementBU": "Vision Operations",
	"PublicShoppingListHeaderId": 300100187519046,
	"PublicShoppingList": "MP_PSL02",
	"PublicShoppingListDescription": "MP_PSL02 VO Desc",
	"PublicShoppingListEndDate": null,
	"PublicShoppingListStartDate": "2020-07-24",
	"PublicShoppingListLineId": 300100197614441,
	"Sequence": null,
	"LineType": null,
	"ItemId": 663907,
	"Item": "RCV-100",
	"ItemRevision": null,
	"ItemDescription": "Plain Item",
	"CategoryName": null,
	"CategoryId": null,
	"SuggestedQuantity": 9,
	"UOM": null,
	"Price": null,
	"CurrencyCode": null,
	"Amount": null,
	"Supplier": null,
	"SupplierItem": null,
	"AgreementLineId": -2,
	"Agreement": null,
	"AgreementLine": null,
	"Buyer": null,
	"NegotiatedFlag": null,
	"NegotiationRequiredFlag": null,
	"CreatedBy": "CVRQST01",
	"CreationDate": "2020-08-20T03:24:17+00:00",
	"LastUpdateDate": "2020-08-20T03:24:17.251+00:00",
	"LastUpdatedBy": "CVRQST01",
	"InventoryOrganizationId": null,
	"InventoryOrganization": null,
	"IndexSyncPendingFlag": null,
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/publicShoppingListLines/300100197614441",
		"name": "publicShoppingListLines",
		"kind": "item",
		"properties": {
			"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
		}
	},
	{
		"rel": "canonical",
		"href": "https://servername/fscmRestApi/resources/version/publicShoppingListLines/300100197614441",
		"name": "publicShoppingListLines",
		"kind": "item"
	}
	]
}

Example 2 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/vnd.oracle.adf.action+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version"

Example 2 Request Body

The following example includes the contents of the request body in JSON format. 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.

{
	"parts": [
	{
		"id": "part0",
		"path": "/publicShoppingListLines",
		"operation": "create",
		"payload": {
			"ProcurementBUId": 204,
			"ProcurementBU": "Vision Operations",
			"PublicShoppingList": "POR_PSL01",
			"Sequence": null,
			"Item": "CoolingPad 9",
			"SuggestedQuantity": 1,
			"Agreement": "1002641",
			"AgreementLine": 5
		}
	},
	{
		"id": "part1",
		"path": "/publicShoppingListLines",
		"operation": "create",
		"payload": {
			"ProcurementBUId": 204,
			"ProcurementBU": "Vision Operations",
			"PublicShoppingList": "POR_PSL01",
			"Sequence": 1,
			"ItemId": 100100106982337,
			"SuggestedQuantity": 4
		}
	},
	{
		"id": "part2",
		"path": "/publicShoppingListLines",
		"operation": "create",
		"payload": {
			"ProcurementBUId": 204,
			"ProcurementBU": "Vision Operations",
			"PublicShoppingList": "POR_PSL01",
			"Agreement": "1002258",
			"AgreementLine": 2
		}
	}, {
		"id": "part3",
		"path": "/publicShoppingListLines",
		"operation": "create",
		"payload": {
			"ProcurementBUId": 204,
			"ProcurementBU": "Vision Operations",
			"PublicShoppingList": "POR_PSL01",
			"Sequence": 4,
			"AgreementLineId": 100000020118480,
			"Agreement": "1000529",
			"AgreementLine": 2
		}
	}

	]
}

Example 2 Response Body

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

{
	"parts": [
	{
		"id": "part0",
		"path": "https://servername/fscmRestApi/resources/version/publicShoppingListLines",
		"operation": "create",
		"payload": {
			"ProcurementBUId": 204,
			"ProcurementBU": "Vision Operations",
			"PublicShoppingListHeaderId": 300100188021751,
			"PublicShoppingList": "POR_PSL01",
			"PublicShoppingListDescription": "Test PSL",
			"PublicShoppingListEndDate": null,
			"PublicShoppingListStartDate": "2020-08-11",
			"PublicShoppingListLineId": 300100197614437,
			"Sequence": null,
			"LineType": "Goods",
			"ItemId": 100100106982346,
			"Item": "CoolingPad 9",
			"ItemRevision": null,
			"ItemDescription": "PORSHO Agreement Item 19",
			"CategoryName": "Miscellaneous_1",
			"CategoryId": "1",
			"SuggestedQuantity": 1,
			"UOM": "Each",
			"Price": 5119,
			"CurrencyCode": "USD",
			"Amount": 5119,
			"Supplier": "CV_SuppA01",
			"SupplierItem": "SItem2",
			"AgreementLineId": 519018,
			"Agreement": "1002641",
			"AgreementLine": 5120,
			"Buyer": "PON00020, PRC",
			"NegotiatedFlag": true,
			"NegotiationRequiredFlag": null,
			"CreatedBy": "CVRQST01",
			"CreationDate": "2020-08-20T03:22:56+00:00",
			"LastUpdateDate": "2020-08-20T03:22:57.161+00:00",
			"LastUpdatedBy": "CVRQST01",
			"InventoryOrganizationId": 204,
			"InventoryOrganization": "Vision Operations",
			"IndexSyncPendingFlag": true,
			"links": [
			{
				"rel": "self",
				"href": "https://servername/fscmRestApi/resources/version/publicShoppingListLines/300100197614437",
				"name": "publicShoppingListLines",
				"kind": "item",
				"properties": {
					"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A657870000000017704000000017372001B6F7261636C652E6A626F2E646F6D61696E2E4E756C6C56616C75655899C1C58DAABEEB02000149000A6D53514C54797065496478700000000C78"
				}
			},
			{
				"rel": "canonical",
				"href": "https://servername/fscmRestApi/resources/version/publicShoppingListLines/300100197614437",
				"name": "publicShoppingListLines",
				"kind": "item"
			}
			]
		}
	},
	{
		"id": "part1",
		"path": "https://servername/fscmRestApi/resources/version/publicShoppingListLines",
		"operation": "create",
		"payload": {
			"ProcurementBUId": 204,
			"ProcurementBU": "Vision Operations",
			"PublicShoppingListHeaderId": 300100188021751,
			"PublicShoppingList": "POR_PSL01",
			"PublicShoppingListDescription": "Test PSL",
			"PublicShoppingListEndDate": null,
			"PublicShoppingListStartDate": "2020-08-11",
			"PublicShoppingListLineId": 300100197614438,
			"Sequence": 1,
			"LineType": null,
			"ItemId": 100100106982337,
			"Item": "CoolingPad 19",
			"ItemRevision": null,
			"ItemDescription": "PORSHO MasterItem 19",
			"CategoryName": "Miscellaneous_1",
			"CategoryId": "1",
			"SuggestedQuantity": 4,
			"UOM": "Each",
			"Price": 5018,
			"CurrencyCode": "USD",
			"Amount": 20072,
			"Supplier": null,
			"SupplierItem": null,
			"AgreementLineId": -2,
			"Agreement": null,
			"AgreementLine": null,
			"Buyer": null,
			"NegotiatedFlag": null,
			"NegotiationRequiredFlag": null,
			"CreatedBy": "CVRQST01",
			"CreationDate": "2020-08-20T03:22:56.253+00:00",
			"LastUpdateDate": "2020-08-20T03:22:57.178+00:00",
			"LastUpdatedBy": "CVRQST01",
			"InventoryOrganizationId": 204,
			"InventoryOrganization": "Vision Operations",
			"IndexSyncPendingFlag": true,
			"links": [
			{
				"rel": "self",
				"href": "https://servername/fscmRestApi/resources/version/publicShoppingListLines/300100197614438",
				"name": "publicShoppingListLines",
				"kind": "item",
				"properties": {
					"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A657870000000017704000000017372001B6F7261636C652E6A626F2E646F6D61696E2E4E756C6C56616C75655899C1C58DAABEEB02000149000A6D53514C54797065496478700000000C78"
				}
			},
			{
				"rel": "canonical",
				"href": "https://servername/fscmRestApi/resources/version/publicShoppingListLines/300100197614438",
				"name": "publicShoppingListLines",
				"kind": "item"
			}
			]
		}
	},
	{
		"id": "part2",
		"path": "https://servername/fscmRestApi/resources/version/publicShoppingListLines",
		"operation": "create",
		"payload": {
			"ProcurementBUId": 204,
			"ProcurementBU": "Vision Operations",
			"PublicShoppingListHeaderId": 300100188021751,
			"PublicShoppingList": "POR_PSL01",
			"PublicShoppingListDescription": "Test PSL",
			"PublicShoppingListEndDate": null,
			"PublicShoppingListStartDate": "2020-08-11",
			"PublicShoppingListLineId": 300100197614439,
			"Sequence": null,
			"LineType": "Goods",
			"ItemId": 663908,
			"Item": "RCV-101",
			"ItemRevision": null,
			"ItemDescription": "Lot Item",
			"CategoryName": "Miscellaneous_1",
			"CategoryId": "1",
			"SuggestedQuantity": 1,
			"UOM": "Each",
			"Price": 10,
			"CurrencyCode": "USD",
			"Amount": 10,
			"Supplier": "CV_SuppA01",
			"SupplierItem": null,
			"AgreementLineId": 385370,
			"Agreement": "1002258",
			"AgreementLine": 2,
			"Buyer": "Furey,Clare",
			"NegotiatedFlag": true,
			"NegotiationRequiredFlag": null,
			"CreatedBy": "CVRQST01",
			"CreationDate": "2020-08-20T03:22:56.772+00:00",
			"LastUpdateDate": "2020-08-20T03:22:57.179+00:00",
			"LastUpdatedBy": "CVRQST01",
			"InventoryOrganizationId": 204,
			"InventoryOrganization": "Vision Operations",
			"IndexSyncPendingFlag": true,
			"links": [
			{
				"rel": "self",
				"href": "https://servername/fscmRestApi/resources/version/publicShoppingListLines/300100197614439",
				"name": "publicShoppingListLines",
				"kind": "item",
				"properties": {
					"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A657870000000017704000000017372001B6F7261636C652E6A626F2E646F6D61696E2E4E756C6C56616C75655899C1C58DAABEEB02000149000A6D53514C54797065496478700000000C78"
				}
			},
			{
				"rel": "canonical",
				"href": "https://servername/fscmRestApi/resources/version/publicShoppingListLines/300100197614439",
				"name": "publicShoppingListLines",
				"kind": "item"
			}
			]
		}
	},
	{
		"id": "part3",
		"path": "https://servername/fscmRestApi/resources/version/publicShoppingListLines",
		"operation": "create",
		"payload": {
			"ProcurementBUId": 204,
			"ProcurementBU": "Vision Operations",
			"PublicShoppingListHeaderId": 300100188021751,
			"PublicShoppingList": "POR_PSL01",
			"PublicShoppingListDescription": "Test PSL",
			"PublicShoppingListEndDate": null,
			"PublicShoppingListStartDate": "2020-08-11",
			"PublicShoppingListLineId": 300100197614440,
			"Sequence": 4,
			"LineType": "Fixed Price Services",
			"ItemId": -2,
			"Item": null,
			"ItemRevision": null,
			"ItemDescription": "Item 02",
			"CategoryName": "Miscellaneous_1",
			"CategoryId": "1",
			"SuggestedQuantity": null,
			"UOM": null,
			"Price": null,
			"CurrencyCode": "USD",
			"Amount": 100,
			"Supplier": "General Electric",
			"SupplierItem": null,
			"AgreementLineId": 100000020118480,
			"Agreement": "1000529",
			"AgreementLine": 2,
			"Buyer": "Furey,Clare",
			"NegotiatedFlag": true,
			"NegotiationRequiredFlag": null,
			"CreatedBy": "CVRQST01",
			"CreationDate": "2020-08-20T03:22:56.972+00:00",
			"LastUpdateDate": "2020-08-20T03:22:57.182+00:00",
			"LastUpdatedBy": "CVRQST01",
			"InventoryOrganizationId": 204,
			"InventoryOrganization": "Vision Operations",
			"IndexSyncPendingFlag": true,
			"links": [
			{
				"rel": "self",
				"href": "https://servername/fscmRestApi/resources/version/publicShoppingListLines/300100197614440",
				"name": "publicShoppingListLines",
				"kind": "item",
				"properties": {
					"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A657870000000017704000000017372001B6F7261636C652E6A626F2E646F6D61696E2E4E756C6C56616C75655899C1C58DAABEEB02000149000A6D53514C54797065496478700000000C78"
				}
			},
			{
				"rel": "canonical",
				"href": "https://servername/fscmRestApi/resources/version/publicShoppingListLines/300100197614440",
				"name": "publicShoppingListLines",
				"kind": "item"
			}
			]
		}
	}
	]
}
Back to Top