Skip to main content

Send products and sellers by API

Push your products first. Sellers are optional and can follow at any time.

Prerequisites
  1. GoWit chooses Push API for products (and sellers, if you send them) in the console Setup center. Until then a push is answered 503 Push source not set up.
  2. You need an API key with the integration scope.
  3. GoWit shares your domain_id and your stage host.

Product integration​

Send the products advertisers promote. This is the one push every integration needs: your advertisers are opened from these products by your market's setup rule, per seller (seller_ref) or per brand. You can send the full catalog each time or only the products that changed.

POST /api/integration/products · Full reference

curl --request POST 'https://xxx.edge-stage.gowit.app/api/integration/products' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"domain_id": 1001,
"products": [
{
"id": "P30001",
"name": "Waterproof Hiking Boots",
"seller_ref": "ADV001",
"image_url": "https://cdn.example.com/p/P30001.jpg",
"description": "Durable waterproof hiking boots built for long-distance trekking on rugged terrain.",
"price": 129.99,
"stock": 95,
"rating": 4.7,
"buybox": true,
"brand": "TrailMaster",
"retailer_taxonomy": "Outdoor>Footwear>Hiking Boots",
"status": "ACTIVE"
},
{
"id": "P30006",
"name": "Thermal Hiking Socks (3-Pack)",
"seller_ref": "ADV001",
"image_url": "https://cdn.example.com/p/P30006.jpg",
"price": 19.99,
"stock": 300,
"brand": "SummitGear",
"retailer_taxonomy": "Outdoor>Accessories>Socks",
"status": "DELETED"
}
]
}'

The answer is 200 with a request_id. Accepted is not yet ingested: each record is validated afterwards, and a record that misses a required field is held back on its run while the records beside it are taken.

Product fields​

FieldTypeRequiredDescription
idstringYesYour product code, shared by GoWit and you. It goes in the products array of ad requests and in sale events, where it links each sale to an ad. Send it as a string.
namestringYesLets advertisers search for the product when they build a campaign.
seller_refstringYesThe code of the seller that offers the product. Under a per-seller setup rule it decides the product’s advertiser. It is only a code: no seller record has to be sent, and one sent later is linked automatically.
image_urlurlYesProduct image, shown in the campaign setup product list so advertisers can tell products apart.
statusstringYesAvailability in your marketplace. A DELETED product is made inactive, never removed. (active, 1 and true in any case also mean active.) One of ACTIVE, DELETED.
skustringNoOptional storefront code. A sponsored product ad answers it as product_id. Without a sku, the id is used so the two stay the same. Default the product id.
retailer_taxonomystringNoThe product category in your marketplace, e.g. Outdoor>Footwear>Hiking Boots. It fills the category list used for category targeting and relevance. Strongly recommended.
retailer_taxonomy_id_structurestringNoYour category ids for the same steps, e.g. 10>1010>101010. Paired with retailer_taxonomy to build the category tree with your ids. The step counts must match.
retailer_taxonomiesobject[]NoMore category paths for a product listed in several categories. The first one is the primary.
retailer_taxonomies[].taxonomystringYesCategory path, as in retailer_taxonomy.
retailer_taxonomies[].id_structurestringNoIds for the same steps.
descriptionstringNoProduct description.
pricenumberNoCurrent price. A number or a numeric string.
stockintegerNoUnits in stock. Products out of stock are not advertised.
stock_levelsobject[]NoPer-store price and stock, for multi-location markets. Top-level price and stock still apply where a store has none of its own.
stock_levels[].location_idstringYesYour store code. An element without it is rejected on its own; the product and its other stores still land.
stock_levels[].pricenumberNoPrice at this store. Not sent = unchanged. 0 = free.
stock_levels[].sale_pricenumberNoDiscounted price at this store.
stock_levels[].currencystringNoCurrency of the store prices.
stock_levels[].stockintegerNoUnits in stock at this store. Not sent = unknown. 0 = out of stock.
stock_levels[].availabilitystringNoAvailability text at this store, e.g. in_stock or out_of_stock.
brandstringWhen per-brand ruleBrand name. Under a per-brand setup rule each brand becomes one advertiser, so send it on every product. Spell a brand the same way everywhere.
ratingnumberNoAverage shopper rating, e.g. 4.7.
buyboxbooleanNoWhether this seller currently holds the buy box for the product.
barcodestringNoGTIN / EAN / UPC barcode.
pdp_urlurlNoProduct page URL on your storefront.
google_taxonomystringNoGoogle product category, when you have it.
filtersstring[]NoProduct labels that ad requests can filter on (see placements[].filters in Request ads).
Seller code

