Reject a Purchase Order

When you receive a purchase order confirmation that rejects the PO i.e., the confirmation type value at the header is in the orderReject list, the data is mapped as outlined in the table below.

Note:
  • If the feature Allow Delivery on Purchase Orders that are Pending Supplier Acknowledgment is enabled, the purchase order is canceled regardless of the number of lines and acknowledgment codes received in the confirmation.

  • If the feature isn’t enabled, and all PO lines are in the confirmation, the purchase order is rejected regardless of any confirmation types at the line level. All the PO lines need to be in the confirmation for it to be processed successfully.

Source: cXML - ConfirmationRequest:cXML/Request/ConfirmationRequest Target: Fusion Object:cancelPurchaseOrder/cancelOrderParameter
OrderReference/@orderID OrderNumber
ConfirmationHeader/Comments

CancelReason

If ConfirmationHeader/Comments is not provided in payload, set CancelReason to Not Provided.

$soldToLe SoldToLegalEntityId

Sample Payload

Here's a sample payload to reject a PO:
<ConfirmationRequest>
	<ConfirmationHeader type="reject" noticeDate="2024-03-19T17:47:31-08:00">
		<Comments xml:lang="en-US">Header comment</Comments>
		<Extrinsic name="SUPPLIERORDERNUMBER"></Extrinsic>
	</ConfirmationHeader>
	<OrderReference orderID="123456">
		<DocumentReference payloadID=""/>
	</OrderReference>
	<Confirmationitem quantity="" lineNumber="">
		<UnitOfMeasure></UnitOfMeasure>
		<ConfirmationStatus type="accept">
			<Extrinsic name="LINENUM">1</Extrinsic>
			<Extrinsic name="SHIPMENTNUM">1</Extrinsic>
		</ConfirmationStatus>
	</Confirmationitem>
</ConfirmationRequest>