Zapier Trigger for Order Status Change
curl --request GET \
--url http://127.0.0.1:5000/zapier/trigger/order \
--header 'Accept: <accept>'import requests
url = "http://127.0.0.1:5000/zapier/trigger/order"
headers = {"Accept": "<accept>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Accept: '<accept>'}};
fetch('http://127.0.0.1:5000/zapier/trigger/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "5000",
CURLOPT_URL => "http://127.0.0.1:5000/zapier/trigger/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:5000/zapier/trigger/order"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept", "<accept>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://127.0.0.1:5000/zapier/trigger/order")
.header("Accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:5000/zapier/trigger/order")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Accept"] = '<accept>'
response = http.request(request)
puts response.read_body{
"id": 123,
"number": 123,
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"status": "<string>",
"total": 123,
"partCount": 123,
"orderSuppliers": [
{
"id": 123,
"supplierName": "<string>",
"sum": 123,
"partCount": 123,
"status": "<string>"
}
],
"name": "<string>"
}{
"errorCode": "<string>",
"stackTrace": "<string>",
"contentType": "<string>",
"headers": {},
"cookies": [
{}
],
"status": 123,
"statusCode": "<string>",
"statusDescription": "<string>",
"response": {},
"responseFilter": {},
"requestContext": {},
"paddingLength": 123,
"resultScope": {},
"options": {},
"responseStatus": {
"errorCode": "<string>",
"message": "<string>",
"stackTrace": "<string>",
"errors": [
{
"errorCode": "<string>",
"fieldName": "<string>",
"message": "<string>",
"meta": {}
}
],
"meta": {}
},
"targetSite": {},
"message": "<string>",
"data": {},
"innerException": {},
"helpLink": "<string>",
"source": "<string>",
"hResult": 123
}Zapier Triggers
Zapier Trigger: Order Status Change
Zapier trigger that fires when an order’s status changes in Portal.io.
GET
/
zapier
/
trigger
/
order
Zapier Trigger for Order Status Change
curl --request GET \
--url http://127.0.0.1:5000/zapier/trigger/order \
--header 'Accept: <accept>'import requests
url = "http://127.0.0.1:5000/zapier/trigger/order"
headers = {"Accept": "<accept>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Accept: '<accept>'}};
fetch('http://127.0.0.1:5000/zapier/trigger/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "5000",
CURLOPT_URL => "http://127.0.0.1:5000/zapier/trigger/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:5000/zapier/trigger/order"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept", "<accept>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://127.0.0.1:5000/zapier/trigger/order")
.header("Accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:5000/zapier/trigger/order")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Accept"] = '<accept>'
response = http.request(request)
puts response.read_body{
"id": 123,
"number": 123,
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"status": "<string>",
"total": 123,
"partCount": 123,
"orderSuppliers": [
{
"id": 123,
"supplierName": "<string>",
"sum": 123,
"partCount": 123,
"status": "<string>"
}
],
"name": "<string>"
}{
"errorCode": "<string>",
"stackTrace": "<string>",
"contentType": "<string>",
"headers": {},
"cookies": [
{}
],
"status": 123,
"statusCode": "<string>",
"statusDescription": "<string>",
"response": {},
"responseFilter": {},
"requestContext": {},
"paddingLength": 123,
"resultScope": {},
"options": {},
"responseStatus": {
"errorCode": "<string>",
"message": "<string>",
"stackTrace": "<string>",
"errors": [
{
"errorCode": "<string>",
"fieldName": "<string>",
"message": "<string>",
"meta": {}
}
],
"meta": {}
},
"targetSite": {},
"message": "<string>",
"data": {},
"innerException": {},
"helpLink": "<string>",
"source": "<string>",
"hResult": 123
}This endpoint is used by the Portal.io Zapier integration. It fires when an order’s status changes in your Portal.io account — for example, when an order moves from Draft to Submitted, or from Submitted to Accepted.
Headers
Accept Header
Available options:
application/json ⌘I