POST in a specific data queue
Summary:
We need to route our company's REST API messages (source) to OTM (destination) so they can be processed in specific data queues. Currently, everything is processed through a single queue, but we want to redirect the messages to different queues (one for orders, one for suppliers, and another for locations).
http: xxxx /logisticsRestApi/resources-int/v2/transmissions?Prefer=respond-async&Content-Type=application/vnd.oracle.resource+json;type=singular
With the following request body, we are getting a 400 error:
{ "transmission": { "header": { "dataQueueGid": "MER.INT_SERVPROV" }, "body": [ { "locationGid": "MER.448844", "locationXid": "448844", "locationName": "PRUEBA_JECOLLAD2", "domainName": "MER", "postalCode": "123456", "countryCode3Gid": "CHN", "isActive": false } ] }}
Could you please help us and explain how we can redirect the messages to a specific queue using the REST API? We are using asynchronous processing.