Skip to main content
POST
/
api
/
products
/
import-json-async
Import Json Async
curl --request POST \
  --url https://api.merchantops.ai/api/products/import-json-async \
  --header 'Content-Type: application/json' \
  --data '
{
  "gcs_url": "<string>",
  "enrich_product": true,
  "scrape_brand_site": true,
  "search_lakehouse": true,
  "validate": false
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "ctx": {},
      "input": "<unknown>"
    }
  ]
}

Headers

authorization
string | null
X-Organization-ID
string | null

Cookies

stytch_session
string | null

Body

application/json

Request model for async JSON product import (file already in GCS).

gcs_url
string
required

GCS URL of the uploaded JSON file (gs://...)

enrich_product
boolean
default:true

Run AI enrichment

scrape_brand_site
boolean
default:true

Scrape brand website during enrichment

search_lakehouse
boolean
default:true

Search product lakehouse for existing data

validate
boolean
default:false

Validate against ProductType

Response

Successful Response