Webhooks
In this guide, we will look at how to register and consume webhooks to integrate your app with Art2Cart.
Registering webhooks
Go to art2cart.com/dashboard/channels Select create new webhook Add your URL to recieve post requests Inside the page, you may also select a JSON format. See consuming webhooks for differences.
note - you should use Variant format for Zapier.
Consuming webhooks
When your app receives a webhook request from Art2Cart
Example Product Format, listing based
{
title: 'title',
handle: 'handle',
category: 'catalog_product.category',
description: 'description',
images: ["https://.jpg"],
job: 123,
tags: ['tags],
variants: [
{
sku: 'abc-123',
price: 0,
options: ['red', 'small'],
weight: 0,
weightUnit: "OUNCES",
position: 0,
imageSrc: "https://.jpg",
}
],
}
Example Variant Format, row based
{
[
{
title: 'title',
handle: 'handle',
category: 'catalog_product.category',
description: 'description',
tags: 'tags',
options: 'red, small',
sku: 'variant.sku',
price: 0,
weight: 0,
imageSrc: "https://.jpg",
weightUnit: "OUNCES,
}
]
}