cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

API to send order from Hybris to Datahub through POSTMAN

Former Member
0 Likes
1,488

Hi All,

I want to send an order IDOC through Postman to datahub. which rest API I can use for this? For example to send product from datahub to hybris I am using post API http://localhost:8080/datahub-webapp/v1/idoc/receiver and send IDOC xml which is getting replicated to hybris successfully . But when I try same API to send order from hybris to datahub I am getting below error

failed to resolve channel name 'SALESORDER_CREATEFROMDAT202'; nested exception is org.springframework.messaging.core.DestinationResolutionException: failed to look up MessageChannel with name 'SALESORDER_CREATEFROMDAT202' in the BeanFactory.; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'SALESORDER_CREATEFROMDAT202' is defined

What is the API to send order IDOC xml through postman to datahub?

Regards, Rasika

Accepted Solutions (1)

Accepted Solutions (1)

cieslo
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

For orders you should use this endpoint: http://localhost:8080/datahub-webapp/v1/data-feeds/SAPORDER_OUTBOUND_FEED/items/RawHybrisOrder. Keep in mind that data sent to this endpoint should have csv-like format. IDoc will be the output from DataHub after processing.

Former Member
0 Likes

Can you provide sample csv file for order, or the location where these csv files gets store when we create order?

Regards, Rasika

cieslo
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

I used something like this in my tests: RawHybrisOrder.txt

former_member683310
Discoverer
0 Likes

Hi Marcin,

What should be the data type (text/xml/json)? I am getting media not supported exception in datahub.

thanks,

Answers (0)