Catalog API
Catalog Sync
Sync a WhatsApp product catalog’s products via the ChatSyncs API. Use when a developer asks how to refresh catalog products programmatically after updating their product feed.
POST
/
whatsapp
/
catalog
/
sync
Catalog Sync
curl --request POST \
--url https://platform.chatsyncs.com/api/v1/whatsapp/catalog/sync \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data apiToken=API-KEY \
--data whatsapp_catalog_id=123import requests
url = "https://platform.chatsyncs.com/api/v1/whatsapp/catalog/sync"
payload = {
"apiToken": "API-KEY",
"whatsapp_catalog_id": "123"
}
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', whatsapp_catalog_id: '123'})
};
fetch('https://platform.chatsyncs.com/api/v1/whatsapp/catalog/sync', 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/sync",
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&whatsapp_catalog_id=123",
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/sync"
payload := strings.NewReader("apiToken=API-KEY&whatsapp_catalog_id=123")
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/sync")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("apiToken=API-KEY&whatsapp_catalog_id=123")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.chatsyncs.com/api/v1/whatsapp/catalog/sync")
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&whatsapp_catalog_id=123"
response = http.request(request)
puts response.read_body{
"status": "1",
"message": "Catalog synced successfully."
}Triggers a sync of a catalog’s products from its connected source.
Where to find
whatsapp_catalog_id: open Chatbot Manager → Commerce → Product Catalog,
or call
Catalog List to fetch it programmatically. 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 WhatsApp catalog ID to sync. Where to find it.
Example:
"123"
Was this page helpful?
⌘I
Catalog Sync
curl --request POST \
--url https://platform.chatsyncs.com/api/v1/whatsapp/catalog/sync \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data apiToken=API-KEY \
--data whatsapp_catalog_id=123import requests
url = "https://platform.chatsyncs.com/api/v1/whatsapp/catalog/sync"
payload = {
"apiToken": "API-KEY",
"whatsapp_catalog_id": "123"
}
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', whatsapp_catalog_id: '123'})
};
fetch('https://platform.chatsyncs.com/api/v1/whatsapp/catalog/sync', 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/sync",
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&whatsapp_catalog_id=123",
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/sync"
payload := strings.NewReader("apiToken=API-KEY&whatsapp_catalog_id=123")
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/sync")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("apiToken=API-KEY&whatsapp_catalog_id=123")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.chatsyncs.com/api/v1/whatsapp/catalog/sync")
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&whatsapp_catalog_id=123"
response = http.request(request)
puts response.read_body{
"status": "1",
"message": "Catalog synced successfully."
}