On the push API every product carries an seller_ref, the code of the seller that offers it. It is only a code: no seller record has to exist. Under a per-brand rule it still keeps two sellers' offers of one product apart.

Limits

One request carries at most 100,000 products (100 MiB), taken in parts of 10,000.

XML body​

The same envelope can be sent as XML with Content-Type: application/xml: root <products>, one <domain_id>, then one <product> per record.

<products>
<domain_id>1001</domain_id>
<product>
<id>P30001</id>
<name>Waterproof Hiking Boots</name>
<seller_ref>ADV001</seller_ref>
<brand>TrailMaster</brand>
<image_url>https://cdn.example.com/p/P30001.jpg</image_url>
<retailer_taxonomy>Outdoor&gt;Footwear&gt;Hiking Boots</retailer_taxonomy>
<price>129.99</price>
<status>ACTIVE</status>
</product>
</products>

Multi-location stock​

Send per-store price and stock in stock_levels, each element with its location_id. Top-level price and stock are still read where a store has none of its own.

FieldTypeRequiredDescription
location_idstringYesYour store code. An element without it is rejected on its own; the product and its other stores still land.
pricenumberNoPrice at this store. Not sent = unchanged. 0 = free.
sale_pricenumberNoDiscounted price at this store.
currencystringNoCurrency of the store prices.
stockintegerNoUnits in stock at this store. Not sent = unknown. 0 = out of stock.
availabilitystringNoAvailability text at this store, e.g. in_stock or out_of_stock.

Full sync​

To remove products you no longer sell without sending each one as DELETED, run a full sync: send X-Process-ID: sync-2026-11-20 on every push of the sync, then end it.

PATCH /api/integration/products · Full reference

curl --request PATCH 'https://xxx.edge-stage.gowit.app/api/integration/products' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"domain_id": 1001,
"process_id": "sync-2026-11-20",
"status": "ACTIVE"
}'

Once every run of the sync completes, products it never named are made inactive. If a run fails, nothing is made inactive. A process with no push for 24 hours expires and changes nothing.

Checklist

  • The product push is created and sent to GoWit. (Retailer)
  • The setup rule (per seller or per brand) is agreed and activated. (GoWit)
  • The products appear in the console and in campaign setup, and their advertisers in the Onsite app. (Retailer)

Seller integration (optional)​

Sellers add details to the advertisers your products already created: a display name, a contact e-mail, a tax rate and a language. Send them whenever you like, before or after the products. A seller's id is the code your products carry as seller_ref, matched exactly, including case.

POST /api/integration/sellers · Full reference

curl --request POST 'https://xxx.edge-stage.gowit.app/api/integration/sellers' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"domain_id": 1001,
"sellers": [
{
"id": "ADV001",
"name": "Outdoor Brand",
"email": "sample_outdoor_brand@example.com",
"status": "ACTIVE"
},
{
"id": "ADV002",
"name": "Another Advertiser",
"email": "another_advertiser@example.com",
"status": "ACTIVE"
},
{
"id": "ADV003",
"name": "Clothing Brand",
"email": "clothing_brand@example.com",
"status": "DELETED"
}
]
}'
FieldTypeRequiredDescription
idstringYesYour seller id. It must match the seller_ref on every product of this seller exactly, including case. Surrounding spaces are trimmed.
namestringYesSeller name. Admins find the advertiser by it when they create campaigns, review results or fund budgets.
statusstringYesThe seller status in your marketplace. DELETED makes the seller inactive; nothing is ever removed. One of ACTIVE, DELETED.
emailemailNoContact e-mail of the seller. Written only when the seller is first created, never updated afterwards.
tax_ratenumberNoVAT rate of the advertiser, as a percent: 20 means 20 %. Kept unchanged when not sent.
languagestringNoPreferred language of the seller, e.g. en or en-GB. An unknown code is ignored.

Every seller sent appears under Catalog › Sellers in the console. Under a per-seller rule its name becomes the advertiser's name.

Checklist

  • The seller push is created and sent to GoWit (optional). (Retailer)
  • The sellers appear in the console with their details. (Retailer)