Skip to content
Get started

Creates or updates stores.

StoreCreateStoresResponse Stores.CreateStores(StoreCreateStoresParams?parameters, CancellationTokencancellationToken = default)
POST/api/v2/public/stores

Creates or updates stores.

ParametersExpand Collapse
StoreCreateStoresParams parameters
Boolean flush

Query param: When true, removes existing stores before inserting.

IReadOnlyList<Store>? stores

Body param: The list of stores to create or update.

required Boolean IsActive
required Boolean IsActiveDataExchange
required Boolean IsWarehouse
required string StoreName

Display name of the store.

minLength1
required string StoreNumber

Unique store number identifier.

minLength1
string? Address
string? AreaDescription
string? AreaID
Long? AreaManagerUserID
formatint64
string? City
string? ContactDetails
string? CostCenter
string? CountryCode
string? CountryName
string? EslServerPath
IReadOnlyList<FreeField>? FreeFields
string? Key
Int SortOrder
formatint32
string? Value
string? IPRangeBegin
string? IPRangeEnd
string? LocalServerPath
IReadOnlyList<OpeningHour>? OpeningHours
string? Key
Int SortOrder
formatint32
string? Value
IReadOnlyList<OrderingSchema>? OrderingSchema
required Int Day
formatint32
required Int DeliveryOffset
formatint32
required DateTimeOffset Time
formatdate-time
string? CategoryCode
Int OrderingOffset
formatint32
string? WeekNumbers
string? PhoneNumber
string? PostalCode
Int? PriceLineID
formatint32
string? StoreGln
DateTimeOffset? StoreNextDeliveryDatetime
formatdate-time
DateTimeOffset? StoreNextOrderingDatetime
formatdate-time
IReadOnlyList<StorePrinter>? StorePrinters
required Boolean IsBluetooth
string? PrinterIP
string? PrinterName
string? PrinterSerial
Int PrinterType
formatint32
string? Vendor
string? StoreStockPool1
string? StoreStockPool10
string? StoreStockPool2
string? StoreStockPool3
string? StoreStockPool4
string? StoreStockPool5
string? StoreStockPool6
string? StoreStockPool7
string? StoreStockPool8
string? StoreStockPool9
string? StoreTypeCode
string? StoreTypeDescription
ReturnsExpand Collapse
class StoreCreateStoresResponse:

Standard success response returned by mutation endpoints.

string? Data

Optional data payload returned by the operation.

string? Message

Human-readable message describing the result.

Boolean Success

Indicates whether the operation completed successfully.

Creates or updates stores.

StoreCreateStoresParams parameters = new();

var response = await client.Stores.CreateStores(parameters);

Console.WriteLine(response);
{
  "data": "12345",
  "message": "Record created successfully.",
  "success": true
}
Returns Examples
{
  "data": "12345",
  "message": "Record created successfully.",
  "success": true
}