Data entities
Every object GoWit reads or returns. Each page lists every field with its type, whether it is required and what it does.
- Product: The primary data of your integration. Advertisers are opened from products (per seller or per brand), promote them, and ad requests and sales name them.
- Seller: Optional details for the sellers your products name: display name, e-mail, tax rate and language. Can be sent at any time.
- Store: A place a shopper buys from: a store, dark store, restaurant, kiosk or warehouse. Optional; for multi-store markets.
- Inventory row: Price and stock of one product at one store, or the product’s general row. Optional; once an inventory source exists it owns price and stock.
- Stock level: Price and stock of a product at one store, for multi-location markets. Sent inside a product.
- Ad request: What your backend sends for one page view: the placements to fill and the page context.
- Ad: One ranked ad in an ad response. Product ads name a product; display ads carry a creative.
- Event: An impression, click or sale, reported so GoWit can attribute sales to ads.
- Sale line: One line of an order in a sale event.
How ids connect
The same value travels under different names. Getting these right is most of a working integration.
Seller code
Set by you on each product. It ties products, ads and sales to a seller, and optional seller records attach to it. Case-sensitive.
| Where | Field |
|---|---|
| Product push | products[].seller_ref |
| Seller push | sellers[].id |
| Ad response | ads[].seller_ref |
| Sale event | sales[].seller_ref |
Brand → advertiser
Under a per-brand setup rule, every distinct brand on your products becomes one advertiser.
| Where | Field |
|---|---|
| Product push or feed | products[].brand |
| Advertiser | one per brand |
Product id
Your product code. Ad requests and sale events always name products by id.
| Where | Field |
|---|---|
| Product push | products[].id |
| Ad request | products[].id |
| Sale event | sales[].product_id |
Storefront code (sku)
Optional. When you send a sku, product ads answer it as product_id, so you can render the tile directly. It falls back to id.
| Where | Field |
|---|---|
| Product push | products[].sku |
| Ad response | ads[].product_id |
Store code
Your store code, the same on every surface that names a store.
| Where | Field |
|---|---|
| Store | locations[].external_id |
| Inventory row | inventory[].location_ref |
| Product, per store | stock_levels[].location_id |
| Ad request | location_id |
| Offline sale | location_id |
Ad token
Returned with every ad and sent back unchanged on impressions and clicks.
| Where | Field |
|---|---|
| Ad response | ads[].ad_id |
| Impression / click | ad_id · ad_ids |
Session
Sales are attributed to ads by session. Send the same value everywhere.
| Where | Field |
|---|---|
| Ad request | session_id |
| Impression / click | session_id |
| Sale event | session_id |
Category path
The same text path on both sides, character for character, so pages and ads match.
| Where | Field |
|---|---|
| Product push | products[].retailer_taxonomy |
| Ad request | category · products[].category |
Placement key
The whole number set on the placement in the Onsite app.
| Where | Field |
|---|---|
| Ad request | placements[].placement_id |
| Ad response | placements[].placement_id |