Submit a PDP by id
Create or update a PDP with caller-supplied image URLs and trigger scoring.
/v1/pdps/id/{id}Submitting a PDP by id sends its hero and carousel images for scoring. If the submission changes the PDP, it will be processed and the response is 202 with status PROCESSING. Use Retrieve a PDP by id to watch the scores come in. If nothing has changed, the PDP won't be processed and the response is 200 with status COMPLETED or ERROR.
The id in the path is your own stable identifier and is echoed back on
the corresponding GET so you can correlate records. Optionally supply
gtin or asin in the body to help Vizit resolve the product category;
they are used only for category resolution and are never echoed back.
Subsequent submissions are reconciled by filename: a filename already on the PDP is reused (no re-download, no re-score), while a new filename replaces the previous image in that slot. An identical payload is a no-op.
Use this endpoint when you can supply your own image URLs (for example, from a PIM). To have Vizit scrape an Amazon listing instead, use Submit a PDP by ASIN.
To score a page you plan to list on another retailer, set retailer
to us_composite_us, name that retailer in planned_retailer, and
use a category from
List product categories
with retailer=us_composite_us. The page is scored against the
US E-Commerce benchmark. Scored by the FORMULA method where it is
enabled for your organization, otherwise by LEGACY. A PDP keeps the
retailer it was submitted under: the same id under another
retailer, or with another planned_retailer, is a separate PDP.
Authorization
bearerAuth Short-lived access token issued by Create a token.
Send it on every request as Authorization: Bearer <token>.
In: header
Path Parameters
Arbitrary caller-supplied PDP identifier — a stable id from your own
system (for example a SKU or PIM id). Any non-empty string up to 512
characters; it is not a GTIN and is not format-validated. It must not
contain a slash. PUT rejects an id that starts with =, +, - or
@ once trimmed.
1 <= length <= 512Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13), or GTIN-14. Used only for category resolution; it is never echoed back. Leniently handled — a value that isn't 8/12/13/14 digits is ignored (treated as null), not rejected.
Amazon ASIN — 10 uppercase alphanumeric characters. Used only for category resolution; it is never echoed back. Leniently handled — a value that isn't a valid ASIN is ignored (treated as null), not rejected.
Publicly accessible URL to the hero image (HTTP/HTTPS, jpeg/png/webp, ≤25 MB)
urilength <= 2048Ordered list of carousel image URLs. Responses return the carousel in Vizit's recommended order, where this order only breaks ties. Upsert is name-based: same filename as an existing image on this PDP → reuse; different filename → replace.
items <= 20Category UUID the PDP belongs to. Must be one returned by
List product categories —
if it doesn't exist or the organization lacks ICP access, the
request is rejected with CATEGORY_NOT_FOUND. Mutually exclusive with
external_category_id.
uuidYour own category identifier, resolved to a Vizit category on your
organization's behalf. Use instead of product_category_id when you
track categories under your own IDs. Mutually exclusive with
product_category_id.
length <= 1024Partner-side asset identifier for the hero image, echoed back as its
asset_id so you can correlate the scored image with your own asset
record. Omit it to keep the stored one; send null to clear it.
length <= 255Partner-side asset identifiers for the carousel images, positionally
aligned with carousel_image_urls and echoed back as each image's
asset_id. Must be empty or the same length as carousel_image_urls,
and entries other than null must be distinct. Omit it to keep the
stored ones, send null to clear them all, or use a null entry to
clear one image's.
items <= 20Optional product display name. Also enriches category resolution when an external_category_id label needs mapping.
Optional product description. Like name, it enriches category
resolution when an external_category_id label needs mapping. Used for
resolution only — it is never persisted or echoed back.
length <= 2048Retailer region identifier. Must be a value present in the
retailer_regions table. Defaults to amazon_us. Use us_composite_us
for a page you plan to list on another retailer: it is scored
against the US E-Commerce benchmark, and planned_retailer is required.
"amazon_us"Required when retailer is us_composite_us: the retailer you plan
to list the product on, as free text (up to 64 characters).
Surrounding spaces and invisible formatting characters such as
zero-width spaces are removed. A value that is blank after that
counts as missing, so it is rejected with PLANNED_RETAILER_REQUIRED
when retailer is us_composite_us.
Rejected with any other retailer. Control characters such as tab,
line feed and NUL, and < and >, are not allowed, and the value may
not start with =, +, - or @ once trimmed; any of these is
rejected with 422.
Names match ignoring case and surrounding spaces, so Costco and
costco address the same PDP, and an accented letter typed two
different ways, as in Café, counts as the same letter.
1 <= length <= 64Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://ext.vizit.com/v1/pdps/id/SKU-12345" \ -H "Content-Type: application/json" \ -d '{ "hero_image_url": "https://cdn.example.com/products/abc/hero.jpg" }'{ "id": "SKU-12345", "pdp_id": "2ed2d86b-85b6-49b8-bfaf-11ce19f11301", "category_match_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "category_match_name": "Fish Oil Supplements", "status": "PROCESSING", "error_code": "string", "planned_retailer": "Costco", "score_url": "/v1/pdps/id/SKU-12345?retailer=amazon_us"}{ "id": "SKU-12345", "pdp_id": "2ed2d86b-85b6-49b8-bfaf-11ce19f11301", "category_match_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "category_match_name": "Fish Oil Supplements", "status": "PROCESSING", "error_code": "string", "planned_retailer": "Costco", "score_url": "/v1/pdps/id/SKU-12345?retailer=amazon_us"}{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}GETRetrieve PDP scores by id
Returns the current scores and processing state for a PDP submitted via [Submit a PDP by id](/api/product-details/upsertPdpById). Poll until `status` reaches a terminal `COMPLETED` or `ERROR`. While `status` is `PROCESSING`, including during a rescore, the score fields are `null` until the new scores land. `score_method` tells you whether `pdp_score` is a `FORMULA` score, broken down in `score_breakdown`, or a `LEGACY` score. See [How the score is computed](/guides/how-the-score-is-computed) for how to read the breakdown. Use the optional `retailer` query parameter to disambiguate the same id submitted under different retailers. For a PDP submitted under `us_composite_us`, also pass the same `planned_retailer`. The `score_url` returned by the PUT already includes both. A planned retailer can be renamed in the Vizit app; after a rename, look the page up with the new `planned_retailer`.
GETRetrieve PDP scores by ASIN
Returns the current scores and processing state for a PDP submitted via [Submit a PDP by ASIN](/api/product-details/upsertPdpByAsin). Poll until `status` reaches a terminal `COMPLETED` or `ERROR`. While `status` is `PROCESSING`, including during a refresh, the score fields are `null` until the new scores land. `score_method` tells you whether `pdp_score` is a `FORMULA` score, broken down in `score_breakdown`, or a `LEGACY` score. See [How the score is computed](/guides/how-the-score-is-computed) for how to read the breakdown. Use the optional `region` query parameter to disambiguate between regional storefronts when the same ASIN has been ingested under multiple regions in your organization. The `score_url` returned by the PUT response already includes this parameter.