Skip to content

Fetch + parse a source definition without saving (first N products).

POST
/v1/admin/catalog/sources/preview
curl --request POST \
--url https://example.com/v1/admin/catalog/sources/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "audienceRules": [ { "audience": "men", "field": "brand", "value": "example" } ], "authHeaderName": "example", "authHeaderValue": "example", "defaultAudience": "men", "defaultCurrency": "example", "fieldMap": {}, "limit": 5, "type": "csv", "url": "example", "urlFilter": "example" }'
Media typeapplication/json
object
audienceRules
Array<object>
object
audience
required
string
Allowed values: men women unisex kids
field
required
string
Allowed values: brand category title
value
required

Brand name, or a word / phrase found in the title or category

string
authHeaderName
string
authHeaderValue
string
defaultAudience
string
Allowed values: men women unisex kids unknown
defaultCurrency
string
fieldMap
object
limit
number
default: 5 <= 20
type
required
string
Allowed values: csv google-shopping-xml json sitemap-jsonld
url
required
string
urlFilter
string