POST

Get Or Create Brand


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves a brand by name, or creates a brand if one with the passed brandName doesn't exist.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Stores - all permissions
Manage Products
Brand write in v3 catalog
Manage v3 catalog
Product write in v3 catalog
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/stores/v3/brands/get-or-create

Body Params
brandNamestringRequiredminLength 1maxLength 50

Brand name to retrieve or create.


fieldsArray <string>maxItems 100

Fields to include in the response.

Supported values: ASSIGNED_PRODUCTS_COUNT

Response Object
brandBrand

Brand.

Get or Create a brand

Get an existing brand using GetOrCreate method. Response should also include the amount of products using this brand.

Request
cURL
Response
JSON
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?