Shops

Creates a new shop.

post/v1/shops/create

Request

Request body multipart/form-data

namestring required
subdomainstring required

Must match the regex /^(?!-)[A-Za-z0-9-]+(?<!-)$/.

logostring binary nullable

Must be an image.

Example request

{
  "name": "consequatur",
  "subdomain": "!-)4<!-"
}

Response

The created shop

idinteger
namestring
subdomainstring
owner_idinteger

Example response

{
  "id": 1,
  "name": "My Shop",
  "subdomain": "my-shop",
  "owner_id": 1
}

Changes