Skip to main content
Best answer

How to Send XML to an Endpoint

  • 20 July 2024
  • 4 replies
  • 44 views

Hi,

I’m trying to make an automation which I already did on make.com. As can be seen below, when I get an order from Woocommerce, I create an XML file first and then post it with HTTP.

 

 

This is the format that I need to achieve:

 

I tried to do it with Code by zapier as can be seen below but the endpoint gave an error as invalid xml file

 

 

Any idea how I can solve the problem?

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 7
Badge +14

Hi @ihsanmercan 

Help info for using Code: https://zapier.com/apps/code/help

 

Do you even need to use a Code step?

Why not use the XML structure in the API request and map the variables into the desired locations within the XML structure?

Hi @Troy Tessalone,

if you mean this part, I don’t know how to configure it for the desired xml format

 

Because I need to define sku, qty and price information under <item>, so I don’t have any idea how to do that with the current features.

 

Userlevel 7
Badge +14

@ihsanmercan 

Try using a Custom Request.

Check the field descriptions for guidance.

Help: https://zapier.com/apps/webhook/help

 

Thank you @Troy Tessalone, that worked!