Ingest Product Event (Production)
curl --request POST \
--url https://feeds.channel3.ai/v1/products \
--header 'Content-Type: application/json' \
--header 'X-Channel3-Partner-Id: <x-channel3-partner-id>' \
--header 'webhook-id: <webhook-id>' \
--header 'webhook-signature: <webhook-signature>' \
--header 'webhook-timestamp: <webhook-timestamp>' \
--data '
{
"merchant": {
"id": "fdx_123",
"domain": "example.com"
},
"product": {
"offerId": "SKU12345",
"contentLanguage": "en",
"feedLabel": "US"
}
}
'import requests
url = "https://feeds.channel3.ai/v1/products"
payload = {
"merchant": {
"id": "fdx_123",
"domain": "example.com"
},
"product": {
"offerId": "SKU12345",
"contentLanguage": "en",
"feedLabel": "US"
}
}
headers = {
"X-Channel3-Partner-Id": "<x-channel3-partner-id>",
"webhook-id": "<webhook-id>",
"webhook-timestamp": "<webhook-timestamp>",
"webhook-signature": "<webhook-signature>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Channel3-Partner-Id': '<x-channel3-partner-id>',
'webhook-id': '<webhook-id>',
'webhook-timestamp': '<webhook-timestamp>',
'webhook-signature': '<webhook-signature>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
merchant: {id: 'fdx_123', domain: 'example.com'},
product: {offerId: 'SKU12345', contentLanguage: 'en', feedLabel: 'US'}
})
};
fetch('https://feeds.channel3.ai/v1/products', 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://feeds.channel3.ai/v1/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'merchant' => [
'id' => 'fdx_123',
'domain' => 'example.com'
],
'product' => [
'offerId' => 'SKU12345',
'contentLanguage' => 'en',
'feedLabel' => 'US'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Channel3-Partner-Id: <x-channel3-partner-id>",
"webhook-id: <webhook-id>",
"webhook-signature: <webhook-signature>",
"webhook-timestamp: <webhook-timestamp>"
],
]);
$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://feeds.channel3.ai/v1/products"
payload := strings.NewReader("{\n \"merchant\": {\n \"id\": \"fdx_123\",\n \"domain\": \"example.com\"\n },\n \"product\": {\n \"offerId\": \"SKU12345\",\n \"contentLanguage\": \"en\",\n \"feedLabel\": \"US\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Channel3-Partner-Id", "<x-channel3-partner-id>")
req.Header.Add("webhook-id", "<webhook-id>")
req.Header.Add("webhook-timestamp", "<webhook-timestamp>")
req.Header.Add("webhook-signature", "<webhook-signature>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://feeds.channel3.ai/v1/products")
.header("X-Channel3-Partner-Id", "<x-channel3-partner-id>")
.header("webhook-id", "<webhook-id>")
.header("webhook-timestamp", "<webhook-timestamp>")
.header("webhook-signature", "<webhook-signature>")
.header("Content-Type", "application/json")
.body("{\n \"merchant\": {\n \"id\": \"fdx_123\",\n \"domain\": \"example.com\"\n },\n \"product\": {\n \"offerId\": \"SKU12345\",\n \"contentLanguage\": \"en\",\n \"feedLabel\": \"US\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://feeds.channel3.ai/v1/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Channel3-Partner-Id"] = '<x-channel3-partner-id>'
request["webhook-id"] = '<webhook-id>'
request["webhook-timestamp"] = '<webhook-timestamp>'
request["webhook-signature"] = '<webhook-signature>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"merchant\": {\n \"id\": \"fdx_123\",\n \"domain\": \"example.com\"\n },\n \"product\": {\n \"offerId\": \"SKU12345\",\n \"contentLanguage\": \"en\",\n \"feedLabel\": \"US\"\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "accepted",
"environment": "production",
"webhook_id": "msg_01J9X7K2M4",
"event_type": "product.created",
"product_id": "en~US~SKU12345"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}API Reference
Ingest Product Event (Production)
Accepts a product.created, product.updated, or product.deleted event for an authorized merchant.
POST
/
v1
/
products
Ingest Product Event (Production)
curl --request POST \
--url https://feeds.channel3.ai/v1/products \
--header 'Content-Type: application/json' \
--header 'X-Channel3-Partner-Id: <x-channel3-partner-id>' \
--header 'webhook-id: <webhook-id>' \
--header 'webhook-signature: <webhook-signature>' \
--header 'webhook-timestamp: <webhook-timestamp>' \
--data '
{
"merchant": {
"id": "fdx_123",
"domain": "example.com"
},
"product": {
"offerId": "SKU12345",
"contentLanguage": "en",
"feedLabel": "US"
}
}
'import requests
url = "https://feeds.channel3.ai/v1/products"
payload = {
"merchant": {
"id": "fdx_123",
"domain": "example.com"
},
"product": {
"offerId": "SKU12345",
"contentLanguage": "en",
"feedLabel": "US"
}
}
headers = {
"X-Channel3-Partner-Id": "<x-channel3-partner-id>",
"webhook-id": "<webhook-id>",
"webhook-timestamp": "<webhook-timestamp>",
"webhook-signature": "<webhook-signature>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Channel3-Partner-Id': '<x-channel3-partner-id>',
'webhook-id': '<webhook-id>',
'webhook-timestamp': '<webhook-timestamp>',
'webhook-signature': '<webhook-signature>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
merchant: {id: 'fdx_123', domain: 'example.com'},
product: {offerId: 'SKU12345', contentLanguage: 'en', feedLabel: 'US'}
})
};
fetch('https://feeds.channel3.ai/v1/products', 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://feeds.channel3.ai/v1/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'merchant' => [
'id' => 'fdx_123',
'domain' => 'example.com'
],
'product' => [
'offerId' => 'SKU12345',
'contentLanguage' => 'en',
'feedLabel' => 'US'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Channel3-Partner-Id: <x-channel3-partner-id>",
"webhook-id: <webhook-id>",
"webhook-signature: <webhook-signature>",
"webhook-timestamp: <webhook-timestamp>"
],
]);
$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://feeds.channel3.ai/v1/products"
payload := strings.NewReader("{\n \"merchant\": {\n \"id\": \"fdx_123\",\n \"domain\": \"example.com\"\n },\n \"product\": {\n \"offerId\": \"SKU12345\",\n \"contentLanguage\": \"en\",\n \"feedLabel\": \"US\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Channel3-Partner-Id", "<x-channel3-partner-id>")
req.Header.Add("webhook-id", "<webhook-id>")
req.Header.Add("webhook-timestamp", "<webhook-timestamp>")
req.Header.Add("webhook-signature", "<webhook-signature>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://feeds.channel3.ai/v1/products")
.header("X-Channel3-Partner-Id", "<x-channel3-partner-id>")
.header("webhook-id", "<webhook-id>")
.header("webhook-timestamp", "<webhook-timestamp>")
.header("webhook-signature", "<webhook-signature>")
.header("Content-Type", "application/json")
.body("{\n \"merchant\": {\n \"id\": \"fdx_123\",\n \"domain\": \"example.com\"\n },\n \"product\": {\n \"offerId\": \"SKU12345\",\n \"contentLanguage\": \"en\",\n \"feedLabel\": \"US\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://feeds.channel3.ai/v1/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Channel3-Partner-Id"] = '<x-channel3-partner-id>'
request["webhook-id"] = '<webhook-id>'
request["webhook-timestamp"] = '<webhook-timestamp>'
request["webhook-signature"] = '<webhook-signature>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"merchant\": {\n \"id\": \"fdx_123\",\n \"domain\": \"example.com\"\n },\n \"product\": {\n \"offerId\": \"SKU12345\",\n \"contentLanguage\": \"en\",\n \"feedLabel\": \"US\"\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "accepted",
"environment": "production",
"webhook_id": "msg_01J9X7K2M4",
"event_type": "product.created",
"product_id": "en~US~SKU12345"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}Headers
Body
application/json
Response
Accepted and queued for processing.