Cancel Purchase Order Lines and Schedules

You can use the draft purchase orders REST API to cancel purchase order lines and schedules. When all the lines or schedules of a given purchase order are canceled, then the purchase order will be canceled. Additionally, you can cancel or reinstate the unfulfilled demand on the purchase order when canceling a purchase order line or schedule by providing a value to the CancelUnfulfilledDemandFlag attribute.

Note:

To cancel a purchase order, you can use the cancel custom action on the Purchase Orders REST resource. To cancel any pending change order, you can use the cancelChangeOrder custom action on the Draft Purchase Orders REST resource. See the Tasks section for further details on these operations.

Here's a typical application processing flow for the scenarios:

  1. You select the lines and schedules for cancelation using the PATCH operation to create an incomplete change order
  2. You submit the incomplete change order using custom action submit

Cancel a Purchase Order Line

Let's consider Hillary Jones, a buyer for Vision Operations, needs to cancel a purchase order line because the supplier is unable to fulfill the demand in time. However, Hillary found another supplier who can deliver the product sooner, so she reinstates the unfulfilled demand so that it can be fulfilled by the other supplier. This is a two-step process.

Step 1: Hillary selects the purchase order line for cancelation by creating a change order and updating the value of the CancelUnfulfilledDemandFlag attribute to false. This will reinstate unfulfilled demand associated with the purchase order line.

Example URL

Use this resource URL format.

PATCH

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

Example Request

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

{
	"ChangeOrderDescription": "Change order",
	"ChangeOrderInitiatingParty":"BUYER",
	"lines": [
	{
		"POLineId": 702542,
		"CancelFlag": true,
		"CancelReason": "cancel line",
		"CancelUnfulfilledDemandFlag": "false"
	}
	]
}

Example Response

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

