cancel
Showing results for 
Search instead for 
Did you mean: 

Call third party System via API

0 Kudos
1,757

Hi All,

we have a requirement to call third party system via API call and pull orders

can anyone guide me, what will be the approach?

which adapter to use etc

View Entire Topic
former_member522497
Participant
0 Kudos

Hi Mastan,

You can try the HTTP adapter by using the Request-Reply step for calling third part systems. Also, you can pass the API key as header in the content modifier step as ("x-api-key") and can select the authentication as none in the adapter configuration.

Thanks,

Ameer

0 Kudos

Hi Ameer,

i tried your suggestion but still getting 401 error.

CM --RequestReply with HTTP GET method

Error Detailsorg.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://xxxxxxxxxxxxxxxxxxxxxxxxx-dev.channelengine.net/api/v2/orders with statusCode: 401

former_member522497
Participant
0 Kudos

Hi Mastan,

In the content modifier, can you try selecting the Source Type as "constant" for x-api-key in the header and try to test again.

Please mark the answer as correct if it works for you.

Thanks,

Ameer