You are here:
Order Accepted Example for Order Management Integration Layer
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 the supplemental order can be successfully processed The previous order was successfully frozen and the supplemental order is now being fulfilled. In such cases, the order management system sends an Order Accepted notification message.
The optional fields container stores any data that must be updated to the Order record.
[
{
"orderId": "8011U000000Tq0H",
"state": "Accepted"
}
]
The following Apex code example shows how to invoke the Order Accepted notification:
Map<String, Object> orderInputMap = (Map<String, Object>) JSON.deserializeUntyped('{\"orderId\": \"8013i000000qvWhAAI\",\"state\": \"Accepted\",\"fields\": {\"JeopardyStatus__c\": \"Green\"}}');
OdinService.notify(new List<Object> { orderInputMap });