{
	"POHeaderId": 559479,
	"OrderNumber": "1006493",
	"Description": null,
	"DocumentStyleId": 1,
	"DocumentStyle": "Purchase Order",
	"StatusCode": "OPEN",
	"Status": "Open",
	"ProcurementBUId": 204,
	"ProcurementBU": "Vision Operations",
	"RequisitioningBUId": 204,
	"RequisitioningBU": "Vision Operations",
	"BuyerId": 100010026863783,
	"Buyer": "Jones,Hillary",
	"BuyerEmail": "sendmail-test-discard@example.com",
	"CurrencyCode": "USD",
	"Currency": "US Dollar",
	"ConversionRateTypeCode": null,
	"ConversionRateType": null,
	"ConversionRateDate": null,
	"ConversionRate": null,
	"SupplierId": 12,
	"Supplier": "CV_SuppA01",
	"SupplierSiteId": 2444,
	"SupplierSite": "CVSuppA01Site01",
	"SupplierCommunicationMethod": "NONE",
	"SupplierFax": null,
	"SupplierOrder": null,
	"SupplierEmailAddress": null,
	"SoldToLegalEntityId": 204,
	"SoldToLegalEntity": "Vision Operations",
	"BillToBUId": 204,
	"BillToBU": "Vision Operations",
	"BillToLocationId" : 18627,
	"BillToLocation" : "Texas Branch",
	"DefaultShipToLocationId" : 18627,
	"DefaultShipToLocation" : "Texas Branch",
	"MasterContractId": null,
	"MasterContractNumber": null,
	"MasterContractTypeId": null,
	"MasterContractType": null,
	"RequiredAcknowledgmentCode": "N",
	"RequiredAcknowledgment": "None",
	"AcknowledgmentDueDate": null,
	"AcknowledgmentWithinDays": null,
	"BuyerManagedTransportFlag": false,
	"RequiresSignatureFlag": false,
	"PendingSignatureFlag": null,
	"PaymentTermsId": 10003,
	"PaymentTerms": "45 Net (terms date + 45)",
	"FOBCode": "Origin",
	"FOB": "Origin",
	"FreightTermsCode": "Due",
	"FreightTerms": "Due",
	"SupplierContactId": null,
	"SupplierContact": null,
	"NoteToSupplier": null,
	"NoteToReceiver": null,
	"CarrierId": null,
	"Carrier": null,
	"ModeOfTransportCode": null,
	"ModeOfTransport": null,
	"ServiceLevelCode": null,
	"ServiceLevel": null,
	"ConfirmingOrderFlag": false,
	"PayOnReceiptFlag": true,
	"DocumentCreationMethod": "COPY_DOCUMENT",
	"ShippingMethod": null,
	"DefaultTaxationCountryCode": "US",
	"DefaultTaxationCountry": "United States",
	"FirstPartyRegistrationId": null,
	"FirstPartyRegistrationNumber": null,
	"ThirdPartyRegistrationId": null,
	"ThirdPartyRegistrationNumber": null,
	"DocumentFiscalClassificationId": null,
	"DocumentFiscalClassificationCode": null,
	"DocumentFiscalClassification": null,
	"BudgetaryControlEnabledFlag": false,
	"CancelFlag": null,
	"ChangeOrderNumber": "1",
	"ChangeOrderInitiatingParty": "BUYER",
	"ChangeOrderDescription": "Change order",
	"ChangeOrderStatusCode": "INCOMPLETE",
	"ChangeOrderStatus": "Incomplete",
	"ChangeOrderTypeCode": null,
	"ChangeOrderType": null,
	"ChangeRequestedBy": null,
	"ContractTermsExistFlag": false,
	"DuplicatedFromHeaderId": 100000017135067,
	"FundsStatus": "Not Applicable",
	"FundsStatusCode": "NOT_APPLICABLE",
	"ImportSourceCode": null,
	"ReferenceNumber": null,
	"LastUpdateDate": "2020-10-19T09:56:38.783+00:00",
	"LastUpdatedBy": "CVBUYER01",
	"CreationDate": "2020-10-19T09:40:23+00:00",
	"CreatedBy": "CVBUYER01",
	"lines": [
	{
		"POLineId": 702542,
		"LineNumber": 1,
		"POHeaderId": 559479,
		"OrderNumber": "1006493",
		"LineTypeId": 1,
		"LineType": "Goods",
		"ItemId": null,
		"Item": null,
		"ItemRevision": null,
		"CategoryId": 1,
		"CategoryCode": "MISC.MISC",
		"Category": "Miscellaneous_1",
		"Description": "Item Description 01",
		"Amount": null,
		"Quantity": 10,
		"Price": 100,
		"UOMCode": "Ea",
		"UOM": "Each",
		"CurrencyCode": "USD",
		"Currency": "US Dollar",
		"BaseModelId": null,
		"BaseModel": null,
		"BaseModelPrice": null,
		"CancelDate": null,
		"CancelFlag": true,
		"CancelReason": "cancel line",
		"CancelledBy": null,
		"ChangeAcceptedFlag": null,
		"ConfiguredItemFlag": false,
		"ConsignmentLineFlag": false,
		"SourceAgreementId": null,
		"SourceAgreementNumber": null,
		"SourceAgreementLineId": null,
		"SourceAgreementLine": null,
		"SourceAgreementTypeCode": null,
		"SourceAgreementType": null,
		"ResponseLine": null,
		"Response": null,
		"NegotiationId": null,
		"Negotiation": null,
		"NegotiationLine": null,
		"FundsStatusCode": "NOT_APPLICABLE",
		"FundsStatus": "Not Applicable",
		"ManualPriceChangeFlag": null,
		"NegotiatedFlag": false,
		"NoteToSupplier": null,
		"ReasonForChange": null,
		"SupplierConfigurationId": null,
		"SupplierItem": null,
		"OptionsPrice": null,
		"UNNumberCode": null,
		"UNNumberId": null,
		"UNNumber": null,
		"UNNumberDescription": null,
		"HazardClassCode": null,
		"HazardClassId": null,
		"HazardClass": null,
		"WorkOrderProduct": null,
		"TaxableFlag": null,
		"ReferenceNumber": null,
		"CancelUnfulfilledDemandFlag": "false",
		"CreationDate": "2020-10-19T09:40:24+00:00",
		"CreatedBy": "CVBUYER01",
		"LastUpdateDate": "2020-10-19T09:56:38.762+00:00",
		"LastUpdatedBy": "CVBUYER01",
		"MaximumRetainageAmount": null,
		"Manufacturer": null,
		"ManufacturerPartNumber": null,
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542",
			"name": "lines",
			"kind": "item",
			"properties": {
				"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000578"
			}
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542",
			"name": "lines",
			"kind": "item"
		},
		{
			"rel": "parent",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479",
			"name": "draftPurchaseOrders",
			"kind": "item"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/DFF",
			"name": "DFF",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/attachments",
			"name": "attachments",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/schedules",
			"name": "schedules",
			"kind": "collection"
		}
		]
	}
	],
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479",
		"name": "draftPurchaseOrders",
		"kind": "item",
		"properties": {
			"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000C78"
		}
	},
	{
		"rel": "canonical",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479",
		"name": "draftPurchaseOrders",
		"kind": "item"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/DFF",
		"name": "DFF",
		"kind": "collection"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/attachments",
		"name": "attachments",
		"kind": "collection"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines",
		"name": "lines",
		"kind": "collection"
	},
	{
		"rel": "action",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/action/submit",
		"name": "submit",
		"kind": "other"
	},
	{
		"rel": "action",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/action/cancelChangeOrder",
		"name": "cancelChangeOrder",
		"kind": "other"
	}
	]
}

