Method: Tagalys.create_store

Defined in:
lib/tagalys.rb

.create_store(currencies, fields, tag_sets, sort_options) ⇒ Object



158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/tagalys.rb', line 158

def create_store(currencies, fields, tag_sets, sort_options)
  request_body = {
    identification: identification,
    stores: [
      {
        id: "1",
        label: "Store 1",
        currencies: currencies,
        fields: fields,
        tag_sets: tag_sets,
        sort_options: sort_options,
        locale: "en_US",
        timezone: "India/Kolkata",
        multi_currency_mode: "exchange_rate",
        products_count: 21532
      }
    ]
  }
  create_response = request_tagalys('/configuration', request_body)
end