POST:shops.json
Commerce APIPOST:shops.json

POST:shops.json

Description

Create a new shop.

Even though API takes array as body, creating only one shop at a time is allowed. API looks like that for consistency reasons.

Topic: Shops

Query Parameters

shop_id: String

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of ShopCreate

[
  {
    "app_domain": "apple",
    "currency": "USD",
    "entity_id": "",
    "language": "",
    "name": "Apple Computers",
    "notification_email": "john@smith.com",
    "plan_id": "Medium",
    "shop_address": {
      "address1": "Chestnut Street 92",
      "address2": "Apartment 2",
      "city": "Louisville",
      "company": "Google inc.",
      "country": "US",
      "id": "ad_EQzGqWoY",
      "name": "John Smith",
      "phone": "5556251199",
      "plus_code": "PQ7W+WM",
      "province": "KY",
      "zip": "40202"
    },
    "test": false
  }
]

Response Body

Array of Shop

Response Body Type

Loading module