HTTP
Last updated
Last updated
The HTTP channel is useful for pushing your Shopify orders to a REST API, a GraphQL interface, or a SOAP web service.
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:
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.
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.
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.
Output Format | Content-Type |
---|---|
CSV | text/csv |
JSON | application/json |
XML | application/xml |
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
.