You are here:
OrderItem Rejected
This notification is sent when a supplemental order is created and submitted and the order management system processes the fulfillment of the supplemental order. During fulfillment, the order management system might determine that a certain order item in the supplemental order cannot be processed. In such cases, it sends a notification message to CPQ that the order item in the supplemental order is rejected.
You can optionally include the OrderItem Rejected notification in the Order Rejected payload.
The response can contain optional fields and a describedBy container.
[
{
"orderItemId": "8021U000000hv6T",
"state": "Rejected",
"reasonCode": "PONR",
"reasonDescription": "Point of Non Return is reached"
}
]
The following Apex code example shows how to invoke the OrderItem Rejected notification:
Map<String, Object> orderItem1InputMap = (Map<String, Object>) JSON.deserializeUntyped('{\"orderItemId\": \"8023i000000qpqn\",\"state": \"Rejected\",\"fields\": {\"DueDate__c\": \"2019-10-01T10:00:23+10:00\",\"JeopardyStatus__c\": \"Green\"},\"describedBy\": {\"IMSI\": \"00000000\",\"MSISDN\": \"61456273222\"}}');
OdinService.notify(new List<Object> { orderItem1InputMap });

