Order Rejected Event
An Order Rejected event is sent if the OMS or order service completely rejects an order.
Radial supports two different ways to receive event messages from this API and other event-based APIs.
-
If you use the queue-based implementation with AMQP, each event is sent in its own OrderRejected message. These events can be sent in XML or JSON.
-
If you use the webhooks-based implementation, a set of events is grouped together in an OrderRejectedList message. These list events can be sent in XML or JSON.
XML Schemas:
- Order-Rejected-Event-1.0.xsd
- Checkout-Datatypes-1.0.xsd
- Order-Common-Event-1.0.xsd
- Order-Datatypes-Common-1.0.xsd
- Payment-Datatypes-1.0.xsd
- Payment-Datatypes-CurrencyCode-1.0.xsd
Order Rejected Message
For queue-based implementations, a new OrderRejected message is generated for each new event.
Queue name: q.Order.Rejected.<StoreCode>.2-0
Single-Event Message Example
<?xml version="1.0" encoding="UTF-8"?>
<OrderRejected xmlns="http://schema.gspt.net/EventCanonical/1.0">
<WebOrderId>0002600000202160</WebOrderId>
<ExternalOrderId/>
<OMSOrderId>UNKNOWN</OMSOrderId>
<BatchId/>
<SourceId type="SELLER">TMS_US</SourceId>
<OrderCreateTimestamp>2014-11-19T13:45:44.510-05:00</OrderCreateTimestamp>
<EventSource>SOMS</EventSource>
<Fault>
<CreateTimestamp>2014-11-19T18:45:47.126Z</CreateTimestamp>
<Code>GSI00DWO</Code>
<ShortDescription>com.yantra.yfc.util.YFCException
at com.yantra.yfs.core.YFSEventManager.execFlow(YFSEventManager.java:1242)
at com.yantra.yfs.core.YFSEventManager.execAction(YFSEventManager.java:496)
at com.yantr</ShortDescription>
<Description> Duplicate Webstore Order No. </Description>
</Fault>
</OrderRejected>
OrderRejectedList Message
For Webhooks-based implementations, Order Rejected events are grouped together in one OrderRejectedList message.
Event List Message Example
<?xml version="1.0" encoding="UTF-8"?>
<OrderRejectedList xmlns="http://schema.gspt.net/EventCanonical/1.0">
<WebOrderId>0002600000202160</WebOrderId>
<ExternalOrderId/>
<OMSOrderId>UNKNOWN</OMSOrderId>
<BatchId/>
<SourceId type="SELLER">TMS_US</SourceId>
<OrderCreateTimestamp>2014-11-19T13:45:44.510-05:00</OrderCreateTimestamp>
<EventSource>SOMS</EventSource>
<Fault>
<CreateTimestamp>2014-11-19T18:45:47.126Z</CreateTimestamp>
<Code>GSI00DWO</Code>
<ShortDescription>com.yantra.yfc.util.YFCException
at com.yantra.yfs.core.YFSEventManager.execFlow(YFSEventManager.java:1242)
at com.yantra.yfs.core.YFSEventManager.execAction(YFSEventManager.java:496)
at com.yantr</ShortDescription>
<Description> Duplicate Webstore Order No. </Description>
</Fault>
</OrderRejectedList>
Example: JSON Format
Note: If you want to use the JSON format, contact your Radial representative for the XML to JSON mappings.
{
"customerOrderId": "0002672836193653",
"orderCreateTimestamp": "2024-04-17T06:22:44.744Z",
"storeId": "TMSUS",
"reason": {
"code": "ValidationException",
"text": "Either Tender type [ZZZ] or LegacyPaymentType not configured for payment type [PREPAID_CARD]"
}
}