HTTP

The HTTP channel is useful for pushing your Shopify orders to a REST API, a GraphQL interface, or a SOAP web service.

URL

The first step is to specify the target URL.

You can include Liquid variables in the URL. For example, to pass the order number in the path, set the URL to:

https://api.example.com/orders/{{order.order_number}}

A special Liquid variable for the URL field is the {{output}} variable which stores the entire content generated from the output template. It can be useful in rare cases when a web service accepts data only through the query parameters.

https://ecommerce.gardenimpressions.nl/webservices/garden-mkpprod/PutOrder?XMLTEXT={{output | url_encode}}

Method

You can select one of the following HTTP methods: GET, POST, or PUT.

In most cases, the desired method is POST.

For POST and PUT methods, the generated output is passed in the request payload body.

Headers

HTTP headers are pieces of information that are sent along with the main payload. An HTTP header consist of a key (a fixed name), and value. One of the most popular headers is Content-Type. The Content-Type header is automatically added by Exporteo, and changes according to the selected output format.

However, you may need to adjust the Content-Type header for the XML output formats, as some web services require text/xml instead of application/xml.

Last updated