Accept a Purchase Order

Here's how you accept a PO:

  • In a partially accepted purchase order, some lines are accepted and some are rejected.
  • The confirmation type value provided at the header level in the payload must be a value that's in the orderAccept list.
  • Each accepted line must have a confirmation type that's in the lineAccept list.
  • Each rejected line must have a confirmation type that's in the lineReject list.

When you receive a PO confirmation without any changes using the OBN-cXML-1-2-011-ConfirmationRequest-In, the data is mapped as outlined in the table below. The PO status is updated to open.

The confirmation type value at the header is in the orderAccept code list and the confirmation type values on the lines are in the lineAccept code list.

If the feature Allow Delivery on Purchase Orders that are Pending Supplier Acknowledgment is enabled, the confirmation can be processed successfully without all the PO lines being included. If the feature isn’t enabled, all the PO lines need to be in the confirmation.

OBN-cXML-1-2-011-ConfirmationRequest-IncXML/Request/ConfirmationRequest Target: Fusion Object acknowledgePurchaseOrder/acknowledgeOrderEntry
OrderReference/@orderID OrderNumber
$soldToLe

SoldToLEId

This element's value is being populated from SoldToLE under the ProcessingConfiguration.

ConfirmationHeader/@type

AcknowledgmentResponse

Set to ACCEPT if $orderAccept[value = $orderStatus].

ConfirmationHeader/Comments

AcknowledgmentNote

If no value is provided for ConfirmationHeader/Comments, this is set to "Not Provided".

ConfirmationHeader/Extrinsic[@name='SUPPLIERORDERNUMBER'] SupplierOrderNumber
ConfirmationItem AcknowledgeOrderSchedule
ConfirmationStatus/Extrinsic[@name='LINENUM'] LineNumber
ConfirmationStatus/Extrinsic[@name='SHIPMENTNUM'] ScheduleNumber
ConfirmationStatus/@type

Response

Set to ACCEPT or REJECT.

If $lineReject[value = ConfirmationStatus/@type] map REJECT. Otherwise, if $orderAccept[value = ConfirmationStatus/@type] map ACCEPT.

ConfirmationStatus/Comments

RejectionReason

If ConfirmationStatus/@type is REJECT then map ConfirmationStatus/Comments. Otherwise, set to 'Not Provided'.

Sample Payload

Here's a sample payload to accept the PO:
<ConfirmationRequest>
	<ConfirmationHeader type="accept" 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>