Step 2: Hillary submits the change order. The purchase order line is canceled once the change order has been implemented.

Example URL

Use this resource URL format.

POST

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"
}

Cancel a Purchase Order Schedule

Let's consider Hillary Jones, a buyer for Vision Operations, needs to cancel a purchase order schedule because the supplier is unable to fulfill the demand because the items are out of stock. However, Hillary couldn't find another supplier who can deliver the product, so she cancels the unfulfilled demand. This is a two-step process.

Step 1: Hillary selects the purchase order schedule for cancelation by creating a change order and updating the value of the CancelUnfulfilledDemandFlag attribute to true. This will cancel the unfulfilled demand associated with the purchase order schedule.

Example URL

Use this resource URL format.

PATCH

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

Example Request

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

{
	"ChangeOrderDescription": "Change order",
	"ChangeOrderInitiatingParty": "BUYER",
	"lines": [
	{
		"POLineId": 702542,
		"schedules": [
		{
			"LineLocationId": 638892,
			"CancelFlag": true,
			"CancelReason": "cancel schedule",
			"CancelUnfulfilledDemandFlag": "true"
		}
		]
	}
	]
}

Example Response

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

{
	"POHeaderId": 559479,
	"OrderNumber": "1006493",
	"Description": null,
	"DocumentStyleId": 1,
	"DocumentStyle": "Purchase Order",
	"StatusCode": "OPEN",
	"Status": "Open",
	"ProcurementBUId": 204,
	"ProcurementBU": "Vision Operations",
	"RequisitioningBUId": 204,
	"RequisitioningBU": "Vision Operations",
	"BuyerId": 100010026863783,
	"Buyer": "Jones,Hillary",
	"BuyerEmail": "sendmail-test-discard@example.com",
	"CurrencyCode": "USD",
	"Currency": "US Dollar",
	"ConversionRateTypeCode": null,
	"ConversionRateType": null,
	"ConversionRateDate": null,
	"ConversionRate": null,
	"SupplierId": 12,
	"Supplier": "CV_SuppA01",
	"SupplierSiteId": 2444,
	"SupplierSite": "CVSuppA01Site01",
	"SupplierCommunicationMethod": "NONE",
	"SupplierFax": null,
	"SupplierOrder": null,
	"SupplierEmailAddress": null,
	"SoldToLegalEntityId": 204,
	"SoldToLegalEntity": "Vision Operations",
	"BillToBUId": 204,
	"BillToBU": "Vision Operations",
	"BillToLocationId" : 18627,
	"BillToLocation" : "Texas Branch",
	"DefaultShipToLocationId" : 18627,
	"DefaultShipToLocation" : "Texas Branch",
	"MasterContractId": null,
	"MasterContractNumber": null,
	"MasterContractTypeId": null,
	"MasterContractType": null,
	"RequiredAcknowledgmentCode": "N",
	"RequiredAcknowledgment": "None",
	"AcknowledgmentDueDate": null,
	"AcknowledgmentWithinDays": null,
	"BuyerManagedTransportFlag": false,
	"RequiresSignatureFlag": false,
	"PendingSignatureFlag": null,
	"PaymentTermsId": 10003,
	"PaymentTerms": "45 Net (terms date + 45)",
	"FOBCode": "Origin",
	"FOB": "Origin",
	"FreightTermsCode": "Due",
	"FreightTerms": "Due",
	"SupplierContactId": null,
	"SupplierContact": null,
	"NoteToSupplier": null,
	"NoteToReceiver": null,
	"CarrierId": null,
	"Carrier": null,
	"ModeOfTransportCode": null,
	"ModeOfTransport": null,
	"ServiceLevelCode": null,
	"ServiceLevel": null,
	"ConfirmingOrderFlag": false,
	"PayOnReceiptFlag": true,
	"DocumentCreationMethod": "COPY_DOCUMENT",
	"ShippingMethod": null,
	"DefaultTaxationCountryCode": "US",
	"DefaultTaxationCountry": "United States",
	"FirstPartyRegistrationId": null,
	"FirstPartyRegistrationNumber": null,
	"ThirdPartyRegistrationId": null,
	"ThirdPartyRegistrationNumber": null,
	"DocumentFiscalClassificationId": null,
	"DocumentFiscalClassificationCode": null,
	"DocumentFiscalClassification": null,
	"BudgetaryControlEnabledFlag": false,
	"CancelFlag": null,
	"ChangeOrderNumber": "1",
	"ChangeOrderInitiatingParty": "BUYER",
	"ChangeOrderDescription": "Change order",
	"ChangeOrderStatusCode": "INCOMPLETE",
	"ChangeOrderStatus": "Incomplete",
	"ChangeOrderTypeCode": null,
	"ChangeOrderType": null,
	"ChangeRequestedBy": null,
	"ContractTermsExistFlag": false,
	"DuplicatedFromHeaderId": 100000017135067,
	"FundsStatus": "Not Applicable",
	"FundsStatusCode": "NOT_APPLICABLE",
	"ImportSourceCode": null,
	"ReferenceNumber": null,
	"LastUpdateDate": "2020-10-19T10:07:29.211+00:00",
	"LastUpdatedBy": "CVBUYER01",
	"CreationDate": "2020-10-19T09:40:23+00:00",
	"CreatedBy": "CVBUYER01",
	"lines": [
	{
		"POLineId": 702542,
		"LineNumber": 1,
		"POHeaderId": 559479,
		"OrderNumber": "1006493",
		"LineTypeId": 1,
		"LineType": "Goods",
		"ItemId": null,
		"Item": null,
		"ItemRevision": null,
		"CategoryId": 1,
		"CategoryCode": "MISC.MISC",
		"Category": "Miscellaneous_1",
		"Description": "Item Description 01",
		"Amount": null,
		"Quantity": 10,
		"Price": 100,
		"UOMCode": "Ea",
		"UOM": "Each",
		"CurrencyCode": "USD",
		"Currency": "US Dollar",
		"BaseModelId": null,
		"BaseModel": null,
		"BaseModelPrice": null,
		"CancelDate": null,
		"CancelFlag": true,
		"CancelReason": null,
		"CancelledBy": null,
		"ChangeAcceptedFlag": null,
		"ConfiguredItemFlag": false,
		"ConsignmentLineFlag": false,
		"SourceAgreementId": null,
		"SourceAgreementNumber": null,
		"SourceAgreementLineId": null,
		"SourceAgreementLine": null,
		"SourceAgreementTypeCode": null,
		"SourceAgreementType": null,
		"ResponseLine": null,
		"Response": null,
		"NegotiationId": null,
		"Negotiation": null,
		"NegotiationLine": null,
		"FundsStatusCode": "NOT_APPLICABLE",
		"FundsStatus": "Not Applicable",
		"ManualPriceChangeFlag": null,
		"NegotiatedFlag": false,
		"NoteToSupplier": null,
		"ReasonForChange": null,
		"SupplierConfigurationId": null,
		"SupplierItem": null,
		"OptionsPrice": null,
		"UNNumberCode": null,
		"UNNumberId": null,
		"UNNumber": null,
		"UNNumberDescription": null,
		"HazardClassCode": null,
		"HazardClassId": null,
		"HazardClass": null,
		"WorkOrderProduct": null,
		"TaxableFlag": null,
		"ReferenceNumber": null,
		"CancelUnfulfilledDemandFlag": null,
		"CreationDate": "2020-10-19T09:40:24+00:00",
		"CreatedBy": "CVBUYER01",
		"LastUpdateDate": "2020-10-19T10:07:28.959+00:00",
		"LastUpdatedBy": "CVBUYER01",
		"MaximumRetainageAmount": null,
		"Manufacturer": null,
		"ManufacturerPartNumber": null,
		"schedules": [
		{
			"LineLocationId": 638892,
			"ScheduleNumber": 1,
			"POLineId": 702542,
			"LineNumber": 1,
			"POHeaderId": 559479,
			"OrderNumber": "1006493",
			"Quantity": 10,
			"Amount": null,
			"ShipToOrganizationId": 207,
			"ShipToOrganizationCode": "M1",
			"ShipToOrganization": "Tall Manufacturing",
			"ShipToLocation": "M1- Seattle Mfg",
			"ShipToLocationId": 207,
			"ShipToLocationCode": "M1- Seattle Mfg",
			"DestinationTypeCode": "EXPENSE",
			"DestinationType": "Expense",
			"LocationOfFinalDischargeId": null,
			"LocationOfFinalDischargeCode": null,
			"TransactionBusinessCategoryId": 20234,
			"TransactionBusinessCategoryCode": "PURCHASE_TRANSACTION",
			"TransactionBusinessCategory": "Purchase Transaction",
			"UserDefinedFiscalClassificationCode": null,
			"UserDefinedFiscalClassification": null,
			"ProductFiscalClassificationId": null,
			"ProductFiscalClassificationCode": null,
			"ProductFiscalClassification": null,
			"ProductCategoryCode": null,
			"ProductCategory": null,
			"LineIntendedUseId": null,
			"LineIntendedUse": null,
			"ProductTypeCode": "GOODS",
			"ProductType": "Goods",
			"AssessableValue": 1000,
			"TaxClassificationCode": null,
			"TaxClassification": null,
			"InvoiceCloseTolerancePercent": 0,
			"ReceiptCloseTolerancePercent": 0,
			"EarlyReceiptToleranceDays": 5,
			"LateReceiptToleranceDays": 5,
			"AccrueAtReceiptFlag": false,
			"ReceiptRoutingId": 3,
			"ReceiptRouting": "Direct delivery",
			"InvoiceMatchOptionCode": "P",
			"InvoiceMatchOption": "Order",
			"InspectionRequiredFlag": false,
			"ReceiptRequiredFlag": true,
			"MatchApprovalLevelCode": "3-Way",
			"MatchApprovalLevel": "3 Way",
			"AllowSubstituteReceiptsFlag": true,
			"FirmFlag": null,
			"OverReceiptTolerancePercent": 5,
			"BackToBackFlag": null,
			"NoteToReceiver": null,
			"RequestedDeliveryDate": "2020-10-19",
			"PromisedDeliveryDate": null,
			"RequestedShipDate": null,
			"PromisedShipDate": null,
			"SalesOrderNumber": null,
			"SalesOrderLineNumber": null,
			"SalesOrderScheduleNumber": null,
			"SecondaryQuantity": null,
			"TaxableFlag": false,
			"Carrier": null,
			"CarrierId": null,
			"CountryOfOrigin": null,
			"CountryOfOriginCode": null,
			"ShipToExceptionAction": "Warning",
			"ShipToExceptionActionCode": "WARNING",
			"FundsStatusCode": "NOT_APPLICABLE",
			"FundsStatus": "Not Applicable",
			"ModeOfTransport": null,
			"ModeOfTransportCode": null,
			"CancelDate": null,
			"CancelReason": "cancel schedule",
			"CancelledBy": null,
			"RejectedReason": null,
			"ReasonForChange": null,
			"ChangeAcceptedFlag": null,
			"ChangeOrderAmountCancelled": null,
			"ChangeOrderQuantityCancelled": null,
			"CustomerItem": null,
			"CustomerItemDescription": null,
			"CustomerPOLineNumber": null,
			"CustomerPONumber": null,
			"CustomerPOScheduleNumber": null,
			"CurrencyCode": "USD",
			"Currency": "US Dollar",
			"RejectedBy": null,
			"RejectedByRole": null,
			"CancelFlag": true,
			"SecondaryUOMCode": null,
			"SecondaryUOM": null,
			"UOMCode": "Ea",
			"UOM": "Each",
			"ReceiptDateExceptionActionCode": "WARNING",
			"ReceiptDateExceptionAction": "Warning",
			"OverReceiptActionCode": "WARNING",
			"OverReceiptAction": "Warning",
			"WorkOrderId": null,
			"WorkOrderNumber": null,
			"WorkOrderOperationId": null,
			"WorkOrderOperationSequence": null,
			"WorkOrderSubType": null,
			"SupplierOrderLineNumber": null,
			"OrchestrationAgreementLineNumber": null,
			"OrchestrationAgreementNumber": null,
			"PrimaryTradeRelationshipId": null,
			"POTradingOrganizationId": null,
			"POTradingOrganizationCode": null,
			"POTradingOrganization": null,
			"FirmStatusLookupCode": null,
			"FirmStatus": null,
			"ParentLineLocationId": null,
			"ParentScheduleNumber": null,
			"ShipToCustomerContactId": null,
			"ShipToCustomerContact": null,
			"ShipToCustomerId": null,
			"ShipToCustomer": null,
			"ShipToCustomerLocationId": null,
			"ServiceLevelCode": null,
			"ServiceLevel": null,
			"CancelUnfulfilledDemandFlag": "true",
			"CreatedBy": "CVBUYER01",
			"CreationDate": "2020-10-19T09:40:24+00:00",
			"LastUpdateDate": "2020-10-19T10:07:29.191+00:00",
			"LastUpdatedBy": "CVBUYER01",
			"ShippingMethod": null,
			"RetainageRate": null,
			"LastAcceptableDeliveryDate": null,
			"LastAcceptableShipDate": null,
			"OriginalPromisedDeliveryDate": null,
			"OriginalPromisedShipDate": null,
			"links": [
			{
				"rel": "self",
				"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/schedules/638892",
				"name": "schedules",
				"kind": "item",
				"properties": {
					"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000678"
				}
			},
			{
				"rel": "canonical",
				"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/schedules/638892",
				"name": "schedules",
				"kind": "item"
			},
			{
				"rel": "parent",
				"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542",
				"name": "lines",
				"kind": "item"
			},
			{
				"rel": "child",
				"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/schedules/638892/child/DFF",
				"name": "DFF",
				"kind": "collection"
			},
			{
				"rel": "child",
				"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/schedules/638892/child/attachments",
				"name": "attachments",
				"kind": "collection"
			},
			{
				"rel": "child",
				"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/schedules/638892/child/distributions",
				"name": "distributions",
				"kind": "collection"
			}
			]
		}
		],
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542",
			"name": "lines",
			"kind": "item",
			"properties": {
				"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000778"
			}
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542",
			"name": "lines",
			"kind": "item"
		},
		{
			"rel": "parent",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479",
			"name": "draftPurchaseOrders",
			"kind": "item"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/DFF",
			"name": "DFF",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/attachments",
			"name": "attachments",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines/702542/child/schedules",
			"name": "schedules",
			"kind": "collection"
		}
		]
	}
	],
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479",
		"name": "draftPurchaseOrders",
		"kind": "item",
		"properties": {
			"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000F78"
		}
	},
	{
		"rel": "canonical",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479",
		"name": "draftPurchaseOrders",
		"kind": "item"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/DFF",
		"name": "DFF",
		"kind": "collection"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/attachments",
		"name": "attachments",
		"kind": "collection"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/child/lines",
		"name": "lines",
		"kind": "collection"
	},
	{
		"rel": "action",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/action/submit",
		"name": "submit",
		"kind": "other"
	},
	{
		"rel": "action",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/559479/action/cancelChangeOrder",
		"name": "cancelChangeOrder",
		"kind": "other"
	}
	]
}

Step 2: Hillary submits the change order.

Example URL

Use this resource URL format.

POST

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"
}