Vizit Public APIAPI
Product Details

Submit a PDP by Amazon ASIN

Trigger Vizit's scrape-and-score pipeline for an Amazon ASIN.

PUT/v1/pdps/asin/{asin}

Submitting an ASIN runs Vizit's standard Amazon scrape-and-score pipeline server-side: ASIN lookup and validation, category inference with ICP check, retailer scrape, image ingest, and scoring. Unlike Submit a PDP by id, the caller does not supply images or a category — both are derived from the scrape.

Upsert semantics. If a PDP already exists for this ASIN in your organization (and region), this call refreshes it — same behavior as the in-product "refresh" action. While it is PROCESSING, the score fields are null until the new scores land.

The response returns immediately with a score_url, normally with status: PROCESSING. Use Retrieve PDP scores by ASIN (with the same region) to watch the scores come in. Score availability is bounded by the scrape and scoring pipeline — expect tens of seconds for typical Amazon ASINs.

Common errors. INVALID_ASIN if the path parameter is not 10 uppercase alphanumeric characters; ASIN_NOT_FOUND_AT_RETAILER if Amazon does not return the listing; CATEGORY_NOT_IN_ORG_ICP if the scraped category is outside your organization's ICP; NO_VALID_CATEGORY if the retailer returned no usable category data.

Authorization

bearerAuth
Authorization<token>

Short-lived access token issued by Create a token. Send it on every request as Authorization: Bearer <token>.

In: header

Path Parameters

asin*string

Amazon Standard Identification Number — 10 characters, uppercase letters and digits only. Validated at the router; a mismatch returns 400 INVALID_ASIN before any retailer call is made.

Match^[A-Z0-9]{10}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

region?string

Amazon storefront region (e.g., us, uk, de, ca). Combined with amazon server-side to resolve the storefront. Unknown values return 400 INVALID_REGION.

Default"us"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://ext.vizit.com/v1/pdps/asin/B07XVTRJKX" \  -H "Content-Type: application/json" \  -d '{}'
{  "asin": "B07XVTRJKX",  "region": "us",  "pdp_id": "2ed2d86b-85b6-49b8-bfaf-11ce19f11301",  "status": "PROCESSING",  "score_url": "/v1/pdps/asin/B07XVTRJKX?region=us"}
{  "asin": "B07XVTRJKX",  "region": "us",  "pdp_id": "2ed2d86b-85b6-49b8-bfaf-11ce19f11301",  "status": "PROCESSING",  "score_url": "/v1/pdps/asin/B07XVTRJKX?region=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"}
Empty
{  "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"}
Empty
{  "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"}