Input objects
SetScxChannelAttributeSellerValuesCommandRequestInput
Replaces the attribute values with an attribute code that an SCX seller stored on channel level, i.e. the values of seller attributes and channel attributes. The list describes the values the seller has afterwards: an entry with an "Id" updates that value (a property that is not sent keeps its stored value), an entry without an "Id" creates a new value and needs a "ClientId", and a stored value that no entry names is deleted, so an empty list deletes all of them. The definition of an attribute code is looked up for the seller first, then for the channel; a code that only a category defines is unknown. Stored values whose attribute code has no definition any more are deleted as well, although the read operation never returns them; the call does not report them. Custom fields of the seller are not touched. The whole call is one unit: if any rule is violated nothing is written. The result lists all values with an attribute code that the seller has after the call, ordered like "QueryScxChannelAttributeSellerValues" without a requested sort order, read after the change was saved; a value whose entry sent a "ClientId" carries it, a created value together with its new "Id". The call has no concurrency protection: it writes the list as given, so a value that another client created in the meantime is deleted as well. A repeated call is not idempotent for created values: a retry sends no "Id" for a value that the lost first call created, so it deletes that value and creates a new one with a new "Id". A client that did not receive the result therefore reads the stored values ("QueryScxChannelAttributeSellerValues") before it repeats the call. A change that reaches the offers marks the offers of all items of the seller's shop for upload. A seller whose channel attribute definitions were never loaded is rejected (error code SCX_CHANNEL_ATTRIBUTE_DEFINITIONS_MISSING) before the list is checked, and nothing is written (a missing list is rejected even earlier, as a bad request before the command runs); refresh them first ("RefreshScxChannelAttributeDefinitions"). An invalid sales channel id is rejected as invalid (error code SALES_CHANNEL_ID_INVALID). A sales channel that does not exist, is deleted, is deactivated or is not an SCX seller, or an id whose channel part does not match the seller, is rejected as not found (error code SCX_SALES_CHANNEL_NOT_FOUND). Violated rules of the entries are all reported at once. The error carries the error code that all violations share, or SCX_VALIDATION_FAILED if they differ, and the violations grouped by field: the key is "entries[<index>].<field>" with the zero-based position of the entry in the list and the field in camelCase (for example "entries[2].value"), the value is a list of texts of the form "[id: <id>, clientId: <clientId>] <error code>: <message>", where the bracket part appears only if the entry carries an id or a client id and is not a machine-readable contract. The grouping is delivered in the same form on every API surface. - Request
input
SetScxChannelAttributeSellerValuesCommandRequestInputFields
salesChannelId
String!
required
Sales channel id of the SCX seller/account. Opaque, tenant-local composite identifier (not a UUID); use the id returned by "GET /v2/sales-channels".
attributeValues
required
The complete list of attribute values with an attribute code that the seller has afterwards. Required; an empty list deletes all of them.
Was this page helpful?