GetStorefrontValidValues reads back the values SetStorefrontValidValues stored, so a storefront-scoped picker can offer them.
You call thisScope not enforced
GET
/v2/storefront/listing/valid_values
const url = 'https://api.zentail.com/v2/storefront/listing/valid_values';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.zentail.com/v2/storefront/listing/valid_values \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”accountId
string format: int64
storefrontId
string format: int64
specIds
Array<string>
Limits the read to these attribute specs. Empty returns every spec that has values stored for the storefront.
Responses
Section titled “ Responses ”A successful response.
Media typeapplication/json
GetStorefrontValidValuesResponse holds the stored valid values keyed by attribute spec id. A storefront that has never been synced returns an empty map rather than an error, and a spec with no stored values is absent.
object
specIdToValidValues
object
key
additional properties
ValidValues holds one attribute spec’s valid values.
object
validValues
Array<string>
Examplegenerated
{ "specIdToValidValues": { "additionalProperty": { "validValues": [ "example" ] } }}default
Section titled “default”An unexpected error response.
Media typeapplication/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
Examplegenerated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}