Catalog API
Catalog Order Status Change
Change a WhatsApp catalog order’s status (Approved, Completed, Shipped, Delivered, Refunded) via the ChatSyncs API. Use when a developer asks how to sync order fulfillment status back into ChatSyncs from their own order system.
POST
/
whatsapp
/
catalog
/
order
/
status-change
Catalog Order Status Change
curl --request POST \
--url https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data apiToken=API-KEY \
--data order_unique_id=ord_123 \
--data cart_status=Shippedimport requests
url = "https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change"
payload = {
"apiToken": "API-KEY",
"order_unique_id": "ord_123",
"cart_status": "Shipped"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({apiToken: 'API-KEY', order_unique_id: 'ord_123', cart_status: 'Shipped'})
};
fetch('https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "apiToken=API-KEY&order_unique_id=ord_123&cart_status=Shipped",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change"
payload := strings.NewReader("apiToken=API-KEY&order_unique_id=ord_123&cart_status=Shipped")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("apiToken=API-KEY&order_unique_id=ord_123&cart_status=Shipped")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "apiToken=API-KEY&order_unique_id=ord_123&cart_status=Shipped"
response = http.request(request)
puts response.read_body{
"status": "1",
"message": "Order status updated successfully."
}Updates the status of a catalog order.
Where to find
order_unique_id: open Chatbot Manager → Commerce → Product Catalog →
Catalog Orders —
it’s the Order Unique ID column. cart_status isn’t looked up — it’s one of Approved,
Completed, Shipped, Delivered, or Refunded, picked by you. See
Finding Your IDs & API Token
for a screenshot.Body
application/x-www-form-urlencoded
Your ChatSyncs API key (not a WhatsApp/Meta access token). Where to find it.
Example:
"API-KEY"
The order's unique ID. Where to find it.
Example:
"ord_123"
One of Approved, Completed, Shipped, Delivered, Refunded.
Example:
"Shipped"
Was this page helpful?
⌘I
Catalog Order Status Change
curl --request POST \
--url https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data apiToken=API-KEY \
--data order_unique_id=ord_123 \
--data cart_status=Shippedimport requests
url = "https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change"
payload = {
"apiToken": "API-KEY",
"order_unique_id": "ord_123",
"cart_status": "Shipped"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({apiToken: 'API-KEY', order_unique_id: 'ord_123', cart_status: 'Shipped'})
};
fetch('https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "apiToken=API-KEY&order_unique_id=ord_123&cart_status=Shipped",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change"
payload := strings.NewReader("apiToken=API-KEY&order_unique_id=ord_123&cart_status=Shipped")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("apiToken=API-KEY&order_unique_id=ord_123&cart_status=Shipped")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.chatsyncs.com/api/v1/whatsapp/catalog/order/status-change")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "apiToken=API-KEY&order_unique_id=ord_123&cart_status=Shipped"
response = http.request(request)
puts response.read_body{
"status": "1",
"message": "Order status updated successfully."
}
