API

GET /api/api-versions Getting the list of available api versions

Getting the list of available api versions

Method allows to get all API-versions, which can be used on current account

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
versions array Available API versions

GET /api/credentials Getting the list of available api methods and stores for current key

Getting the list of available api methods and stores for current key

Method allows to get list of methods and information about access to stores for current API-key.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
credentials[] array of strings deprecated Available API methods
scopes[] array of strings Permissions allowed for the key
siteAccess string Stores access mode. Possible values:
access_full - access to all stores;
access_selective - access to a particular store.
Available stores are listed at field sitesAvailable
sitesAvailable[] array of strings Available stores

Cost

GET /api/v5/costs Getting of the cost list, adequate for the given filter

Getting of the cost list, adequate for the given filter

To access the method, the following permission is required cost_read.

The result is returned page by page. In the field pagination there is information on pagination.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (CostFilterData)
filter[ids][]array of integers Costs ID
filter[costItems][]array of strings Array of symbolic codes of costs items
filter[sites][]array of strings Array of symbolic codes of stores related with cost
filter[createdBy][]array of integers Array of users ID, which created the cost
filter[orderNumber]string{length: {max: 255}} Number of order related with cost
filter[costGroups][]array of strings Array of symbolic codes of costs groups
filter[users][]array of integers Array of users ID related with cost
filter[comment]string{length: {max: 1000}} Comment
filter[orderIds][]array of integers Array of order internal ID
filter[orderExternalIds][]array of strings Array of order external ID
filter[createdAtFrom]DateTimeY-m-d Cost creation date (from)
filter[createdAtTo]DateTimeY-m-d Cost creation date (to)
filter[dateFrom]DateTimeY-m-d Cost period (from)
filter[dateTo]DateTimeY-m-d Cost period (to)
filter[minSumm]integer Cost minimum sum
filter[maxSumm]integer Cost maximum sum

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
costs[] array of objects (Cost) Cost
costs[][currency] string Currency
costs[][source] object (SerializedSource) Customer source data
costs[][source][source] string Source
costs[][source][medium] string Medium
costs[][source][campaign] string Campaign
costs[][source][keyword] string Keyword
costs[][source][content] string Ad content
costs[][id] integer Cost ID
costs[][dateFrom] DateTime Date (from)
costs[][dateTo] DateTime Date (to)
costs[][summ] float Sum (in base currency)
costs[][costItem] string Cost item code
costs[][comment] string Comment
costs[][createdAt] DateTime Created at
costs[][createdBy] string User ID
costs[][order] object (Order) Order
costs[][order][id] integer Order ID
costs[][order][number] string Order number
costs[][order][externalId] string Order external ID
costs[][userId] integer User ID related with cost
costs[][sites][] array of strings Symbolic codes of stores, for which the expense is incurred

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/costs/create Creation of the cost

Creation of the cost

To access the method, the following permission is required cost_write.

When creating costs for attracting customers in fields cost[source][...] it`s possible to specify meanings of appropriate tags. Default meanings of tags will be taken from a cost item, whose character code is specified in field cost[costItem].

For specifying stores to which the cost will be attached it`s necessary to specify array of their character codes in field cost[sites][]. Cost will be created by default for all stores, which have access to API-key.

Cost can be bound with existing order only if the cost item has "Refers to the costs on orders" attribute. For this purpose it is necessary to set the value for one of the following field:

If the values of several fields are set, they will be processed in order specified above. Order search by externalId/number will be performed within the store specified in the site parameter.

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store. Is specified in case of relation to order by externalId or number
costobject (SerializedCost) The data about cost
cost[dateFrom]DateTime Date (from)
cost[dateTo]DateTime Date (to)
cost[summ]float Sum (in base currency)
cost[comment]string Comment
cost[costItem]string Cost item code
cost[order]object (SerializedEntityOrder) Order
cost[order][id]integer Order internal ID
cost[order][externalId]string Order external ID
cost[order][number]string Order number
cost[userId]integer ID of user related with cost
cost[sites]array Symbolic codes of stores, for which the expense is incurred
cost[source]object (SerializedSource) Customer source data
cost[source][source]string Source
cost[source][medium]string Medium
cost[source][campaign]string Campaign
cost[source][keyword]string Keyword
cost[source][content]string Ad content

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer ID of created cost

HTTP statuses

Status codeDescription
201
  • The new cost is successfully created
400
  • Error of cost creation

POST /api/v5/costs/delete Batch removing of costs

Batch removing of costs

To access the method, the following permission is required cost_write.

Method allows to remove batch up to 50 costs.

Parameters

ParameterTypeFormatDescription
ids[]array of integers Identifiers of removing costs

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
count integer Quantity of removed costs
notRemovedIds[] array of integers Identifiers of not removed costs

HTTP statuses

Status codeDescription
200
  • Costs have been successfully deleted
400
  • Error on batch removing of costs

POST /api/v5/costs/upload Batch loading of costs

Batch loading of costs

To access the method, the following permission is required cost_write.

Method allows to upload as packet up to 50 costs.

More detailed information on data format you can find in description of method /api/v*/costs/create.

When batch uploading costs for attracting customers in fields cost[][source][...] it`s possible to specify meanings of appropriate tags Default meanings of tags will be taken from a cost item, which character code is specified in the field costs[][costItem].

Parameters

ParameterTypeFormatDescription
costs[]array of objects (SerializedCost) The data about cost
costs[][dateFrom]DateTime Date (from)
costs[][dateTo]DateTime Date (to)
costs[][summ]float Sum (in base currency)
costs[][comment]string Comment
costs[][costItem]string Cost item code
costs[][order]object (SerializedEntityOrder) Order
costs[][order][id]integer Order internal ID
costs[][order][externalId]string Order external ID
costs[][order][number]string Order number
costs[][userId]integer ID of user related with cost
costs[][sites]array Symbolic codes of stores, for which the expense is incurred
costs[][source]object (SerializedSource) Customer source data
costs[][source][source]string Source
costs[][source][medium]string Medium
costs[][source][campaign]string Campaign
costs[][source][keyword]string Keyword
costs[][source][content]string Ad content

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
uploadedCosts[] array of integers Identifiers of uploaded costs

HTTP statuses

Status codeDescription
201
  • All costs were successfully uploaded
400
  • The array of costs isn't transferred or array of costs is too large
460
  • In load time there were errors. A part of costs isn't loaded

GET /api/v5/costs/{id} Getting of cost information

Getting of cost information

To access the method, the following permission is required cost_read.

Parameters

ParameterTypeFormatDescription
idstring Cost ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
cost object (Cost) Cost
cost[currency] string Currency
cost[source] object (SerializedSource) Customer source data
cost[source][source] string Source
cost[source][medium] string Medium
cost[source][campaign] string Campaign
cost[source][keyword] string Keyword
cost[source][content] string Ad content
cost[id] integer Cost ID
cost[dateFrom] DateTime Date (from)
cost[dateTo] DateTime Date (to)
cost[summ] float Sum (in base currency)
cost[costItem] string Cost item code
cost[comment] string Comment
cost[createdAt] DateTime Created at
cost[createdBy] string User ID
cost[order] object (Order) Order
cost[order][id] integer Order ID
cost[order][number] string Order number
cost[order][externalId] string Order external ID
cost[userId] integer User ID related with cost
cost[sites][] array of strings Symbolic codes of stores, for which the expense is incurred

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • Cost is not found

POST /api/v5/costs/{id}/delete Cost removing

Cost removing

To access the method, the following permission is required cost_write.

Parameters

ParameterTypeFormatDescription
idstring Cost ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The cost was successfully deleted
400
  • Error on cost removing
404
  • Cost is not found

POST /api/v5/costs/{id}/edit Cost editing

Cost editing

To access the method, the following permission is required cost_write.

When editing costs for attracting customers in fields cost[source][...] it`s possible to specify meanings of appropriate tags.

Cost can be bound with existing order only if the cost item has "Refers to the costs on orders" attribute. For this purpose it is necessary to set the value for one of the following field:

If the values of several fields are set, they will be processed in order specified above. Order search by externalId/number will be performed within the store specified in the site parameter.

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store. Is specified in case of relation to order by externalId or number
costobject (SerializedCost) The data about cost
cost[dateFrom]DateTime Date (from)
cost[dateTo]DateTime Date (to)
cost[summ]float Sum (in base currency)
cost[comment]string Comment
cost[costItem]string Cost item code
cost[order]object (SerializedEntityOrder) Order
cost[order][id]integer Order internal ID
cost[order][externalId]string Order external ID
cost[order][number]string Order number
cost[userId]integer ID of user related with cost
cost[sites]array Symbolic codes of stores, for which the expense is incurred
cost[source]object (SerializedSource) Customer source data
cost[source][source]string Source
cost[source][medium]string Medium
cost[source][campaign]string Campaign
cost[source][keyword]string Keyword
cost[source][content]string Ad content

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Cost ID

HTTP statuses

Status codeDescription
200
  • Data of the cost is successfully changed
400
  • Error of cost changing

Custom fields

GET /api/v5/custom-fields Getting the list of custom fields

Getting the list of custom fields

To access the method, the following permission is required custom_fields_read.

Parameters

ParameterTypeFormatDescription
limitchoice{not blank}[20|50|100|250]}
pagestring{not blank}{range: {>=1}}}
filterobject (CustomFieldFilter)
filter[name]string Name
filter[code]string Symbolic code
filter[type]string{choice of [boolean|date|datetime|dictionary|email|integer|multiselect_dictionary|numeric|string|text]} Field type
filter[viewMode]string{choice of [editable|miss|not_editable]} Field view in the form
filter[viewModeMobile]string{choice of [editable|miss|not_editable]} Field view in mobile application
filter[displayArea]string{choice of [address|customer|delivery|dimensions|empty|legal_details|main_data|payment|shipment]} Display area
filter[entity]string[customer|loyalty_account|order] Fields for the table
filter[inFilter]choice[0|1] Available in filter

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
customFields[] array of objects (CustomFieldApiDocModel)
customFields[][name] string Name
customFields[][code] string Symbolic code
customFields[][required] boolean Mandatory
customFields[][inFilter] boolean Available in filter
customFields[][inList] boolean Available in list
customFields[][inGroupActions] boolean Available in group actions
customFields[][type] string Field type
customFields[][entity] string Fields for the table
customFields[][default] string deprecated Default value
customFields[][ordering] integer Sorting
customFields[][displayArea] string Display area
customFields[][viewMode] string Field view in the form
customFields[][viewModeMobile] string Field view in mobile application
customFields[][dictionary] string Related dictionary
customFields[][defaultTyped] custom handler result for (mixed) Typed value by default

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/custom-fields/dictionaries Getting the list of custom directory

Getting the list of custom directory

To access the method, the following permission is required custom_fields_read.

Parameters

ParameterTypeFormatDescription
limitchoice{not blank}[20|50|100|250]}
pagestring{not blank}{range: {>=1}}}
filterobject (CustomDictionaryFilter)
filter[name]string Name
filter[code]string Symbolic code

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
customDictionaries[] array of objects (CustomDictionary) Directory
customDictionaries[][name] string Name
customDictionaries[][code] string Symbolic code
customDictionaries[][elements][] array of objects (SerializedCustomDictionaryElement) Directory element
customDictionaries[][elements][][name] string Name
customDictionaries[][elements][][code] string Symbolic code
customDictionaries[][elements][][ordering] integer Sorting

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/custom-fields/dictionaries/create Directory fields creation

Directory fields creation

To access the method, the following permission is required custom_fields_write.

customDictionary[code] field is specified only at directory creation.

customDictionary[elements][][name] field is mandatory.

customDictionary[elements][][ordering] field takes 50 value by default.

Parameters

ParameterTypeFormatDescription
customDictionaryobject (SerializedCustomDictionary)
customDictionary[name]string{not blank} Name
customDictionary[code]string{match: |^[a-z][\w_-]+$|} Symbolic code
customDictionary[elements][]array of objects (SerializedCustomDictionaryElement){not blank} Directory element
customDictionary[elements][][name]string Name
customDictionary[elements][][code]string Symbolic code
customDictionary[elements][][ordering]integer Sorting

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
code string Symbolic code

HTTP statuses

Status codeDescription
201
  • Directory has been successfully created
400
  • Error on query execution

GET /api/v5/custom-fields/dictionaries/{code} Getting information on directory

Getting information on directory

To access the method, the following permission is required custom_fields_read.

Parameters

ParameterTypeFormatDescription
codestring Symbolic code

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
customDictionary object (CustomDictionary) Directory
customDictionary[name] string Name
customDictionary[code] string Symbolic code
customDictionary[elements][] array of objects (SerializedCustomDictionaryElement) Directory element
customDictionary[elements][][name] string Name
customDictionary[elements][][code] string Symbolic code
customDictionary[elements][][ordering] integer Sorting

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • Directory not found

POST /api/v5/custom-fields/dictionaries/{code}/edit Directory fields editing

Directory fields editing

To access the method, the following permission is required custom_fields_write.

customDictionary[code] field is not editable.

customDictionary[elements][][name] field is mandatory.

customDictionary[elements][][ordering] field takes 50 value by default.

Parameters

ParameterTypeFormatDescription
customDictionaryobject (SerializedCustomDictionary)
customDictionary[name]string{not blank} Name
customDictionary[elements][]array of objects (SerializedCustomDictionaryElement){not blank} Directory element
customDictionary[elements][][name]string Name
customDictionary[elements][][code]string Symbolic code
customDictionary[elements][][ordering]integer Sorting

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
code string Symbolic code

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution
404
  • Directory not found

POST /api/v5/custom-fields/{entity}/create Custom fields creation

Custom fields creation

To access the method, the following permission is required custom_fields_write.

{entity}, customField[type], customField[code] fields are specified only at creation of custom field.

If customField[type] = dictionary, then customField[default] takes code element of the directory.

Available values of customField[displayArea] field depends on {entity}.

If {entity} = order, then customField[displayArea] field can take the following values:

If {entity} = customer, then customField[displayArea] field can take the following values:

If {entity} = customer_corporate, then customField[displayArea] field can take the following values:

If {entity} = company, then customField[displayArea] field can take the following values:

customField[required] field takes false value by default.

customField[inFilter] field takes true value by default.

customField[inList] field takes true value by default.

customField[inGroupActions] field takes false value by default.

customField[viewMode] field takes editable value by default.

customField[viewModeMobile] field takes editable value by default.

customField[ordering] field takes 50 value by default.

If customField[type] = dictionary, then customField[dictionary] field is mandatory and contains code of related directory. It is filled only at creation of custom field.

Parameters

ParameterTypeFormatDescription
customFieldobject (SerializedCustomFieldApiDocModel)
customField[name]string{not blank} Name
customField[type]string{not blank}[boolean|date|datetime|dictionary|email|integer|multiselect_dictionary|numeric|string|text]} Field type
customField[entity]choice{not blank}[customer|loyalty_account|order]} Fields for the table
customField[code]string{match: |^[a-z][\w_]+$|} Symbolic code
customField[ordering]integer{range: {>=0}} Sorting
customField[displayArea]string[address|customer|delivery|dimensions|legal_details|main_data|payment|shipment] Display area
customField[viewMode]string[editable|miss|not_editable] Field view in the form
customField[viewModeMobile]string[editable|miss|not_editable] Field view in mobile application
customField[required]boolean Mandatory
customField[inFilter]boolean Available in filter
customField[inList]boolean Available in list
customField[inGroupActions]boolean Available in group actions
customField[default]stringdeprecated Default value
customField[dictionary]string Related dictionary
customField[defaultTyped]custom handler result for (mixed) Typed value by default
entitystring Field for the table

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
code string Symbolic code

HTTP statuses

Status codeDescription
201
  • Custom field has been successfully created
400
  • Error on query execution

GET /api/v5/custom-fields/{entity}/{code} Getting information on custom fields

Getting information on custom fields

To access the method, the following permission is required custom_fields_read.

Parameters

ParameterTypeFormatDescription
codestring Symbolic code
entitystring Field for the table

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
customField object (CustomFieldApiDocModel)
customField[name] string Name
customField[code] string Symbolic code
customField[required] boolean Mandatory
customField[inFilter] boolean Available in filter
customField[inList] boolean Available in list
customField[inGroupActions] boolean Available in group actions
customField[type] string Field type
customField[entity] string Fields for the table
customField[default] string deprecated Default value
customField[ordering] integer Sorting
customField[displayArea] string Display area
customField[viewMode] string Field view in the form
customField[viewModeMobile] string Field view in mobile application
customField[dictionary] string Related dictionary
customField[defaultTyped] custom handler result for (mixed) Typed value by default

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • Custom field not found

POST /api/v5/custom-fields/{entity}/{code}/edit Custom fields editing

Custom fields editing

To access the method, the following permission is required custom_fields_write.

If customField[type] = dictionary, then customField[default] takes code element of the directory.

Available values of customField[displayArea] field depends on {entity}.

If {entity} = order, then customField[displayArea] field can take the following values:

If {entity} = customer, then customField[displayArea] field can take the following values:

If {entity} = customer_corporate, then customField[displayArea] field can take the following values:

If {entity} = company, then customField[displayArea] field can take the following values:

Parameters

ParameterTypeFormatDescription
customFieldobject (SerializedCustomFieldApiDocModel)
customField[name]string{not blank} Name
customField[ordering]integer{not blank}{range: {>=0}}} Sorting
customField[displayArea]string[address|customer|delivery|dimensions|legal_details|main_data|payment|shipment] Display area
customField[viewMode]string[editable|miss|not_editable] Field view in the form
customField[viewModeMobile]string[editable|miss|not_editable] Field view in mobile application
customField[required]boolean Mandatory
customField[inFilter]boolean Available in filter
customField[inList]boolean Available in list
customField[inGroupActions]boolean Available in group actions
customField[default]stringdeprecated Default value
customField[defaultTyped]custom handler result for (mixed) Typed value by default
entitystring Field for the table

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
code string Symbolic code

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution
404
  • Custom field not found

Customers

GET /api/v5/customers Getting the list of customers matched the specified filter

Getting the list of customers matched the specified filter

To access the method, the following permission is required customer_read.

The result is returned page by page. In the field pagination there is information on pagination.

In the filters filter[sourceName], filter[mediumName], filter[campaignName], filter[keywordName], filter[adContentName] the name of the elements are specified.

In the filter[managers][] filters the internal IDs of the system elements are specified.

In the filter[managerGroups] filter the symbol codes of the elements are specified.

The filter filter[discountCardNumber] is available, if the field "Discount card" in the "Loyalty" module is active.

In the following filters filter[ids][] and filter[externalIds][] the array of internal and external identifiers are passed.

Filter filter[classSegment] allows to get segments of customers RFM-analysis. There are available the following values: monetary[0..2]_recency[0..2]frequency[0..2]_recency[0..2]monetary[0..2]_frequency[0..2].

By filter filter[name] possible to search by customer name and phone.

With the help of the filter[customFields][] filter you can search by the custom fields value. For the "Data book" fields the symbol code of data book value is specified. For the "Date" and "Date-time" fields the date is specified in the Y-m-d format. For other field types exactly the value is specified.

For the Integer, Numeric, Date and Date-time custom fields the filtration is realized over the range, for other fields types — by the exact value. Filter name is the same as field symbol code. E.g.: for the Date field with the symbol code birth_date there are filters filter[customFields][birth_date][min] and filter[customFields][birth_date][max]. For the DataBook field with the symbol code quality there is multiple filter filter[customFields][quality][].

One of three values can be specified in filter[attachments]:

One of three values can be specified in the filter[tasksCounts]:

The filter[mgChannels] filter specifies an array of internal IDs of channels in the system. The filter selects customers with chats in the specified channels.

Filter customers by tags using filter[tags][] and filter[attachedTags][].

If filter[tags][] is applied, the system will return customers with all tags mentioned in the list. This means that the AND condition is used for filtering.

If filter[attachedTags][] is applied, the system will return customers for whom one of the tags mentioned in the list is an attached one. This means that the OR condition is used for filtering.

The values of filter[tags][] and filter[attachedTags][] should not be empty or have duplicates or tags with more than two consecutive spaces. Otherwise, a corresponding error will be shown for the request.

The fields personalDiscount, cumulativeDiscount and discountCardNumber are returned, if they are active in the "Loyalty" module settings.

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (CustomerFilterData)
filter[ids][]array of integers Array of customers ID
filter[externalIds][]array of strings Array of customers externalID
filter[name]string{length: {max: 255}} Customer
filter[city]string{length: {max: 255}} City
filter[region]string{length: {max: 255}} Region
filter[sites][]array of strings Stores
filter[managers][]array of integers Managers
filter[managerGroups][]array of strings Manager groups
filter[notes]string Notes
filter[vip]boolean VIP customer
filter[bad]boolean BAD customer
filter[discountCardNumber]string{length: {max: 255}} Discount card number
filter[attachments]integer[1|2|3] Attachments
filter[tasksCounts]integer[1|2|3] Tasks
filter[email]string{length: {max: 255}} E-mail
filter[contragentName]string{length: {max: 255}} Full name
filter[contragentTypes][]array of strings{choice of [enterpreneur|individual|legal-entity]} Contractor types
filter[contragentInn]string{match: /\d+/} VAT
filter[contragentKpp]string{match: /\d+/} IEC
filter[contragentBik]string{match: /\d+/} BIC
filter[contragentCorrAccount]string{match: /\d+/} Corresponding account
filter[contragentBankAccount]string{match: /\d+/} Bank account
filter[classSegment]string{match: /^(monetary|recency|frequency)[0-2]_(recency|frequency|monetary)[0-2]$/} Segment
filter[minOrdersCount]integer Orders count (from)
filter[maxOrdersCount]integer Orders count (to)
filter[minAverageSumm]integer Average items per cart (from)
filter[maxAverageSumm]integer Average items per cart (to)
filter[minTotalSumm]integer Total sum (from)
filter[maxTotalSumm]integer Total sum (to)
filter[minCostSumm]integer Amount of costs (from)
filter[maxCostSumm]integer Amount of costs (to)
filter[dateFrom]DateTimeY-m-d Registration date (from)
filter[dateTo]DateTimeY-m-d Registration date (to)
filter[firstOrderFrom]DateTimeY-m-d First order (from)
filter[firstOrderTo]DateTimeY-m-d First order (to)
filter[lastOrderFrom]DateTimeY-m-d First order (from)
filter[lastOrderTo]DateTimeY-m-d Last order (to)
filter[customFields]array Custom fields
filter[sex]string[female|female_with_presumable|male|male_with_presumable] Sex
filter[isContact]boolean The customer is a contact person
filter[subscriptions][]array of objects (CustomerFilterCustomerSubscriptionData) Filter by user subscriptions
filter[subscriptions][][channel]string Subscription category channel
filter[subscriptions][][subscription]string Subscription category code
filter[subscriptions][][subscribed]boolean Is user subscribed
filter[online]boolean Customer is online
filter[segment]string Segment
filter[commentary]string Operator comment
filter[browserId]string Device ID in Collector
filter[mgChannels][]array of integers Chat channels
filter[sourceName]string{length: {max: 255}} Source
filter[mediumName]string{length: {max: 255}} Medium
filter[campaignName]string{length: {max: 255}} Campaign
filter[keywordName]string Keyword
filter[adContentName]string Ad content
filter[tags][]array of strings Tags
filter[attachedTags][]array of strings List of attached tags (or)
filter[countries][]array of strings Countries
filter[abandonedCart]boolean
filter[emailMarketingUnsubscribed]booleandeprecated Unsubscribed from emails
filter[mgCustomerId]string MessageGateway Customer ID
filter[firstWebVisitFrom]DateTimeY-m-d First visit (from)
filter[firstWebVisitTo]DateTimeY-m-d First visit (to)
filter[lastWebVisitFrom]DateTimeY-m-d Last visit (from)
filter[lastWebVisitTo]DateTimeY-m-d Last visit (to)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
customers[] array of objects (Customer) Customer
customers[][type] string Customer type
customers[][id] integer Customer ID
customers[][externalId] string Customer external ID
customers[][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
customers[][createdAt] DateTime Created at
customers[][managerId] integer Customer manager
customers[][vip] boolean VIP customer
customers[][bad] boolean Bad customer
customers[][site] string Store, from which the customer came
customers[][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
customers[][contragent][contragentType] string Contragent type
customers[][contragent][legalName] string Legal name
customers[][contragent][legalAddress] string Registration address
customers[][contragent][INN] string TIN
customers[][contragent][OKPO] string RNNBO
customers[][contragent][KPP] string IECC
customers[][contragent][OGRN] string PSRN
customers[][contragent][OGRNIP] string PSRN of Individual entrepreneur
customers[][contragent][certificateNumber] string Certificate number
customers[][contragent][certificateDate] DateTime Certificate date
customers[][contragent][BIK] string RCBIC
customers[][contragent][bank] string Bank
customers[][contragent][bankAddress] string Bank address
customers[][contragent][corrAccount] string Corresponding account
customers[][contragent][bankAccount] string Settlement account
customers[][tags][] array of objects (CustomerTagLink) [array] Tags
customers[][tags][][color] string
customers[][tags][][name] string
customers[][tags][][colorCode] string
customers[][tags][][attached] boolean
customers[][firstClientId] string First Google Analytics clientId
customers[][lastClientId] string Last Google Analytics clientId
customers[][customFields] array Associative array of custom fields
customers[][personalDiscount] double Personal discount
customers[][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)
customers[][discountCardNumber] string Discount card number
customers[][avgMarginSumm] float Average gross profit of customer orders (in base currency)
customers[][marginSumm] float LTV (in base currency)
customers[][totalSumm] float Orders total sum (in base currency)
customers[][averageSumm] float Order average sum (in base currency)
customers[][ordersCount] integer Orders quantity
customers[][costSumm] float Amount of costs (in base currency)
customers[][address] object (CustomerAddress) Customer address
customers[][address][id] integer Address ID
customers[][address][index] string Postal code
customers[][address][countryIso] string Country ISO code
customers[][address][region] string Region
customers[][address][regionId] integer Region ID in Geohelper
customers[][address][city] string City
customers[][address][cityId] integer City ID in Geohelper
customers[][address][cityType] string Locality type
customers[][address][street] string Street
customers[][address][streetId] integer Street ID in Geohelper
customers[][address][streetType] string Street type
customers[][address][building] string Building
customers[][address][flat] string Flat/office
customers[][address][floor] integer Floor
customers[][address][block] integer Entrance
customers[][address][house] string House
customers[][address][housing] string Housing
customers[][address][metro] string Underground
customers[][address][notes] string Notes to address
customers[][address][text] string Address as string
customers[][address][externalId] string External ID
customers[][address][name] string Name
customers[][segments][] array of objects (Segment) [array] Segments
customers[][segments][][id] integer Internal ID of segment
customers[][segments][][code] string Symbolic code
customers[][segments][][name] string Segment name
customers[][segments][][createdAt] DateTime Segment creation date
customers[][segments][][isDynamic] boolean Is this segment dynamic
customers[][segments][][customersCount] integer Customer quantity in segment
customers[][segments][][active] boolean Activity state of segment
customers[][maturationTime] integer Maturation time, in seconds
customers[][firstName] string Name
customers[][lastName] string Surname
customers[][patronymic] string Middle name
customers[][sex] string Sex
customers[][presumableSex] string Guessed gender based on name
customers[][email] string E-mail
customers[][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
customers[][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
customers[][customerSubscriptions][][subscription] object (Subscription) Subscription category
customers[][customerSubscriptions][][subscription][id] integer Subscription category ID
customers[][customerSubscriptions][][subscription][channel] string Channel
customers[][customerSubscriptions][][subscription][name] string Name
customers[][customerSubscriptions][][subscription][code] string Symbolic code
customers[][customerSubscriptions][][subscription][active] boolean Activity status
customers[][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
customers[][customerSubscriptions][][subscription][ordering] integer
customers[][customerSubscriptions][][subscribed] boolean Subscription activity
customers[][customerSubscriptions][][changedAt] DateTime Activity flag change date
customers[][phones][] array of objects (CustomerPhone) Phone numbers
customers[][phones][][number] string Phone number
customers[][birthday] DateTime Birthday
customers[][source] object (SerializedSource) Customer source
customers[][source][source] string Source
customers[][source][medium] string Medium
customers[][source][campaign] string Campaign
customers[][source][keyword] string Keyword
customers[][source][content] string Ad content
customers[][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
customers[][mgCustomers][][id] integer Customer ID
customers[][mgCustomers][][externalId] integer External ID of the MessageGateway customer
customers[][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
customers[][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
customers[][mgCustomers][][mgChannel][id] integer ID of the channel
customers[][mgCustomers][][mgChannel][externalId] integer External ID of the channel
customers[][mgCustomers][][mgChannel][type] string Channel type
customers[][mgCustomers][][mgChannel][active] boolean Channel activity
customers[][mgCustomers][][mgChannel][name] string Channel name
customers[][photoUrl] string URL of photo

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/customers/combine Combining of customers

Combining of customers

To access the method, the following permission is required customer_write.

Allows to combine customers.

When conflict of fields, only resultCustomer customer data will be saved, other customers data by certain field will be removed. All phones will be added to resultCustomer customer. Customers from customers parameter will be irreversibly removed.

While combining of customers the related data will be combined.

Up to 50 customers can be combined at once.

The operation is performed asynchronously. The successful response success=true means that the operation will be executed but it hasn't been completed yet. The actual result of the operation can be tracked using the /api/v5/customers/history method for those customers that will be deleted when combining (history[][combinedTo] response parameter).

Parameters

ParameterTypeFormatDescription
resultCustomerobject (SerializedCustomerReference){not blank} Customer, in which the combining will be made
resultCustomer[id]integer{not blank}{range: {>=1, <=4294967295}}} Customer internal ID
customers[]array of objects (SerializedCustomerReference)
customers[][id]integer{not blank}{range: {>=1, <=4294967295}}} Customer internal ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/customers/create Customer creation

Customer creation

To access the method, the following permission is required customer_write.

Method creates the customer and returns internal ID of created customer.

If customer[createdAt] is not specified, then current time will be used as the date/time of customer creation.

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

The fields customer[personalDiscount] and customer[discountCardNumber] are received, if they are active in the "Loyalty" module settings.

You can pass the custom fields value array in the field customer[customFields]. For the "DataBook" fields the symbol code of value is specified in the data book. For the "Date" field the date in the format Y-m-d is specified. For other field types the exact value is specified.

The customer address customer[address] you can specify either in a string form in the customer[address][text] field or in a detailed view, filled all the fields except customer[address][text].

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store
customerobject (SerializedCustomer)
customer[externalId]string Customer external ID
customer[isContact]boolean The customer is a contact person (created as the contact person and has no orders)
customer[createdAt]DateTime Created at
customer[vip]boolean VIP customer
customer[bad]boolean Bad customer
customer[contragent]object (CustomerContragent)deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
customer[contragent][contragentType]string Contragent type
customer[contragent][legalName]string Legal name
customer[contragent][legalAddress]string Registration address
customer[contragent][INN]string TIN
customer[contragent][OKPO]string RNNBO
customer[contragent][KPP]string IECC
customer[contragent][OGRN]string PSRN
customer[contragent][OGRNIP]string PSRN of Individual entrepreneur
customer[contragent][certificateNumber]string Certificate number
customer[contragent][certificateDate]DateTime Certificate date
customer[contragent][BIK]string RCBIC
customer[contragent][bank]string Bank
customer[contragent][bankAddress]string Bank address
customer[contragent][corrAccount]string Corresponding account
customer[contragent][bankAccount]string Settlement account
customer[customFields]array Associative array of custom fields
customer[personalDiscount]double Personal discount
customer[discountCardNumber]string Discount card number
customer[address]object (CustomerAddress) Customer address
customer[address][index]string Postal code
customer[address][countryIso]string Country ISO code
customer[address][region]string Region
customer[address][regionId]integer Region ID in Geohelper
customer[address][city]string City
customer[address][cityId]integer City ID in Geohelper
customer[address][cityType]string Locality type
customer[address][street]string Street
customer[address][streetId]integer Street ID in Geohelper
customer[address][streetType]string Street type
customer[address][building]string Building
customer[address][flat]string Flat/office
customer[address][floor]integer Floor
customer[address][block]integer Entrance
customer[address][house]string House
customer[address][housing]string Housing
customer[address][metro]string Underground
customer[address][notes]string Notes to address
customer[address][text]string Address as string
customer[firstName]string Name
customer[lastName]string Surname
customer[patronymic]string Middle name
customer[email]string E-mail
customer[emailMarketingUnsubscribedAt]DateTimedeprecated Date of unsubscription from emails
customer[phones][]array of objects (CustomerPhone) Phone numbers
customer[phones][][number]string Phone number
customer[birthday]DateTime Birthday
customer[photoUrl]string URL of photo
customer[managerId]integer Customer manager
customer[sex]string Sex
customer[source]object (SerializedSource) Customer source
customer[source][source]string Source
customer[source][medium]string Medium
customer[source][campaign]string Campaign
customer[source][keyword]string Keyword
customer[source][content]string Ad content
customer[mgCustomerId]object (MGCustomer) MessageGateway customer ID
customer[subscribed]boolean The status of subscription to marketing mailings
customer[tags][]array of strings Tags to be set to customer
customer[attachedTag]string Attached tag
customer[browserId]string Device ID in Collector

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Internal ID of created customer

HTTP statuses

Status codeDescription
201
  • The customer is created
400
  • Error on customer creation

POST /api/v5/customers/fix-external-ids The mass recording of customers external ID

The mass recording of customers external ID

To access the method, the following permission is required customer_write.

This method is useful in case of reverse synchronization of customers, which were created in system initially.

The store requests customers created in system, and creates them in its own base. When creating of customers in store there are customers' own ID generated (externalId of customers in system notation). Immediately after customers creation the web-store calls method /api/v*/customers/fix-external-ids, keeping in system customers' own ID.

Parameters

ParameterTypeFormatDescription
customers[]array of objects (FixExternalRow) Uploaded objects IDs
customers[][id]integer{not blank}{range: {>=1, <=2147483647}}} Internal ID
customers[][externalId]string{not blank} External ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/customers/history Getting the customer change history

Getting the customer change history

To access the method, the following permission is required customer_read.

Returns the changes in customer data, which were made in the specified range of dates, or the set of incremental changes for carrying out the permanent synchronization

The result is returned per-page. In the field pagination there is an information about the pagination. To paginate through history records, it is necessary to use filter[sinceId]. It is not recommended to use the page parameter.

More information about the work with history you can find in other article.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (CustomerHistoryFilterV4Type)
filter[customerId]integer{range: {>=0, <=4294967295}} Customer ID
filter[sinceId]integer{range: {>=0, <=4294967295}} Starting with customers history ID
filter[customerExternalId]string{length: {max: 255}} Customer external ID
filter[startDate]DateTimeY-m-d H:i:s Start DateTime of change
filter[endDate]DateTimeY-m-d H:i:s End DateTime of change

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
generatedAt DateTime Time of response formation
history[] array of objects (CustomerHistory)
history[][id] integer Internal identifier of entry in the history
history[][createdAt] DateTime Date of making change
history[][created] boolean Notes that the entity is created
history[][deleted] boolean Notes that the entity is deleted
history[][source] string Date of making change
history[][user] object (User) User
history[][user][id] integer User ID
history[][field] string Name of changed field
history[][oldValue] custom handler result for (mixed) Old value of field
history[][newValue] custom handler result for (mixed) New value of field
history[][apiKey] object (ApiKey) Information about api key used for making this change
history[][apiKey][current] boolean The change was made with the api key currently in use
history[][apiKey][id] integer Api key ID
history[][customer] object (Customer) Customer
history[][customer][id] integer Customer ID
history[][customer][externalId] string Customer external ID
history[][customer][site] string Store, from which the customer came
history[][address] object (CustomerAddressWithIsMain) Customer address
history[][address][id] integer Customer address ID
history[][address][externalId] string External ID
history[][address][name] string Name
history[][address][isMain] boolean Customer address is main
history[][combinedTo] object (Customer) Information about the customer that was created after combining with the current customer
history[][subscription] object (Subscription) Subscription category
history[][subscription][channel] string Channel
history[][subscription][name] string Name
history[][subscription][code] string Symbolic code
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/customers/notes Getting the notes

Getting the notes

To access the method, the following permission is required customer_read.

The result is returned page by page. In the field pagination there is information on pagination.

The array of notes internal identifiers is being transferred in filter[ids][].

The arrays of customers internal and external identifiers is being transferred in filter[customerIds][] and filter[customerExternalIds][].

The array of managers internal identifiers is being transferred in filter[managerIds][].

filter[text] allows to get notes on partial coincidence of specified text.

filter[createdAtFrom] and filter[createdAtTo] allow to get notes created at specified time interval.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (CustomerNoteFilter)
filter[ids]array of integers Notes ID
filter[customerIds]array of integers Customers internal ID
filter[customerExternalIds]array of strings Customers external ID
filter[managerIds]array of integers Managers ID
filter[text]string Note text
filter[createdAtFrom]string Date/time of creation (from)
filter[createdAtTo]string Date/time of creation (to)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
notes[] array of objects (CustomerNote) Note
notes[][customer] object (SerializedEntityCustomer) Customer
notes[][customer][site] string Symbolic code of store
notes[][customer][id] integer Customer internal ID
notes[][customer][externalId] string Customer external ID
notes[][customer][type] string Customer type
notes[][managerId] integer Manager ID
notes[][id] integer Note ID
notes[][text] string Note text
notes[][createdAt] DateTime Date/time of creation

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/customers/notes/create Note creation

Note creation

To access the method, the following permission is required customer_write.

Method creates the note and returns its internal ID in case of success.

It is possible to specify manager internal ID, whom the note will be bound to, in the note[managerId] field.

It is necessary to specify the note content in the note[text] field. Text length must be not less than 1 symbol and not more than 2000 symbols. It is allowed to use HTML tags (p, a, ul, ol, strong, em, blockquote). When using HTML in text, it is important to follow the semantics and monitor the presence of closing tags, otherwise the system will give an error.

It is necessary to specify the customer, whom the note will be bound to, in the note[customer] field. It is possible to do, using internal note[customer][id] or external note[customer][externalId].

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store
noteobject (SerializedCustomerNote) Note
note[managerId]integer Manager internal ID
note[text]string Note text
note[customer]object (SerializedEntityCustomer) Customer
note[customer][id]integer Customer internal ID
note[customer][externalId]string Customer external ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Internal ID of created note

HTTP statuses

Status codeDescription
201
  • Note has been successfully created
400
  • Error on note creation

POST /api/v5/customers/notes/{id}/delete Note removing

Note removing

To access the method, the following permission is required customer_write.

Parameters

ParameterTypeFormatDescription
idinteger Note ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • Note has been successfully removed
404
  • Note not found

POST /api/v5/customers/upload Packet customers uploading

Packet customers uploading

To access the method, the following permission is required customer_write.

Method allows to upload as packet up to 50 customers.

More detailed information on data format you can find in description of method /api/v*/customers/create.

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store, which includes downloadable customers
customers[]array of objects (SerializedCustomer)
customers[][externalId]string Customer external ID
customers[][isContact]boolean The customer is a contact person (created as the contact person and has no orders)
customers[][createdAt]DateTime Created at
customers[][vip]boolean VIP customer
customers[][bad]boolean Bad customer
customers[][customFields]array Associative array of custom fields
customers[][personalDiscount]double Personal discount
customers[][discountCardNumber]string Discount card number
customers[][address]object (CustomerAddress) Customer address
customers[][address][index]string Postal code
customers[][address][countryIso]string Country ISO code
customers[][address][region]string Region
customers[][address][regionId]integer Region ID in Geohelper
customers[][address][city]string City
customers[][address][cityId]integer City ID in Geohelper
customers[][address][cityType]string Locality type
customers[][address][street]string Street
customers[][address][streetId]integer Street ID in Geohelper
customers[][address][streetType]string Street type
customers[][address][building]string Building
customers[][address][flat]string Flat/office
customers[][address][floor]integer Floor
customers[][address][block]integer Entrance
customers[][address][house]string House
customers[][address][housing]string Housing
customers[][address][metro]string Underground
customers[][address][notes]string Notes to address
customers[][address][text]string Address as string
customers[][firstName]string Name
customers[][lastName]string Surname
customers[][patronymic]string Middle name
customers[][email]string E-mail
customers[][emailMarketingUnsubscribedAt]DateTimedeprecated Date of unsubscription from emails
customers[][phones][]array of objects (CustomerPhone) Phone numbers
customers[][phones][][number]string Phone number
customers[][birthday]DateTime Birthday
customers[][photoUrl]string URL of photo
customers[][managerId]integer Customer manager
customers[][sex]string Sex
customers[][source]object (SerializedSource) Customer source
customers[][source][source]string Source
customers[][source][medium]string Medium
customers[][source][campaign]string Campaign
customers[][source][keyword]string Keyword
customers[][source][content]string Ad content
customers[][mgCustomerId]object (MGCustomer) MessageGateway customer ID
customers[][subscribed]boolean The status of subscription to marketing mailings
customers[][tags][]array of strings Tags to be set to customer
customers[][attachedTag]string Attached tag
customers[][browserId]string Device ID in Collector

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
uploadedCustomers[] array of objects (FixExternalRow) Uploaded objects IDs
uploadedCustomers[][id] integer Internal ID
uploadedCustomers[][externalId] string External ID
failedCustomers[] array of objects (EntityWithExternalId) Non-uploaded objects IDs
failedCustomers[][externalId] string External ID (if available)

HTTP statuses

Status codeDescription
201
  • All customers were successfully uploaded
400
  • Array of customers is not transmitted, or the array is too large
460
  • During uploading the errors occurred. The part of customers is not loaded (the response also contains an "errors" array)

GET /api/v5/customers/{externalId} Getting information on customer

Getting information on customer

To access the method, the following permission is required customer_read.

Method returns full information on the customer. You may refer to customer either by external customer ID (by=externalId), or by internal ID (by=id).

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

Empty fields without values are not returned.

In the managerId field the internal ID of system entity is returned.

The fields personalDiscount, cumulativeDiscount and discountCardNumber are returned, if they are active in the "Loyalty" module settings.

In the customFields field the value array of custom fields is returned. For the "DataBook" fields the symbol code of data book value is specified. For the date fields the date in the format Y-m-d is specified. For other field types the exact value is specified.

If the customer address was specified in the string form it will be returned to the customer[address][text]. If the address was specified in detailed view, there will be returned all delivery filled fields, and in the customer[address][text] there will be automatically generated textual representation of the address.

Parameters

ParameterTypeFormatDescription
externalIdstring Customer ID

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
site
DescriptionSymbolic code of store

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
customer object (Customer) Customer
customer[type] string Customer type
customer[id] integer Customer ID
customer[externalId] string Customer external ID
customer[isContact] boolean The customer is a contact person (created as the contact person and has no orders)
customer[createdAt] DateTime Created at
customer[managerId] integer Customer manager
customer[vip] boolean VIP customer
customer[bad] boolean Bad customer
customer[site] string Store, from which the customer came
customer[contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
customer[contragent][contragentType] string Contragent type
customer[contragent][legalName] string Legal name
customer[contragent][legalAddress] string Registration address
customer[contragent][INN] string TIN
customer[contragent][OKPO] string RNNBO
customer[contragent][KPP] string IECC
customer[contragent][OGRN] string PSRN
customer[contragent][OGRNIP] string PSRN of Individual entrepreneur
customer[contragent][certificateNumber] string Certificate number
customer[contragent][certificateDate] DateTime Certificate date
customer[contragent][BIK] string RCBIC
customer[contragent][bank] string Bank
customer[contragent][bankAddress] string Bank address
customer[contragent][corrAccount] string Corresponding account
customer[contragent][bankAccount] string Settlement account
customer[tags][] array of objects (CustomerTagLink) [array] Tags
customer[tags][][color] string
customer[tags][][name] string
customer[tags][][colorCode] string
customer[tags][][attached] boolean
customer[firstClientId] string First Google Analytics clientId
customer[lastClientId] string Last Google Analytics clientId
customer[customFields] array Associative array of custom fields
customer[personalDiscount] double Personal discount
customer[cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)
customer[discountCardNumber] string Discount card number
customer[avgMarginSumm] float Average gross profit of customer orders (in base currency)
customer[marginSumm] float LTV (in base currency)
customer[totalSumm] float Orders total sum (in base currency)
customer[averageSumm] float Order average sum (in base currency)
customer[ordersCount] integer Orders quantity
customer[costSumm] float Amount of costs (in base currency)
customer[address] object (CustomerAddress) Customer address
customer[address][id] integer Address ID
customer[address][index] string Postal code
customer[address][countryIso] string Country ISO code
customer[address][region] string Region
customer[address][regionId] integer Region ID in Geohelper
customer[address][city] string City
customer[address][cityId] integer City ID in Geohelper
customer[address][cityType] string Locality type
customer[address][street] string Street
customer[address][streetId] integer Street ID in Geohelper
customer[address][streetType] string Street type
customer[address][building] string Building
customer[address][flat] string Flat/office
customer[address][floor] integer Floor
customer[address][block] integer Entrance
customer[address][house] string House
customer[address][housing] string Housing
customer[address][metro] string Underground
customer[address][notes] string Notes to address
customer[address][text] string Address as string
customer[address][externalId] string External ID
customer[address][name] string Name
customer[segments][] array of objects (Segment) [array] Segments
customer[segments][][id] integer Internal ID of segment
customer[segments][][code] string Symbolic code
customer[segments][][name] string Segment name
customer[segments][][createdAt] DateTime Segment creation date
customer[segments][][isDynamic] boolean Is this segment dynamic
customer[segments][][customersCount] integer Customer quantity in segment
customer[segments][][active] boolean Activity state of segment
customer[maturationTime] integer Maturation time, in seconds
customer[firstName] string Name
customer[lastName] string Surname
customer[patronymic] string Middle name
customer[sex] string Sex
customer[presumableSex] string Guessed gender based on name
customer[email] string E-mail
customer[emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
customer[customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
customer[customerSubscriptions][][subscription] object (Subscription) Subscription category
customer[customerSubscriptions][][subscription][id] integer Subscription category ID
customer[customerSubscriptions][][subscription][channel] string Channel
customer[customerSubscriptions][][subscription][name] string Name
customer[customerSubscriptions][][subscription][code] string Symbolic code
customer[customerSubscriptions][][subscription][active] boolean Activity status
customer[customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
customer[customerSubscriptions][][subscription][ordering] integer
customer[customerSubscriptions][][subscribed] boolean Subscription activity
customer[customerSubscriptions][][changedAt] DateTime Activity flag change date
customer[phones][] array of objects (CustomerPhone) Phone numbers
customer[phones][][number] string Phone number
customer[birthday] DateTime Birthday
customer[source] object (SerializedSource) Customer source
customer[source][source] string Source
customer[source][medium] string Medium
customer[source][campaign] string Campaign
customer[source][keyword] string Keyword
customer[source][content] string Ad content
customer[mgCustomers][] array of objects (MGCustomer) MessageGateway customers
customer[mgCustomers][][id] integer Customer ID
customer[mgCustomers][][externalId] integer External ID of the MessageGateway customer
customer[mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
customer[mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
customer[mgCustomers][][mgChannel][id] integer ID of the channel
customer[mgCustomers][][mgChannel][externalId] integer External ID of the channel
customer[mgCustomers][][mgChannel][type] string Channel type
customer[mgCustomers][][mgChannel][active] boolean Channel activity
customer[mgCustomers][][mgChannel][name] string Channel name
customer[photoUrl] string URL of photo

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • Customer not found (if the customer was deleted as a result of a merge, the data of the target customer will be in the "combinedTo" field)

POST /api/v5/customers/{externalId}/edit Customer editing

Customer editing

To access the method, the following permission is required customer_write.

Method allows to edit the customer. You may refer to customer either by external customer ID (by=externalId), or by internal ID (by=id).

In case of trying to edit the removed customer, the system returns state=removed in the answer.

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

The fields customer[personalDiscount] and customer[discountCardNumber] are received, if they are active in the "Loyalty" module settings.

You can pass the custom fields value array in the field customer[customFields]. For the "DataBook" fields the symbol code of value is specified in the data book. For the "Date" field the date in the format Y-m-d is specified. For other field types the exact value is specified.

The customer address customer[address] you can specify either in a string form in the customer[address][text] field or in a detailed view, filled all the fields except customer[address][text].

The fields customer[addTags] and customer[removeTags] cannot be used together with the field customer[tags]. Values of these fields should be lowercase and should not contain whitespace characters other than regular whitespace and whitespaces at the beginning and end of the string.

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
sitestring Symbolic code of store
customerobject (SerializedCustomer)
customer[externalId]string Customer external ID
customer[isContact]boolean The customer is a contact person (created as the contact person and has no orders)
customer[createdAt]DateTime Created at
customer[vip]boolean VIP customer
customer[bad]boolean Bad customer
customer[contragent]object (CustomerContragent)deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
customer[contragent][contragentType]string Contragent type
customer[contragent][legalName]string Legal name
customer[contragent][legalAddress]string Registration address
customer[contragent][INN]string TIN
customer[contragent][OKPO]string RNNBO
customer[contragent][KPP]string IECC
customer[contragent][OGRN]string PSRN
customer[contragent][OGRNIP]string PSRN of Individual entrepreneur
customer[contragent][certificateNumber]string Certificate number
customer[contragent][certificateDate]DateTime Certificate date
customer[contragent][BIK]string RCBIC
customer[contragent][bank]string Bank
customer[contragent][bankAddress]string Bank address
customer[contragent][corrAccount]string Corresponding account
customer[contragent][bankAccount]string Settlement account
customer[customFields]array Associative array of custom fields
customer[personalDiscount]double Personal discount
customer[discountCardNumber]string Discount card number
customer[address]object (CustomerAddress) Customer address
customer[address][index]string Postal code
customer[address][countryIso]string Country ISO code
customer[address][region]string Region
customer[address][regionId]integer Region ID in Geohelper
customer[address][city]string City
customer[address][cityId]integer City ID in Geohelper
customer[address][cityType]string Locality type
customer[address][street]string Street
customer[address][streetId]integer Street ID in Geohelper
customer[address][streetType]string Street type
customer[address][building]string Building
customer[address][flat]string Flat/office
customer[address][floor]integer Floor
customer[address][block]integer Entrance
customer[address][house]string House
customer[address][housing]string Housing
customer[address][metro]string Underground
customer[address][notes]string Notes to address
customer[address][text]string Address as string
customer[firstName]string Name
customer[lastName]string Surname
customer[patronymic]string Middle name
customer[email]string E-mail
customer[emailMarketingUnsubscribedAt]DateTimedeprecated Date of unsubscription from emails
customer[phones][]array of objects (CustomerPhone) Phone numbers
customer[phones][][number]string Phone number
customer[birthday]DateTime Birthday
customer[photoUrl]string URL of photo
customer[managerId]integer Customer manager
customer[sex]string Sex
customer[source]object (SerializedSource) Customer source
customer[source][source]string Source
customer[source][medium]string Medium
customer[source][campaign]string Campaign
customer[source][keyword]string Keyword
customer[source][content]string Ad content
customer[mgCustomerId]object (MGCustomer) MessageGateway customer ID
customer[subscribed]boolean The status of subscription to marketing mailings
customer[addTags][]array of strings Tags to be added to customer
customer[removeTags][]array of strings Tags to be removed from customer
customer[tags][]array of strings Tags to be set to customer
customer[attachedTag]string Attached tag
customer[browserId]string Device ID in Collector

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Customer internal ID
state string Customer customer (not returned by default)

HTTP statuses

Status codeDescription
200
  • The customer was successfully changed
400
  • Error on customer editing

POST /api/v5/customers/{externalId}/subscriptions Subscribe/unsubscribe customer to mailings

Subscribe/unsubscribe customer to mailings

To access the method, the following permission is required customer_write.

Method allows to subscribe or unsubscribe the customer from the mailing list.

The array of customer's subscriptions is passed in the field customer[subscriptions].

If the field customer[subscriptions][][subscription] is not provided, a subscription or unsubscription is made for all subscription types to the channel customer[subscriptions][][channel].

The field customer[subscriptions][][messageId] is used to pass the identifier of the message from which the customer subscribed/unsubscribed. If this message is from a chat, the message identifier in MG is expected.

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
sitestring Symbolic code of store
subscriptions[]array of objects (SerializedSubscription)
subscriptions[][channel]string{not blank}[email|sms|waba]} Channel
subscriptions[][subscription]string Subscription category code
subscriptions[][active]boolean{not blank} Subscription status
subscriptions[][messageId]integer Unsubscribe message ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • Subscription status has been successfully changed
400
  • Error on subscription status changing

Corporate customers

GET /api/v5/customers-corporate Getting the list of corporate customers matched the specified filter

Getting the list of corporate customers matched the specified filter

To access the method, the following permission is required customer_read.

The result is returned page by page. In the field pagination there is information on pagination.

In the filter[managers][] filters the internal IDs of the system elements are specified.

In the filter[managerGroups] filter the symbol codes of the elements are specified.

The filter filter[discountCardNumber] is available, if the field "Discount card" in the "Loyalty" module is active.

In the following filters filter[ids][] and filter[externalIds][] the array of internal and external identifiers are passed.

By filter filter[name] possible to search by customer name and phone.

With the help of the filter[customFields][] filter you can search by the custom fields value. For the "Data book" fields the symbol code of data book value is specified. For the "Date" and "Date-time" fields the date is specified in the Y-m-d format. For other field types exactly the value is specified.

For the Integer, Numeric, Date and Date-time custom fields the filtration is realized over the range, for other fields types — by the exact value. Filter name is the same as field symbol code. E.g.: for the Date field with the symbol code birth_date there are filters filter[customFields][birth_date][min] and filter[customFields][birth_date][max]. For the DataBook field with the symbol code quality there is multiple filter filter[customFields][quality][].

One of three values can be specified in filter[attachments]:

One of three values can be specified in the filter[tasksCounts]:

The fields personalDiscount, cumulativeDiscount and discountCardNumber are returned, if they are active in the settings.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (CustomerCorporateApiFilterData)
filter[ids][]array of integers Array of customers ID
filter[externalIds][]array of strings Array of customers externalID
filter[name]string{length: {max: 255}} Customer
filter[city]string{length: {max: 255}} City
filter[region]string{length: {max: 255}} Region
filter[sites][]array of strings Stores
filter[managers][]array of integers Managers
filter[managerGroups][]array of strings Manager groups
filter[notes]string Notes
filter[vip]boolean VIP customer
filter[bad]boolean BAD customer
filter[discountCardNumber]string{length: {max: 255}} Discount card number
filter[attachments]integer[1|2|3] Attachments
filter[tasksCounts]integer[1|2|3] Tasks
filter[email]string{length: {max: 255}} Contact person e-mail
filter[contragentName]string{length: {max: 255}} Full name
filter[contragentTypes][]array of strings{choice of [enterpreneur|legal-entity]} Contractor types
filter[contragentInn]string{match: /\d+/} VAT
filter[contragentKpp]string{match: /\d+/} IEC
filter[contragentBik]string{match: /\d+/} BIC
filter[contragentCorrAccount]string{match: /\d+/} Corresponding account
filter[contragentBankAccount]string{match: /\d+/} Bank account
filter[classSegment]string{match: /^(monetary|recency|frequency)[0-2]_(recency|frequency|monetary)[0-2]$/} Segment
filter[minOrdersCount]integer Contar pedidos (desde)
filter[maxOrdersCount]integer Contar pedidos (hasta)
filter[minAverageSumm]integer Valor medio del pedido (AOV) (desde)
filter[maxAverageSumm]integer Valor medio del pedido (AOV) (hasta)
filter[minTotalSumm]integer Importe total (desde)
filter[maxTotalSumm]integer Importe total (hasta)
filter[minCostSumm]integer Importe de los gastos (desde)
filter[maxCostSumm]integer Importe de los gastos (hasta)
filter[dateFrom]DateTimeY-m-d Fecha de registro (desde)
filter[dateTo]DateTimeY-m-d Fecha de registro (hasta)
filter[firstOrderFrom]DateTimeY-m-d Primer pedido (desde)
filter[firstOrderTo]DateTimeY-m-d Primer pedido (hasta)
filter[lastOrderFrom]DateTimeY-m-d Último pedido (desde)
filter[lastOrderTo]DateTimeY-m-d Último pedido (hasta)
filter[customFields]array Custom fields
filter[nickName][]array of strings Name
filter[contactName]string Full name or phone number
filter[addressName]string Address name
filter[phone]string Contact phone number
filter[companyCustomFields]array
filter[contactIds][]array of integers Array of IDs of contact persons
filter[companyName]string Company

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
customersCorporate[] array of objects (CustomerCorporate) Corporate customer
customersCorporate[][type] string Customer type
customersCorporate[][id] integer Corporate customer ID
customersCorporate[][externalId] string Corporate customer external ID
customersCorporate[][mainAddress] object (EntityWithExternalIdNameOutput) Main corporate customer address
customersCorporate[][mainAddress][id] integer ID
customersCorporate[][mainAddress][externalId] string External ID
customersCorporate[][mainAddress][name] string Name
customersCorporate[][createdAt] DateTime Created at
customersCorporate[][managerId] integer Corporate customer manager
customersCorporate[][vip] boolean VIP corporate customer
customersCorporate[][bad] boolean Bad corporate customer
customersCorporate[][site] string Store, from which the corporate customer came
customersCorporate[][tags][] array of objects (CustomerTagLink) [array] Tags
customersCorporate[][tags][][color] string
customersCorporate[][tags][][name] string
customersCorporate[][tags][][colorCode] string
customersCorporate[][tags][][attached] boolean
customersCorporate[][firstClientId] string First Google Analytics unique clientId
customersCorporate[][lastClientId] string Last Google Analytics unique clientId
customersCorporate[][customFields] array Associative array of custom fields
customersCorporate[][personalDiscount] double Personal discount
customersCorporate[][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)
customersCorporate[][discountCardNumber] string Discount card number
customersCorporate[][avgMarginSumm] float Average gross profit of corporate customer orders (in base currency)
customersCorporate[][marginSumm] float LTV (in base currency)
customersCorporate[][totalSumm] float Orders total sum (in base currency)
customersCorporate[][averageSumm] float Order average sum (in base currency)
customersCorporate[][ordersCount] integer Orders quantity
customersCorporate[][costSumm] float Amount of costs (in base currency)
customersCorporate[][mainCustomerContact] object (CustomerContact) Main contact person
customersCorporate[][mainCustomerContact][id] integer Contact ID
customersCorporate[][mainCustomerContact][customer] object (SerializedRelationAbstractCustomer) Customer
customersCorporate[][mainCustomerContact][customer][id] integer Customer internal ID
customersCorporate[][mainCustomerContact][customer][externalId] string Customer external ID
customersCorporate[][mainCustomerContact][customer][browserId] string Device ID in Collector
customersCorporate[][mainCustomerContact][companies][] array of objects (CustomerContactCompany) Contact person`s company
customersCorporate[][mainCustomerContact][companies][][id] integer Company ID
customersCorporate[][mainCustomerContact][companies][][company] object (EntityWithExternalIdNameOutput) Company
customersCorporate[][mainCustomerContact][companies][][company][id] integer ID
customersCorporate[][mainCustomerContact][companies][][company][externalId] string External ID
customersCorporate[][mainCustomerContact][companies][][company][name] string Name
customersCorporate[][mainCompany] object (EntityWithExternalIdNameOutput) Main company
customersCorporate[][mainCompany][id] integer ID
customersCorporate[][mainCompany][externalId] string External ID
customersCorporate[][mainCompany][name] string Name
customersCorporate[][nickName] string Name

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/customers-corporate/combine Combining of corporate customers

Combining of corporate customers

To access the method, the following permission is required customer_write.

Allows to combine customers.

When conflict of fields, only resultCustomer customer data will be saved, other customers data by certain field will be removed. All addresses, companies and contact persons will be added to resultCustomer customer. Customers from customers parameter will be irreversibly removed.

While combining of customers the related data will be combined.

Up to 50 customers can be combined at once.

Parameters

ParameterTypeFormatDescription
customersarray of objects (SerializedCustomerReference)
customers[id]integer{not blank}{range: {>=1, <=4294967295}}} Customer internal ID
resultCustomerobject (SerializedCustomerReference){not blank} Customer, in which the combining will be made
resultCustomer[id]integer{not blank}{range: {>=1, <=4294967295}}} Customer internal ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/customers-corporate/create Corporate customer creation

Corporate customer creation

To access the method, the following permission is required customer_write.

Method creates the customer and returns internal ID of created customer.

If customerCorporate[createdAt] is not specified, then current time will be used as the date/time of customer creation.

externalId should be unique for customers and corporate customers within one store. To separate different types of customers, it is possible to add a prefix into a string (for example, use i123234 for the customer and l123234 for the corporate customer)

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

The fields customerCorporate[personalDiscount] and customerCorporate[discountCardNumber] are received, if they are active in the module settings.

You can pass the custom fields value array in the field customerCorporate[customFields]. For the "DataBook" fields the symbol code of value is specified in the data book. For the "Date" field the date in the format Y-m-d is specified. For other field types the exact value is specified.

The customer address customerCorporate[addresses] you can specify either in a string form in the customerCorporate[addresses][][text] field or in a detailed view, filled all the fields except customerCorporate[addresses][][text].

Parameters

ParameterTypeFormatDescription
customerCorporateobject (SerializedCustomerCorporate)
customerCorporate[externalId]string Corporate customer external ID
customerCorporate[createdAt]DateTimeY-m-d H:i:s Created at
customerCorporate[vip]boolean VIP corporate customer
customerCorporate[bad]boolean Bad corporate customer
customerCorporate[customFields]array Associative array of custom fields
customerCorporate[personalDiscount]double Personal discount
customerCorporate[discountCardNumber]string Discount card number
customerCorporate[nickName]string Name
customerCorporate[managerId]integer Corporate customer manager
customerCorporate[customerContacts][]array of objects (SerializedCustomerContact) Contact persons
customerCorporate[customerContacts][][isMain]boolean Contact person is main for customer
customerCorporate[customerContacts][][customer]object (SerializedRelationAbstractCustomer) Customer
customerCorporate[customerContacts][][customer][id]integer Customer internal ID
customerCorporate[customerContacts][][customer][externalId]string Customer external ID
customerCorporate[customerContacts][][customer][browserId]string Device ID in Collector
customerCorporate[customerContacts][][customer][site]string Store code, required when externalId is specified
customerCorporate[customerContacts][][companies][]array of objects (SerializedCustomerContactCompany) Contact person`s companies
customerCorporate[customerContacts][][companies][][company]object (EntityWithExternalIdInput) Company
customerCorporate[customerContacts][][companies][][company][id]integer ID
customerCorporate[customerContacts][][companies][][company][externalId]string External ID
customerCorporate[companies][]array of objects (SerializedCompany) Companies
customerCorporate[companies][][isMain]boolean The company is the main for the customer
customerCorporate[companies][][externalId]string Company external ID
customerCorporate[companies][][active]boolean Activity
customerCorporate[companies][][name]string Name
customerCorporate[companies][][brand]string Brand
customerCorporate[companies][][site]string Company website
customerCorporate[companies][][createdAt]DateTimeY-m-d H:i:s Creation date
customerCorporate[companies][][contragent]object (SerializedCompanyContragent) Requisites
customerCorporate[companies][][contragent][contragentType]string Contragent type
customerCorporate[companies][][contragent][legalName]string Legal name
customerCorporate[companies][][contragent][legalAddress]string Registration address
customerCorporate[companies][][contragent][INN]string TIN
customerCorporate[companies][][contragent][OKPO]string RNNBO
customerCorporate[companies][][contragent][KPP]string IECC
customerCorporate[companies][][contragent][OGRN]string PSRN
customerCorporate[companies][][contragent][OGRNIP]string PSRN of Individual entrepreneur
customerCorporate[companies][][contragent][certificateNumber]string Certificate number
customerCorporate[companies][][contragent][certificateDate]DateTimeY-m-d Certificate date
customerCorporate[companies][][contragent][BIK]string RCBIC
customerCorporate[companies][][contragent][bank]string Bank
customerCorporate[companies][][contragent][bankAddress]string Bank address
customerCorporate[companies][][contragent][corrAccount]string Corresponding account
customerCorporate[companies][][contragent][bankAccount]string Settlement account
customerCorporate[companies][][customFields]array Associative array of custom fields
customerCorporate[companies][][address]object (EntityWithExternalIdInput) Address
customerCorporate[companies][][address][id]integer ID
customerCorporate[companies][][address][externalId]string External ID
customerCorporate[addresses][]array of objects (CustomerAddress) Corporate customer addresses
customerCorporate[addresses][][id]integer Address ID
customerCorporate[addresses][][index]string Postal code
customerCorporate[addresses][][countryIso]string Country ISO code
customerCorporate[addresses][][region]string Region
customerCorporate[addresses][][regionId]integer Region ID in Geohelper
customerCorporate[addresses][][city]string City
customerCorporate[addresses][][cityId]integer City ID in Geohelper
customerCorporate[addresses][][cityType]string Locality type
customerCorporate[addresses][][street]string Street
customerCorporate[addresses][][streetId]integer Street ID in Geohelper
customerCorporate[addresses][][streetType]string Street type
customerCorporate[addresses][][building]string Building
customerCorporate[addresses][][flat]string Flat/office
customerCorporate[addresses][][floor]integer Floor
customerCorporate[addresses][][block]integer Entrance
customerCorporate[addresses][][house]string House
customerCorporate[addresses][][housing]string Housing
customerCorporate[addresses][][metro]string Underground
customerCorporate[addresses][][notes]string Notes to address
customerCorporate[addresses][][text]string Address as string
customerCorporate[addresses][][externalId]string External ID
customerCorporate[addresses][][name]string Name

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Internal ID of created customer

HTTP statuses

Status codeDescription
201
  • The customer is created
400
  • Error on customer creation

POST /api/v5/customers-corporate/fix-external-ids The mass recording of corporate customers external ID

The mass recording of corporate customers external ID

To access the method, the following permission is required customer_write.

This method is useful in case of reverse synchronization of customers, which were created in system initially.

The store requests customers created in system, and creates them in its own base. When creating of customers in store there are customers' own ID generated (externalId of customers in system notation). Immediately after customers creation the web-store calls method /api/v*/customers-corporate/fix-external-ids, keeping in system customers' own ID.

externalId should be unique for customers and corporate customers within one store. To separate different types of customers, it is possible to add a prefix into a string (for example, use i123234 for the customer and l123234 for the corporate customer)

Parameters

ParameterTypeFormatDescription
customersCorporate[]array of objects (FixExternalRow) Uploaded objects IDs
customersCorporate[][id]digit{not blank}{range: {>=1, <=2147483647}}} Internal ID
customersCorporate[][externalId]string{not blank} External ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/customers-corporate/history Getting the corporate customer change history

Getting the corporate customer change history

To access the method, the following permission is required customer_read.

Returns the changes in customer data, which were made in the specified range of dates, or the set of incremental changes for carrying out the permanent synchronization

The result is returned per-page. In the field pagination there is an information about the pagination. To paginate through history records, it is necessary to use filter[sinceId]. It is not recommended to use the page parameter.

More information about the work with history you can find in other article.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (CustomerHistoryFilterV4Type)
filter[customerId]integer{range: {>=0, <=4294967295}} Customer ID
filter[sinceId]integer{range: {>=0, <=4294967295}} Starting with customers history ID
filter[customerExternalId]string{length: {max: 255}} Customer external ID
filter[startDate]DateTimeY-m-d H:i:s Start DateTime of change
filter[endDate]DateTimeY-m-d H:i:s End DateTime of change

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
generatedAt DateTime Time of response formation
history[] array of objects (CustomerCorporateHistory) Corporate customer change
history[][id] integer Internal identifier of entry in the history
history[][createdAt] DateTime Date of making change
history[][created] boolean Notes that the entity is created
history[][deleted] boolean Notes that the entity is deleted
history[][source] string Date of making change
history[][user] object (User) User
history[][user][id] integer User ID
history[][field] string Name of changed field
history[][oldValue] custom handler result for (mixed) Old value of field
history[][newValue] custom handler result for (mixed) New value of field
history[][apiKey] object (ApiKey) Information about api key used for making this change
history[][apiKey][current] boolean The change was made with the api key currently in use
history[][apiKey][id] integer Api key ID
history[][customer] object (CustomerCorporate) Corporate customer
history[][customer][id] integer Corporate customer ID
history[][customer][externalId] string Corporate customer external ID
history[][customer][site] string Store, from which the corporate customer came
history[][address] object (CustomerAddressWithIsMain) Customer address
history[][address][id] integer Customer address ID
history[][address][externalId] string External ID
history[][address][name] string Name
history[][address][isMain] boolean Customer address is main
history[][combinedTo] object (CustomerCorporate) Information about the customer that was created after combining with the current customer
history[][subscription] object (Subscription) Subscription category
history[][subscription][channel] string Channel
history[][subscription][name] string Name
history[][subscription][code] string Symbolic code
history[][customerContact] object (CustomerContact) Contact person
history[][customerContact][id] integer Contact ID
history[][company] object (Company) Company
history[][company][id] integer Company ID
history[][company][externalId] string Company external ID
history[][company][name] string Name
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/customers-corporate/notes Getting the notes

Getting the notes

To access the method, the following permission is required customer_read.

The result is returned page by page. In the field pagination there is information on pagination.

The array of notes internal identifiers is being transferred in filter[ids][].

The arrays of customers internal and external identifiers is being transferred in filter[customerIds][] and filter[customerExternalIds][].

The array of managers internal identifiers is being transferred in filter[managerIds][].

filter[text] allows to get notes on partial coincidence of specified text.

filter[createdAtFrom] and filter[createdAtTo] allow to get notes created at specified time interval.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (CustomerNoteFilter)
filter[ids]array of integers Notes ID
filter[customerIds]array of integers Customers internal ID
filter[customerExternalIds]array of strings Customers external ID
filter[managerIds]array of integers Managers ID
filter[text]string Note text
filter[createdAtFrom]string Date/time of creation (from)
filter[createdAtTo]string Date/time of creation (to)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
notes[] array of objects (CustomerNote) Note
notes[][customer] object (SerializedEntityCustomer) Customer
notes[][customer][site] string Symbolic code of store
notes[][customer][id] integer Customer internal ID
notes[][customer][externalId] string Customer external ID
notes[][customer][type] string Customer type
notes[][managerId] integer Manager ID
notes[][id] integer Note ID
notes[][text] string Note text
notes[][createdAt] DateTime Date/time of creation

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/customers-corporate/notes/create Note creation

Note creation

To access the method, the following permission is required customer_write.

Method creates the note and returns its internal ID in case of success.

It is possible to specify manager internal ID, whom the note will be bound to, in the note[managerId] field.

It is necessary to specify the note content in the note[text] field. Text length must be not less than 1 symbol and not more than 2000 symbols. It is allowed to use HTML tags (p, a, ul, ol, strong, em, blockquote). When using HTML in text, it is important to follow the semantics and monitor the presence of closing tags, otherwise the system will give an error.

It is necessary to specify the customer, whom the note will be bound to, in the note[customer] field. It is possible to do, using internal note[customer][id] or external note[customer][externalId].

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store
noteobject (SerializedCustomerNote) Note
note[managerId]integer Manager internal ID
note[text]string Note text
note[customer]object (SerializedEntityCustomer) Customer
note[customer][id]integer Customer internal ID
note[customer][externalId]string Customer external ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Internal ID of created note

HTTP statuses

Status codeDescription
201
  • Note has been successfully created
400
  • Error on note creation

POST /api/v5/customers-corporate/notes/{id}/delete Note removing

Note removing

To access the method, the following permission is required customer_write.

Parameters

ParameterTypeFormatDescription
idinteger Note ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • Note has been successfully removed
404
  • Note not found

POST /api/v5/customers-corporate/upload Packet corporate customers uploading

Packet corporate customers uploading

To access the method, the following permission is required customer_write.

Method allows to upload as packet up to 50 customers.

More detailed information on data format you can find in description of method /api/v*/customers-corporate/create.

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store, which includes downloadable customers
customersCorporate[]array of objects (SerializedCustomerCorporate)
customersCorporate[][externalId]string Corporate customer external ID
customersCorporate[][createdAt]DateTimeY-m-d H:i:s Created at
customersCorporate[][vip]boolean VIP corporate customer
customersCorporate[][bad]boolean Bad corporate customer
customersCorporate[][customFields]array Associative array of custom fields
customersCorporate[][personalDiscount]double Personal discount
customersCorporate[][discountCardNumber]string Discount card number
customersCorporate[][nickName]string Name
customersCorporate[][managerId]integer Corporate customer manager
customersCorporate[][customerContacts][]array of objects (SerializedCustomerContact) Contact persons
customersCorporate[][customerContacts][][isMain]boolean Contact person is main for customer
customersCorporate[][customerContacts][][customer]object (SerializedRelationAbstractCustomer) Customer
customersCorporate[][customerContacts][][customer][id]integer Customer internal ID
customersCorporate[][customerContacts][][customer][externalId]string Customer external ID
customersCorporate[][customerContacts][][customer][browserId]string Device ID in Collector
customersCorporate[][customerContacts][][customer][site]string Store code, required when externalId is specified
customersCorporate[][customerContacts][][companies][]array of objects (SerializedCustomerContactCompany) Contact person`s companies
customersCorporate[][customerContacts][][companies][][company]object (EntityWithExternalIdInput) Company
customersCorporate[][customerContacts][][companies][][company][id]integer ID
customersCorporate[][customerContacts][][companies][][company][externalId]string External ID
customersCorporate[][companies][]array of objects (SerializedCompany) Companies
customersCorporate[][companies][][isMain]boolean The company is the main for the customer
customersCorporate[][companies][][externalId]string Company external ID
customersCorporate[][companies][][active]boolean Activity
customersCorporate[][companies][][name]string Name
customersCorporate[][companies][][brand]string Brand
customersCorporate[][companies][][site]string Company website
customersCorporate[][companies][][createdAt]DateTimeY-m-d H:i:s Creation date
customersCorporate[][companies][][contragent]object (SerializedCompanyContragent) Requisites
customersCorporate[][companies][][contragent][contragentType]string Contragent type
customersCorporate[][companies][][contragent][legalName]string Legal name
customersCorporate[][companies][][contragent][legalAddress]string Registration address
customersCorporate[][companies][][contragent][INN]string TIN
customersCorporate[][companies][][contragent][OKPO]string RNNBO
customersCorporate[][companies][][contragent][KPP]string IECC
customersCorporate[][companies][][contragent][OGRN]string PSRN
customersCorporate[][companies][][contragent][OGRNIP]string PSRN of Individual entrepreneur
customersCorporate[][companies][][contragent][certificateNumber]string Certificate number
customersCorporate[][companies][][contragent][certificateDate]DateTimeY-m-d Certificate date
customersCorporate[][companies][][contragent][BIK]string RCBIC
customersCorporate[][companies][][contragent][bank]string Bank
customersCorporate[][companies][][contragent][bankAddress]string Bank address
customersCorporate[][companies][][contragent][corrAccount]string Corresponding account
customersCorporate[][companies][][contragent][bankAccount]string Settlement account
customersCorporate[][companies][][customFields]array Associative array of custom fields
customersCorporate[][companies][][address]object (EntityWithExternalIdInput) Address
customersCorporate[][companies][][address][id]integer ID
customersCorporate[][companies][][address][externalId]string External ID
customersCorporate[][addresses][]array of objects (CustomerAddress) Corporate customer addresses
customersCorporate[][addresses][][id]integer Address ID
customersCorporate[][addresses][][index]string Postal code
customersCorporate[][addresses][][countryIso]string Country ISO code
customersCorporate[][addresses][][region]string Region
customersCorporate[][addresses][][regionId]integer Region ID in Geohelper
customersCorporate[][addresses][][city]string City
customersCorporate[][addresses][][cityId]integer City ID in Geohelper
customersCorporate[][addresses][][cityType]string Locality type
customersCorporate[][addresses][][street]string Street
customersCorporate[][addresses][][streetId]integer Street ID in Geohelper
customersCorporate[][addresses][][streetType]string Street type
customersCorporate[][addresses][][building]string Building
customersCorporate[][addresses][][flat]string Flat/office
customersCorporate[][addresses][][floor]integer Floor
customersCorporate[][addresses][][block]integer Entrance
customersCorporate[][addresses][][house]string House
customersCorporate[][addresses][][housing]string Housing
customersCorporate[][addresses][][metro]string Underground
customersCorporate[][addresses][][notes]string Notes to address
customersCorporate[][addresses][][text]string Address as string
customersCorporate[][addresses][][externalId]string External ID
customersCorporate[][addresses][][name]string Name

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
uploadedCustomers[] array of objects (FixExternalRow) Uploaded objects IDs
uploadedCustomers[][id] integer Internal ID
uploadedCustomers[][externalId] string External ID
failedCustomers[] array of objects (EntityWithExternalId) Non-uploaded objects IDs
failedCustomers[][externalId] string External ID (if available)

HTTP statuses

Status codeDescription
201
  • All customers were successfully uploaded
400
  • Array of customers is not transmitted, or the array is too large
460
  • During uploading the errors occurred. The part of customers is not loaded (the response also contains an "errors" array)

GET /api/v5/customers-corporate/{externalId} Getting information on corporate customer

Getting information on corporate customer

To access the method, the following permission is required customer_read.

Method returns full information on the customer. You may refer to customer either by external customer ID (by=externalId), or by internal ID (by=id).

Empty fields without values are not returned.

In the managerId field the internal ID of system entity is returned.

The fields personalDiscount, cumulativeDiscount and discountCardNumber are returned, if they are active in the "Loyalty" module settings.

In the customFields field the value array of custom fields is returned. For the "DataBook" fields the symbol code of data book value is specified. For the date fields the date in the format Y-m-d is specified. For other field types the exact value is specified.

Parameters

ParameterTypeFormatDescription
externalIdstring Customer ID

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
site
DescriptionSymbolic code of store

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
customerCorporate object (CustomerCorporate) Corporate customer
customerCorporate[type] string Customer type
customerCorporate[id] integer Corporate customer ID
customerCorporate[externalId] string Corporate customer external ID
customerCorporate[mainAddress] object (EntityWithExternalIdNameOutput) Main corporate customer address
customerCorporate[mainAddress][id] integer ID
customerCorporate[mainAddress][externalId] string External ID
customerCorporate[mainAddress][name] string Name
customerCorporate[createdAt] DateTime Created at
customerCorporate[managerId] integer Corporate customer manager
customerCorporate[vip] boolean VIP corporate customer
customerCorporate[bad] boolean Bad corporate customer
customerCorporate[site] string Store, from which the corporate customer came
customerCorporate[tags][] array of objects (CustomerTagLink) [array] Tags
customerCorporate[tags][][color] string
customerCorporate[tags][][name] string
customerCorporate[tags][][colorCode] string
customerCorporate[tags][][attached] boolean
customerCorporate[firstClientId] string First Google Analytics unique clientId
customerCorporate[lastClientId] string Last Google Analytics unique clientId
customerCorporate[customFields] array Associative array of custom fields
customerCorporate[personalDiscount] double Personal discount
customerCorporate[cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)
customerCorporate[discountCardNumber] string Discount card number
customerCorporate[avgMarginSumm] float Average gross profit of corporate customer orders (in base currency)
customerCorporate[marginSumm] float LTV (in base currency)
customerCorporate[totalSumm] float Orders total sum (in base currency)
customerCorporate[averageSumm] float Order average sum (in base currency)
customerCorporate[ordersCount] integer Orders quantity
customerCorporate[costSumm] float Amount of costs (in base currency)
customerCorporate[mainCustomerContact] object (CustomerContact) Main contact person
customerCorporate[mainCustomerContact][id] integer Contact ID
customerCorporate[mainCustomerContact][customer] object (SerializedRelationAbstractCustomer) Customer
customerCorporate[mainCustomerContact][customer][id] integer Customer internal ID
customerCorporate[mainCustomerContact][customer][externalId] string Customer external ID
customerCorporate[mainCustomerContact][customer][browserId] string Device ID in Collector
customerCorporate[mainCustomerContact][companies][] array of objects (CustomerContactCompany) Contact person`s company
customerCorporate[mainCustomerContact][companies][][id] integer Company ID
customerCorporate[mainCustomerContact][companies][][company] object (EntityWithExternalIdNameOutput) Company
customerCorporate[mainCustomerContact][companies][][company][id] integer ID
customerCorporate[mainCustomerContact][companies][][company][externalId] string External ID
customerCorporate[mainCustomerContact][companies][][company][name] string Name
customerCorporate[mainCompany] object (EntityWithExternalIdNameOutput) Main company
customerCorporate[mainCompany][id] integer ID
customerCorporate[mainCompany][externalId] string External ID
customerCorporate[mainCompany][name] string Name
customerCorporate[nickName] string Name

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • Customer not found

GET /api/v5/customers-corporate/{externalId}/addresses List of addresses for a corporate customer

List of addresses for a corporate customer

To access the method, the following permission is required customer_read.

The result is returned page by page. In the field pagination there is information on pagination.

You may refer to customer addresses either by external customer ID (by=externalId), or by internal ID (by=id).

If the customer address was specified in the string form it will be returned to the address[text]. If the address was specified in detailed view, there will be returned all delivery filled fields, and in the address[text] there will be automatically generated textual representation of the address.

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) ID. By default it is externalId.
sitestring Symbolic code of store. Is specified in case of handling by externalId (by=externalId)
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (CustomerAddressFilterData)
filter[ids]string
filter[name]string{length: {max: 255}}
filter[city]string{length: {max: 255}}
filter[region]string{length: {max: 255}}
externalIdstring Customer ID

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
site
DescriptionSymbolic code of store

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
addresses[] array of objects (CustomerAddress) Customer address
addresses[][id] integer Address ID
addresses[][index] string Postal code
addresses[][countryIso] string Country ISO code
addresses[][region] string Region
addresses[][regionId] integer Region ID in Geohelper
addresses[][city] string City
addresses[][cityId] integer City ID in Geohelper
addresses[][cityType] string Locality type
addresses[][street] string Street
addresses[][streetId] integer Street ID in Geohelper
addresses[][streetType] string Street type
addresses[][building] string Building
addresses[][flat] string Flat/office
addresses[][floor] integer Floor
addresses[][block] integer Entrance
addresses[][house] string House
addresses[][housing] string Housing
addresses[][metro] string Underground
addresses[][notes] string Notes to address
addresses[][text] string Address as string
addresses[][isMain] boolean The address is the main for the customer
addresses[][externalId] string External ID
addresses[][name] string Name

POST /api/v5/customers-corporate/{externalId}/addresses/create Creating an address for a corporate customer

Creating an address for a corporate customer

To access the method, the following permission is required customer_write.

The customer address address you can specify either in a string form in the address[text] field or in a detailed view, filled all the fields except address[text].

No more than 100 addresses can be created for a customer.

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) ID. By default it is externalId.
sitestring Symbolic code of store. Is specified in case of handling by externalId (by=externalId)
addressobject (SerializedCustomerAddress)
address[index]string Postal code
address[countryIso]string Country ISO code
address[region]string Region
address[regionId]integer Region ID in Geohelper
address[city]string City
address[cityId]integer City ID in Geohelper
address[cityType]string Locality type
address[street]string Street
address[streetId]integer Street ID in Geohelper
address[streetType]string Street type
address[building]string Building
address[flat]string Flat/office
address[floor]integer Floor
address[block]integer Entrance
address[house]string House
address[housing]string Housing
address[metro]string Underground
address[notes]string Notes to address
address[text]string Address as string
address[isMain]boolean The address is the main for the customer
address[externalId]string External ID
address[name]string Name

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer

POST /api/v5/customers-corporate/{externalId}/addresses/{entityExternalId}/edit Editing the address of the corporate customer

Editing the address of the corporate customer

To access the method, the following permission is required customer_write.

You may refer to customer addresses either by external customer ID (by=externalId), or by internal ID (by=id).

You may edit customer address (entityExternalId) either by external customer address ID (entityBy=externalId), or by internal ID (entityBy=id).

The customer address address you can specify either in a string form in the address[text] field or in a detailed view, filled all the fields except address[text].

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) ID. By default it is externalId.
sitestring Symbolic code of store. Is specified in case of handling by externalId (by=externalId, entityBy=externalId)
entityBystring Is specified what is transmitted in parameter entityExternalId: internal (entityBy=id) or external (entityBy=externalId) ID. By default it is externalId.
addressobject (SerializedCustomerAddress)
address[index]string Postal code
address[countryIso]string Country ISO code
address[region]string Region
address[regionId]integer Region ID in Geohelper
address[city]string City
address[cityId]integer City ID in Geohelper
address[cityType]string Locality type
address[street]string Street
address[streetId]integer Street ID in Geohelper
address[streetType]string Street type
address[building]string Building
address[flat]string Flat/office
address[floor]integer Floor
address[block]integer Entrance
address[house]string House
address[housing]string Housing
address[metro]string Underground
address[notes]string Notes to address
address[text]string Address as string
address[isMain]boolean The address is the main for the customer
address[externalId]string External ID
address[name]string Name

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer

GET /api/v5/customers-corporate/{externalId}/companies List of companies of a contact person

List of companies of a contact person

To access the method, the following permission is required customer_read.

The result is returned page by page. In the field pagination there is information on pagination.

You may refer to customer companies either by external customer ID (by=externalId), or by internal ID (by=id).

If the customer address was specified in the string form it will be returned to the address[text]. If the address was specified in detailed view, there will be returned all delivery filled fields, and in the address[text] there will be automatically generated textual representation of the address.

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) ID. By default it is externalId.
sitestring Symbolic code of store. Is specified in case of handling by externalId (by=externalId)
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (CompanyFilterData)
filter[ids]string Array of companies IDs
externalIdstring Customer ID

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
site
DescriptionSymbolic code of store

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
companies[] array of objects (Company) Company
companies[][isMain] boolean The company is the main for the customer
companies[][id] integer Company ID
companies[][externalId] string Company external ID
companies[][customer] object (SerializedEntityCustomer) Customer
companies[][customer][site] string Symbolic code of store
companies[][customer][id] integer Customer internal ID
companies[][customer][externalId] string Customer external ID
companies[][customer][type] string Customer type
companies[][active] boolean Activity
companies[][name] string Name
companies[][brand] string Brand
companies[][site] string Company website
companies[][createdAt] DateTime Creation date
companies[][contragent] object (CompanyContragent) Requisites
companies[][contragent][contragentType] string Contragent type
companies[][contragent][legalName] string Legal name
companies[][contragent][legalAddress] string Registration address
companies[][contragent][INN] string TIN
companies[][contragent][OKPO] string RNNBO
companies[][contragent][KPP] string IECC
companies[][contragent][OGRN] string PSRN
companies[][contragent][OGRNIP] string PSRN of Individual entrepreneur
companies[][contragent][certificateNumber] string Certificate number
companies[][contragent][certificateDate] DateTime Certificate date
companies[][contragent][BIK] string RCBIC
companies[][contragent][bank] string Bank
companies[][contragent][bankAddress] string Bank address
companies[][contragent][corrAccount] string Corresponding account
companies[][contragent][bankAccount] string Settlement account
companies[][address] object (CustomerAddress) Address
companies[][address][id] integer Address ID
companies[][address][index] string Postal code
companies[][address][countryIso] string Country ISO code
companies[][address][region] string Region
companies[][address][regionId] integer Region ID in Geohelper
companies[][address][city] string City
companies[][address][cityId] integer City ID in Geohelper
companies[][address][cityType] string Locality type
companies[][address][street] string Street
companies[][address][streetId] integer Street ID in Geohelper
companies[][address][streetType] string Street type
companies[][address][building] string Building
companies[][address][flat] string Flat/office
companies[][address][floor] integer Floor
companies[][address][block] integer Entrance
companies[][address][house] string House
companies[][address][housing] string Housing
companies[][address][metro] string Underground
companies[][address][notes] string Notes to address
companies[][address][text] string Address as string
companies[][address][externalId] string External ID
companies[][address][name] string Name
companies[][avgMarginSumm] float Average gross profit of customer orders (in base currency)
companies[][marginSumm] float LTV (in base currency)
companies[][totalSumm] float Orders total sum (in base currency)
companies[][averageSumm] float Order average sum (in base currency)
companies[][costSumm] float Amount of costs (in base currency)
companies[][ordersCount] integer Orders quantity
companies[][customFields] array Associative array of custom fields

POST /api/v5/customers-corporate/{externalId}/companies/create Creating a company for a corporate customer

Creating a company for a corporate customer

To access the method, the following permission is required customer_write.

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

You can pass the custom fields value array in the field company[customFields]. For the "DataBook" fields the symbol code of value is specified in the data book. For the "Date" field the date in the format Y-m-d is specified. For other field types the exact value is specified.

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) ID. By default it is externalId.
sitestring Symbolic code of store. Is specified in case of handling by externalId (by=externalId)
companyobject (SerializedCompany)
company[isMain]boolean The company is the main for the customer
company[externalId]string Company external ID
company[active]boolean Activity
company[name]string Name
company[brand]string Brand
company[site]string Company website
company[createdAt]DateTimeY-m-d H:i:s Creation date
company[contragent]object (SerializedCompanyContragent) Requisites
company[contragent][contragentType]string Contragent type
company[contragent][legalName]string Legal name
company[contragent][legalAddress]string Registration address
company[contragent][INN]string TIN
company[contragent][OKPO]string RNNBO
company[contragent][KPP]string IECC
company[contragent][OGRN]string PSRN
company[contragent][OGRNIP]string PSRN of Individual entrepreneur
company[contragent][certificateNumber]string Certificate number
company[contragent][certificateDate]DateTimeY-m-d Certificate date
company[contragent][BIK]string RCBIC
company[contragent][bank]string Bank
company[contragent][bankAddress]string Bank address
company[contragent][corrAccount]string Corresponding account
company[contragent][bankAccount]string Settlement account
company[customFields]array Associative array of custom fields
company[address]object (EntityWithExternalIdInput) Address
company[address][id]integer ID
company[address][externalId]string External ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer

POST /api/v5/customers-corporate/{externalId}/companies/{entityExternalId}/edit Editing the company of the corporate customer

Editing the company of the corporate customer

To access the method, the following permission is required customer_write.

You may refer to customer companies either by external customer ID (by=externalId), or by internal ID (by=id).

You may edit customer company (entityExternalId) either by external customer company ID (entityBy=externalId), or by internal ID (entityBy=id).

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

You can pass the custom fields value array in the field company[customFields]. For the "DataBook" fields the symbol code of value is specified in the data book. For the "Date" field the date in the format Y-m-d is specified. For other field types the exact value is specified.

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) ID. By default it is externalId.
sitestring Symbolic code of store. Is specified in case of handling by externalId (by=externalId, entityBy=externalId)
entityBystring Is specified what is transmitted in parameter entityExternalId: internal (entityBy=id) or external (entityBy=externalId) ID. By default it is externalId.
companyobject (SerializedCompany)
company[isMain]boolean The company is the main for the customer
company[externalId]string Company external ID
company[active]boolean Activity
company[name]string Name
company[brand]string Brand
company[site]string Company website
company[createdAt]DateTimeY-m-d H:i:s Creation date
company[contragent]object (SerializedCompanyContragent) Requisites
company[contragent][contragentType]string Contragent type
company[contragent][legalName]string Legal name
company[contragent][legalAddress]string Registration address
company[contragent][INN]string TIN
company[contragent][OKPO]string RNNBO
company[contragent][KPP]string IECC
company[contragent][OGRN]string PSRN
company[contragent][OGRNIP]string PSRN of Individual entrepreneur
company[contragent][certificateNumber]string Certificate number
company[contragent][certificateDate]DateTimeY-m-d Certificate date
company[contragent][BIK]string RCBIC
company[contragent][bank]string Bank
company[contragent][bankAddress]string Bank address
company[contragent][corrAccount]string Corresponding account
company[contragent][bankAccount]string Settlement account
company[customFields]array Associative array of custom fields
company[address]object (EntityWithExternalIdInput) Address
company[address][id]integer ID
company[address][externalId]string External ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer

GET /api/v5/customers-corporate/{externalId}/contacts List of contact persons of the corporate customer

List of contact persons of the corporate customer

To access the method, the following permission is required customer_read.

The result is returned page by page. In the field pagination there is information on pagination.

You may refer to customer contact person either by external customer ID (by=externalId), or by internal ID (by=id).

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) ID. By default it is externalId.
sitestring Symbolic code of store. Is specified in case of handling by externalId (by=externalId)
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (CustomerContactFilterData)
filter[ids]string Array of contact persons IDs
externalIdstring Customer ID

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
site
DescriptionSymbolic code of store

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
contacts[] array of objects (CustomerContact) Contact person
contacts[][isMain] boolean
contacts[][id] integer Contact ID
contacts[][customer] object (SerializedRelationAbstractCustomer) Customer
contacts[][customer][id] integer Customer internal ID
contacts[][customer][externalId] string Customer external ID
contacts[][customer][browserId] string Device ID in Collector
contacts[][customer][site] string Store code, required when externalId is specified
contacts[][companies][] array of objects (CustomerContactCompany) Contact person`s company
contacts[][companies][][id] integer Company ID
contacts[][companies][][company] object (EntityWithExternalIdNameOutput) Company
contacts[][companies][][company][id] integer ID
contacts[][companies][][company][externalId] string External ID
contacts[][companies][][company][name] string Name

POST /api/v5/customers-corporate/{externalId}/contacts/create Creating a link between a corporate customer and a contact person

Creating a link between a corporate customer and a contact person

To access the method, the following permission is required customer_write.

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) ID. By default it is externalId.
sitestring Symbolic code of store. Is specified in case of handling by externalId (by=externalId)
contactobject (SerializedCustomerContact)
contact[isMain]boolean Contact person is main for customer
contact[customer]object (SerializedRelationAbstractCustomer) Customer
contact[customer][id]integer Customer internal ID
contact[customer][externalId]string Customer external ID
contact[customer][browserId]string Device ID in Collector
contact[customer][site]string Store code, required when externalId is specified
contact[companies][]array of objects (SerializedCustomerContactCompany) Contact person`s companies
contact[companies][][company]object (EntityWithExternalIdInput) Company
contact[companies][][company][id]integer ID
contact[companies][][company][externalId]string External ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer

POST /api/v5/customers-corporate/{externalId}/contacts/{entityExternalId}/edit Editing the link between the corporate customer and the contact person

Editing the link between the corporate customer and the contact person

To access the method, the following permission is required customer_write.

You may refer to customer contact person either by external customer ID (by=externalId), or by internal ID (by=id).

You may edit customer contact person (entityExternalId) either by external customer contact person ID (entityBy=externalId), or by internal ID (entityBy=id).

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) ID. By default it is externalId.
sitestring Symbolic code of store. Is specified in case of handling by externalId (by=externalId, entityBy=externalId)
entityBystring Is specified what is transmitted in parameter entityExternalId: internal (entityBy=id) or external (entityBy=externalId) ID. By default it is externalId.
contactobject (SerializedCustomerContact)
contact[isMain]boolean Contact person is main for customer
contact[companies][]array of objects (SerializedCustomerContactCompany) Contact person`s companies
contact[companies][][company]object (EntityWithExternalIdInput) Company
contact[companies][][company][id]integer ID
contact[companies][][company][externalId]string External ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer

POST /api/v5/customers-corporate/{externalId}/edit Corporate customer editing

Corporate customer editing

To access the method, the following permission is required customer_write.

Method allows to edit the customer.

In case of trying to edit the removed customer, the system returns state=removed in the answer.

The fields customer[personalDiscount] and customer[discountCardNumber] are received, if they are active in the "Loyalty" module settings.

You can pass the custom fields value array in the field customer[customFields]. For the "DataBook" fields the symbol code of value is specified in the data book. For the "Date" field the date in the format Y-m-d is specified. For other field types the exact value is specified.

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) ID. By default it is externalId.
sitestring Symbolic code of store. Is specified in case of handling by externalId (by=externalId)
customerCorporateobject (SerializedCustomerCorporate)
customerCorporate[externalId]string Corporate customer external ID
customerCorporate[createdAt]DateTimeY-m-d H:i:s Created at
customerCorporate[vip]boolean VIP corporate customer
customerCorporate[bad]boolean Bad corporate customer
customerCorporate[customFields]array Associative array of custom fields
customerCorporate[personalDiscount]double Personal discount
customerCorporate[discountCardNumber]string Discount card number
customerCorporate[nickName]string Name
customerCorporate[managerId]integer Corporate customer manager

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Customer internal ID
state string Customer customer (not returned by default)

HTTP statuses

Status codeDescription
200
  • The customer was successfully changed
400
  • Error on customer editing

Customer actions on the site of the store

POST /api/v5/customer-interaction/{site}/cart/clear Cleaning the current cart of the customer

Cleaning the current cart of the customer

To access the method, the following permission is required customer_interaction_write.

In the {site} parameter you can transfer either the symbol code of the store or the store ID. The symbol code will be used by default. To use the store ID you also have to transfer the siteBy=id parameter.

If an order is created from the cart, it is passed to this method

Parameters

ParameterTypeFormatDescription
cartobject (SerializedCart) Cart
cart[clearedAt]DateTimeY-m-d H:i:sP Date/time when the cart was cleared
cart[customer]object (SerializedRelationAbstractCustomerWithGa)
cart[customer][id]integer Customer internal ID
cart[customer][externalId]string Customer external ID
cart[customer][browserId]string Device ID in Collector
cart[customer][gaClientId]string Google Analytics clientId
cart[order]object (SerializedRelationOrder) Order created from cart
cart[order][id]integer Order internal ID
cart[order][externalId]string Order external ID
cart[order][number]string Order number

Filter parameters

ParameterDescription
siteBy
Templateid|code
Default valuecode
DescriptionIs specified what is transmitted in parameter site: internal ID (siteBy=id) or code (siteBy=code) of a store. By default it is code.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The cart was successfully cleared
400
  • Error of cart clearing

POST /api/v5/customer-interaction/{site}/cart/set Creating or overwriting cart data

Creating or overwriting cart data

To access the method, the following permission is required customer_interaction_write.

In the {site} parameter you can transfer either the symbol code of the store or the store ID. The symbol code will be used by default. To use the store ID you also have to transfer the siteBy=id parameter.

If the store's customer has a shopping cart with the empty value for clearedAt, the request will overwrite the cart data. Otherwise, a new cart will be created

Parameters

ParameterTypeFormatDescription
cartobject (SerializedCart) Cart
cart[externalId]string External cart ID
cart[droppedAt]DateTimeY-m-d H:i:sP Date/time when the cart was dropped
cart[link]string Link
cart[customer]object (SerializedRelationAbstractCustomerWithGa)
cart[customer][id]integer Customer internal ID
cart[customer][externalId]string Customer external ID
cart[customer][browserId]string Device ID in Collector
cart[customer][site]string Store code, required when externalId is specified
cart[customer][gaClientId]string Google Analytics clientId
cart[items][]array of objects (SerializedCartItem) Products in the cart
cart[items][][quantity]float Quantity
cart[items][][price]float Price (in entity currency)
cart[items][][offer]object (SerializedRelationOffer) SKU
cart[items][][offer][id]integer Offer internal ID
cart[items][][offer][externalId]string Offer external ID
cart[items][][offer][xmlId]string Offer ID in the warehouse system

Filter parameters

ParameterDescription
siteBy
Templateid|code
Default valuecode
DescriptionIs specified what is transmitted in parameter site: internal ID (siteBy=id) or code (siteBy=code) of a store. By default it is code.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The cart was successfully changed
201
  • The cart is successfully created
400
  • Error of cart creation

GET /api/v5/customer-interaction/{site}/cart/{customerId} Getting the current cart of the customer

Getting the current cart of the customer

To access the method, the following permission is required customer_interaction_read.

In the {site} parameter you can transfer either the symbol code of the store or the store ID. The symbol code will be used by default. To use the store ID you also have to transfer the siteBy=id parameter.

Parameters

ParameterTypeFormatDescription
customerIdstring Customer ID

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter customerId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
siteBy
Templateid|code
Default valuecode
DescriptionIs specified what is transmitted in parameter site: internal ID (siteBy=id) or code (siteBy=code) of a store. By default it is code.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
cart object (Cart) Cart
cart[currency] string Currency
cart[externalId] string External cart ID
cart[droppedAt] DateTime Date/time when the cart was dropped
cart[clearedAt] DateTime Date/time when the cart was cleared
cart[link] string Link to the cart
cart[items][] array of objects (CartItem) Products in the cart
cart[items][][id] integer Cart element ID
cart[items][][offer] object (Offer) SKU
cart[items][][offer][displayName] string SKU name
cart[items][][offer][id] integer SKU ID
cart[items][][offer][externalId] string SKU ID in store
cart[items][][offer][xmlId] string SKU ID in the warehouse system
cart[items][][offer][name] string Name
cart[items][][offer][article] string Vendor code
cart[items][][offer][vatRate] string VAT rate
cart[items][][offer][properties][] array SKU properties
cart[items][][offer][unit] object (Unit) Unit
cart[items][][offer][unit][code] string Unit symbolic code
cart[items][][offer][unit][name] string Unit name
cart[items][][offer][unit][sym] string Unit short name
cart[items][][offer][barcode] string Barcode
cart[items][][quantity] float Quantity
cart[items][][price] float Price (in entity currency)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • Cart not found

GET /api/v5/customer-interaction/{site}/favorites/{customerId} Getting a list of favorites for the customer

Getting a list of favorites for the customer

To access the method, the following permission is required customer_interaction_read.

In the {site} parameter you can transfer either the symbol code of the store or the store ID. The symbol code will be used by default. To use the store ID you also have to transfer the siteBy=id parameter.

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter customerId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
siteBy
Templateid|code
Default valuecode
DescriptionIs specified what is transmitted in parameter site: internal ID (siteBy=id) or code (siteBy=code) of a store. By default it is code.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
favorites[] array of objects (CustomerOffer)
favorites[][offer] object (Offer) SKU
favorites[][offer][displayName] string SKU name
favorites[][offer][id] integer SKU ID
favorites[][offer][externalId] string SKU ID in store
favorites[][offer][xmlId] string SKU ID in the warehouse system
favorites[][offer][name] string Name
favorites[][offer][article] string Vendor code
favorites[][offer][vatRate] string VAT rate
favorites[][offer][properties][] array SKU properties
favorites[][offer][unit] object (Unit) Unit
favorites[][offer][unit][code] string Unit symbolic code
favorites[][offer][unit][name] string Unit name
favorites[][offer][unit][sym] string Unit short name
favorites[][offer][barcode] string Barcode
favorites[][createdAt] DateTime Date of adding to the list of favorites

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • List of favorites not found

POST /api/v5/customer-interaction/{site}/favorites/{customerId}/add Adding a product offer to the customer's list of favorites

Adding a product offer to the customer's list of favorites

To access the method, the following permission is required customer_interaction_write.

In the {site} parameter you can transfer either the symbol code of the store or the store ID. The symbol code will be used by default. To use the store ID you also have to transfer the siteBy=id parameter.

If the product offer is already in the list of favorites, a successful response success=true is returned.

The maximum number of product offers in the list of favorites is 1000. When adding a new product offer in excess of the specified limit, an unsuccessful response success=false is returned.

Parameters

ParameterTypeFormatDescription
favoriteobject (SerializedFavorite)
favorite[offer]object (SerializedRelationOffer) Offer
favorite[offer][id]integer Offer internal ID
favorite[offer][externalId]string Offer external ID
favorite[offer][xmlId]string Offer ID in the warehouse system

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter customerId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
siteBy
Templateid|code
Default valuecode
DescriptionIs specified what is transmitted in parameter site: internal ID (siteBy=id) or code (siteBy=code) of a store. By default it is code.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • List of favorites successfully changed
400
  • Error modifying the list of favorites

POST /api/v5/customer-interaction/{site}/favorites/{customerId}/remove Deleting a product offer from the customer's list of favorites

Deleting a product offer from the customer's list of favorites

To access the method, the following permission is required customer_interaction_write.

In the {site} parameter you can transfer either the symbol code of the store or the store ID. The symbol code will be used by default. To use the store ID you also have to transfer the siteBy=id parameter.

If the product offer is not in the list of favorites, a successful response is returned success=true.

Parameters

ParameterTypeFormatDescription
favoriteobject (SerializedFavorite)
favorite[offer]object (SerializedRelationOffer) Offer
favorite[offer][id]integer Offer internal ID
favorite[offer][externalId]string Offer external ID
favorite[offer][xmlId]string Offer ID in the warehouse system

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter customerId: internal (by=id) or external (by=externalId) customer ID. By default it is externalId.
siteBy
Templateid|code
Default valuecode
DescriptionIs specified what is transmitted in parameter site: internal ID (siteBy=id) or code (siteBy=code) of a store. By default it is code.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • List of favorites successfully changed
400
  • Error modifying the list of favorites

Deliveries

POST /api/v5/delivery/calculate Calculation of the delivery cost

Calculation of the delivery cost

The method calculates the delivery cost for the selected delivery types (deliveryTypeCodes).

Parameters

ParameterTypeFormatDescription
deliveryTypeCodes[]array of strings Codes of delivery types
orderobject (SerializedOrder)
order[weight]double Weight
order[length]integer Length
order[width]integer Width
order[height]integer Height
order[items][]array of objects (SerializedOrderProduct)
order[items][][initialPrice]double Item price/SKU (in entity currency)
order[items][][discountManualAmount]double Monetary discount per item (in entity currency)
order[items][][discountManualPercent]double Percentage discount per item
order[items][][quantity]float Quantity
order[delivery]object (SerializedOrderDelivery) Data on delivery
order[delivery][date]DateTimeY-m-d Delivery date
order[delivery][time]object (TimeInterval) Information on time range
order[delivery][time][from]DateTimeH:i Time "from"
order[delivery][time][to]DateTimeH:i Time "to"
order[delivery][time][custom]string Time range in free form
order[delivery][address]object (OrderDeliveryAddress) Address
order[delivery][address][index]string Postal code
order[delivery][address][countryIso]string Country ISO code
order[delivery][address][region]string Region
order[delivery][address][regionId]integer Region ID in Geohelper
order[delivery][address][city]string City
order[delivery][address][cityId]integer City ID in Geohelper
order[delivery][address][cityType]string Locality type
order[delivery][address][street]string Street
order[delivery][address][streetId]integer Street ID in Geohelper
order[delivery][address][streetType]string Street type
order[delivery][address][building]string Building
order[delivery][address][flat]string Flat/office
order[delivery][address][floor]integer Floor
order[delivery][address][block]integer Entrance
order[delivery][address][house]string House
order[delivery][address][housing]string Housing
order[delivery][address][metro]string Underground

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
calculations[] array of objects (DeliveryCalculation)
calculations[][code] string Delivery type code
calculations[][available] boolean The delivery type corresponds to the specified conditions
calculations[][vatRate] string VAT rate
calculations[][cost] double Cost

POST /api/v5/delivery/generic/{subcode}/tracking Updating of delivery statuses

Updating of delivery statuses

Method allows to transmit statuses separately for each order at the moment of status change or transmit the history of changes for orders group in definite intervals at the discretion of delivery service

Important: Per one request it is possible to update statuses not more than for 100 orders. When transferring a larger number of orders, the method will return error message.

Parameters

ParameterTypeFormatDescription
statusUpdate[]array of objects (RequestStatusUpdateItem) JSON with data of order statuses
statusUpdate[][deliveryId]string Delivery ID in delivery service
statusUpdate[][trackNumber]string Track number (if option configuration[allowTrackNumber] is enabled)
statusUpdate[][cost]double Delivery Cost
statusUpdate[][history][]array of objects (StatusInfo) History of delivery status changes
statusUpdate[][history][][code]string Delivery status code
statusUpdate[][history][][updatedAt]DateTimeY-m-d\TH:i:sP Date of the last status updating
statusUpdate[][history][][comment]string Comment to the status
statusUpdate[][extraData][]array of strings Array of additional delivery data (deliveryDataField.code => value)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

GET /api/v5/delivery/shipments Getting the list of shipments to delivery services

Getting the list of shipments to delivery services

To access the method, the following permission is required delivery_read.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (DeliveryShipmentFilterData)
filter[ids][]array of integers Array of shipment's ID
filter[externalId]string External ID
filter[orderNumber]string{length: {max: 255}} Order numbre in shipment
filter[deliveryTypes][]array of strings Delivery types
filter[managers][]array of integers Managers
filter[stores][]array of strings Warehouses
filter[statuses][]array of strings Statuses
filter[dateFrom]DateTimeY-m-d Shipment date (from)
filter[dateTo]DateTimeY-m-d Shipment date (to)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
deliveryShipments[] array of objects (DeliveryShipment) Shipment to delivery service
deliveryShipments[][integrationCode] string Integration code
deliveryShipments[][id] integer Shipment id
deliveryShipments[][externalId] string Shipment id in delivery service
deliveryShipments[][deliveryType] string Delivery type
deliveryShipments[][store] string Warehouse of shipment
deliveryShipments[][managerId] integer Manager responsible for shipping
deliveryShipments[][status] string Shipment status (Available values created, processing, shipped, cancelled)
deliveryShipments[][date] DateTime Shipment date
deliveryShipments[][time] object (TimeInterval) Shipment time
deliveryShipments[][time][from] DateTime Time "from"
deliveryShipments[][time][to] DateTime Time "to"
deliveryShipments[][time][custom] string Time range in free form
deliveryShipments[][comment] string Comment
deliveryShipments[][orders][] array of objects (SerializedEntityOrder) Shipping orders
deliveryShipments[][orders][][id] integer Order internal ID
deliveryShipments[][orders][][externalId] string Order external ID
deliveryShipments[][orders][][number] string Order number

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/delivery/shipments/create Shipment creation

Shipment creation

To access the method, the following permission is required delivery_write.

The set of fields depends on delivery type.

Parameters

ParameterTypeFormatDescription
deliveryTypestring Delivery type
sitestring Symbolic code of store (it should be specified when an orders isn shipment are specified via externalId or number)
deliveryShipmentobject (DeliveryShipment) Shipment to delivery service
deliveryShipment[status]string Shipment status (Available values created, processing, shipped, cancelled)
deliveryShipment[date]DateTime Shipment date
deliveryShipment[time]object (TimeInterval) Shipment time
deliveryShipment[time][from]DateTime Time "from"
deliveryShipment[time][to]DateTime Time "to"
deliveryShipment[time][custom]string Time range in free form
deliveryShipment[comment]string Comment
deliveryShipment[store]string Warehouse of shipment
deliveryShipment[managerId]integer Manager responsible for shipping
deliveryShipment[orders][]array of objects (SerializedEntityOrder) Shipping orders
deliveryShipment[orders][][id]integer Order internal ID
deliveryShipment[orders][][externalId]string Order external ID
deliveryShipment[orders][][number]string Order number
deliveryShipment[extraData]array Additional shipment data (shipmentDataField.code => value) (is specified in case of shipment for delivery type, integrated with delivery services, connected by API)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Shipment id
status string Shipment status

GET /api/v5/delivery/shipments/{id} Getting information on shipment

Getting information on shipment

To access the method, the following permission is required delivery_read.

The set of fields depends on delivery type.

Parameters

ParameterTypeFormatDescription
idstring Shipment id

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
deliveryShipment object (DeliveryShipment) Shipment to delivery service
deliveryShipment[integrationCode] string Integration code
deliveryShipment[id] integer Shipment id
deliveryShipment[externalId] string Shipment id in delivery service
deliveryShipment[deliveryType] string Delivery type
deliveryShipment[store] string Warehouse of shipment
deliveryShipment[managerId] integer Manager responsible for shipping
deliveryShipment[status] string Shipment status (Available values created, processing, shipped, cancelled)
deliveryShipment[date] DateTime Shipment date
deliveryShipment[time] object (TimeInterval) Shipment time
deliveryShipment[time][from] DateTime Time "from"
deliveryShipment[time][to] DateTime Time "to"
deliveryShipment[time][custom] string Time range in free form
deliveryShipment[comment] string Comment
deliveryShipment[orders][] array of objects (SerializedEntityOrder) Shipping orders
deliveryShipment[orders][][id] integer Order internal ID
deliveryShipment[orders][][externalId] string Order external ID
deliveryShipment[orders][][number] string Order number
deliveryShipment[extraData] array Additional shipment data (shipmentDataField.code => value) (is specified in case of shipment for delivery type, integrated with delivery services, connected by API)

POST /api/v5/delivery/shipments/{id}/edit Shipment editing

Shipment editing

To access the method, the following permission is required delivery_write.

Shipment editing is available only for shipments in created status

The set of fields depends on delivery type.

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store (it should be specified when an orders isn shipment are specified via externalId or number)
deliveryShipmentobject (DeliveryShipment) Shipment to delivery service
deliveryShipment[status]string Shipment status (Available values created, processing, shipped, cancelled)
deliveryShipment[date]DateTime Shipment date
deliveryShipment[time]object (TimeInterval) Shipment time
deliveryShipment[time][from]DateTime Time "from"
deliveryShipment[time][to]DateTime Time "to"
deliveryShipment[time][custom]string Time range in free form
deliveryShipment[comment]string Comment
deliveryShipment[store]string Warehouse of shipment
deliveryShipment[managerId]integer Manager responsible for shipping
deliveryShipment[orders][]array of objects (SerializedEntityOrder) Shipping orders
deliveryShipment[orders][][id]integer Order internal ID
deliveryShipment[orders][][externalId]string Order external ID
deliveryShipment[orders][][number]string Order number
deliveryShipment[extraData]array Additional shipment data (shipmentDataField.code => value) (is specified in case of shipment for delivery type, integrated with delivery services, connected by API)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Shipment id
status string Shipment status

CallbackGET {integrationModule["baseUrl"]}/{integrationModule["integrations"]["delivery"]["actions"]["autocomplete"]} Request on getting data for autocomplete field

Request on getting data for autocomplete field

Working with autocomplete fields specified in configuration integrationModule[integrations][delivery]["deliveryDataFieldList"], the system will initialize request to delivery service using GET request of method specified in autocompleteUrl configuration of the appropriate field.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
termstring Request row

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
result[] array of objects (ResponseAutocompleteItem) Array of values
result[][value] string Value
result[][label] string Name
result[][description] string Not mandatory field. Hint for option - displayed in small print under the option name

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["delivery"]["actions"]["calculate"]} Delivery cost calculation

Delivery cost calculation

For delivery cost calculation the system initiates POST-call of method specified in integrationModule[integrations][delivery]["actions"]["calculate"] configuration.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
calculateobject (RequestCalculate) JSON with data for delivery cost calculation
calculate[shipmentAddress]object (DeliveryAddress) Shipment address
calculate[shipmentAddress][index]string Country ISO code (ISO 3166-1 alpha-2)
calculate[shipmentAddress][countryIso]string Country
calculate[shipmentAddress][region]string Region
calculate[shipmentAddress][regionId]integer Region ID in Geohelper
calculate[shipmentAddress][city]string City
calculate[shipmentAddress][cityId]integer City ID in Geohelper
calculate[shipmentAddress][cityType]string Locality type
calculate[shipmentAddress][street]string Street
calculate[shipmentAddress][streetId]integer Street ID in Geohelper
calculate[shipmentAddress][streetType]string Street type
calculate[shipmentAddress][building]string Building
calculate[shipmentAddress][flat]string Flat/office
calculate[shipmentAddress][floor]integer Floor
calculate[shipmentAddress][block]integer Entrance
calculate[shipmentAddress][house]string House
calculate[shipmentAddress][housing]string Housing
calculate[shipmentAddress][metro]string Underground
calculate[shipmentAddress][notes]string Notes to address
calculate[shipmentAddress][text]string Address as string
calculate[shipmentAddress][terminal]string Code of shipment/delivery terminal
calculate[store]object (Store) Warehouse
calculate[store][code]string Symbolic code
calculate[store][name]string Name
calculate[deliveryAddress]object (DeliveryAddress) Address
calculate[deliveryAddress][index]string Country ISO code (ISO 3166-1 alpha-2)
calculate[deliveryAddress][countryIso]string Country
calculate[deliveryAddress][region]string Region
calculate[deliveryAddress][regionId]integer Region ID in Geohelper
calculate[deliveryAddress][city]string City
calculate[deliveryAddress][cityId]integer City ID in Geohelper
calculate[deliveryAddress][cityType]string Locality type
calculate[deliveryAddress][street]string Street
calculate[deliveryAddress][streetId]integer Street ID in Geohelper
calculate[deliveryAddress][streetType]string Street type
calculate[deliveryAddress][building]string Building
calculate[deliveryAddress][flat]string Flat/office
calculate[deliveryAddress][floor]integer Floor
calculate[deliveryAddress][block]integer Entrance
calculate[deliveryAddress][house]string House
calculate[deliveryAddress][housing]string Housing
calculate[deliveryAddress][metro]string Underground
calculate[deliveryAddress][notes]string Notes to address
calculate[deliveryAddress][text]string Address as string
calculate[deliveryAddress][terminal]string Code of shipment/delivery terminal
calculate[packages][]array of objects (Package) Packages set
calculate[packages][][packageId]string Package number
calculate[packages][][weight]float Weight
calculate[packages][][width]integer Width
calculate[packages][][length]integer Length
calculate[packages][][height]integer Height
calculate[packages][][items][]array of objects (PackageItem) Package content
calculate[packages][][items][][offerId]string SKU ID in the system
calculate[packages][][items][][externalId]string SKU ID in store
calculate[packages][][items][][xmlId]string SKU ID in the warehouse system
calculate[packages][][items][][name]string Item name
calculate[packages][][items][][declaredValue]float Declared value per item
calculate[packages][][items][][cod]float Cash on delivery per item
calculate[packages][][items][][vatRate]string VAT rate ("none" - without VAT)
calculate[packages][][items][][quantity]float Item quantity in package
calculate[packages][][items][][unit]object (Unit) Item unit
calculate[packages][][items][][unit][code]string Unit symbolic code
calculate[packages][][items][][unit][name]string Unit name
calculate[packages][][items][][unit][sym]string Unit short name
calculate[packages][][items][][cost]float Product cost (considering discounts)
calculate[packages][][items][][markingCodes][]array of strings Marking codes (the format of a marking code)
calculate[packages][][items][][properties][]array of arrays Item properties
calculate[packages][][items][][weight]float Product weight (can be null for services)
calculate[declaredValue]float Declared value
calculate[cod]float Sum of cash on delivery on order
calculate[payerType]string Payer for delivery (receiver or sender)
calculate[shipmentDate]DateTimeY-m-d Shipment date
calculate[deliveryDate]DateTimeY-m-d Delivery date
calculate[deliveryTime]object (TimeInterval) Delivery time
calculate[deliveryTime][from]DateTimeH:i Time "from"
calculate[deliveryTime][to]DateTimeH:i Time "to"
calculate[deliveryTime][custom]string Time range in free form
calculate[currency]string Currency code
calculate[extraData][]array of objects (ExtraDataValue) Addititonal delivery data (deliveryDataField.code => value)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
result[] array of objects (ResponseCalculate) Data of available deliveries cost
result[][code] string Tariff code
result[][group] string Tariffs group
result[][name] string Tariff name
result[][type] string Tariff type (courier - courier delivery or selfDelivery - pick-up)
result[][description] string Description
result[][cost] float Delivery cost (If not specified, then tariff will be displayed, but will not be allowed to choose) (in entity currency)
result[][minTerm] integer Minimum delivery term
result[][maxTerm] integer Maximum delivery term
result[][extraData] array Additional delivery data (deliveryDataField.code => value)
result[][extraDataAvailable] array Codes array of fields, which must be displayed on the order page. If array is not transferred, all fields will be displayed with additional delivery data.
result[][pickuppointList][] array of objects (Terminal) Terminal of shipment/receiving
result[][pickuppointList][][code] string Terminal code
result[][pickuppointList][][cost] float Delivery cost to pick-up point (it is indicated if it differs from the standard tariff cost)
result[][pickuppointList][][name] string Terminal name
result[][pickuppointList][][description] string Terminal description
result[][pickuppointList][][address] string Address
result[][pickuppointList][][schedule] string Working schedule
result[][pickuppointList][][phone] string Phone number
result[][pickuppointList][][extraData] array Additional data (deliveryDataField.code => value)
result[][pickuppointList][][coordinates] object (Coordinates) Coordinates
result[][pickuppointList][][coordinates][latitude] string Latitude
result[][pickuppointList][][coordinates][longitude] string Longitude

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["delivery"]["actions"]["delete"]} Removing of delivery request

Removing of delivery request

For delivery removing the system initiates POST-call of method specified in integrationModule[integrations][delivery]["actions"]["delete"] configuration.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
deleteobject (RequestDelete) JSON with delivery ID
delete[deliveryId]string Delivery ID in delivery service

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

CallbackGET {integrationModule["baseUrl"]}/{integrationModule["integrations"]["delivery"]["actions"]["get"]} Getting the delivery data

Getting the delivery data

For getting delivery data the system initiates GET-request of method specified in integrationModule[integrations][delivery]["actions"]["get"] configuration.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
deliveryIdstring Delivery ID in delivery service

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
result object (ResponseLoadDeliveryData) Delivery data
result[trackNumber] string Track number (if option configuration[allowTrackNumber] is enabled)
result[cost] float Cost
result[shipmentDate] DateTime Shipment date
result[deliveryDate] DateTime Delivery date
result[deliveryTime] object (TimeInterval) Delivery time
result[deliveryTime][from] DateTime Time "from"
result[deliveryTime][to] DateTime Time "to"
result[deliveryTime][custom] string Time range in free form
result[tariff] string Tariff code
result[tariffName] string Tariff name
result[payerType] string Payer for delivery (receiver or sender)
result[status] object (StatusInfo) Delivery status
result[status][code] string Delivery status code
result[status][updatedAt] DateTime Date of the last status updating
result[status][comment] string Comment to the status
result[extraData] array Additional delivery data (deliveryDataField.code => value)
result[shipmentAddress] object (DeliveryAddress) Shipment address
result[shipmentAddress][index] string Country ISO code (ISO 3166-1 alpha-2)
result[shipmentAddress][countryIso] string Country
result[shipmentAddress][region] string Region
result[shipmentAddress][regionId] integer Region ID in Geohelper
result[shipmentAddress][city] string City
result[shipmentAddress][cityId] integer City ID in Geohelper
result[shipmentAddress][cityType] string Locality type
result[shipmentAddress][street] string Street
result[shipmentAddress][streetId] integer Street ID in Geohelper
result[shipmentAddress][streetType] string Street type
result[shipmentAddress][building] string Building
result[shipmentAddress][flat] string Flat/office
result[shipmentAddress][floor] integer Floor
result[shipmentAddress][block] integer Entrance
result[shipmentAddress][house] string House
result[shipmentAddress][housing] string Housing
result[shipmentAddress][metro] string Underground
result[shipmentAddress][notes] string Notes to address
result[shipmentAddress][text] string Address as string
result[shipmentAddress][terminal] string Code of shipment/delivery terminal
result[shipmentAddress][terminalData] object (Terminal) Terminal data
result[shipmentAddress][terminalData][code] string Terminal code
result[shipmentAddress][terminalData][cost] float Delivery cost to pick-up point (it is indicated if it differs from the standard tariff cost)
result[shipmentAddress][terminalData][name] string Terminal name
result[shipmentAddress][terminalData][description] string Terminal description
result[shipmentAddress][terminalData][address] string Address
result[shipmentAddress][terminalData][schedule] string Working schedule
result[shipmentAddress][terminalData][phone] string Phone number
result[shipmentAddress][terminalData][extraData] array Additional data (deliveryDataField.code => value)
result[shipmentAddress][terminalData][coordinates] object (Coordinates) Coordinates
result[shipmentAddress][terminalData][coordinates][latitude] string Latitude
result[shipmentAddress][terminalData][coordinates][longitude] string Longitude
result[deliveryAddress] object (DeliveryAddress) Address
result[deliveryAddress][index] string Country ISO code (ISO 3166-1 alpha-2)
result[deliveryAddress][countryIso] string Country
result[deliveryAddress][region] string Region
result[deliveryAddress][regionId] integer Region ID in Geohelper
result[deliveryAddress][city] string City
result[deliveryAddress][cityId] integer City ID in Geohelper
result[deliveryAddress][cityType] string Locality type
result[deliveryAddress][street] string Street
result[deliveryAddress][streetId] integer Street ID in Geohelper
result[deliveryAddress][streetType] string Street type
result[deliveryAddress][building] string Building
result[deliveryAddress][flat] string Flat/office
result[deliveryAddress][floor] integer Floor
result[deliveryAddress][block] integer Entrance
result[deliveryAddress][house] string House
result[deliveryAddress][housing] string Housing
result[deliveryAddress][metro] string Underground
result[deliveryAddress][notes] string Notes to address
result[deliveryAddress][text] string Address as string
result[deliveryAddress][terminal] string Code of shipment/delivery terminal
result[deliveryAddress][terminalData] object (Terminal) Terminal data
result[deliveryAddress][terminalData][code] string Terminal code
result[deliveryAddress][terminalData][cost] float Delivery cost to pick-up point (it is indicated if it differs from the standard tariff cost)
result[deliveryAddress][terminalData][name] string Terminal name
result[deliveryAddress][terminalData][description] string Terminal description
result[deliveryAddress][terminalData][address] string Address
result[deliveryAddress][terminalData][schedule] string Working schedule
result[deliveryAddress][terminalData][phone] string Phone number
result[deliveryAddress][terminalData][extraData] array Additional data (deliveryDataField.code => value)
result[deliveryAddress][terminalData][coordinates] object (Coordinates) Coordinates
result[deliveryAddress][terminalData][coordinates][latitude] string Latitude
result[deliveryAddress][terminalData][coordinates][longitude] string Longitude

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["delivery"]["actions"]["print"]} Printed forms of delivery service

Printed forms of delivery service

For printing of forms specified when configure in integrationModule[integrations][delivery]["plateList"] the system initiates POST-request of method specified in integrationModule[integrations][delivery]["actions"]["print"] configuration.

Delivery service must generate pdf-file of printing form and return it as a byte array

When required to display an error message to the user, the response should have a 400 code. The content of the response should be the standard response with the error message.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
printobject (RequestPrint) JSON with the orders list for printing
print[entityType]string Entity type for the printed form (order is a printed form for the order (by default), shipment is a printed form for the shipment). The value corresponds to the value of the selected printed form: integrationModule[integrations][delivery][plateList][][type]
print[type]string Code of printing form type
print[deliveryIds]array Array of delivery IDs in delivery service ([["56376", "798645"]])

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["delivery"]["actions"]["save"]} Creation and editing of delivery

Creation and editing of delivery

For creation of new delivery the system initiates POST-call of method specified in integrationModule[integrations][delivery]["actions"]["save"] configuration. Request for delivery editing is similar to request for creation, but it is necessary to transmit order id in delivery service save["deliveryId"].

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
saveobject (RequestSave) JSON with data for delivery creation
save[deliveryId]string Delivery ID in delivery service. Is transmitted if needed to edit created delivery
save[order]string Order internal ID
save[orderNumber]string Order number
save[site]string Store code
save[siteName]string Store name
save[store]object (Store) Warehouse of shipment
save[store][code]string Symbolic code
save[store][name]string Name
save[store][address]object (StoreAddress) Warehouse address
save[store][address][index]string Postal code
save[store][address][countryIso]string Country ISO code
save[store][address][region]string Region
save[store][address][regionId]integer Region ID in Geohelper
save[store][address][city]string City
save[store][address][cityId]integer City ID in Geohelper
save[store][address][cityType]string Locality type
save[store][address][street]string Street
save[store][address][streetId]integer Street ID in Geohelper
save[store][address][streetType]string Street type
save[store][address][building]string Building
save[store][address][flat]string Flat/office
save[store][address][floor]integer Floor
save[store][address][block]integer Entrance
save[store][address][house]string House
save[store][address][housing]string Housing
save[store][address][metro]string Underground
save[store][address][notes]string Notes to address
save[store][address][text]string Address as string
save[store][address][coordinates]object (Point) Coordinates
save[store][address][coordinates][latitude]float Latitude
save[store][address][coordinates][longitude]float Longitude
save[store][workTime]object (SerializedStoreWeekOpeningHours) Warehouse working hours
save[store][workTime][mo][]array of objects (StoreWorkTime) Working hours at Monday
save[store][workTime][mo][][startTime]string Start of the warehouse work time interval (in H:i format)
save[store][workTime][mo][][endTime]string End of the warehouse work time interval (in H:i format)
save[store][workTime][mo][][lunchStartTime]string Start of the lunch time interval (in H:i format)
save[store][workTime][mo][][lunchEndTime]string End of the lunch time interval (in H:i format)
save[store][workTime][tu][]array of objects (StoreWorkTime) Working hours at Tuesday
save[store][workTime][tu][][startTime]string Start of the warehouse work time interval (in H:i format)
save[store][workTime][tu][][endTime]string End of the warehouse work time interval (in H:i format)
save[store][workTime][tu][][lunchStartTime]string Start of the lunch time interval (in H:i format)
save[store][workTime][tu][][lunchEndTime]string End of the lunch time interval (in H:i format)
save[store][workTime][we][]array of objects (StoreWorkTime) Working hours at Wednesday
save[store][workTime][we][][startTime]string Start of the warehouse work time interval (in H:i format)
save[store][workTime][we][][endTime]string End of the warehouse work time interval (in H:i format)
save[store][workTime][we][][lunchStartTime]string Start of the lunch time interval (in H:i format)
save[store][workTime][we][][lunchEndTime]string End of the lunch time interval (in H:i format)
save[store][workTime][th][]array of objects (StoreWorkTime) Working hours at Thursday
save[store][workTime][th][][startTime]string Start of the warehouse work time interval (in H:i format)
save[store][workTime][th][][endTime]string End of the warehouse work time interval (in H:i format)
save[store][workTime][th][][lunchStartTime]string Start of the lunch time interval (in H:i format)
save[store][workTime][th][][lunchEndTime]string End of the lunch time interval (in H:i format)
save[store][workTime][fr][]array of objects (StoreWorkTime) Working hours at Friday
save[store][workTime][fr][][startTime]string Start of the warehouse work time interval (in H:i format)
save[store][workTime][fr][][endTime]string End of the warehouse work time interval (in H:i format)
save[store][workTime][fr][][lunchStartTime]string Start of the lunch time interval (in H:i format)
save[store][workTime][fr][][lunchEndTime]string End of the lunch time interval (in H:i format)
save[store][workTime][sa][]array of objects (StoreWorkTime) Working hours at Saturday
save[store][workTime][sa][][startTime]string Start of the warehouse work time interval (in H:i format)
save[store][workTime][sa][][endTime]string End of the warehouse work time interval (in H:i format)
save[store][workTime][sa][][lunchStartTime]string Start of the lunch time interval (in H:i format)
save[store][workTime][sa][][lunchEndTime]string End of the lunch time interval (in H:i format)
save[store][workTime][su][]array of objects (StoreWorkTime) Working hours at Sunday
save[store][workTime][su][][startTime]string Start of the warehouse work time interval (in H:i format)
save[store][workTime][su][][endTime]string End of the warehouse work time interval (in H:i format)
save[store][workTime][su][][lunchStartTime]string Start of the lunch time interval (in H:i format)
save[store][workTime][su][][lunchEndTime]string End of the lunch time interval (in H:i format)
save[legalEntity]string Seller`s legal entity name
save[customer]object (Customer) Customer
save[customer][id]integer Customer ID
save[customer][lastName]string Surname
save[customer][firstName]string Name
save[customer][patronymic]string Middle name
save[customer][phones][]array of strings Phone numbers
save[customer][email]string E-mail
save[customer][contragent]object (Contragent) Counterparty data
save[customer][contragent][type]string Contragent type
save[customer][contragent][legalName]string Legal name
save[customer][contragent][legalAddress]string Registration address
save[customer][contragent][INN]string TIN
save[customer][contragent][OKPO]string RNNBO
save[customer][contragent][KPP]string IECC
save[customer][contragent][OGRN]string PSRN
save[customer][contragent][OGRNIP]string PSRN of Individual entrepreneur
save[manager]object (Manager) Manager, working with customer
save[manager][id]integer Manager id
save[manager][lastName]string Surname
save[manager][firstName]string Name
save[manager][patronymic]string Middle name
save[manager][phone]string Phone number
save[manager][email]string E-mail
save[packages][]array of objects (Package) Packages set
save[packages][][packageId]string Package number
save[packages][][weight]float Weight
save[packages][][width]integer Width
save[packages][][length]integer Length
save[packages][][height]integer Height
save[packages][][items][]array of objects (PackageItem) Package content
save[packages][][items][][offerId]string SKU ID in the system
save[packages][][items][][externalId]string SKU ID in store
save[packages][][items][][xmlId]string SKU ID in the warehouse system
save[packages][][items][][name]string Item name
save[packages][][items][][declaredValue]float Declared value per item
save[packages][][items][][cod]float Cash on delivery per item
save[packages][][items][][vatRate]string VAT rate ("none" - without VAT)
save[packages][][items][][quantity]float Item quantity in package
save[packages][][items][][unit]object (Unit) Item unit
save[packages][][items][][unit][code]string Unit symbolic code
save[packages][][items][][unit][name]string Unit name
save[packages][][items][][unit][sym]string Unit short name
save[packages][][items][][cost]float Product cost (considering discounts)
save[packages][][items][][markingCodes][]array of strings Marking codes (the format of a marking code)
save[packages][][items][][properties][]array of arrays Item properties
save[packages][][items][][weight]float Product weight (can be null for services)
save[delivery]object (SaveDeliveryData) Delivery data
save[delivery][shipmentAddress]object (DeliveryAddress) Shipping address
save[delivery][shipmentAddress][index]string Country ISO code (ISO 3166-1 alpha-2)
save[delivery][shipmentAddress][countryIso]string Country
save[delivery][shipmentAddress][region]string Region
save[delivery][shipmentAddress][regionId]integer Region ID in Geohelper
save[delivery][shipmentAddress][city]string City
save[delivery][shipmentAddress][cityId]integer City ID in Geohelper
save[delivery][shipmentAddress][cityType]string Locality type
save[delivery][shipmentAddress][street]string Street
save[delivery][shipmentAddress][streetId]integer Street ID in Geohelper
save[delivery][shipmentAddress][streetType]string Street type
save[delivery][shipmentAddress][building]string Building
save[delivery][shipmentAddress][flat]string Flat/office
save[delivery][shipmentAddress][floor]integer Floor
save[delivery][shipmentAddress][block]integer Entrance
save[delivery][shipmentAddress][house]string House
save[delivery][shipmentAddress][housing]string Housing
save[delivery][shipmentAddress][metro]string Underground
save[delivery][shipmentAddress][notes]string Notes to address
save[delivery][shipmentAddress][text]string Address as string
save[delivery][shipmentAddress][terminal]string Code of shipment/delivery terminal
save[delivery][deliveryAddress]object (DeliveryAddress) Address
save[delivery][deliveryAddress][index]string Country ISO code (ISO 3166-1 alpha-2)
save[delivery][deliveryAddress][countryIso]string Country
save[delivery][deliveryAddress][region]string Region
save[delivery][deliveryAddress][regionId]integer Region ID in Geohelper
save[delivery][deliveryAddress][city]string City
save[delivery][deliveryAddress][cityId]integer City ID in Geohelper
save[delivery][deliveryAddress][cityType]string Locality type
save[delivery][deliveryAddress][street]string Street
save[delivery][deliveryAddress][streetId]integer Street ID in Geohelper
save[delivery][deliveryAddress][streetType]string Street type
save[delivery][deliveryAddress][building]string Building
save[delivery][deliveryAddress][flat]string Flat/office
save[delivery][deliveryAddress][floor]integer Floor
save[delivery][deliveryAddress][block]integer Entrance
save[delivery][deliveryAddress][house]string House
save[delivery][deliveryAddress][housing]string Housing
save[delivery][deliveryAddress][metro]string Underground
save[delivery][deliveryAddress][notes]string Notes to address
save[delivery][deliveryAddress][text]string Address as string
save[delivery][deliveryAddress][terminal]string Code of shipment/delivery terminal
save[delivery][codPaymentType]object (PaymentType) Payment type for cash on delivery
save[delivery][codPaymentType][code]string Symbolic code
save[delivery][codPaymentType][name]string Name
save[delivery][withCod]boolean Cash on delivery
save[delivery][cod]float The value of cash on delivery for services
save[delivery][cost]float Delivery cost (specified in the delivery note in case of prepayment)
save[delivery][vatRate]string VAT rate for delivery service ("none" - without VAT)
save[delivery][tariff]string Tariff code
save[delivery][payerType]string Payer for delivery services (receiver or sender)
save[delivery][shipmentDate]DateTimeY-m-d Shipment date
save[delivery][deliveryDate]DateTimeY-m-d Delivery date
save[delivery][deliveryTime]object (TimeInterval) Delivery time ("custom" not used)
save[delivery][deliveryTime][from]DateTimeH:i Time "from"
save[delivery][deliveryTime][to]DateTimeH:i Time "to"
save[delivery][deliveryTime][custom]string Time range in free form
save[delivery][extraData][]array of objects (ExtraDataValue) Additional delivery data (deliveryDataField.code => value)
save[currency]string Currency code

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
result object (ResponseSave) Result of delivery creation
result[deliveryId] string Delivery ID in delivery service
result[trackNumber] string Track number (if option configuration[allowTrackNumber] is enabled)
result[cost] float Cost
result[status] string Delivery status code
result[extraData] array Additional delivery data (deliveryDataField.code => value)

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["delivery"]["actions"]["shipmentDelete"]} Removing of shipment request

Removing of shipment request

For shipment removing the system initiates POSt-request of method specified in integrationModule[integrations][delivery]["actions"]["shipmentDelete"] configuration.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
shipmentDeleteobject (RequestShipmentDelete) JSON with data for shipment removing
shipmentDelete[shipmentId]string Shipment id in delivery service
shipmentDelete[extraData][]array of objects (ExtraDataValue) Additional shipment data (shipmentDataField.code => value)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

CallbackGET {integrationModule["baseUrl"]}/{integrationModule["integrations"]["delivery"]["actions"]["shipmentPointList"]} List of the parcel receiving terminals

List of the parcel receiving terminals

For working with terminals the system initiates GET-request of method specified in integrationModule[integrations][delivery]["actions"]["shipmentPointList"] configuration.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
countrystring ISO code of the country (ISO 3166-1 alpha-2)
regionstring Region
regionIdinteger Region ID in Geohelper
citystring City
cityIdinteger City ID in Geohelper
codestring Shipment warehouse code

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
result[] array of objects (Terminal) Terminal of shipment/receiving
result[][code] string Terminal code
result[][cost] float Delivery cost to pick-up point (it is indicated if it differs from the standard tariff cost)
result[][name] string Terminal name
result[][description] string Terminal description
result[][address] string Address
result[][schedule] string Working schedule
result[][phone] string Phone number
result[][extraData] array Additional data (deliveryDataField.code => value)
result[][coordinates] object (Coordinates) Coordinates
result[][coordinates][latitude] string Latitude
result[][coordinates][longitude] string Longitude

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["delivery"]["actions"]["shipmentSave"]} Creation and editing of shipment

Creation and editing of shipment

For creation or editing of shipment the system initiates POSt-request of method specified in integrationModule[integrations][delivery]["actions"]["shipmentSave"] configuration.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
shipmentSaveobject (RequestShipmentSave) JSON with data for shipment creation
shipmentSave[shipmentId]string Shipment id in delivery service. Is transmitted if needed to edit created delivery
shipmentSave[manager]object (Manager) Manager responsible for shipping
shipmentSave[manager][id]integer Manager id
shipmentSave[manager][lastName]string Surname
shipmentSave[manager][firstName]string Name
shipmentSave[manager][patronymic]string Middle name
shipmentSave[manager][phone]string Phone number
shipmentSave[manager][email]string E-mail
shipmentSave[date]DateTimeY-m-d Shipment date
shipmentSave[time]object (TimeInterval) Shipment time
shipmentSave[time][from]DateTimeH:i Time "from"
shipmentSave[time][to]DateTimeH:i Time "to"
shipmentSave[time][custom]string Time range in free form
shipmentSave[address]object (DeliveryAddress) Shipment address
shipmentSave[address][index]string Country ISO code (ISO 3166-1 alpha-2)
shipmentSave[address][countryIso]string Country
shipmentSave[address][region]string Region
shipmentSave[address][regionId]integer Region ID in Geohelper
shipmentSave[address][city]string City
shipmentSave[address][cityId]integer City ID in Geohelper
shipmentSave[address][cityType]string Locality type
shipmentSave[address][street]string Street
shipmentSave[address][streetId]integer Street ID in Geohelper
shipmentSave[address][streetType]string Street type
shipmentSave[address][building]string Building
shipmentSave[address][flat]string Flat/office
shipmentSave[address][floor]integer Floor
shipmentSave[address][block]integer Entrance
shipmentSave[address][house]string House
shipmentSave[address][housing]string Housing
shipmentSave[address][metro]string Underground
shipmentSave[address][notes]string Notes to address
shipmentSave[address][text]string Address as string
shipmentSave[address][terminal]string Code of shipment/delivery terminal
shipmentSave[store]string Warehouse of shipment
shipmentSave[orders][]array of objects (ShipmentOrder) Shipping orders
shipmentSave[orders][][deliveryId]string Delivery ID in delivery service
shipmentSave[orders][][packages][]array of objects (Package) Packages
shipmentSave[orders][][packages][][packageId]string Package number
shipmentSave[orders][][packages][][weight]float Weight
shipmentSave[orders][][packages][][width]integer Width
shipmentSave[orders][][packages][][length]integer Length
shipmentSave[orders][][packages][][height]integer Height
shipmentSave[comment]string Comment
shipmentSave[extraData][]array of objects (ExtraDataValue) Additional shipment data (shipmentDataField.code => value)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
result object (ResponseShipmentSave) Result of shipment creation
result[shipmentId] string Shipment ID in delivery service
result[extraData] array Additional shipment data (shipmentDataField.code => value)

CallbackGET {integrationModule["baseUrl"]}/{integrationModule["integrations"]["delivery"]["actions"]["tariffList"]} List of tariffs

List of tariffs

To get a list of tariffs, the system initiates a GET request of the method specified in integrationModule[integrations][delivery]["actions"]["tariffList"] configuration.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
result[] array of objects (Tariff) Tariff
result[][code] string Tariff code
result[][name] string Tariff name
result[][description] string Tariff description
result[][type] string Type (Possible values: "courier" - courier delivery, "selfDelivery" - customer pick-up)

Files

GET /api/v5/files Getting the list of files according to the selected filter

Getting the list of files according to the selected filter

To access the method, the following permission is required file_read.

Method returns the list of files and information about them. Only files uploaded via API are returned or files added to an order or a customer.

Array of internal IDs of elements in the system is specified in filters filter[ids][], filter[orderIds][], filter[customerIds][].

Array of external IDs of elements in the system is specified in filters filter[customerExternalIds][], filter[orderExternalIds][].

Array of MIME types of files is specified in filter filter[type][].

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (FileFilterData)
filter[ids][]array of integers Array of file IDs
filter[orderIds][]array of integers Array of internal IDs of orders
filter[orderExternalIds][]array of strings Array of external IDs of orders
filter[customerIds][]array of integers Array of internal IDs of customers
filter[customerExternalIds][]array of strings Array of external IDs of customers
filter[sites][]array of strings Stores
filter[type][]array of strings Array of MIME types of files
filter[filename]string File name
filter[isAttached]boolean Is the file attached to at least one order or customer?
filter[createdAtFrom]DateTimeY-m-d Date of file uploading (from)
filter[createdAtTo]DateTimeY-m-d Date of file uploading (to)
filter[sizeFrom]integer File size (from)
filter[sizeTo]integer File size (to)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
files[] array of objects (File) File
files[][id] integer File ID
files[][filename] string File name
files[][type] string File MIME-type
files[][createdAt] DateTime Creation date
files[][size] integer File size in bytes
files[][attachment][] array of objects (Attachment) Attachment
files[][attachment][][customer] custom handler result for (Classes)
files[][attachment][][order] object (Order) Order
files[][attachment][][order][id] integer Order ID
files[][attachment][][order][number] string Order number
files[][attachment][][order][externalId] string Order external ID
files[][attachment][][order][site] string Store

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/files/upload Uploading the file to server

Uploading the file to server

To access the method, the following permission is required file_write.

Method allows to upload the file. For uploading the file, it is necessary to insert its content into the query body. Some file types are prohibited for uploading. The name API upload is automatically assigned to the file uploaded via API.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
file object (File) File
file[id] integer File ID

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/files/{id} Getting information about the file

Getting information about the file

To access the method, the following permission is required file_read.

Parameters

ParameterTypeFormatDescription
idinteger File ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
file object (File) File
file[id] integer File ID
file[filename] string File name
file[type] string File MIME-type
file[createdAt] DateTime Creation date
file[size] integer File size in bytes
file[attachment][] array of objects (Attachment) Attachment
file[attachment][][customer] custom handler result for (Classes)
file[attachment][][order] object (Order) Order
file[attachment][][order][id] integer Order ID
file[attachment][][order][number] string Order number
file[attachment][][order][externalId] string Order external ID
file[attachment][][order][site] string Store

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • File not found

POST /api/v5/files/{id}/delete Deleting the file

Deleting the file

To access the method, the following permission is required file_write.

Method allows to delete the file with all links to orders and customers.

Parameters

ParameterTypeFormatDescription
idinteger File ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution
404
  • File not found

GET /api/v5/files/{id}/download File downloading

File downloading

To access the method, the following permission is required file_read.

Method allows to download the file. When downloading, the file content is returned as a stream, the file name is returned in the Content-Disposition HTTP header.

Parameters

ParameterTypeFormatDescription
idinteger File ID

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/files/{id}/edit Editing the file

Editing the file

To access the method, the following permission is required file_write.

Method allows to edit the file name and links to orders and customers. All required links are passed in file[attachment][]. Links not mentioned in this field will be deleted.

Parameters

ParameterTypeFormatDescription
fileobject (SerializedFile)
file[filename]string{length: {max: 1024}}{match: ([^\w\s_\.\-\(\):])}} File name
file[attachment][]array of objects (SerializedAttachment)
file[attachment][][customer]object (SerializedRelationAbstractCustomer) Customer
file[attachment][][customer][id]integer Customer internal ID
file[attachment][][customer][externalId]string Customer external ID
file[attachment][][customer][browserId]string Device ID in Collector
file[attachment][][customer][site]string Store code, required when externalId is specified
file[attachment][][order]object (SerializedRelationOrder) Order
file[attachment][][order][id]integer Order internal ID
file[attachment][][order][externalId]string Order external ID
file[attachment][][order][number]string Order number
file[attachment][][order][site]string Symbolic code of store
idinteger File ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
file object (File) File
file[id] integer File ID

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • File not found

Integration

GET /api/v5/integration-modules/{code} Getting the integration module

Getting the integration module

To access the method, the following permission is required integration_read.

Module can have one or many different types of configuration, or not have any of configurations.

Delivery service  delivery

Payment system  payment

Warehouse system  store

Telephony  telephony

Instant messaging  mgTransport

MessageGateway Bot  mgBot

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
integrationModule object (IntegrationModule) Integration module
integrationModule[code] string Symbolic code of module instance
integrationModule[integrationCode] string Module symbolic code (must be same as module code, specified in partner cabinet) (same as symbolic code of module instance if multi account is not allowed)
integrationModule[active] boolean Activity status
integrationModule[freeze] boolean The module is frozen
integrationModule[name] string Name (required if module is not publicated in markeplace)
integrationModule[logo] string Link to svg logotype (required if module is not publicated in markeplace)
integrationModule[native] boolean System module
integrationModule[baseUrl] string Basic URL, to which system makes requests
integrationModule[actions][] array of strings The relative paths from the basic URL to the specific methods (array "Method code": "Path", allowed methods: activity, settings)
integrationModule[availableCountries] array List of countries available for module (ISO 3166-1 alpha-2) (required if module is not publicated in markeplace)
integrationModule[accountUrl] string Personal account (clicking on this link sends POST request with clientId parameter)
integrationModule[integrations] array List of integration configurations
integrationModule[integrations][telephony] object (Configuration) Configuration of integration with telephony
integrationModule[integrations][telephony][makeCallUrl] string URL of the call initiation
integrationModule[integrations][telephony][allowEdit] boolean Allow to edit in system
integrationModule[integrations][telephony][inputEventSupported] boolean Supports notification about incoming call
integrationModule[integrations][telephony][outputEventSupported] boolean Supports notification about outgoing call
integrationModule[integrations][telephony][hangupEventSupported] boolean Supports notification about call completion
integrationModule[integrations][telephony][changeUserStatusUrl] string Notify to this address when changing the manager status in the system
integrationModule[integrations][telephony][additionalCodes][] array of objects (SerializedAdditionalCodes) Extension codes of users
integrationModule[integrations][telephony][additionalCodes][][userId] integer User Id
integrationModule[integrations][telephony][additionalCodes][][code] string Extension code in telephony
integrationModule[integrations][telephony][externalPhones][] array of objects (SerializedExternalPhones) External phone numbers
integrationModule[integrations][telephony][externalPhones][][siteCode] string Store code
integrationModule[integrations][telephony][externalPhones][][externalPhone] string External phone number
integrationModule[integrations][delivery] object (Configuration) Configuration of integration with delivery service
integrationModule[integrations][delivery][description] string Description of integration
integrationModule[integrations][delivery][actions][] array of strings The relative paths from the basic URL to the specific methods (array "Method code": "Path", allowed methods: calculate, save, get, delete, print, shipmentPointList, tariffList)
integrationModule[integrations][delivery][payerType] array Allowed types of payers for delivery (receiver - customer pays the delivery service directly; sender - the store can take money from the customer for delivery and then pays the delivery service)
integrationModule[integrations][delivery][platePrintLimit] integer Maximum quantity of orders when printing documents
integrationModule[integrations][delivery][rateDeliveryCost] boolean Does the integration with delivery service calculate the delivery cost
integrationModule[integrations][delivery][allowPackages] boolean Allow packages using
integrationModule[integrations][delivery][codAvailable] boolean Cash on delivery available/unavailbale
integrationModule[integrations][delivery][selfShipmentAvailable] boolean Selfshipment to the terminal allowed.
integrationModule[integrations][delivery][duplicateOrderProductSupported] boolean Working with an order containing several items with the same SKU is available
integrationModule[integrations][delivery][allowTrackNumber] boolean Allow send track number, different from delivery id
integrationModule[integrations][delivery][availableCountries] array List of countries working with delivery service. If array is empty, there is no limitation of countries
integrationModule[integrations][delivery][requiredFields] array List of order mandatory fields
integrationModule[integrations][delivery][statusList][] array of objects (Status) Statuses of delivery service
integrationModule[integrations][delivery][statusList][][code] string Delivery status code
integrationModule[integrations][delivery][statusList][][name] string Status name
integrationModule[integrations][delivery][statusList][][isEditable] boolean Status ("isEditable": true) allows to edit delivery data
integrationModule[integrations][delivery][statusList][][isError] boolean The status ("isError": true) signals that there are problems in the delivery process. If the delivery gets into this status, the manager will receive a notification
integrationModule[integrations][delivery][statusList][][isPreprocessing] boolean The status ("isPreprocessing": true) means that delivery registration is in progress and you should`t make any changes to the order. This flag may be useful for integrated modules where delivery registration is performed asynchronously
integrationModule[integrations][delivery][plateList][] array of objects (Plate) Printing forms provided by delivery service
integrationModule[integrations][delivery][plateList][][type] string Entity type for the printed form (order - is a printed form for the order (by default), shipment is a printed form for the shipment)
integrationModule[integrations][delivery][plateList][][code] string Printing form code
integrationModule[integrations][delivery][plateList][][label] string Printing form name
integrationModule[integrations][delivery][deliveryDataFieldList][] array of objects (DeliveryDataField) Additional fields necessary for delivery
integrationModule[integrations][delivery][deliveryDataFieldList][][code] string Field code
integrationModule[integrations][delivery][deliveryDataFieldList][][label] string Field name
integrationModule[integrations][delivery][deliveryDataFieldList][][hint] string Hint to field
integrationModule[integrations][delivery][deliveryDataFieldList][][type] string Field type. Possible variants (integer - number field, text - text field, autocomplete - autocomplete field, checkbox, choice - drop-down list, date - date field)
integrationModule[integrations][delivery][deliveryDataFieldList][][multiple] boolean Specified for choice field type. Means that you can choose several variants
integrationModule[integrations][delivery][deliveryDataFieldList][][choices] array Specified for choice field type. The list of available variants in the drop-down list. Mandatory if the field type is choice
integrationModule[integrations][delivery][deliveryDataFieldList][][autocompleteUrl] string Specified for autocomplete field type. Address, where it is possible to receive data for autocomplete field.
integrationModule[integrations][delivery][deliveryDataFieldList][][visible] boolean Show field in the order card
integrationModule[integrations][delivery][deliveryDataFieldList][][required] boolean Field is mandatory
integrationModule[integrations][delivery][deliveryDataFieldList][][affectsCost] boolean Field influences on the delivery cost. If "affectsCost": true, then the value is used in the method calculate
integrationModule[integrations][delivery][deliveryDataFieldList][][editable] boolean Is the field editable. If "editable": false, then it is the information field - filled only with data, received directly from delivery service (for example, insurance cost - may be filled after delivery formation or when calculating of cost)
integrationModule[integrations][delivery][shipmentDataFieldList][] array of objects (DeliveryDataField) Additional fields necessary for delivery
integrationModule[integrations][delivery][settings] object (Settings) Module settings
integrationModule[integrations][delivery][settings][defaultPayerType] string Payer for delivery by default
integrationModule[integrations][delivery][settings][costCalculateBy] string Default delivery cost (Possible values auto|manual)
integrationModule[integrations][delivery][settings][nullDeclaredValue] boolean Zero declared value by default
integrationModule[integrations][delivery][settings][lockedByDefault] boolean Do not synchronize with the delivery service by default
integrationModule[integrations][delivery][settings][paymentTypes][] array of objects (PaymentType) Payment types (Reference book of objects)
integrationModule[integrations][delivery][settings][paymentTypes][][code] string Payment type code
integrationModule[integrations][delivery][settings][paymentTypes][][active] boolean Allow to use
integrationModule[integrations][delivery][settings][paymentTypes][][cod] boolean Cash on delivery
integrationModule[integrations][delivery][settings][shipmentPoints][] array of objects (ShipmentPoint) Warehouses (Reference book of objects)
integrationModule[integrations][delivery][settings][shipmentPoints][][code] string Warehouse code in the system
integrationModule[integrations][delivery][settings][shipmentPoints][][shipmentPointId] string Terminal ID by default
integrationModule[integrations][delivery][settings][shipmentPoints][][shipmentPointLabel] string Terminal name by default
integrationModule[integrations][delivery][settings][statuses][] array of objects (Status) Statuses conformity (Reference book of objects)
integrationModule[integrations][delivery][settings][statuses][][code] string Status code in the system
integrationModule[integrations][delivery][settings][statuses][][trackingStatusCode] string Status code in the delivery service
integrationModule[integrations][delivery][settings][deliveryExtraData] array Default values of additional fields of delivery (deliveryDataField.code => value)
integrationModule[integrations][delivery][settings][shipmentExtraData] array Default values of additional fields of shipment (shipmentDataField.code => value)
integrationModule[integrations][store] object (Configuration) Configuration of integration with warehouse system
integrationModule[integrations][store][actions][] array of objects (Action) Callback actions
integrationModule[integrations][store][actions][][code] string Symbol code
integrationModule[integrations][store][actions][][url] string URL
integrationModule[integrations][store][actions][][callPoints][] array of strings Action call points
integrationModule[integrations][recommendation] object (Configuration) Configuration of integration with recommendation system
integrationModule[integrations][recommendation][actions][] array of strings The relative paths from the basic URL to the specific methods (array "Method code": "Path", allowed methods: recommendation
integrationModule[integrations][recommendation][addDefaultModes] boolean Show system tabs Also purchased and Analogues
integrationModule[integrations][recommendation][modes][] array of objects (Mode) Array of tabs provided by the module
integrationModule[integrations][recommendation][modes][][code] string Code of tab
integrationModule[integrations][recommendation][modes][][names][] array of strings [array] Code of language => Name of tab
integrationModule[integrations][payment] object (PaymentConfiguration) Integration configuration with the payment system
integrationModule[integrations][payment][actions] object (Actions) Relative paths from the base URL to specific methods
integrationModule[integrations][payment][actions][create] string Method of payment creation
integrationModule[integrations][payment][actions][approve] string Method of payment confirmation
integrationModule[integrations][payment][actions][cancel] string Method of payment cancellation
integrationModule[integrations][payment][actions][refund] string Refund method
integrationModule[integrations][payment][currencies][] array of strings List of available currency codes
integrationModule[integrations][payment][invoiceTypes][] array of strings Array of supported invoice types. Possible invoice types: link
integrationModule[integrations][payment][shops][] array of objects (Shop) List of stores on the side of the payment system
integrationModule[integrations][payment][shops][][code] string Store code
integrationModule[integrations][payment][shops][][name] string Store name
integrationModule[integrations][payment][shops][][active] boolean Activity status
integrationModule[integrations][embedJs] object (NativeConfiguration) Embedded js api configuration
integrationModule[integrations][embedJs][entrypoint] string Relative url (relative to basic integrationModule[baseUrl]) to html page with js script
integrationModule[integrations][embedJs][stylesheet] string Relative url (relative to basic integrationModule[baseUrl]) to styles file
integrationModule[integrations][embedJs][targets] array Array of embed points
integrationModule[integrations][mgTransport] object (TransportConfiguration) Configuration of integration with instant messaging
integrationModule[integrations][mgTransport][token] string Keyword
integrationModule[integrations][mgTransport][isActive] boolean Activity mark
integrationModule[integrations][mgTransport][webhookUrl] string URL to which events are sent
integrationModule[integrations][mgTransport][actions][] array of strings The relative paths from the basic URL to the specific methods (array "Method code": "Path", allowed methods: online, visits)
integrationModule[integrations][mgBot] object (BotConfiguration) Configuration of integration with MessageGateway bot
integrationModule[integrations][mgBot][isActive] custom handler result for (bool) Activity mark
integrationModule[integrations][mgBot][logo] string Link to logo
integrationModule[integrations][mgBot][token] string Keyword
integrationModule[integrations][mgBot][name] string Bot name

POST /api/v5/integration-modules/{code}/edit Integration module creation/editing

Integration module creation/editing

To access the method, the following permission is required integration_write.

For receiving notifications about module activation/deactivation or freezing/unfreezing specify baseUrl and path to activity callback - integrationModule[actions][activity]

Module can have one or many different types of configuration, or not have any of configurations.

Recommendations service (recommendation) The availability of configurations of this type gives access to use methods from the section "Recommendations".

Delivery service (delivery) This type of configuration allows module to use methods from "Deliveries" section.

Payment system (payment) Configuration of this type allows to use methods from “Payments” section.

Warehouse system (store) This type of configuration allows module to use method {integrationModule["integrations"]["store"]["actions"]["inventoriesUpload"]} from "Store" section.

Instant messaging (mgTransport) Configuration of a such type allows to integrate external messengers with the system.

MessageGateway Bot (mgBot) Configuration of a such type allows to integrate MessageGateway Bots.

Telephony (telephony) This type of configuration allows module to use methods from "Telephony" section.

Field integrationModule[integrations][telephony][inputEventSupported] contains information, does the service support notifications about incoming call. Default value is 0.

Field integrationModule[integrations][telephony][outputEventSupported] contains information, does the service support notifications about outgoing call. Default value is 0.

Field integrationModule[integrations][telephony][hangupEventSupported] contains information, does the service support notification about call completion. Default value is 0.

The field integrationModule[integrations][telephony][additionalCodes] contains JSON, where there is an array of mapping: user id and code - extension code in telephony.

The field integrationModule[integrations][telephony][externalPhones] contains JSON, where there is an array of mapping: siteCode - store code and externalPhone - external phone number. If there are several external numbers specified for one store, the last one will be chosen when initiating the call from this store.

If the field integrationModule[integrations][telephony][changeUserStatusUrl] specified, when changing the manager status in system to the specified address will be sent GET request.

If the module is created or edited successfully, the response will contain information on the cost of the module (the information will be specified in the info[billingInfo] field). If the module isn't published in the marketplace, the information isn't transferred.

Parameters

ParameterTypeFormatDescription
integrationModuleobject (IntegrationModule) Integration module
integrationModule[code]string Symbolic code of module instance
integrationModule[integrationCode]string Module symbolic code (must be same as module code, specified in partner cabinet) (same as symbolic code of module instance if multi account is not allowed)
integrationModule[active]boolean Activity status
integrationModule[name]string Name (required if module is not publicated in markeplace)
integrationModule[logo]string Link to svg logotype (required if module is not publicated in markeplace)
integrationModule[clientId]string Unique client hash-key used, for authorization and identification in external system
integrationModule[baseUrl]string Basic URL, to which system makes requests
integrationModule[actions][]array of strings The relative paths from the basic URL to the specific methods (array "Method code": "Path", allowed methods: activity, settings)
integrationModule[availableCountries]array List of countries available for module (ISO 3166-1 alpha-2) (required if module is not publicated in markeplace)
integrationModule[accountUrl]string Personal account (clicking on this link sends POST request with clientId parameter)
integrationModule[integrations]array List of integration configurations
integrationModule[integrations][telephony]object (Configuration) Configuration of integration with telephony
integrationModule[integrations][telephony][makeCallUrl]string URL of the call initiation
integrationModule[integrations][telephony][allowEdit]boolean Allow to edit in system
integrationModule[integrations][telephony][inputEventSupported]boolean Supports notification about incoming call
integrationModule[integrations][telephony][outputEventSupported]boolean Supports notification about outgoing call
integrationModule[integrations][telephony][hangupEventSupported]boolean Supports notification about call completion
integrationModule[integrations][telephony][changeUserStatusUrl]string Notify to this address when changing the manager status in the system
integrationModule[integrations][telephony][additionalCodes][]array of objects (SerializedAdditionalCodes) Extension codes of users
integrationModule[integrations][telephony][additionalCodes][][userId]integer User Id
integrationModule[integrations][telephony][additionalCodes][][code]string Extension code in telephony
integrationModule[integrations][telephony][externalPhones][]array of objects (SerializedExternalPhones) External phone numbers
integrationModule[integrations][telephony][externalPhones][][siteCode]string Store code
integrationModule[integrations][telephony][externalPhones][][externalPhone]string External phone number
integrationModule[integrations][delivery]object (Configuration) Configuration of integration with delivery service
integrationModule[integrations][delivery][description]string Description of integration
integrationModule[integrations][delivery][actions][]array of strings The relative paths from the basic URL to the specific methods (array "Method code": "Path", allowed methods: calculate, save, get, delete, print, shipmentPointList, tariffList)
integrationModule[integrations][delivery][payerType]array Allowed types of payers for delivery (receiver - customer pays the delivery service directly; sender - the store can take money from the customer for delivery and then pays the delivery service)
integrationModule[integrations][delivery][platePrintLimit]integer Maximum quantity of orders when printing documents
integrationModule[integrations][delivery][rateDeliveryCost]boolean Does the integration with delivery service calculate the delivery cost
integrationModule[integrations][delivery][allowPackages]boolean Allow packages using
integrationModule[integrations][delivery][codAvailable]boolean Cash on delivery available/unavailbale
integrationModule[integrations][delivery][selfShipmentAvailable]boolean Selfshipment to the terminal allowed.
integrationModule[integrations][delivery][duplicateOrderProductSupported]boolean Working with an order containing several items with the same SKU is available
integrationModule[integrations][delivery][allowTrackNumber]boolean Allow send track number, different from delivery id
integrationModule[integrations][delivery][availableCountries]array List of countries working with delivery service. If array is empty, there is no limitation of countries
integrationModule[integrations][delivery][requiredFields]array List of order mandatory fields
integrationModule[integrations][delivery][statusList][]array of objects (Status) Statuses of delivery service
integrationModule[integrations][delivery][statusList][][code]string Delivery status code
integrationModule[integrations][delivery][statusList][][name]string Status name
integrationModule[integrations][delivery][statusList][][isEditable]boolean Status ("isEditable": true) allows to edit delivery data
integrationModule[integrations][delivery][statusList][][isError]boolean The status ("isError": true) signals that there are problems in the delivery process. If the delivery gets into this status, the manager will receive a notification
integrationModule[integrations][delivery][statusList][][isPreprocessing]boolean The status ("isPreprocessing": true) means that delivery registration is in progress and you should`t make any changes to the order. This flag may be useful for integrated modules where delivery registration is performed asynchronously
integrationModule[integrations][delivery][plateList][]array of objects (Plate) Printing forms provided by delivery service
integrationModule[integrations][delivery][plateList][][type]string Entity type for the printed form (order - is a printed form for the order (by default), shipment is a printed form for the shipment)
integrationModule[integrations][delivery][plateList][][code]string Printing form code
integrationModule[integrations][delivery][plateList][][label]string Printing form name
integrationModule[integrations][delivery][deliveryDataFieldList][]array of objects (DeliveryDataField) Additional fields necessary for delivery
integrationModule[integrations][delivery][deliveryDataFieldList][][code]string Field code
integrationModule[integrations][delivery][deliveryDataFieldList][][label]string Field name
integrationModule[integrations][delivery][deliveryDataFieldList][][hint]string Hint to field
integrationModule[integrations][delivery][deliveryDataFieldList][][type]string Field type. Possible variants (integer - number field, text - text field, autocomplete - autocomplete field, checkbox, choice - drop-down list, date - date field)
integrationModule[integrations][delivery][deliveryDataFieldList][][multiple]boolean Specified for choice field type. Means that you can choose several variants
integrationModule[integrations][delivery][deliveryDataFieldList][][choices]array Specified for choice field type. The list of available variants in the drop-down list. Mandatory if the field type is choice
integrationModule[integrations][delivery][deliveryDataFieldList][][autocompleteUrl]string Specified for autocomplete field type. Address, where it is possible to receive data for autocomplete field.
integrationModule[integrations][delivery][deliveryDataFieldList][][visible]boolean Show field in the order card
integrationModule[integrations][delivery][deliveryDataFieldList][][required]boolean Field is mandatory
integrationModule[integrations][delivery][deliveryDataFieldList][][affectsCost]boolean Field influences on the delivery cost. If "affectsCost": true, then the value is used in the method calculate
integrationModule[integrations][delivery][deliveryDataFieldList][][editable]boolean Is the field editable. If "editable": false, then it is the information field - filled only with data, received directly from delivery service (for example, insurance cost - may be filled after delivery formation or when calculating of cost)
integrationModule[integrations][delivery][shipmentDataFieldList][]array of objects (DeliveryDataField) Additional fields necessary for delivery
integrationModule[integrations][delivery][settings]object (Settings) Module settings
integrationModule[integrations][delivery][settings][defaultPayerType]string Payer for delivery by default
integrationModule[integrations][delivery][settings][costCalculateBy]string Default delivery cost (Possible values auto|manual)
integrationModule[integrations][delivery][settings][nullDeclaredValue]boolean Zero declared value by default
integrationModule[integrations][delivery][settings][lockedByDefault]boolean Do not synchronize with the delivery service by default
integrationModule[integrations][delivery][settings][paymentTypes][]array of objects (PaymentType) Payment types (Reference book of objects)
integrationModule[integrations][delivery][settings][paymentTypes][][code]string Payment type code
integrationModule[integrations][delivery][settings][paymentTypes][][active]boolean Allow to use
integrationModule[integrations][delivery][settings][paymentTypes][][cod]boolean Cash on delivery
integrationModule[integrations][delivery][settings][shipmentPoints][]array of objects (ShipmentPoint) Warehouses (Reference book of objects)
integrationModule[integrations][delivery][settings][shipmentPoints][][code]string Warehouse code in the system
integrationModule[integrations][delivery][settings][shipmentPoints][][shipmentPointId]string Terminal ID by default
integrationModule[integrations][delivery][settings][shipmentPoints][][shipmentPointLabel]string Terminal name by default
integrationModule[integrations][delivery][settings][statuses][]array of objects (Status) Statuses conformity (Reference book of objects)
integrationModule[integrations][delivery][settings][statuses][][code]string Status code in the system
integrationModule[integrations][delivery][settings][statuses][][trackingStatusCode]string Status code in the delivery service
integrationModule[integrations][delivery][settings][deliveryExtraData]array Default values of additional fields of delivery (deliveryDataField.code => value)
integrationModule[integrations][delivery][settings][shipmentExtraData]array Default values of additional fields of shipment (shipmentDataField.code => value)
integrationModule[integrations][store]object (Configuration) Configuration of integration with warehouse system
integrationModule[integrations][store][actions][]array of objects (Action) Callback actions
integrationModule[integrations][store][actions][][code]string Symbol code
integrationModule[integrations][store][actions][][url]string URL
integrationModule[integrations][store][actions][][callPoints][]array of strings Action call points
integrationModule[integrations][recommendation]object (Configuration) Configuration of integration with recommendation system
integrationModule[integrations][recommendation][actions][]array of strings The relative paths from the basic URL to the specific methods (array "Method code": "Path", allowed methods: recommendation
integrationModule[integrations][recommendation][addDefaultModes]boolean Show system tabs Also purchased and Analogues
integrationModule[integrations][recommendation][modes][]array of objects (Mode) Array of tabs provided by the module
integrationModule[integrations][recommendation][modes][][code]string Code of tab
integrationModule[integrations][recommendation][modes][][names][]array of strings [array] Code of language => Name of tab
integrationModule[integrations][payment]object (PaymentConfiguration) Integration configuration with the payment system
integrationModule[integrations][payment][actions]object (Actions) Relative paths from the base URL to specific methods
integrationModule[integrations][payment][actions][create]string Method of payment creation
integrationModule[integrations][payment][actions][approve]string Method of payment confirmation
integrationModule[integrations][payment][actions][cancel]string Method of payment cancellation
integrationModule[integrations][payment][actions][refund]string Refund method
integrationModule[integrations][payment][currencies][]array of strings List of available currency codes
integrationModule[integrations][payment][invoiceTypes][]array of strings Array of supported invoice types. Possible invoice types: link
integrationModule[integrations][payment][shops][]array of objects (Shop) List of stores on the side of the payment system
integrationModule[integrations][payment][shops][][code]string Store code
integrationModule[integrations][payment][shops][][name]string Store name
integrationModule[integrations][payment][shops][][active]boolean Activity status
integrationModule[integrations][embedJs]object (NativeConfiguration) Embedded js api configuration
integrationModule[integrations][embedJs][entrypoint]string Relative url (relative to basic integrationModule[baseUrl]) to html page with js script
integrationModule[integrations][embedJs][stylesheet]string Relative url (relative to basic integrationModule[baseUrl]) to styles file
integrationModule[integrations][embedJs][targets]array Array of embed points
integrationModule[integrations][mgTransport]object (TransportConfiguration) Configuration of integration with instant messaging
integrationModule[integrations][mgTransport][webhookUrl]string URL to which events are sent
integrationModule[integrations][mgTransport][actions][]array of strings The relative paths from the basic URL to the specific methods (array "Method code": "Path", allowed methods: online, visits)
integrationModule[integrations][mgTransport][refreshToken]boolean Refresh token
integrationModule[integrations][mgBot]object (BotConfiguration) Configuration of integration with MessageGateway bot
integrationModule[integrations][mgBot][refreshToken]custom handler result for (bool) Refresh token

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
info array Additional information about the results of editing the module

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
201
  • Integration module was successfully created
400
  • Error on query execution
402
  • Client account has insufficient funds to activate integration module

POST /api/v5/integration-modules/{code}/update-scopes Updating permissions for the API key

Updating permissions for the API key

To access the method, the following permission is required integration_write.

The method allows to get a new API key with the permissions that were passed in the request for the integrated module.

This method is available for modules that support simple connection and can also be used to update API keys by modules that were connected in an outdated way via the creation of API keys in the system interface.

Parameters

ParameterTypeFormatDescription
requiresobject (Requires)
requires[scopes][]array of strings Permissions required by the API key for the operation of the module

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
apiKey string New API key for the integrated module

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

CallbackGET {configUrl} Getting data to connect the module

Getting data to connect the module

Callback to get connection configuration. Called before connecting the module.

{configUrl} is the "URL to request a simple connection configuration" from the partner account.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
scopes[] array of strings Permissions required by the API key for the operation of the module
registerUrl string URL to register the module

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["actions"]["activity"]} Notification whenr module activity and freeze changed

Notification whenr module activity and freeze changed

Callback initiates when module activity or freeze status changed or when system is renamed. When deactivated, the module should be terminated. When freezed - module must be suspended. When system renamed - system URL must be updated. The new URL comes from the new system address, you must use clientId to identify the account. Each time this method is initiated, all parameters are passed.

If the module is published in the marketplace, the information on the cost of the module will be specified in the billingInfo field.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
activityobject (IntegrationModule) Integration module
activity[active]boolean Activity status
activity[freeze]boolean The module is frozen
systemUrlstring Current system URL, where integration module is activated (example: https://demo.retailcrm.pro )
billingInfoobject (IntegrationModuleBillingInfo) Information about the cost of the module
billingInfo[price]float Cost of the module
billingInfo[priceWithDiscount]float Cost of the module with discount (if there is any)
billingInfo[currency]object (IntegrationModuleBillingInfoCurrency) Currency
billingInfo[currency][name]string Currency name
billingInfo[currency][shortName]string Short name of the currency
billingInfo[currency][code]string Currency code
billingInfo[billingType]string Payment type (fixed - for the module, byChannel - for the channel)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["actions"]["settings"]} Notification on changes in system settings

Notification on changes in system settings

The callback method is called when the following system settings are changed:

The values of all specified settings are always passed in the request.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
settingsobject (Settings) System settings
settings[default_currency]object (Value)deprecated Default currency
settings[default_currency][value]string Setting value
settings[default_currency][updated_at]DateTimeY-m-d H:i:s Date and time when the setting was last changed
settings[system_language]object (Value) System language
settings[system_language][value]string Setting value
settings[system_language][updated_at]DateTimeY-m-d H:i:s Date and time when the setting was last changed
settings[timezone]object (Value) Time zone
settings[timezone][value]string Setting value
settings[timezone][updated_at]DateTimeY-m-d H:i:s Date and time when the setting was last changed
settings[work_times][]array of objects (WorkTime) Working hours
settings[work_times][][day_type]string Day of the week
settings[work_times][][start_time]string Start of working hours
settings[work_times][][end_time]string End of working hours
settings[work_times][][lunch_start_time]string Time when lunch starts
settings[work_times][][lunch_end_time]string Time when lunch ends
settings[non_working_days][]array of objects (NonWorkingDay) Non-working days
settings[non_working_days][][start_date]DateTimem.d Start of non-working days
settings[non_working_days][][end_date]DateTimem.d End of non-working days
settings[mg]object (IntegrationData) Chat settings
settings[mg][order_creation]object (OrderCreationSettings) Parameters that will be automatically specified in the order when registering from chats
settings[mg][order_creation][default]object (ChannelSetting) Default parameters
settings[mg][order_creation][default][site]string Store
settings[mg][order_creation][default][order_type]string Order type
settings[mg][order_creation][default][order_method]string Method
settings[mg][order_creation][channels][]array of objects (ChannelSetting) Parameters for individual channels (key - channel externalId)
settings[mg][order_creation][channels][][site]string Store
settings[mg][order_creation][channels][][order_type]string Order type
settings[mg][order_creation][channels][][order_method]string Method

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

CallbackPOST {registerUrl} Module registration

Module registration

Callback is called when connecting the module.

{registerUrl} is the URL to which the request to connect the module will be sent. See documentation to the callback method {configUrl}.

Parameters

ParameterTypeFormatDescription
registerobject (Register)
register[token]string API key in the form of a hash code generated from the secret token using the sha256 algorithm and the hmac method to authenticate the request
register[systemUrl]string Technical domain of the system to which requests should be sent
register[apiKey]string API key to access the system API

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
accountUrl string Personal account (clicking on this link sends POST request with clientId parameter)

Loyalty

POST /api/v5/loyalty/account/create Adding a customer to the loyalty program

Adding a customer to the loyalty program

To access the method, the following permission is required loyalty_write.

Method checks the possibility of customer participation in the loyalty program and adds the customer

In the settings for the Loyalty Program it is possible to specify a list of fields required for filling in in the customer and participation card. If not all of the specified fields are filled in, the corresponding message is displayed in the response in the warnings field. If the required fields are not set up and there is no requirement to confirm activation by SMS or all the required fields are transferred, then the participation is created active. Otherwise, it is created inactive. When the participation is inactive, it is not possible to redeem bonuses and apply discount privileges.

One of the following fields must also be filled in: phoneNumber or cardNumber

Parameters

ParameterTypeFormatDescription
sitestring Store symbolic code
loyaltyAccountobject (SerializedCreateLoyaltyAccount)
loyaltyAccount[phoneNumber]string Phone number
loyaltyAccount[cardNumber]string Card number
loyaltyAccount[customFields]array Associative array of custom fields
loyaltyAccount[customer]object (SerializedEntityCustomer) Customer
loyaltyAccount[customer][id]integer Customer internal ID
loyaltyAccount[customer][externalId]string Customer external ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
loyaltyAccount object (LoyaltyAccount) Participation in the loyalty program
loyaltyAccount[active] boolean Flag of active participation
loyaltyAccount[id] integer Participation ID
loyaltyAccount[phoneNumber] string Phone number
loyaltyAccount[cardNumber] string Card number
loyaltyAccount[amount] float Active bonus amount
loyaltyAccount[level] object (LoyaltyLevel) Level of participation
loyaltyAccount[level][id] integer Level ID
loyaltyAccount[level][name] string Level name
loyaltyAccount[createdAt] DateTime Creation date
loyaltyAccount[activatedAt] DateTime Activation date of the participation
loyaltyAccount[confirmedPhoneAt] DateTime Verification date of the phone number
loyaltyAccount[lastCheckId] string ID of the last SMS verification
loyaltyAccount[customFields] array Associative array of custom fields
warnings array

GET /api/v5/loyalty/account/{id} Getting information about participation in the loyalty program

Getting information about participation in the loyalty program

To access the method, the following permission is required loyalty_read.

Parameters

ParameterTypeFormatDescription
idinteger ID of participation in the loyalty program

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
loyaltyAccount object (LoyaltyAccount) Participation in the loyalty program
loyaltyAccount[active] boolean Flag of active participation
loyaltyAccount[id] integer Participation ID
loyaltyAccount[loyalty] object (Loyalty) Loyalty program
loyaltyAccount[loyalty][currency] string Currency
loyaltyAccount[loyalty][id] integer Loyalty program ID
loyaltyAccount[customer] object (Customer) Customer
loyaltyAccount[customer][id] integer Customer ID
loyaltyAccount[customer][externalId] string Customer external ID
loyaltyAccount[customer][site] string Store, from which the customer came
loyaltyAccount[customer][customFields] array Associative array of custom fields
loyaltyAccount[customer][firstName] string Name
loyaltyAccount[customer][lastName] string Surname
loyaltyAccount[customer][patronymic] string Middle name
loyaltyAccount[phoneNumber] string Phone number
loyaltyAccount[cardNumber] string Card number
loyaltyAccount[amount] float Active bonus amount
loyaltyAccount[ordersSum] float Orders total sum (in entity currency)
loyaltyAccount[nextLevelSum] float The required sum of purchases to go to the next level
loyaltyAccount[level] object (LoyaltyLevel) Level of participation
loyaltyAccount[level][type] string Level type. Possible values: bonus_converting, bonus_percent, discount
loyaltyAccount[level][id] integer Level ID
loyaltyAccount[level][name] string Level name
loyaltyAccount[level][sum] custom handler result for (int) The sum required to go to this level (in entity currency)
loyaltyAccount[level][privilegeSize] float Discount amount, percentage or rate of bonus accrual for products at a regular price (in entity currency)
loyaltyAccount[level][privilegeSizePromo] float Discount amount, percentage or rate of bonus accrual for promotional products (in entity currency)
loyaltyAccount[level][creditConditions][] array of objects (LoyaltyLevelCondition) Conditions for accruing bonuses on specific products
loyaltyAccount[level][creditConditions][][id] integer Condition ID
loyaltyAccount[level][creditConditions][][privilegeSize] float Discount amount, percentage or bonus accrual rate for products at a regular price (in entity currency)
loyaltyAccount[level][creditConditions][][privilegeSizePromo] float Discount amount, percentage or bonus accrual rate for promotional products (in entity currency)
loyaltyAccount[level][creditConditions][][items] Condition items
loyaltyAccount[level][creditConditions][][items][id] integer Condition item IDCondition item IDCondition item IDCondition item ID
loyaltyAccount[level][creditConditions][][items][offer] object (Offer) SKU
loyaltyAccount[level][creditConditions][][items][offer][displayName] string SKU name
loyaltyAccount[level][creditConditions][][items][offer][id] integer SKU ID
loyaltyAccount[level][creditConditions][][items][offer][externalId] string SKU ID in store
loyaltyAccount[level][creditConditions][][items][offer][xmlId] string SKU ID in the warehouse system
loyaltyAccount[level][creditConditions][][items][offer][name] string Name
loyaltyAccount[level][creditConditions][][items][offer][article] string Vendor code
loyaltyAccount[level][creditConditions][][items][offer][active] boolean Activity
loyaltyAccount[level][creditConditions][][items][offer][properties][] array of strings SKU properties
loyaltyAccount[level][creditConditions][][items][product] object (Product) Product
loyaltyAccount[level][creditConditions][][items][product][id] integer Product ID
loyaltyAccount[level][creditConditions][][items][product][name] string Name
loyaltyAccount[level][creditConditions][][items][product][externalId] string Item external ID
loyaltyAccount[level][creditConditions][][items][product][active] boolean Activity
loyaltyAccount[level][creditConditions][][items][productGroup] object (ProductGroup) Item group
loyaltyAccount[level][creditConditions][][items][productGroup][id] integer ID
loyaltyAccount[level][creditConditions][][items][productGroup][name] string Name
loyaltyAccount[level][creditConditions][][items][productGroup][externalId] string Item group external ID
loyaltyAccount[level][creditConditions][][items][productGroup][active] boolean Activity
loyaltyAccount[level][creditConditions][][items][manufacturer] string Manufacturer
loyaltyAccount[createdAt] DateTime Creation date
loyaltyAccount[activatedAt] DateTime Activation date of the participation
loyaltyAccount[confirmedPhoneAt] DateTime Verification date of the phone number
loyaltyAccount[lastCheckId] string ID of the last SMS verification
loyaltyAccount[status] string Participation status. Possible values: not_confirmed, activated, deactivated
loyaltyAccount[customFields] array Associative array of custom fields

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/loyalty/account/{id}/activate Activation of participation in the loyalty program

Activation of participation in the loyalty program

To access the method, the following permission is required loyalty_write.

The method allows you to activate the created participation. If the setting of registration in the loyalty program "Confirmation of registration by SMS" is enabled, it is required to specify a phone number in the participation of the loyalty program. An SMS message will be sent to this phone number confirming the activation of the participation in the program. The activation will be performed only after the confirmation via the SMS code.

To resend SMS, call this method again. Resending is available in 60 seconds. The validity of the SMS code is 5 minutes.

If it is not required to send an SMS for activation, the activation will be performed according to the settings of the loyalty program and the LoyaltyAccount object will be returned in the response. In case of confirmation via SMS, the SmsVerification object will also be returned.

The code received by SMS must be sent in the method of verification confirmation specifying the checkId parameter.

Parameters

ParameterTypeFormatDescription
idinteger ID of participation in the loyalty program

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
loyaltyAccount object (LoyaltyAccount) Participation in the loyalty program
loyaltyAccount[active] boolean Flag of active participation
loyaltyAccount[id] integer Participation ID
loyaltyAccount[phoneNumber] string Phone number
loyaltyAccount[cardNumber] string Card number
loyaltyAccount[amount] float Active bonus amount
loyaltyAccount[level] object (LoyaltyLevel) Level of participation
loyaltyAccount[level][id] integer Level ID
loyaltyAccount[level][name] string Level name
loyaltyAccount[createdAt] DateTime Creation date
loyaltyAccount[activatedAt] DateTime Activation date of the participation
loyaltyAccount[confirmedPhoneAt] DateTime Verification date of the phone number
loyaltyAccount[lastCheckId] string ID of the last SMS verification
loyaltyAccount[customFields] array Associative array of custom fields
verification object (SmsVerification) SMS-verification
verification[createdAt] DateTime Date of creation. (Y-m-d H:i:s)
verification[expiredAt] DateTime Expiration date. (Y-m-d H:i:s)
verification[verifiedAt] DateTime Verification success date. (Y-m-d H:i:s)
verification[checkId] string Code verification ID
verification[actionType] string Type of action

POST /api/v5/loyalty/account/{id}/bonus/charge Charging off bonuses to a loyalty program participant

Charging off bonuses to a loyalty program participant

To access the method, the following permission is required loyalty_write.

The method allows to charge off bonuses to a loyalty program participant.

Parameters

ParameterTypeFormatDescription
amountfloat Number of bonuses to charge off
commentstring Comment

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

POST /api/v5/loyalty/account/{id}/bonus/credit Accrual of bonuses for participation in the loyalty program

Accrual of bonuses for participation in the loyalty program

To access the method, the following permission is required loyalty_write.

This method allows to accrue bonuses for participation in the loyalty program.

If the activation date of bonuses activationDate wasn’t passed, bonuses will be activated in accordance with the settings of the loyalty program

If the expiration date of bonuses expireDate wasn’t not passed, bonuses will expire in accordance with the settings of the loyalty program

Parameters

ParameterTypeFormatDescription
amountfloat Bonus amount to be accrued
activationDateDateTimeY-m-d Activation date of bonuses
expireDateDateTimeY-m-d Expiration date of bonuses
commentstring Comment

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
loyaltyBonus object (LoyaltyBonus)
loyaltyBonus[amount] float Amount of accrued bonuses
loyaltyBonus[activationDate] DateTime Activation date of bonuses
loyaltyBonus[expireDate] DateTime Expiration date of bonuses

GET /api/v5/loyalty/account/{id}/bonus/operations History of the bonus account for a specific participation

History of the bonus account for a specific participation

To access the method, the following permission is required loyalty_read.

This method allows to get the history of the bonus account for participation in the loyalty program.

The bonusOperations[][type] field contains the type of action that led to the change of the bonus account. Possible values:

The bonusOperations[][amount] field contains the amount of redeemed, expired or accrued bonuses. If bonuses were accrued, the value is positive, if they were redeemed or expired - negative.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (LoyaltyAccountBonusOperationsApiFilterType)
filter[createdAtFrom]string Creation date (from)
filter[createdAtTo]string Creation date (to)
idinteger ID of participation in the loyalty program

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
bonusOperations[] array of objects (Operation) Entry in the history of the bonus account
bonusOperations[][type] string Action type
bonusOperations[][createdAt] DateTime Action date
bonusOperations[][amount] float Bonus amount
bonusOperations[][order] object (OperationOrder) Linked order
bonusOperations[][order][id] integer Order ID
bonusOperations[][order][externalId] string External ID of the order
bonusOperations[][bonus] object (OperationBonus) Accrued bonuses
bonusOperations[][bonus][activationDate] DateTime Activation date of bonuses
bonusOperations[][bonus][expireDate] DateTime Expiration date of bonuses
bonusOperations[][event] object (OperationEvent) Event of the loyalty program
bonusOperations[][event][id] integer Event ID
bonusOperations[][event][type] string Event type. Possible values: birthday, welcome
bonusOperations[][comment] string Comment

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/loyalty/account/{id}/bonus/{status}/details Getting details on the bonus account

Getting details on the bonus account

To access the method, the following permission is required loyalty_read.

The method allows to get detailed information about bonuses in the statuses "Waiting for activation" waiting_activation and "Will expire soon" burn_soon.

The filter[date] parameter filters depending on the transferred status

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (LoyaltyAccountBonusApiFilterType)
filter[date]DateTime
idinteger ID of participation in the loyalty program
statusstring Status of bonuses

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
statistic object (LoyaltyBonusStatisticResponse) Bonus statistics
statistic[totalAmount] float Total amount of bonuses
bonuses[] array of objects (BonusDetail)
bonuses[][date] DateTime Expiration or activation date of bonuses
bonuses[][amount] float Bonus amount

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/loyalty/account/{id}/edit Editing participation in the loyalty program

Editing participation in the loyalty program

To access the method, the following permission is required loyalty_write.

Method for editing participation in the loyalty program.

An error will be returned when trying to change the verified phone number.

Parameters

ParameterTypeFormatDescription
loyaltyAccountobject (SerializedEditLoyaltyAccount)
loyaltyAccount[phoneNumber]string Phone number
loyaltyAccount[cardNumber]string Card number
loyaltyAccount[customFields]array Associative array of custom fields
loyaltyAccount[loyaltyLevelId]integer Loyalty level ID
idinteger ID of participation in the loyalty program

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
loyaltyAccount object (LoyaltyAccount) Participation in the loyalty program
loyaltyAccount[active] boolean Flag of active participation
loyaltyAccount[id] integer Participation ID
loyaltyAccount[phoneNumber] string Phone number
loyaltyAccount[cardNumber] string Card number
loyaltyAccount[amount] float Active bonus amount
loyaltyAccount[level] object (LoyaltyLevel) Level of participation
loyaltyAccount[level][id] integer Level ID
loyaltyAccount[level][name] string Level name
loyaltyAccount[createdAt] DateTime Creation date
loyaltyAccount[activatedAt] DateTime Activation date of the participation
loyaltyAccount[confirmedPhoneAt] DateTime Verification date of the phone number
loyaltyAccount[lastCheckId] string ID of the last SMS verification
loyaltyAccount[customFields] array Associative array of custom fields

GET /api/v5/loyalty/accounts List participation in the loyalty program

List participation in the loyalty program

To access the method, the following permission is required loyalty_read.

Method returns a list of participations in the loyalty program.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (LoyaltyAccountFilterData)
filter[ids][]array of integers Array of Participation IDs in the loyalty program
filter[id]integer Participation ID
filter[customer]string{length: {max: 255}} Customer
filter[loyalties][]array of integers Array of Loyalty program IDs
filter[sites][]array of strings Loyalty program stores
filter[status]string[activated|deactivated|not_confirmed] Status
filter[phoneNumber]string{length: {max: 255}} Phone number
filter[cardNumber]string{length: {max: 255}} Card number
filter[level]integer Level internal ID
filter[customerId]integer{range: {>=0, <=100000000000}} Customer internal ID
filter[customerExternalId]string{length: {max: 255}} Customer external ID
filter[customerSites][]array of strings Customer stores
filter[createdAtFrom]DateTimeY-m-d Registration date (from)
filter[createdAtTo]DateTimeY-m-d Registration date (to)
filter[burnDateFrom]DateTimeY-m-d Date when bonuses are expired (from)
filter[burnDateTo]DateTimeY-m-d Date when bonuses are expired (to)
filter[minOrdersSum]integer Orders total sum (from)
filter[maxOrdersSum]integer Orders total sum (to)
filter[minAmount]integer Bonus amount (from)
filter[maxAmount]integer Bonus amount (to)
filter[customFields]array Custom fields

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
loyaltyAccounts[] array of objects (LoyaltyAccount) Participation in the loyalty program
loyaltyAccounts[][active] boolean Flag of active participation
loyaltyAccounts[][id] integer Participation ID
loyaltyAccounts[][loyalty] object (Loyalty) Loyalty program
loyaltyAccounts[][loyalty][currency] string Currency
loyaltyAccounts[][loyalty][id] integer Loyalty program ID
loyaltyAccounts[][customer] object (Customer) Customer
loyaltyAccounts[][customer][id] integer Customer ID
loyaltyAccounts[][customer][externalId] string Customer external ID
loyaltyAccounts[][customer][site] string Store, from which the customer came
loyaltyAccounts[][customer][firstName] string Name
loyaltyAccounts[][customer][lastName] string Surname
loyaltyAccounts[][customer][patronymic] string Middle name
loyaltyAccounts[][phoneNumber] string Phone number
loyaltyAccounts[][cardNumber] string Card number
loyaltyAccounts[][amount] float Active bonus amount
loyaltyAccounts[][ordersSum] float Orders total sum (in entity currency)
loyaltyAccounts[][nextLevelSum] float The required sum of purchases to go to the next level
loyaltyAccounts[][level] object (LoyaltyLevel) Level of participation
loyaltyAccounts[][level][type] string Level type. Possible values: bonus_converting, bonus_percent, discount
loyaltyAccounts[][level][id] integer Level ID
loyaltyAccounts[][level][name] string Level name
loyaltyAccounts[][level][sum] custom handler result for (int) The sum required to go to this level (in entity currency)
loyaltyAccounts[][level][privilegeSize] float Discount amount, percentage or rate of bonus accrual for products at a regular price (in entity currency)
loyaltyAccounts[][level][privilegeSizePromo] float Discount amount, percentage or rate of bonus accrual for promotional products (in entity currency)
loyaltyAccounts[][createdAt] DateTime Creation date
loyaltyAccounts[][activatedAt] DateTime Activation date of the participation
loyaltyAccounts[][confirmedPhoneAt] DateTime Verification date of the phone number
loyaltyAccounts[][lastCheckId] string ID of the last SMS verification
loyaltyAccounts[][status] string Participation status. Possible values: not_confirmed, activated, deactivated

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/loyalty/bonus/operations History of the bonus account for all participations

History of the bonus account for all participations

To access the method, the following permission is required loyalty_read.

This method allows to get the history of the bonus account for all participations in all loyalty programs

The bonusOperations[][type] field contains the type of action that led to the change of the bonus account. Possible values:

The bonusOperations[][amount] field contains the amount of redeemed, expired or accrued bonuses. If bonuses were accrued, the value is positive, if they were redeemed or expired - negative.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
cursorstring The cursor of the element from which the search starts
filterobject (LoyaltyBonusOperationsApiFilterType)
filter[loyalties][]array of integers Array of IDs of loyalty programs

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (CursorPaginationResponse) Pagination with cursors
pagination[nextCursor] string The cursor of the first element on the next page
bonusOperations[] array of objects (Operation) Entry in the history of the bonus account
bonusOperations[][type] string Action type
bonusOperations[][createdAt] DateTime Action date
bonusOperations[][amount] float Bonus amount
bonusOperations[][order] object (OperationOrder) Linked order
bonusOperations[][order][id] integer Order ID
bonusOperations[][order][externalId] string External ID of the order
bonusOperations[][bonus] object (OperationBonus) Accrued bonuses
bonusOperations[][bonus][activationDate] DateTime Activation date of bonuses
bonusOperations[][bonus][expireDate] DateTime Expiration date of bonuses
bonusOperations[][event] object (OperationEvent) Event of the loyalty program
bonusOperations[][event][id] integer Event ID
bonusOperations[][event][type] string Event type. Possible values: birthday, welcome
bonusOperations[][loyaltyAccount] object (OperationLoyaltyAccount) Related participation
bonusOperations[][loyaltyAccount][id] integer Participation ID
bonusOperations[][loyalty] object (OperationLoyalty) Related loyalty program
bonusOperations[][loyalty][id] integer Loyalty program ID
bonusOperations[][comment] string Comment

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/loyalty/calculate Calculation of a maximum discount

Calculation of a maximum discount

To access the method, the following permission is required loyalty_read.

This method calculates the maximum discount for a customer taking into account a personal discount or loyalty level or event. The method allows transferring the estimated number of bonuses to be redeemed (only for calculations) in the bonuses parameter, 0 by default.

The privilegeType field can contain one of the following values:

Parameters

ParameterTypeFormatDescription
sitestring Store symbolic code
orderobject (SerializedOrder)
order[privilegeType]string Privilege type
order[discountManualAmount]double Monetary discount (in entity currency)
order[discountManualPercent]double Percentage discount
order[customer]object (SerializedRelationCustomer) Customer
order[customer][id]integer Customer internal ID
order[customer][externalId]string Customer external ID
order[items][]array of objects (SerializedOrderProduct)
order[items][][initialPrice]double Item price/SKU (in entity currency)
order[items][][discountManualAmount]double Monetary discount per item (in entity currency)
order[items][][discountManualPercent]double Percentage discount per item
order[items][][quantity]float Quantity
order[items][][offer]object (SerializedOrderProductOffer) SKU
order[items][][offer][id]integer SKU ID
order[items][][offer][externalId]string SKU external ID
order[items][][offer][xmlId]string SKU ID in the warehouse system
order[items][][priceType]object (PriceType) Price type
order[items][][priceType][code]string Price type code
order[delivery]object (SerializedOrderDelivery) Data on delivery
order[delivery][cost]double Cost
order[applyRound]boolean Apply the setting of rounding the order cost
bonusesfloat Amount of bonuses to be redeemed

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
order object (SerializedLoyaltyOrder)
order[bonusesCreditTotal] double Amount of accrued bonuses
order[bonusesChargeTotal] double Amount of debited bonuses
order[currency] string Currency
order[privilegeType] string Privilege type
order[totalSumm] double Total sum with discount (in entity currency)
order[personalDiscountPercent] double Personal discount on the order
order[loyaltyAccount] object (LoyaltyAccount) Participation in the loyalty program
order[loyaltyAccount][id] integer Participation ID
order[loyaltyAccount][amount] float Active bonus amount
order[loyaltyLevel] object (LoyaltyLevel) Level of participation in the loyalty program
order[loyaltyLevel][id] integer Level ID
order[loyaltyLevel][name] string Level name
order[loyaltyEventDiscount] object (LoyaltyEventDiscount) Discount on the event of the loyalty program
order[loyaltyEventDiscount][id] integer ID
order[customer] object (Customer) Customer
order[customer][id] integer Customer ID
order[customer][externalId] string Customer external ID
order[customer][personalDiscount] double Personal discount
order[delivery] object (SerializedOrderDelivery) Data on delivery
order[delivery][cost] double Cost
order[site] string Store
order[items][] array of objects (OrderProduct) Order item
order[items][][bonusesChargeTotal] double Amount of debited bonuses
order[items][][bonusesCreditTotal] double Amount of accrued bonuses
order[items][][id] integer ID of order item
order[items][][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[items][][externalIds][][code] string Symbolic code
order[items][][externalIds][][value] string Value
order[items][][priceType] object (PriceType) Price type
order[items][][priceType][code] string Price type code
order[items][][initialPrice] double Item price/SKU (in entity currency)
order[items][][discounts][] array of objects (AbstractDiscount) Array of discounts
order[items][][discounts][][type] string Discount type. Possible values:
manual_order - One-time discount on the order;
manual_product - Additional discount on the product;
loyalty_level - Discount on the level of the loyalty program;
loyalty_event - Discount on the event of the loyalty program;
personal - Personal discount;
bonus_charge - Redemption of bonuses of the loyalty program;
round - Discount from rounding
order[items][][discounts][][amount] float Discount amount
order[items][][discountTotal] double Final monetary discount per item including all item and order discounts (in entity currency)
order[items][][prices][] array of objects (OrderProductPriceItem) Set of total sales prices with the quantity
order[items][][prices][][price] float Total price including all discounts on the product and order (in entity currency)
order[items][][prices][][quantity] float Quantity of the product at the specified price
order[items][][vatRate] string VAT rate
order[items][][quantity] float Quantity
order[items][][offer] object (Offer) SKU
order[items][][offer][id] integer SKU ID
order[items][][offer][externalId] string SKU ID in store
order[items][][offer][xmlId] string SKU ID in the warehouse system
calculations[] array of objects (LoyaltyCalculation)
calculations[][privilegeType] string Privilege type
calculations[][discount] float Monetary discount on the order taking into account the bonuses redeemed at the rate specified in the settings
calculations[][creditBonuses] float Bonuses to be accrued
calculations[][loyaltyEventDiscount] object (LoyaltyEventDiscount) Discount on the event of the loyalty program
calculations[][loyaltyEventDiscount][id] integer ID
calculations[][maxChargeBonuses] float Bonuses available for redeeming
calculations[][maximum] boolean Privilege with maximum benefit
loyalty object (SerializedLoyalty)
loyalty[currency] string Currency
loyalty[name] string Loyalty program name
loyalty[chargeRate] float Rate when redeeming bonuses (in entity currency)

GET /api/v5/loyalty/loyalties List of loyalty programs

List of loyalty programs

To access the method, the following permission is required loyalty_read.

The method returns a list of loyalty programs

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (LoyaltyApiFilterData)
filter[ids][]array of integers Array ID of loyalty programs
filter[sites][]array of strings Stores
filter[active]boolean Activity
filter[blocked]boolean Blocked

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
loyalties[] array of objects (Loyalty) Loyalty program
loyalties[][levels][] array of objects (LoyaltyLevel) Loyalty levels
loyalties[][levels][][type] string Level type. Possible values: bonus_converting, bonus_percent, discount
loyalties[][levels][][id] integer Level ID
loyalties[][levels][][name] string Level name
loyalties[][levels][][sum] custom handler result for (int) The sum required to go to this level (in entity currency)
loyalties[][levels][][privilegeSize] float Discount amount, percentage or rate of bonus accrual for products at a regular price (in entity currency)
loyalties[][levels][][privilegeSizePromo] float Discount amount, percentage or rate of bonus accrual for promotional products (in entity currency)
loyalties[][active] boolean Activity
loyalties[][blocked] boolean Blocked
loyalties[][currency] string Currency
loyalties[][id] integer Loyalty program ID
loyalties[][name] string Loyalty program name
loyalties[][confirmSmsCharge] boolean Confirm bonus debiting via SMS
loyalties[][confirmSmsRegistration] boolean Confirm participation registration by SMS
loyalties[][createdAt] DateTime Date of creation
loyalties[][activatedAt] DateTime Launch date
loyalties[][deactivatedAt] DateTime Stop date
loyalties[][blockedAt] DateTime Date of blocking

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/loyalty/loyalties/{id} Getting information about the loyalty program

Getting information about the loyalty program

To access the method, the following permission is required loyalty_read.

Parameters

ParameterTypeFormatDescription
idinteger Loyalty program ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
loyalty object (Loyalty) Loyalty program
loyalty[levels][] array of objects (LoyaltyLevel) Loyalty levels
loyalty[levels][][type] string Level type. Possible values: bonus_converting, bonus_percent, discount
loyalty[levels][][id] integer Level ID
loyalty[levels][][name] string Level name
loyalty[levels][][sum] custom handler result for (int) The sum required to go to this level (in entity currency)
loyalty[levels][][privilegeSize] float Discount amount, percentage or rate of bonus accrual for products at a regular price (in entity currency)
loyalty[levels][][privilegeSizePromo] float Discount amount, percentage or rate of bonus accrual for promotional products (in entity currency)
loyalty[levels][][creditConditions][] array of objects (LoyaltyLevelCondition) Conditions for accruing bonuses on specific products
loyalty[levels][][creditConditions][][id] integer Condition ID
loyalty[levels][][creditConditions][][privilegeSize] float Discount amount, percentage or bonus accrual rate for products at a regular price (in entity currency)
loyalty[levels][][creditConditions][][privilegeSizePromo] float Discount amount, percentage or bonus accrual rate for promotional products (in entity currency)
loyalty[levels][][creditConditions][][items] Condition items
loyalty[levels][][creditConditions][][items][id] integer Condition item IDCondition item IDCondition item IDCondition item ID
loyalty[levels][][creditConditions][][items][offer] object (Offer) SKU
loyalty[levels][][creditConditions][][items][offer][displayName] string SKU name
loyalty[levels][][creditConditions][][items][offer][id] integer SKU ID
loyalty[levels][][creditConditions][][items][offer][externalId] string SKU ID in store
loyalty[levels][][creditConditions][][items][offer][xmlId] string SKU ID in the warehouse system
loyalty[levels][][creditConditions][][items][offer][name] string Name
loyalty[levels][][creditConditions][][items][offer][article] string Vendor code
loyalty[levels][][creditConditions][][items][offer][vatRate] string VAT rate
loyalty[levels][][creditConditions][][items][offer][properties][] array SKU properties
loyalty[levels][][creditConditions][][items][offer][active] boolean Activity
loyalty[levels][][creditConditions][][items][offer][unit] object (Unit) Unit
loyalty[levels][][creditConditions][][items][offer][unit][code] string Unit symbolic code
loyalty[levels][][creditConditions][][items][offer][unit][name] string Unit name
loyalty[levels][][creditConditions][][items][offer][unit][sym] string Unit short name
loyalty[levels][][creditConditions][][items][offer][barcode] string Barcode
loyalty[levels][][creditConditions][][items][product] object (Product) Product
loyalty[levels][][creditConditions][][items][product][id] integer Product ID
loyalty[levels][][creditConditions][][items][product][name] string Name
loyalty[levels][][creditConditions][][items][product][externalId] string Item external ID
loyalty[levels][][creditConditions][][items][product][active] boolean Activity
loyalty[levels][][creditConditions][][items][productGroup] object (ProductGroup) Item group
loyalty[levels][][creditConditions][][items][productGroup][id] integer ID
loyalty[levels][][creditConditions][][items][productGroup][name] string Name
loyalty[levels][][creditConditions][][items][productGroup][externalId] string Item group external ID
loyalty[levels][][creditConditions][][items][productGroup][active] boolean Activity
loyalty[levels][][creditConditions][][items][manufacturer] string Manufacturer
loyalty[active] boolean Activity
loyalty[blocked] boolean Blocked
loyalty[currency] string Currency
loyalty[id] integer Loyalty program ID
loyalty[name] string Loyalty program name
loyalty[confirmSmsCharge] boolean Confirm bonus debiting via SMS
loyalty[confirmSmsRegistration] boolean Confirm participation registration by SMS
loyalty[createdAt] DateTime Date of creation
loyalty[activatedAt] DateTime Launch date
loyalty[deactivatedAt] DateTime Stop date
loyalty[blockedAt] DateTime Date of blocking

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

Notifications

POST /api/v5/notifications/send Sending notification

Sending notification

To access the method, the following permission is required notification_write.

The method sends notifications to recipients that are specified in mutually exclusive fields: notification[userIds], notification[userGroups].

Via notification[userIds] you can transfer an array of identifiers of users existing in the system. All array elements must be of type integer.

At the moment, the only valid value of the notification[userGroups] field can be the code of the superadmins group.

Only one of the fields notification[userIds] or notification[userGroups] should be filled in the request.

The notification[type] field can get the following values: api.info - informational, api.error - error.

The notification[message] field allows the use of HTML-code. To ensure the security of using notifications only certain HTML-tagsare allowed in the message text: <b></b>, <i></i>, <strong></strong>, <em></em>, <br>, <span>, <div>, <p>, <a href=""></a>. Message length should not exceed 160 characters, excluding tags.

When using this method, keep in mind that for each user there is a limit of notifications that he can receive over a period of time from one api key. When sending to multiple recipients at once, the user limit with the minimum notification balance is used. Notifications are not sent if the list of recipients contains a user with zero balance of available notifications. Depending on the type of notification there are two limitations:

Information about limits is returned in the response headers:

Parameters

ParameterTypeFormatDescription
notificationobject (SerializedApiNotification)
notification[type]string Type (informational or error)
notification[message]string Message (use of html tags is allowed)
notification[userIds][]array Array of recipient identifiers
notification[userGroups][]array{choice of [superadmins]} Array of recipient groups codes

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
201
  • Notification successfully created and sent
400
  • Request execution error
429
  • Request execution error. Request limit has been exceeded over the last time.

Orders

GET /api/v5/orders Getting the list of orders matched the specified filter

Getting the list of orders matched the specified filter

To access the method, the following permission is required order_read.

The result is returned page by page. In the field pagination there is information on pagination.

In the filters filter[managers][], filter[couriers][] the internal IDs of the system elements are specified.

In the filters filter[orderTypes][], filter[paymentStatuses][], filter[paymentTypes][], filter[deliveryTypes][], filter[orderMethods][], filter[managerGroups][] the symbol codes of the elements are specified.

In the filters filter[sourceName], filter[mediumName], filter[campaignName], filter[keywordName], filter[adContentName] the name of the elements are specified.

In the filter filter[number] the exact comparison with the specified string expression is carried out.

In the following filters filter[ids][] and filter[externalIds][] the array of internal and external identifiers are passed.

In the filter filter[extendedStatus][] you can specify one or more statuses or order status groups. For filtration by status the symbol code of status is passed. For filtration by the status group the symbol code of status group and the postfix -group are passed. E.g.: filter[extendedStatus][]=new&filter[extendedStatus][]=approval-group.

With the help of the filter[customFields][] filter you can search by the custom fields value. For the "Data book" fields the symbol code of data book value is specified. For the "Date" and "Date-time" fields the date is specified in the Y-m-d format. For other field types exactly the value is specified.

For the Integer, Numeric, Date and Date-time custom fields the filtration is realized over the range, for other fields types — by the exact value. Filter name is the same as field symbol code. E.g.: for the Date field with the symbol code birth_date there are filters filter[customFields][birth_date][min] and filter[customFields][birth_date][max]. For the DataBook field with the symbol code quality there is multiple filter filter[customFields][quality][].

One of three values can be specified in filter[attachments]:

One of three values can be specified in the filter[tasksCounts]:

The filter[mgChannels] filter specifies an array of internal IDs of channels in the system. The filter selects orders created via the right-hand chat widget.

Empty fields without values are not returned.

In the fields orderType, orderMethod, payments[][type], payments[][status], status, site, delivery[code] the symbol code of the element is returned.

In the fields managerId, sourceId the internal ID of the system entity is returned.

In the customFields field the value array of custom fields is returned. For the "DataBook" fields the symbol code of data book value is specified. For the date fields the date in the format Y-m-d is specified. For other field types the exact value is specified.

If the customer address was specified in the string form it will be returned to the delivery[address][text]. If the address was specified in detailed view, there will be returned all delivery filled fields, and in the delivery[address][text] there will be automatically generated textual representation of the address.

The privilegeType field can contain one of the following values:

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (OrderFilterData)
filter[ids][]array of integers Array of order's ID
filter[externalIds][]array of strings Array of order's externalID
filter[numbers][]array of strings Array of order's number (no more than 100 numbers in one request)
filter[customerId]integer{range: {>=0, <=100000000000}} Customer ID
filter[customerExternalId]string{length: {max: 255}} Customer external ID
filter[customer]string{length: {max: 255}} Customer (Name or phone number)
filter[customerType]string[customer|customer_corporate] Customer type
filter[email]string{length: {max: 255}} E-mail
filter[managers][]array of integers Managers
filter[managerGroups][]array of strings Manager groups
filter[paymentStatuses][]array of strings Payment statuses
filter[orderTypes][]array of strings Order types
filter[orderMethods][]array of strings Order channels
filter[product]string{length: {max: 255}} Product (title or article)
filter[productSearchType]string
filter[extendedStatus][]array of strings Order status
filter[statusComment]string{length: {max: 255}}
filter[sites][]array of strings Stores
filter[vip]boolean VIP customer
filter[bad]boolean BAD customer
filter[expired]boolean Order expired
filter[call]boolean Call required
filter[online]boolean Customer is online
filter[paymentTypes][]array of strings Payment types
filter[deliveryStates][]array of strings{choice of [cancel|cancel_force|error|none|processing|success]} Statuses of delivery registration
filter[deliveryTypes][]array of strings Delivery types
filter[deliveryServices][]array of strings Services
filter[countries][]array of strings Countries
filter[region]string{length: {max: 255}} Region
filter[city]string{length: {max: 255}} City
filter[index]string Postal code
filter[metro]string{length: {max: 255}} Subway
filter[sourceName]string{length: {max: 255}} Source
filter[mediumName]string{length: {max: 255}} Medium
filter[campaignName]string{length: {max: 255}} Campaign
filter[keywordName]string Keyword
filter[adContentName]string Ad content
filter[managerComment]string{length: {max: 255}} Manager comment
filter[customerComment]string{length: {max: 255}} Customer comment
filter[trackNumber]string{length: {max: 255}} Delivery tracking number
filter[deliveryExternalId]string Delivery ID
filter[couriers][]array of integers Couriers
filter[contragentName]string{length: {max: 255}} Full name
filter[contragentTypes][]array of strings{choice of [enterpreneur|individual|legal-entity]} Contractor types
filter[contragentInn]string{match: /\d+/} VAT
filter[contragentKpp]string{match: /\d+/} IEC
filter[contragentBik]string{match: /\d+/} BIC
filter[contragentCorrAccount]string{match: /\d+/} Corresponding account
filter[contragentBankAccount]string{match: /\d+/} Bank account
filter[companyName]string{length: {max: 255}} Company (name)
filter[deliveryAddressNotes]string{length: {max: 255}} Notes to delivery address
filter[productGroups][]array of integers
filter[shipmentStores][]array of strings Shipment warehouses
filter[shipped]boolean Shipped
filter[attachments]integer[1|2|3] Attachments
filter[receiptFiscalDocumentAttribute]string{length: {max: 255}} Fiscal Document Attribute
filter[receiptStatus]string[done|fail|wait] Fiscalization status
filter[receiptOperation]string[sell|sell_refund] Fiscalization operation
filter[receiptOrderStatus]string[done|fail|wait] Full fiscalization status
filter[mgChannels][]array of integers Chat channels
filter[tasksCounts]integer[1|2|3] Tasks
filter[tags][]array of strings
filter[attachedTags][]array of strings
filter[createdAtFrom]DateTimeY-m-d Order creation date (from)
filter[createdAtTo]DateTimeY-m-d Order creation date (to)
filter[fullPaidAtFrom]DateTimeY-m-d Full payment date (from)
filter[fullPaidAtTo]DateTimeY-m-d Full payment date (to)
filter[deliveryDateFrom]DateTimeY-m-d Delivery date (from)
filter[deliveryDateTo]DateTimeY-m-d Delivery date (to)
filter[statusUpdatedAtFrom]DateTimeY-m-d Last status changing date (from)
filter[statusUpdatedAtTo]DateTimeY-m-d Last status changing date (to)
filter[shipmentDateFrom]DateTimeY-m-d Shipment date (from)
filter[shipmentDateTo]DateTimeY-m-d Shipment date (to)
filter[firstWebVisitFrom]DateTimeY-m-d First visit (from)
filter[firstWebVisitTo]DateTimeY-m-d First visit (to)
filter[lastWebVisitFrom]DateTimeY-m-d Last visit (from)
filter[lastWebVisitTo]DateTimeY-m-d Last visit (to)
filter[firstOrderFrom]DateTimeY-m-d First order (from)
filter[firstOrderTo]DateTimeY-m-d First order (to)
filter[lastOrderFrom]DateTimeY-m-d Last order (from)
filter[lastOrderTo]DateTimeY-m-d Last order (to)
filter[paidAtFrom]DateTimeY-m-d Payment date (from)
filter[paidAtTo]DateTimeY-m-d Payment date (to)
filter[deliveryTimeFrom]DateTimeHH:MM:SS Delivery time (from)
filter[deliveryTimeTo]DateTimeHH:MM:SS Delivery time (to)
filter[minPrice]integer Order price (from)
filter[maxPrice]integer Order price (to)
filter[minCostSumm]integer Amount of costs (from)
filter[maxCostSumm]integer Amount of costs (to)
filter[minPrepaySumm]integer Paid (from)
filter[maxPrepaySumm]integer Paid (to)
filter[minDeliveryCost]integer Delivery cost (from)
filter[maxDeliveryCost]integer Delivery cost (to)
filter[minDeliveryNetCost]integer Delivery net cost (from)
filter[maxDeliveryNetCost]integer Delivery net cost (to)
filter[minMarginSumm]integer Gross order profit (from)
filter[maxMarginSumm]integer Gross order profit (to)
filter[minPurchaseSumm]integer Order purchase price (from)
filter[maxPurchaseSumm]integer Order purchase price (to)
filter[customFields]array Filter by custom fields

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
orders[] array of objects (Order) Order
orders[][slug] custom handler result for (int) deprecated Symbolic code
orders[][bonusesCreditTotal] double Amount of accrued bonuses
orders[][bonusesChargeTotal] double Amount of debited bonuses
orders[][summ] double Total for goods/services (in entity currency)
orders[][currency] string Currency
orders[][id] integer Order ID
orders[][number] string Order number
orders[][externalId] string Order external ID
orders[][orderType] string Order type
orders[][orderMethod] string Method
orders[][privilegeType] string Privilege type
orders[][countryIso] string Country ISO code
orders[][createdAt] DateTime Order creation date
orders[][statusUpdatedAt] DateTime Date of the last order status change
orders[][totalSumm] double Total sum with discount (in entity currency)
orders[][prepaySum] double Paid sum (in entity currency)
orders[][purchaseSumm] double Total purchase sum (in base currency)
orders[][personalDiscountPercent] double Personal discount on the order
orders[][loyaltyLevel] object (LoyaltyLevel) Level of participation in the loyalty program
orders[][loyaltyLevel][id] integer Level ID
orders[][loyaltyLevel][name] string Level name
orders[][loyaltyEventDiscount] object (LoyaltyEventDiscount) Discount on the event of the loyalty program
orders[][loyaltyEventDiscount][id] integer ID
orders[][mark] integer Order evaluation
orders[][markDatetime] DateTime Date and time of getting evaluation from customer
orders[][lastName] string Surname
orders[][firstName] string Name
orders[][patronymic] string Middle name
orders[][phone] string Phone number
orders[][additionalPhone] string Additional phone
orders[][email] string E-mail
orders[][call] boolean Call required
orders[][expired] boolean Expired
orders[][customerComment] string Customer comment
orders[][managerComment] string Operator comment
orders[][managerId] integer Manager, responsible for order
orders[][customer]CustomerCorporate customer
orders[][customer][type] string Customer typeCustomer type
orders[][customer][id] integer Customer IDCorporate customer ID
orders[][customer][externalId] string Customer external IDCorporate customer external ID
orders[][customer][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
orders[][customer][createdAt] DateTime Created atCreated at
orders[][customer][managerId] integer Customer managerCorporate customer manager
orders[][customer][vip] boolean VIP customerVIP corporate customer
orders[][customer][bad] boolean Bad customerBad corporate customer
orders[][customer][site] string Store, from which the customer cameStore, from which the corporate customer came
orders[][customer][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
orders[][customer][contragent][contragentType] string Contragent type
orders[][customer][contragent][legalName] string Legal name
orders[][customer][contragent][legalAddress] string Registration address
orders[][customer][contragent][INN] string TIN
orders[][customer][contragent][OKPO] string RNNBO
orders[][customer][contragent][KPP] string IECC
orders[][customer][contragent][OGRN] string PSRN
orders[][customer][contragent][OGRNIP] string PSRN of Individual entrepreneur
orders[][customer][contragent][certificateNumber] string Certificate number
orders[][customer][contragent][certificateDate] DateTime Certificate date
orders[][customer][contragent][BIK] string RCBIC
orders[][customer][contragent][bank] string Bank
orders[][customer][contragent][bankAddress] string Bank address
orders[][customer][contragent][corrAccount] string Corresponding account
orders[][customer][contragent][bankAccount] string Settlement account
orders[][customer][tags][] array of objects (CustomerTagLink) [array] Tags[array] Tags
orders[][customer][tags][][color] string
orders[][customer][tags][][name] string
orders[][customer][tags][][colorCode] string
orders[][customer][tags][][attached] boolean
orders[][customer][firstClientId] string First Google Analytics clientIdFirst Google Analytics unique clientId
orders[][customer][lastClientId] string Last Google Analytics clientIdLast Google Analytics unique clientId
orders[][customer][customFields] array Associative array of custom fieldsAssociative array of custom fields
orders[][customer][personalDiscount] double Personal discountPersonal discount
orders[][customer][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)deprecated Cumulative discount (Not available starting from version 8 of the system)
orders[][customer][discountCardNumber] string Discount card numberDiscount card number
orders[][customer][avgMarginSumm] float Average gross profit of customer orders (in base currency)Average gross profit of corporate customer orders (in base currency)
orders[][customer][marginSumm] float LTV (in base currency)LTV (in base currency)
orders[][customer][totalSumm] float Orders total sum (in base currency)Orders total sum (in base currency)
orders[][customer][averageSumm] float Order average sum (in base currency)Order average sum (in base currency)
orders[][customer][ordersCount] integer Orders quantityOrders quantity
orders[][customer][costSumm] float Amount of costs (in base currency)Amount of costs (in base currency)
orders[][customer][address] object (CustomerAddress) Customer address
orders[][customer][address][id] integer Address ID
orders[][customer][address][index] string Postal code
orders[][customer][address][countryIso] string Country ISO code
orders[][customer][address][region] string Region
orders[][customer][address][regionId] integer Region ID in Geohelper
orders[][customer][address][city] string City
orders[][customer][address][cityId] integer City ID in Geohelper
orders[][customer][address][cityType] string Locality type
orders[][customer][address][street] string Street
orders[][customer][address][streetId] integer Street ID in Geohelper
orders[][customer][address][streetType] string Street type
orders[][customer][address][building] string Building
orders[][customer][address][flat] string Flat/office
orders[][customer][address][floor] integer Floor
orders[][customer][address][block] integer Entrance
orders[][customer][address][house] string House
orders[][customer][address][housing] string Housing
orders[][customer][address][metro] string Underground
orders[][customer][address][notes] string Notes to address
orders[][customer][address][text] string Address as string
orders[][customer][address][externalId] string External ID
orders[][customer][address][name] string Name
orders[][customer][segments][] array of objects (Segment) [array] Segments
orders[][customer][segments][][id] integer Internal ID of segment
orders[][customer][segments][][code] string Symbolic code
orders[][customer][segments][][name] string Segment name
orders[][customer][segments][][createdAt] DateTime Segment creation date
orders[][customer][segments][][isDynamic] boolean Is this segment dynamic
orders[][customer][segments][][customersCount] integer Customer quantity in segment
orders[][customer][segments][][active] boolean Activity state of segment
orders[][customer][maturationTime] integer Maturation time, in seconds
orders[][customer][firstName] string Name
orders[][customer][lastName] string Surname
orders[][customer][patronymic] string Middle name
orders[][customer][sex] string Sex
orders[][customer][presumableSex] string Guessed gender based on name
orders[][customer][email] string E-mail
orders[][customer][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
orders[][customer][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
orders[][customer][customerSubscriptions][][subscription] object (Subscription) Subscription category
orders[][customer][customerSubscriptions][][subscription][id] integer Subscription category ID
orders[][customer][customerSubscriptions][][subscription][channel] string Channel
orders[][customer][customerSubscriptions][][subscription][name] string Name
orders[][customer][customerSubscriptions][][subscription][code] string Symbolic code
orders[][customer][customerSubscriptions][][subscription][active] boolean Activity status
orders[][customer][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
orders[][customer][customerSubscriptions][][subscription][ordering] integer
orders[][customer][customerSubscriptions][][subscribed] boolean Subscription activity
orders[][customer][customerSubscriptions][][changedAt] DateTime Activity flag change date
orders[][customer][phones][] array of objects (CustomerPhone) Phone numbers
orders[][customer][phones][][number] string Phone number
orders[][customer][birthday] DateTime Birthday
orders[][customer][source] object (SerializedSource) Customer source
orders[][customer][source][source] string Source
orders[][customer][source][medium] string Medium
orders[][customer][source][campaign] string Campaign
orders[][customer][source][keyword] string Keyword
orders[][customer][source][content] string Ad content
orders[][customer][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
orders[][customer][mgCustomers][][id] integer Customer ID
orders[][customer][mgCustomers][][externalId] integer External ID of the MessageGateway customer
orders[][customer][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
orders[][customer][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
orders[][customer][mgCustomers][][mgChannel][id] integer ID of the channel
orders[][customer][mgCustomers][][mgChannel][externalId] integer External ID of the channel
orders[][customer][mgCustomers][][mgChannel][type] string Channel type
orders[][customer][mgCustomers][][mgChannel][active] boolean Channel activity
orders[][customer][mgCustomers][][mgChannel][name] string Channel name
orders[][customer][photoUrl] string URL of photo
orders[][customer][mainAddress] object (EntityWithExternalIdNameOutput) Main corporate customer address
orders[][customer][mainAddress][id] integer ID
orders[][customer][mainAddress][externalId] string External ID
orders[][customer][mainAddress][name] string Name
orders[][customer][mainCustomerContact] object (CustomerContact) Main contact person
orders[][customer][mainCustomerContact][id] integer Contact ID
orders[][customer][mainCustomerContact][customer] object (SerializedRelationAbstractCustomer) Customer
orders[][customer][mainCustomerContact][customer][id] integer Customer internal ID
orders[][customer][mainCustomerContact][customer][externalId] string Customer external ID
orders[][customer][mainCustomerContact][customer][browserId] string Device ID in Collector
orders[][customer][mainCustomerContact][companies][] array of objects (CustomerContactCompany) Contact person`s company
orders[][customer][mainCustomerContact][companies][][id] integer Company ID
orders[][customer][mainCustomerContact][companies][][company] object (EntityWithExternalIdNameOutput) Company
orders[][customer][mainCustomerContact][companies][][company][id] integer ID
orders[][customer][mainCustomerContact][companies][][company][externalId] string External ID
orders[][customer][mainCustomerContact][companies][][company][name] string Name
orders[][customer][mainCompany] object (EntityWithExternalIdNameOutput) Main company
orders[][customer][mainCompany][id] integer ID
orders[][customer][mainCompany][externalId] string External ID
orders[][customer][mainCompany][name] string Name
orders[][customer][nickName] string Name
orders[][contact] object (Customer) Contact person
orders[][contact][type] string Customer type
orders[][contact][id] integer Customer ID
orders[][contact][externalId] string Customer external ID
orders[][contact][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
orders[][contact][createdAt] DateTime Created at
orders[][contact][managerId] integer Customer manager
orders[][contact][vip] boolean VIP customer
orders[][contact][bad] boolean Bad customer
orders[][contact][site] string Store, from which the customer came
orders[][contact][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
orders[][contact][contragent][contragentType] string Contragent type
orders[][contact][contragent][legalName] string Legal name
orders[][contact][contragent][legalAddress] string Registration address
orders[][contact][contragent][INN] string TIN
orders[][contact][contragent][OKPO] string RNNBO
orders[][contact][contragent][KPP] string IECC
orders[][contact][contragent][OGRN] string PSRN
orders[][contact][contragent][OGRNIP] string PSRN of Individual entrepreneur
orders[][contact][contragent][certificateNumber] string Certificate number
orders[][contact][contragent][certificateDate] DateTime Certificate date
orders[][contact][contragent][BIK] string RCBIC
orders[][contact][contragent][bank] string Bank
orders[][contact][contragent][bankAddress] string Bank address
orders[][contact][contragent][corrAccount] string Corresponding account
orders[][contact][contragent][bankAccount] string Settlement account
orders[][contact][tags][] array of objects (CustomerTagLink) [array] Tags
orders[][contact][tags][][color] string
orders[][contact][tags][][name] string
orders[][contact][tags][][colorCode] string
orders[][contact][tags][][attached] boolean
orders[][contact][firstClientId] string First Google Analytics clientId
orders[][contact][lastClientId] string Last Google Analytics clientId
orders[][contact][customFields] array Associative array of custom fields
orders[][contact][personalDiscount] double Personal discount
orders[][contact][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)
orders[][contact][discountCardNumber] string Discount card number
orders[][contact][avgMarginSumm] float Average gross profit of customer orders (in base currency)
orders[][contact][marginSumm] float LTV (in base currency)
orders[][contact][totalSumm] float Orders total sum (in base currency)
orders[][contact][averageSumm] float Order average sum (in base currency)
orders[][contact][ordersCount] integer Orders quantity
orders[][contact][costSumm] float Amount of costs (in base currency)
orders[][contact][address] object (CustomerAddress) Customer address
orders[][contact][address][id] integer Address ID
orders[][contact][address][index] string Postal code
orders[][contact][address][countryIso] string Country ISO code
orders[][contact][address][region] string Region
orders[][contact][address][regionId] integer Region ID in Geohelper
orders[][contact][address][city] string City
orders[][contact][address][cityId] integer City ID in Geohelper
orders[][contact][address][cityType] string Locality type
orders[][contact][address][street] string Street
orders[][contact][address][streetId] integer Street ID in Geohelper
orders[][contact][address][streetType] string Street type
orders[][contact][address][building] string Building
orders[][contact][address][flat] string Flat/office
orders[][contact][address][floor] integer Floor
orders[][contact][address][block] integer Entrance
orders[][contact][address][house] string House
orders[][contact][address][housing] string Housing
orders[][contact][address][metro] string Underground
orders[][contact][address][notes] string Notes to address
orders[][contact][address][text] string Address as string
orders[][contact][address][externalId] string External ID
orders[][contact][address][name] string Name
orders[][contact][segments][] array of objects (Segment) [array] Segments
orders[][contact][segments][][id] integer Internal ID of segment
orders[][contact][segments][][code] string Symbolic code
orders[][contact][segments][][name] string Segment name
orders[][contact][segments][][createdAt] DateTime Segment creation date
orders[][contact][segments][][isDynamic] boolean Is this segment dynamic
orders[][contact][segments][][customersCount] integer Customer quantity in segment
orders[][contact][segments][][active] boolean Activity state of segment
orders[][contact][maturationTime] integer Maturation time, in seconds
orders[][contact][firstName] string Name
orders[][contact][lastName] string Surname
orders[][contact][patronymic] string Middle name
orders[][contact][sex] string Sex
orders[][contact][presumableSex] string Guessed gender based on name
orders[][contact][email] string E-mail
orders[][contact][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
orders[][contact][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
orders[][contact][customerSubscriptions][][subscription] object (Subscription) Subscription category
orders[][contact][customerSubscriptions][][subscription][id] integer Subscription category ID
orders[][contact][customerSubscriptions][][subscription][channel] string Channel
orders[][contact][customerSubscriptions][][subscription][name] string Name
orders[][contact][customerSubscriptions][][subscription][code] string Symbolic code
orders[][contact][customerSubscriptions][][subscription][active] boolean Activity status
orders[][contact][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
orders[][contact][customerSubscriptions][][subscription][ordering] integer
orders[][contact][customerSubscriptions][][subscribed] boolean Subscription activity
orders[][contact][customerSubscriptions][][changedAt] DateTime Activity flag change date
orders[][contact][phones][] array of objects (CustomerPhone) Phone numbers
orders[][contact][phones][][number] string Phone number
orders[][contact][birthday] DateTime Birthday
orders[][contact][source] object (SerializedSource) Customer source
orders[][contact][source][source] string Source
orders[][contact][source][medium] string Medium
orders[][contact][source][campaign] string Campaign
orders[][contact][source][keyword] string Keyword
orders[][contact][source][content] string Ad content
orders[][contact][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
orders[][contact][mgCustomers][][id] integer Customer ID
orders[][contact][mgCustomers][][externalId] integer External ID of the MessageGateway customer
orders[][contact][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
orders[][contact][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
orders[][contact][mgCustomers][][mgChannel][id] integer ID of the channel
orders[][contact][mgCustomers][][mgChannel][externalId] integer External ID of the channel
orders[][contact][mgCustomers][][mgChannel][type] string Channel type
orders[][contact][mgCustomers][][mgChannel][active] boolean Channel activity
orders[][contact][mgCustomers][][mgChannel][name] string Channel name
orders[][contact][photoUrl] string URL of photo
orders[][company] object (Company) Company
orders[][company][id] integer Company ID
orders[][company][externalId] string Company external ID
orders[][company][customer] object (SerializedEntityCustomer) Customer
orders[][company][customer][site] string Symbolic code of store
orders[][company][customer][id] integer Customer internal ID
orders[][company][customer][externalId] string Customer external ID
orders[][company][customer][type] string Customer type
orders[][company][active] boolean Activity
orders[][company][name] string Name
orders[][company][brand] string Brand
orders[][company][site] string Company website
orders[][company][createdAt] DateTime Creation date
orders[][company][contragent] object (CompanyContragent) Requisites
orders[][company][contragent][contragentType] string Contragent type
orders[][company][contragent][legalName] string Legal name
orders[][company][contragent][legalAddress] string Registration address
orders[][company][contragent][INN] string TIN
orders[][company][contragent][OKPO] string RNNBO
orders[][company][contragent][KPP] string IECC
orders[][company][contragent][OGRN] string PSRN
orders[][company][contragent][OGRNIP] string PSRN of Individual entrepreneur
orders[][company][contragent][certificateNumber] string Certificate number
orders[][company][contragent][certificateDate] DateTime Certificate date
orders[][company][contragent][BIK] string RCBIC
orders[][company][contragent][bank] string Bank
orders[][company][contragent][bankAddress] string Bank address
orders[][company][contragent][corrAccount] string Corresponding account
orders[][company][contragent][bankAccount] string Settlement account
orders[][company][address] object (CustomerAddress) Address
orders[][company][address][id] integer Address ID
orders[][company][address][index] string Postal code
orders[][company][address][countryIso] string Country ISO code
orders[][company][address][region] string Region
orders[][company][address][regionId] integer Region ID in Geohelper
orders[][company][address][city] string City
orders[][company][address][cityId] integer City ID in Geohelper
orders[][company][address][cityType] string Locality type
orders[][company][address][street] string Street
orders[][company][address][streetId] integer Street ID in Geohelper
orders[][company][address][streetType] string Street type
orders[][company][address][building] string Building
orders[][company][address][flat] string Flat/office
orders[][company][address][floor] integer Floor
orders[][company][address][block] integer Entrance
orders[][company][address][house] string House
orders[][company][address][housing] string Housing
orders[][company][address][metro] string Underground
orders[][company][address][notes] string Notes to address
orders[][company][address][text] string Address as string
orders[][company][address][externalId] string External ID
orders[][company][address][name] string Name
orders[][company][avgMarginSumm] float Average gross profit of customer orders (in base currency)
orders[][company][marginSumm] float LTV (in base currency)
orders[][company][totalSumm] float Orders total sum (in base currency)
orders[][company][averageSumm] float Order average sum (in base currency)
orders[][company][costSumm] float Amount of costs (in base currency)
orders[][company][ordersCount] integer Orders quantity
orders[][company][customFields] array Associative array of custom fields
orders[][contragent] object (OrderContragent) Requisites
orders[][contragent][contragentType] string Contragent type
orders[][contragent][legalName] string Legal name
orders[][contragent][legalAddress] string Registration address
orders[][contragent][INN] string TIN
orders[][contragent][OKPO] string RNNBO
orders[][contragent][KPP] string IECC
orders[][contragent][OGRN] string PSRN
orders[][contragent][OGRNIP] string PSRN of Individual entrepreneur
orders[][contragent][certificateNumber] string Certificate number
orders[][contragent][certificateDate] DateTime Certificate date
orders[][contragent][BIK] string RCBIC
orders[][contragent][bank] string Bank
orders[][contragent][bankAddress] string Bank address
orders[][contragent][corrAccount] string Corresponding account
orders[][contragent][bankAccount] string Settlement account
orders[][delivery] object (SerializedOrderDelivery) Data on delivery
orders[][delivery][code] string Delivery type code
orders[][delivery][integrationCode] string Integration code of delivery type
orders[][delivery][data]Data of the delivery service, connected by APICourier delivery service dataNew Post delivery service dataDDelivery delivery service dataKazPost delivery service data
orders[][delivery][data][externalId] string Delivery id in delivery servicedeprecated Track number (Use trackNumber instead)
orders[][delivery][data][trackNumber] string Track number (deprecated for write)Track numberTrack numberTrack number
orders[][delivery][data][status] string Delivery status codeDelivery status codeDelivery status codeDelivery status code
orders[][delivery][data][locked] boolean Do not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery service
orders[][delivery][data][pickuppointAddress] string Pickup point address
orders[][delivery][data][days] string Approximate delivery timeApproximate delivery timeApproximate delivery time
orders[][delivery][data][statusText] string Delivery status nameDelivery status nameDelivery status name
orders[][delivery][data][statusDate] DateTime Delivery status dateDate of the last delivery status updating
orders[][delivery][data][tariff] string Tariff code
orders[][delivery][data][tariffName] string Tariff name
orders[][delivery][data][pickuppointId] string Pickup point IDPickup point idPickup point ID
orders[][delivery][data][pickuppointSchedule] string Pickup point working timeSchedule of pickup point
orders[][delivery][data][pickuppointPhone] string Pickup point phone
orders[][delivery][data][payerType] string PayerPayer type
orders[][delivery][data][statusComment] string Comment to delivery status
orders[][delivery][data][cost] float Delivery cost received from delivery service (in entity currency)Delivery cost received from delivery service (in entity currency)
orders[][delivery][data][minTerm] integer Minimum delivery term
orders[][delivery][data][maxTerm] integer Maximum delivery term
orders[][delivery][data][shipmentpointId] string Shipment terminal IDShipment point id
orders[][delivery][data][shipmentpointName] string Shipment terminal name
orders[][delivery][data][shipmentpointAddress] string Shipment terminal address
orders[][delivery][data][shipmentpointSchedule] string Pickup point working time shipment terminal
orders[][delivery][data][shipmentpointPhone] string Shipment terminal phone
orders[][delivery][data][shipmentpointCoordinateLatitude] string Shipment terminal coordinates, latitude
orders[][delivery][data][shipmentpointCoordinateLongitude] string Shipment terminal coordinates, longitude
orders[][delivery][data][pickuppointName] string Pickup point name
orders[][delivery][data][pickuppointCoordinateLatitude] string Pickup point coordinates, latitude
orders[][delivery][data][pickuppointCoordinateLongitude] string Pickup point coordinates, longitude
orders[][delivery][data][extraData] array Additional delivery data (deliveryDataField.code => value)
orders[][delivery][data][itemDeclaredValues][] array of objects (DeclaredValueItem)
orders[][delivery][data][itemDeclaredValues][][orderProduct] object (PackageItemOrderProduct) Order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][id] integer ID of order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalId] string deprecatedExternal ID of order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalIds][] array of objects (CodeValueModel) External IDs of order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalIds][][code] string Symbolic code
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalIds][][value] string Value
orders[][delivery][data][itemDeclaredValues][][value] double Declared value of the product
orders[][delivery][data][packages][] array of objects (Package) Packages
orders[][delivery][data][packages][][packageId] string Package number
orders[][delivery][data][packages][][weight] double Weight
orders[][delivery][data][packages][][length] integer Length
orders[][delivery][data][packages][][width] integer Width
orders[][delivery][data][packages][][height] integer Height
orders[][delivery][data][packages][][items][] array of objects (PackageItem) Package content
orders[][delivery][data][packages][][items][][orderProduct] object (PackageItemOrderProduct) Order item
orders[][delivery][data][packages][][items][][orderProduct][id] integer ID of order item
orders[][delivery][data][packages][][items][][orderProduct][externalId] string deprecatedExternal ID of order item
orders[][delivery][data][packages][][items][][orderProduct][externalIds][] array of objects (CodeValueModel) External IDs of order item
orders[][delivery][data][packages][][items][][orderProduct][externalIds][][code] string Symbolic code
orders[][delivery][data][packages][][items][][orderProduct][externalIds][][value] string Value
orders[][delivery][data][packages][][items][][quantity] double Quantity
orders[][delivery][data][id] integer Courier ID
orders[][delivery][data][firstName] string First name
orders[][delivery][data][lastName] string Last name
orders[][delivery][data][patronymic] string Middle name
orders[][delivery][data][active] boolean Activity status
orders[][delivery][data][email] string E-mail
orders[][delivery][data][phone] object (CourierPhone) Courier phone
orders[][delivery][data][phone][number] string Phone number
orders[][delivery][data][description] string Description
orders[][delivery][data][courierId] integer Courier ID
orders[][delivery][data][serviceType] string Delivery technology
orders[][delivery][data][pickuppoint] string Pickup pointPickup point name
orders[][delivery][data][receiverWarehouseTypeRef] string Shipping to department
orders[][delivery][data][statusName] string Delivery status name
orders[][delivery][data][price] float Delivery cost received from delivery service
orders[][delivery][data][receiverCity] string Delivery city nameDelivery city
orders[][delivery][data][receiverCityRef] string Delivery city ID in NewPostDelivery city ID
orders[][delivery][data][receiverStreet] string Delivery street name
orders[][delivery][data][receiverStreetRef] string Delivery street ID in NewPost
orders[][delivery][data][seatsAmount] integer Quantity of sending seats
orders[][delivery][data][cargoType] string Cargo type
orders[][delivery][data][cargoDescription] string Cargo description
orders[][delivery][data][cashPayerType] string Payer type for cash on delivery
orders[][delivery][data][paymentForm] string Payment form
orders[][delivery][data][ownershipForm] string Entity ownership type
orders[][delivery][data][packageNumber] string Package number
orders[][delivery][data][accompanyingDocument] string Accompanying documents
orders[][delivery][data][notes] string Additional information on sending
orders[][delivery][data][preferredDeliveryDate] DateTime Preferred delivery date
orders[][delivery][data][timeInterval] string Time intervals delivery
orders[][delivery][data][saturdayDelivery] boolean Saturday delivery
orders[][delivery][data][deliveryDate] string Date when the recipient took the order
orders[][delivery][data][denieReason] string Rejection reason
orders[][delivery][data][backwardDelivery] custom handler result for (bool) Return consignment
orders[][delivery][data][backwardDeliveryCargoType] string Type of backward delivery
orders[][delivery][data][backwardDeliveryPayerType] string Type of sender for backward delivery
orders[][delivery][data][backwardDeliveryRedeliveryString] string Description of backward delivery
orders[][delivery][data][afterpaymentOnGoodsCost] float Payment control (in entity currency)
orders[][delivery][data][declaredValue] float Declared value (in entity currency)
orders[][delivery][data][sendDate] DateTime Date of sending
orders[][delivery][data][deliveryType] string Delivery method ID
orders[][delivery][data][deliveryName] string Delivery service name
orders[][delivery][data][pickupType] integer Pickup type
orders[][delivery][data][pickuppointDescription] string Description of pickup point
orders[][delivery][data][placesCount] integer Seats quantity
orders[][delivery][data][services][] array of strings Additional services of delivery
orders[][delivery][data][comment] string Comment to the order
orders[][delivery][service] object (SerializedDeliveryService)
orders[][delivery][service][name] string Name
orders[][delivery][service][code] string Symbolic code
orders[][delivery][service][active] boolean Activity status
orders[][delivery][cost] double Cost
orders[][delivery][netCost] double Delivery net cost
orders[][delivery][date] DateTime Delivery date
orders[][delivery][time] object (TimeInterval) Information on time range
orders[][delivery][time][from] DateTime Time "from"
orders[][delivery][time][to] DateTime Time "to"
orders[][delivery][time][custom] string Time range in free form
orders[][delivery][address] object (OrderDeliveryAddress) Address
orders[][delivery][address][index] string Postal code
orders[][delivery][address][countryIso] string Country ISO code
orders[][delivery][address][region] string Region
orders[][delivery][address][regionId] integer Region ID in Geohelper
orders[][delivery][address][city] string City
orders[][delivery][address][cityId] integer City ID in Geohelper
orders[][delivery][address][cityType] string Locality type
orders[][delivery][address][street] string Street
orders[][delivery][address][streetId] integer Street ID in Geohelper
orders[][delivery][address][streetType] string Street type
orders[][delivery][address][building] string Building
orders[][delivery][address][flat] string Flat/office
orders[][delivery][address][floor] integer Floor
orders[][delivery][address][block] integer Entrance
orders[][delivery][address][house] string House
orders[][delivery][address][housing] string Housing
orders[][delivery][address][metro] string Underground
orders[][delivery][address][notes] string Notes to address
orders[][delivery][address][text] string Address as string
orders[][delivery][vatRate] string VAT rate
orders[][site] string Store
orders[][status] string Order status
orders[][statusComment] string Comment to the last status change
orders[][source] object (SerializedSource) Order source
orders[][source][source] string Source
orders[][source][medium] string Medium
orders[][source][campaign] string Campaign
orders[][source][keyword] string Keyword
orders[][source][content] string Ad content
orders[][items][] array of objects (OrderProduct) Order item
orders[][items][][externalId] string deprecated External ID of order item
orders[][items][][bonusesChargeTotal] double Amount of debited bonuses
orders[][items][][bonusesCreditTotal] double Amount of accrued bonuses
orders[][items][][markingCodes][] array of strings Marking codes
orders[][items][][id] integer ID of order item
orders[][items][][externalIds][] array of objects (CodeValueModel) External IDs of order item
orders[][items][][externalIds][][code] string Symbolic code
orders[][items][][externalIds][][value] string Value
orders[][items][][priceType] object (PriceType) Price type
orders[][items][][priceType][code] string Price type code
orders[][items][][initialPrice] double Item price/SKU (in entity currency)
orders[][items][][discounts][] array of objects (AbstractDiscount) Array of discounts
orders[][items][][discounts][][type] string Discount type. Possible values:
manual_order - One-time discount on the order;
manual_product - Additional discount on the product;
loyalty_level - Discount on the level of the loyalty program;
loyalty_event - Discount on the event of the loyalty program;
personal - Personal discount;
bonus_charge - Redemption of bonuses of the loyalty program;
round - Discount from rounding
orders[][items][][discounts][][amount] float Discount amount
orders[][items][][discountTotal] double Final monetary discount per item including all item and order discounts (in entity currency)
orders[][items][][prices][] array of objects (OrderProductPriceItem) Set of total sales prices with the quantity
orders[][items][][prices][][price] float Total price including all discounts on the product and order (in entity currency)
orders[][items][][prices][][quantity] float Quantity of the product at the specified price
orders[][items][][vatRate] string VAT rate
orders[][items][][createdAt] DateTime Date of order item creation in the system
orders[][items][][quantity] float Quantity
orders[][items][][status] string Status of the order item
orders[][items][][comment] string Comment to the order item
orders[][items][][offer] object (Offer) SKU
orders[][items][][offer][displayName] string SKU name
orders[][items][][offer][id] integer SKU ID
orders[][items][][offer][externalId] string SKU ID in store
orders[][items][][offer][xmlId] string SKU ID in the warehouse system
orders[][items][][offer][name] string Name
orders[][items][][offer][article] string Vendor code
orders[][items][][offer][vatRate] string VAT rate
orders[][items][][offer][properties][] array SKU properties
orders[][items][][offer][unit] object (Unit) Unit
orders[][items][][offer][unit][code] string Unit symbolic code
orders[][items][][offer][unit][name] string Unit name
orders[][items][][offer][unit][sym] string Unit short name
orders[][items][][offer][barcode] string Barcode
orders[][items][][isCanceled] boolean This order item is cancelled in the order
orders[][items][][properties][] array [array] Additional properties of the order item
orders[][items][][properties][][code] string Property code (not mandatory field, the code can be transmitted in the property key)
orders[][items][][properties][][name] string Property name
orders[][items][][properties][][value] string Property value
orders[][items][][purchasePrice] double Purchasing price (in base currency)
orders[][items][][ordering] integer Ordering
orders[][fullPaidAt] DateTime Full payment date
orders[][payments][] array of objects (Payment) Payments
orders[][payments][][id] integer Payment ID
orders[][payments][][status] string Payment Status
orders[][payments][][type] string Payment Type
orders[][payments][][externalId] string External ID
orders[][payments][][amount] double Amount (in entity currency)
orders[][payments][][paidAt] DateTime Payment date
orders[][payments][][comment] string Comment
orders[][fromApi] boolean Order received through API
orders[][weight] double Weight
orders[][length] integer Length
orders[][width] integer Width
orders[][height] integer Height
orders[][shipmentStore] string Shipping warehouse
orders[][shipmentDate] DateTime Shipment date
orders[][shipped] boolean Order is shipped
orders[][links][] array of objects (OrderLink) Orders link
orders[][links][][order] object (LinkedOrder) Linked order
orders[][links][][order][id] integer Linked order ID
orders[][links][][order][number] string Linked order number
orders[][links][][order][externalId] string Linked order external ID
orders[][links][][createdAt] DateTime Date/time of creation of the link with the order
orders[][links][][comment] string Comment
orders[][customFields] array Associative array of custom fields
orders[][clientId] string Google Analytics clientId

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/orders/combine Combining of orders

Combining of orders

To access the method, the following permission is required order_write.

Allows to combine orders.

Order items in resultOrder parameter will be combined with order items of order, after that the order will be irreversibly removed.

The operation is performed asynchronously. The successful response success=true means that the operation will be executed but it hasn't been completed yet. The actual result of the operation can be tracked using the /api/v5/orders/history method for those orders that will be deleted when combining (history[][combinedTo] response parameter).

In technique parameter you can specify the strategy of combining in case if there are similar items in orders

Parameters

ParameterTypeFormatDescription
orderobject (SerializedOrderReference) Order will be removed as a result of combining
order[id]integer{not blank}{range: {>=1, <=4294967295}}} Order internal ID
resultOrderobject (SerializedOrderReference) Order, in which the combining will be made
resultOrder[id]integer{not blank}{range: {>=1, <=4294967295}}} Order internal ID
techniquestring Way of combining in case if there are similar items in orders

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
errors array Errors when combining of orders

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/orders/create Order creation

Order creation

To access the method, the following permission is required order_write.

Method creates the order and returns internal ID of created order.

If order[createdAt] is not specified, then current time will be used as the date/time of order creation.

If you need to attach the order to the current customer, you should pass the customer external ID to the field order[customer][externalId], the customer internal ID to the field order[customer][id] or the customer ID in Daemon Collector in order[customer][browserId]. The search of the customer will be realized under the stores, to which the used API-key has an access. If the order[customer] is not specified, the customer will be created automatically based on the order data.

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

In the fields order[orderType], order[orderMethod], order[payments][][type], order[payments][][status], order[status], order[shipmentStore], order[delivery][code], order[items][][status] the symbol code of the element is specified.

In the fields order[managerId], order[sourceId] the internal ID of the system entity is specified.

The comment order[statusComment] cannot be changed without changing the order status order[status].

Order items are specified in the field order[items][]. The products that were not passed in the request for editing are deleted from the order. If item is in the catalog, then it is necessary to set the value for one of the following fields:

If the values are set for several fields, they will be processed in the following above order.

In case, if the ofeer will be not found by any of criteria, the order item will be automatically created based on data from fields order[items][][initialPrice], order[items][][purchasePrice], order[items][][productName].

The delivery address order[delivery][address] you can specify either in the string form in the order[delivery][address][text] field, or in the detailed view, filling all the fields except order[delivery][address][text].

In the order[customFields] field you can pass the values array of custom fields. For the "DataBook" fields the symbol code of data book value is specified. For the "Date" fields the date in the format Y-m-d is specified. For other field types the exact value is specified.

For working with price types, more than one price type must be enabled in data book. For transferring the price type for order item, code of necessary price type must be transferred to order[items][][priceType][code] field. It is recommended to transfer actual value of item price together with price type to order[items][][initialPrice]. If order[items][][priceType][code] price type is transferred without the order[items][][initialPrice] price value, then the current value of this price type for the current item will be taken for the item price. For new item it is recommended always to transfer order[items][][initialPrice] price clearly, in case if actual price has not been downloaded to system yet. If not to transfer order[items][][priceType][code] price type for the item, then price type for the item in order will be No type. In case if there is only the basic price type in the system, then order[items][][priceType][code] parameter should not be considered.

The order of order items order[items][] is saved in response.

Parameters order[items][][externalId] and order[items][][externalIds] are optional.

Either external ID value order[items][][externalId] or array of external IDs order[items][][externalIds] can be specified at the same time.

The external ID value order[items][][externalId] will be written to the array order[items][][externalIds] with default code.

Values of external identifiers order[items][][externalIds][][value] should be unique by code order[items][][externalIds][][code] within one order.

The privilegeType field can contain one of the following values:

To apply the Loyalty Program to an order, the following conditions must be met:

If the loyalty_event value is specified in privilegeType and the event gives a discount, then it is required to specify the ID in the loyaltyEventDiscountId field

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store
orderobject (SerializedOrder)
order[number]string Order number
order[externalId]string Order external ID
order[privilegeType]string Privilege type
order[countryIso]string Country ISO code
order[createdAt]DateTimeY-m-d H:i:s Order creation date
order[statusUpdatedAt]DateTimeY-m-d H:i:s Date of the last order status change
order[discountManualAmount]double Monetary discount (in entity currency)
order[discountManualPercent]double Percentage discount
order[mark]integer Order evaluation
order[markDatetime]DateTimeY-m-d H:i:s Date and time of getting evaluation from customer
order[lastName]string Surname
order[firstName]string Name
order[patronymic]string Middle name
order[phone]string Phone number
order[additionalPhone]string Additional phone
order[email]string E-mail
order[call]boolean Call required
order[expired]boolean Expired
order[customerComment]string Customer comment
order[managerComment]string Operator comment
order[contragent]object (OrderContragent) Requisites
order[contragent][contragentType]string Contragent type
order[contragent][legalName]string Legal name
order[contragent][legalAddress]string Registration address
order[contragent][INN]string TIN
order[contragent][OKPO]string RNNBO
order[contragent][KPP]string IECC
order[contragent][OGRN]string PSRN
order[contragent][OGRNIP]string PSRN of Individual entrepreneur
order[contragent][certificateNumber]string Certificate number
order[contragent][certificateDate]DateTimeY-m-d Certificate date
order[contragent][BIK]string RCBIC
order[contragent][bank]string Bank
order[contragent][bankAddress]string Bank address
order[contragent][corrAccount]string Corresponding account
order[contragent][bankAccount]string Settlement account
order[statusComment]string Comment to the last status change
order[weight]double Weight
order[length]integer Length
order[width]integer Width
order[height]integer Height
order[shipmentDate]DateTimeY-m-d Shipment date
order[shipped]boolean Order is shipped
order[dialogId]object (MGDialog) Chats dialog identifier
order[customFields]array Associative array of custom fields
order[orderType]string Order type
order[orderMethod]string Method
order[customer]object (SerializedRelationCustomer) Customer
order[customer][id]integer Customer internal ID
order[customer][externalId]string Customer external ID
order[customer][browserId]string Device ID in Collector
order[customer][site]string Store code, required when externalId is specified
order[customer][type]string Customer type (specified when creating new customer)
order[customer][nickName]string Corporate customer name (specified when creating new corporate customer)
order[contact]object (SerializedRelationAbstractCustomer) Contact person
order[contact][id]integer Customer internal ID
order[contact][externalId]string Customer external ID
order[contact][browserId]string Device ID in Collector
order[contact][site]string Store code, required when externalId is specified
order[company]object (EntityWithExternalIdInput) Company
order[company][id]integer ID
order[company][externalId]string External ID
order[managerId]integer Manager, responsible for order
order[status]string Order status
order[items][]array of objects (SerializedOrderProduct)
order[items][][markingCodes][]array of strings Marking codes
order[items][][initialPrice]double Item price/SKU (in entity currency)
order[items][][discountManualAmount]double Monetary discount per item (in entity currency)
order[items][][discountManualPercent]double Percentage discount per item
order[items][][vatRate]string VAT rate
order[items][][createdAt]DateTimeY-m-d H:i:s Date of order item creation in the system
order[items][][quantity]float Quantity
order[items][][comment]string Comment to the order item
order[items][][properties][]array [array] Additional properties of the order item
order[items][][properties][][code]string{not blank}{match: /^[a-zA-Z0-9_][a-zA-Z0-9_\-:]*$/D}} Property code (not mandatory field, the code can be transmitted in the property key)
order[items][][properties][][name]string{not blank} Property name
order[items][][properties][][value]string{not blank} Property value
order[items][][purchasePrice]double Purchasing price (in base currency)
order[items][][ordering]integer Ordering
order[items][][offer]object (SerializedOrderProductOffer) SKU
order[items][][offer][id]integer SKU ID
order[items][][offer][externalId]string SKU external ID
order[items][][offer][xmlId]string SKU ID in the warehouse system
order[items][][productName]string Item name
order[items][][status]string Status of the order item
order[items][][priceType]object (PriceType) Price type
order[items][][priceType][code]string Price type code
order[items][][externalId]stringdeprecated External ID of order item
order[items][][externalIds][]array of objects (CodeValueModel) External IDs of order item
order[items][][externalIds][][code]string Symbolic code
order[items][][externalIds][][value]string Value
order[delivery]object (SerializedOrderDelivery) Data on delivery
order[delivery][code]string Delivery type code
order[delivery][data]Data of the delivery service, connected by APICourier delivery service dataNew Post delivery service dataDDelivery delivery service dataKazPost delivery service data
order[delivery][data][externalId]string Delivery id in delivery service
order[delivery][data][trackNumber]stringTrack number (deprecated for write)Track numberTrack number
order[delivery][data][locked]booleanDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery service
order[delivery][data][tariff]string Tariff code
order[delivery][data][pickuppointId]stringPickup point IDPickup point idPickup point ID
order[delivery][data][payerType]stringPayerPayer type
order[delivery][data][shipmentpointId]stringShipment terminal IDShipment point id
order[delivery][data][extraData]array Additional delivery data (deliveryDataField.code => value)
order[delivery][data][itemDeclaredValues][]array of objects (DeclaredValueItem)
order[delivery][data][itemDeclaredValues][][orderProduct]object (PackageItemOrderProduct) Order item
order[delivery][data][itemDeclaredValues][][orderProduct][id]integer ID of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalId]stringdeprecatedExternal ID of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][]array of objects (CodeValueModel) External IDs of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][][code]string Symbolic code
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][][value]string Value
order[delivery][data][itemDeclaredValues][][value]double Declared value of the product
order[delivery][data][packages][]array of objects (Package) Packages
order[delivery][data][packages][][packageId]string Package number
order[delivery][data][packages][][weight]double Weight
order[delivery][data][packages][][length]integer Length
order[delivery][data][packages][][width]integer Width
order[delivery][data][packages][][height]integer Height
order[delivery][data][packages][][items][]array of objects (PackageItem) Package content
order[delivery][data][packages][][items][][orderProduct]object (PackageItemOrderProduct) Order item
order[delivery][data][packages][][items][][orderProduct][id]integer ID of order item
order[delivery][data][packages][][items][][orderProduct][externalId]stringdeprecatedExternal ID of order item
order[delivery][data][packages][][items][][orderProduct][externalIds][]array of objects (CodeValueModel) External IDs of order item
order[delivery][data][packages][][items][][orderProduct][externalIds][][code]string Symbolic code
order[delivery][data][packages][][items][][orderProduct][externalIds][][value]string Value
order[delivery][data][packages][][items][][quantity]double Quantity
order[delivery][data][courierId]integer Courier ID
order[delivery][data][serviceType]string Delivery technology
order[delivery][data][pickuppoint]string Pickup point
order[delivery][data][receiverWarehouseTypeRef]string Shipping to department
order[delivery][data][receiverCity]stringDelivery city nameDelivery city
order[delivery][data][receiverCityRef]stringDelivery city ID in NewPostDelivery city ID
order[delivery][data][receiverStreet]string Delivery street name
order[delivery][data][receiverStreetRef]string Delivery street ID in NewPost
order[delivery][data][seatsAmount]integer Quantity of sending seats
order[delivery][data][cargoType]string Cargo type
order[delivery][data][cargoDescription]string Cargo description
order[delivery][data][cashPayerType]string Payer type for cash on delivery
order[delivery][data][paymentForm]string Payment form
order[delivery][data][ownershipForm]string Entity ownership type
order[delivery][data][packageNumber]string Package number
order[delivery][data][accompanyingDocument]string Accompanying documents
order[delivery][data][notes]string Additional information on sending
order[delivery][data][preferredDeliveryDate]DateTimeY-m-d Preferred delivery date
order[delivery][data][backwardDelivery]custom handler result for (bool) Return consignment
order[delivery][data][backwardDeliveryCargoType]string Type of backward delivery
order[delivery][data][backwardDeliveryPayerType]string Type of sender for backward delivery
order[delivery][data][backwardDeliveryRedeliveryString]string Description of backward delivery
order[delivery][data][afterpaymentOnGoodsCost]float Payment control (in entity currency)
order[delivery][data][declaredValue]float Declared value (in entity currency)
order[delivery][data][sendDate]DateTimeY-m-d Date of sending
order[delivery][data][deliveryType]string Delivery method ID
order[delivery][data][pickupType]integer Pickup type
order[delivery][data][placesCount]integer Seats quantity
order[delivery][data][services][]array of strings Additional services of delivery
order[delivery][data][comment]string Comment to the order
order[delivery][service]object (SerializedDeliveryService)
order[delivery][service][name]string Name
order[delivery][service][code]string Symbolic code
order[delivery][service][active]boolean Activity status
order[delivery][service][deliveryType]string Delivery type
order[delivery][cost]double Cost
order[delivery][netCost]double Delivery net cost
order[delivery][date]DateTimeY-m-d Delivery date
order[delivery][time]object (TimeInterval) Information on time range
order[delivery][time][from]DateTimeH:i Time "from"
order[delivery][time][to]DateTimeH:i Time "to"
order[delivery][time][custom]string Time range in free form
order[delivery][address]object (OrderDeliveryAddress) Address
order[delivery][address][index]string Postal code
order[delivery][address][countryIso]string Country ISO code
order[delivery][address][region]string Region
order[delivery][address][regionId]integer Region ID in Geohelper
order[delivery][address][city]string City
order[delivery][address][cityId]integer City ID in Geohelper
order[delivery][address][cityType]string Locality type
order[delivery][address][street]string Street
order[delivery][address][streetId]integer Street ID in Geohelper
order[delivery][address][streetType]string Street type
order[delivery][address][building]string Building
order[delivery][address][flat]string Flat/office
order[delivery][address][floor]integer Floor
order[delivery][address][block]integer Entrance
order[delivery][address][house]string House
order[delivery][address][housing]string Housing
order[delivery][address][metro]string Underground
order[delivery][address][notes]string Notes to address
order[delivery][address][text]string Address as string
order[delivery][vatRate]string VAT rate
order[source]object (SerializedSource) Order source
order[source][source]string Source
order[source][medium]string Medium
order[source][campaign]string Campaign
order[source][keyword]string Keyword
order[source][content]string Ad content
order[shipmentStore]string Shipping warehouse
order[payments][]array of objects (SerializedPayment) Payments
order[payments][][externalId]string External ID
order[payments][][amount]double Amount (in entity currency)
order[payments][][paidAt]DateTimeY-m-d H:i:s Payment date
order[payments][][comment]string Comment
order[payments][][type]string Payment Type
order[payments][][status]string Payment Status
order[loyaltyEventDiscountId]integer ID of the discount on the event of the loyalty program
order[applyRound]boolean Apply the setting of rounding the order cost
order[isFromCart]boolean Order created from cart

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Internal ID of created order
order object (CreateOrder)
order[slug] custom handler result for (int) deprecated Symbolic code
order[bonusesCreditTotal] double Amount of accrued bonuses
order[bonusesChargeTotal] double Amount of debited bonuses
order[summ] double Total for goods/services (in entity currency)
order[currency] string Currency
order[id] integer Order ID
order[number] string Order number
order[externalId] string Order external ID
order[orderType] string Order type
order[orderMethod] string Method
order[privilegeType] string Privilege type
order[countryIso] string Country ISO code
order[createdAt] DateTime Order creation date
order[statusUpdatedAt] DateTime Date of the last order status change
order[totalSumm] double Total sum with discount (in entity currency)
order[prepaySum] double Paid sum (in entity currency)
order[purchaseSumm] double Total purchase sum (in base currency)
order[personalDiscountPercent] double Personal discount on the order
order[loyaltyLevel] object (LoyaltyLevel) Level of participation in the loyalty program
order[loyaltyLevel][id] integer Level ID
order[loyaltyLevel][name] string Level name
order[loyaltyEventDiscount] object (LoyaltyEventDiscount) Discount on the event of the loyalty program
order[loyaltyEventDiscount][id] integer ID
order[mark] integer Order evaluation
order[markDatetime] DateTime Date and time of getting evaluation from customer
order[lastName] string Surname
order[firstName] string Name
order[patronymic] string Middle name
order[phone] string Phone number
order[additionalPhone] string Additional phone
order[email] string E-mail
order[call] boolean Call required
order[expired] boolean Expired
order[customerComment] string Customer comment
order[managerComment] string Operator comment
order[managerId] integer Manager, responsible for order
order[customer]CustomerCorporate customer
order[customer][type] string Customer typeCustomer type
order[customer][id] integer Customer IDCorporate customer ID
order[customer][externalId] string Customer external IDCorporate customer external ID
order[customer][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
order[customer][createdAt] DateTime Created atCreated at
order[customer][managerId] integer Customer managerCorporate customer manager
order[customer][vip] boolean VIP customerVIP corporate customer
order[customer][bad] boolean Bad customerBad corporate customer
order[customer][site] string Store, from which the customer cameStore, from which the corporate customer came
order[customer][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
order[customer][contragent][contragentType] string Contragent type
order[customer][contragent][legalName] string Legal name
order[customer][contragent][legalAddress] string Registration address
order[customer][contragent][INN] string TIN
order[customer][contragent][OKPO] string RNNBO
order[customer][contragent][KPP] string IECC
order[customer][contragent][OGRN] string PSRN
order[customer][contragent][OGRNIP] string PSRN of Individual entrepreneur
order[customer][contragent][certificateNumber] string Certificate number
order[customer][contragent][certificateDate] DateTime Certificate date
order[customer][contragent][BIK] string RCBIC
order[customer][contragent][bank] string Bank
order[customer][contragent][bankAddress] string Bank address
order[customer][contragent][corrAccount] string Corresponding account
order[customer][contragent][bankAccount] string Settlement account
order[customer][tags][] array of objects (CustomerTagLink) [array] Tags[array] Tags
order[customer][tags][][color] string
order[customer][tags][][name] string
order[customer][tags][][colorCode] string
order[customer][tags][][attached] boolean
order[customer][firstClientId] string First Google Analytics clientIdFirst Google Analytics unique clientId
order[customer][lastClientId] string Last Google Analytics clientIdLast Google Analytics unique clientId
order[customer][customFields] array Associative array of custom fieldsAssociative array of custom fields
order[customer][personalDiscount] double Personal discountPersonal discount
order[customer][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)deprecated Cumulative discount (Not available starting from version 8 of the system)
order[customer][discountCardNumber] string Discount card numberDiscount card number
order[customer][avgMarginSumm] float Average gross profit of customer orders (in base currency)Average gross profit of corporate customer orders (in base currency)
order[customer][marginSumm] float LTV (in base currency)LTV (in base currency)
order[customer][totalSumm] float Orders total sum (in base currency)Orders total sum (in base currency)
order[customer][averageSumm] float Order average sum (in base currency)Order average sum (in base currency)
order[customer][ordersCount] integer Orders quantityOrders quantity
order[customer][costSumm] float Amount of costs (in base currency)Amount of costs (in base currency)
order[customer][address] object (CustomerAddress) Customer address
order[customer][address][id] integer Address ID
order[customer][address][index] string Postal code
order[customer][address][countryIso] string Country ISO code
order[customer][address][region] string Region
order[customer][address][regionId] integer Region ID in Geohelper
order[customer][address][city] string City
order[customer][address][cityId] integer City ID in Geohelper
order[customer][address][cityType] string Locality type
order[customer][address][street] string Street
order[customer][address][streetId] integer Street ID in Geohelper
order[customer][address][streetType] string Street type
order[customer][address][building] string Building
order[customer][address][flat] string Flat/office
order[customer][address][floor] integer Floor
order[customer][address][block] integer Entrance
order[customer][address][house] string House
order[customer][address][housing] string Housing
order[customer][address][metro] string Underground
order[customer][address][notes] string Notes to address
order[customer][address][text] string Address as string
order[customer][address][externalId] string External ID
order[customer][address][name] string Name
order[customer][segments][] array of objects (Segment) [array] Segments
order[customer][segments][][id] integer Internal ID of segment
order[customer][segments][][code] string Symbolic code
order[customer][segments][][name] string Segment name
order[customer][segments][][createdAt] DateTime Segment creation date
order[customer][segments][][isDynamic] boolean Is this segment dynamic
order[customer][segments][][customersCount] integer Customer quantity in segment
order[customer][segments][][active] boolean Activity state of segment
order[customer][maturationTime] integer Maturation time, in seconds
order[customer][firstName] string Name
order[customer][lastName] string Surname
order[customer][patronymic] string Middle name
order[customer][sex] string Sex
order[customer][presumableSex] string Guessed gender based on name
order[customer][email] string E-mail
order[customer][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
order[customer][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
order[customer][customerSubscriptions][][subscription] object (Subscription) Subscription category
order[customer][customerSubscriptions][][subscription][id] integer Subscription category ID
order[customer][customerSubscriptions][][subscription][channel] string Channel
order[customer][customerSubscriptions][][subscription][name] string Name
order[customer][customerSubscriptions][][subscription][code] string Symbolic code
order[customer][customerSubscriptions][][subscription][active] boolean Activity status
order[customer][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
order[customer][customerSubscriptions][][subscription][ordering] integer
order[customer][customerSubscriptions][][subscribed] boolean Subscription activity
order[customer][customerSubscriptions][][changedAt] DateTime Activity flag change date
order[customer][phones][] array of objects (CustomerPhone) Phone numbers
order[customer][phones][][number] string Phone number
order[customer][birthday] DateTime Birthday
order[customer][source] object (SerializedSource) Customer source
order[customer][source][source] string Source
order[customer][source][medium] string Medium
order[customer][source][campaign] string Campaign
order[customer][source][keyword] string Keyword
order[customer][source][content] string Ad content
order[customer][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
order[customer][mgCustomers][][id] integer Customer ID
order[customer][mgCustomers][][externalId] integer External ID of the MessageGateway customer
order[customer][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
order[customer][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
order[customer][mgCustomers][][mgChannel][id] integer ID of the channel
order[customer][mgCustomers][][mgChannel][externalId] integer External ID of the channel
order[customer][mgCustomers][][mgChannel][type] string Channel type
order[customer][mgCustomers][][mgChannel][active] boolean Channel activity
order[customer][mgCustomers][][mgChannel][name] string Channel name
order[customer][photoUrl] string URL of photo
order[customer][mainAddress] object (EntityWithExternalIdNameOutput) Main corporate customer address
order[customer][mainAddress][id] integer ID
order[customer][mainAddress][externalId] string External ID
order[customer][mainAddress][name] string Name
order[customer][mainCustomerContact] object (CustomerContact) Main contact person
order[customer][mainCustomerContact][id] integer Contact ID
order[customer][mainCustomerContact][customer] object (SerializedRelationAbstractCustomer) Customer
order[customer][mainCustomerContact][customer][id] integer Customer internal ID
order[customer][mainCustomerContact][customer][externalId] string Customer external ID
order[customer][mainCustomerContact][customer][browserId] string Device ID in Collector
order[customer][mainCustomerContact][companies][] array of objects (CustomerContactCompany) Contact person`s company
order[customer][mainCustomerContact][companies][][id] integer Company ID
order[customer][mainCustomerContact][companies][][company] object (EntityWithExternalIdNameOutput) Company
order[customer][mainCustomerContact][companies][][company][id] integer ID
order[customer][mainCustomerContact][companies][][company][externalId] string External ID
order[customer][mainCustomerContact][companies][][company][name] string Name
order[customer][mainCompany] object (EntityWithExternalIdNameOutput) Main company
order[customer][mainCompany][id] integer ID
order[customer][mainCompany][externalId] string External ID
order[customer][mainCompany][name] string Name
order[customer][nickName] string Name
order[contact] object (Customer) Contact person
order[contact][type] string Customer type
order[contact][id] integer Customer ID
order[contact][externalId] string Customer external ID
order[contact][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
order[contact][createdAt] DateTime Created at
order[contact][managerId] integer Customer manager
order[contact][vip] boolean VIP customer
order[contact][bad] boolean Bad customer
order[contact][site] string Store, from which the customer came
order[contact][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
order[contact][contragent][contragentType] string Contragent type
order[contact][contragent][legalName] string Legal name
order[contact][contragent][legalAddress] string Registration address
order[contact][contragent][INN] string TIN
order[contact][contragent][OKPO] string RNNBO
order[contact][contragent][KPP] string IECC
order[contact][contragent][OGRN] string PSRN
order[contact][contragent][OGRNIP] string PSRN of Individual entrepreneur
order[contact][contragent][certificateNumber] string Certificate number
order[contact][contragent][certificateDate] DateTime Certificate date
order[contact][contragent][BIK] string RCBIC
order[contact][contragent][bank] string Bank
order[contact][contragent][bankAddress] string Bank address
order[contact][contragent][corrAccount] string Corresponding account
order[contact][contragent][bankAccount] string Settlement account
order[contact][tags][] array of objects (CustomerTagLink) [array] Tags
order[contact][tags][][color] string
order[contact][tags][][name] string
order[contact][tags][][colorCode] string
order[contact][tags][][attached] boolean
order[contact][firstClientId] string First Google Analytics clientId
order[contact][lastClientId] string Last Google Analytics clientId
order[contact][customFields] array Associative array of custom fields
order[contact][personalDiscount] double Personal discount
order[contact][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)
order[contact][discountCardNumber] string Discount card number
order[contact][avgMarginSumm] float Average gross profit of customer orders (in base currency)
order[contact][marginSumm] float LTV (in base currency)
order[contact][totalSumm] float Orders total sum (in base currency)
order[contact][averageSumm] float Order average sum (in base currency)
order[contact][ordersCount] integer Orders quantity
order[contact][costSumm] float Amount of costs (in base currency)
order[contact][address] object (CustomerAddress) Customer address
order[contact][address][id] integer Address ID
order[contact][address][index] string Postal code
order[contact][address][countryIso] string Country ISO code
order[contact][address][region] string Region
order[contact][address][regionId] integer Region ID in Geohelper
order[contact][address][city] string City
order[contact][address][cityId] integer City ID in Geohelper
order[contact][address][cityType] string Locality type
order[contact][address][street] string Street
order[contact][address][streetId] integer Street ID in Geohelper
order[contact][address][streetType] string Street type
order[contact][address][building] string Building
order[contact][address][flat] string Flat/office
order[contact][address][floor] integer Floor
order[contact][address][block] integer Entrance
order[contact][address][house] string House
order[contact][address][housing] string Housing
order[contact][address][metro] string Underground
order[contact][address][notes] string Notes to address
order[contact][address][text] string Address as string
order[contact][address][externalId] string External ID
order[contact][address][name] string Name
order[contact][segments][] array of objects (Segment) [array] Segments
order[contact][segments][][id] integer Internal ID of segment
order[contact][segments][][code] string Symbolic code
order[contact][segments][][name] string Segment name
order[contact][segments][][createdAt] DateTime Segment creation date
order[contact][segments][][isDynamic] boolean Is this segment dynamic
order[contact][segments][][customersCount] integer Customer quantity in segment
order[contact][segments][][active] boolean Activity state of segment
order[contact][maturationTime] integer Maturation time, in seconds
order[contact][firstName] string Name
order[contact][lastName] string Surname
order[contact][patronymic] string Middle name
order[contact][sex] string Sex
order[contact][presumableSex] string Guessed gender based on name
order[contact][email] string E-mail
order[contact][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
order[contact][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
order[contact][customerSubscriptions][][subscription] object (Subscription) Subscription category
order[contact][customerSubscriptions][][subscription][id] integer Subscription category ID
order[contact][customerSubscriptions][][subscription][channel] string Channel
order[contact][customerSubscriptions][][subscription][name] string Name
order[contact][customerSubscriptions][][subscription][code] string Symbolic code
order[contact][customerSubscriptions][][subscription][active] boolean Activity status
order[contact][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
order[contact][customerSubscriptions][][subscription][ordering] integer
order[contact][customerSubscriptions][][subscribed] boolean Subscription activity
order[contact][customerSubscriptions][][changedAt] DateTime Activity flag change date
order[contact][phones][] array of objects (CustomerPhone) Phone numbers
order[contact][phones][][number] string Phone number
order[contact][birthday] DateTime Birthday
order[contact][source] object (SerializedSource) Customer source
order[contact][source][source] string Source
order[contact][source][medium] string Medium
order[contact][source][campaign] string Campaign
order[contact][source][keyword] string Keyword
order[contact][source][content] string Ad content
order[contact][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
order[contact][mgCustomers][][id] integer Customer ID
order[contact][mgCustomers][][externalId] integer External ID of the MessageGateway customer
order[contact][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
order[contact][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
order[contact][mgCustomers][][mgChannel][id] integer ID of the channel
order[contact][mgCustomers][][mgChannel][externalId] integer External ID of the channel
order[contact][mgCustomers][][mgChannel][type] string Channel type
order[contact][mgCustomers][][mgChannel][active] boolean Channel activity
order[contact][mgCustomers][][mgChannel][name] string Channel name
order[contact][photoUrl] string URL of photo
order[company] object (Company) Company
order[company][id] integer Company ID
order[company][externalId] string Company external ID
order[company][customer] object (SerializedEntityCustomer) Customer
order[company][customer][site] string Symbolic code of store
order[company][customer][id] integer Customer internal ID
order[company][customer][externalId] string Customer external ID
order[company][customer][type] string Customer type
order[company][active] boolean Activity
order[company][name] string Name
order[company][brand] string Brand
order[company][site] string Company website
order[company][createdAt] DateTime Creation date
order[company][contragent] object (CompanyContragent) Requisites
order[company][contragent][contragentType] string Contragent type
order[company][contragent][legalName] string Legal name
order[company][contragent][legalAddress] string Registration address
order[company][contragent][INN] string TIN
order[company][contragent][OKPO] string RNNBO
order[company][contragent][KPP] string IECC
order[company][contragent][OGRN] string PSRN
order[company][contragent][OGRNIP] string PSRN of Individual entrepreneur
order[company][contragent][certificateNumber] string Certificate number
order[company][contragent][certificateDate] DateTime Certificate date
order[company][contragent][BIK] string RCBIC
order[company][contragent][bank] string Bank
order[company][contragent][bankAddress] string Bank address
order[company][contragent][corrAccount] string Corresponding account
order[company][contragent][bankAccount] string Settlement account
order[company][address] object (CustomerAddress) Address
order[company][address][id] integer Address ID
order[company][address][index] string Postal code
order[company][address][countryIso] string Country ISO code
order[company][address][region] string Region
order[company][address][regionId] integer Region ID in Geohelper
order[company][address][city] string City
order[company][address][cityId] integer City ID in Geohelper
order[company][address][cityType] string Locality type
order[company][address][street] string Street
order[company][address][streetId] integer Street ID in Geohelper
order[company][address][streetType] string Street type
order[company][address][building] string Building
order[company][address][flat] string Flat/office
order[company][address][floor] integer Floor
order[company][address][block] integer Entrance
order[company][address][house] string House
order[company][address][housing] string Housing
order[company][address][metro] string Underground
order[company][address][notes] string Notes to address
order[company][address][text] string Address as string
order[company][address][externalId] string External ID
order[company][address][name] string Name
order[company][avgMarginSumm] float Average gross profit of customer orders (in base currency)
order[company][marginSumm] float LTV (in base currency)
order[company][totalSumm] float Orders total sum (in base currency)
order[company][averageSumm] float Order average sum (in base currency)
order[company][costSumm] float Amount of costs (in base currency)
order[company][ordersCount] integer Orders quantity
order[company][customFields] array Associative array of custom fields
order[contragent] object (OrderContragent) Requisites
order[contragent][contragentType] string Contragent type
order[contragent][legalName] string Legal name
order[contragent][legalAddress] string Registration address
order[contragent][INN] string TIN
order[contragent][OKPO] string RNNBO
order[contragent][KPP] string IECC
order[contragent][OGRN] string PSRN
order[contragent][OGRNIP] string PSRN of Individual entrepreneur
order[contragent][certificateNumber] string Certificate number
order[contragent][certificateDate] DateTime Certificate date
order[contragent][BIK] string RCBIC
order[contragent][bank] string Bank
order[contragent][bankAddress] string Bank address
order[contragent][corrAccount] string Corresponding account
order[contragent][bankAccount] string Settlement account
order[delivery] object (SerializedOrderDelivery) Data on delivery
order[delivery][code] string Delivery type code
order[delivery][integrationCode] string Integration code of delivery type
order[delivery][data]Data of the delivery service, connected by APICourier delivery service dataNew Post delivery service dataDDelivery delivery service dataKazPost delivery service data
order[delivery][data][externalId] string Delivery id in delivery servicedeprecated Track number (Use trackNumber instead)
order[delivery][data][trackNumber] string Track number (deprecated for write)Track numberTrack numberTrack number
order[delivery][data][status] string Delivery status codeDelivery status codeDelivery status codeDelivery status code
order[delivery][data][locked] boolean Do not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery service
order[delivery][data][pickuppointAddress] string Pickup point address
order[delivery][data][days] string Approximate delivery timeApproximate delivery timeApproximate delivery time
order[delivery][data][statusText] string Delivery status nameDelivery status nameDelivery status name
order[delivery][data][statusDate] DateTime Delivery status dateDate of the last delivery status updating
order[delivery][data][tariff] string Tariff code
order[delivery][data][tariffName] string Tariff name
order[delivery][data][pickuppointId] string Pickup point IDPickup point idPickup point ID
order[delivery][data][pickuppointSchedule] string Pickup point working timeSchedule of pickup point
order[delivery][data][pickuppointPhone] string Pickup point phone
order[delivery][data][payerType] string PayerPayer type
order[delivery][data][statusComment] string Comment to delivery status
order[delivery][data][cost] float Delivery cost received from delivery service (in entity currency)Delivery cost received from delivery service (in entity currency)
order[delivery][data][minTerm] integer Minimum delivery term
order[delivery][data][maxTerm] integer Maximum delivery term
order[delivery][data][shipmentpointId] string Shipment terminal IDShipment point id
order[delivery][data][shipmentpointName] string Shipment terminal name
order[delivery][data][shipmentpointAddress] string Shipment terminal address
order[delivery][data][shipmentpointSchedule] string Pickup point working time shipment terminal
order[delivery][data][shipmentpointPhone] string Shipment terminal phone
order[delivery][data][shipmentpointCoordinateLatitude] string Shipment terminal coordinates, latitude
order[delivery][data][shipmentpointCoordinateLongitude] string Shipment terminal coordinates, longitude
order[delivery][data][pickuppointName] string Pickup point name
order[delivery][data][pickuppointCoordinateLatitude] string Pickup point coordinates, latitude
order[delivery][data][pickuppointCoordinateLongitude] string Pickup point coordinates, longitude
order[delivery][data][extraData] array Additional delivery data (deliveryDataField.code => value)
order[delivery][data][itemDeclaredValues][] array of objects (DeclaredValueItem)
order[delivery][data][itemDeclaredValues][][orderProduct] object (PackageItemOrderProduct) Order item
order[delivery][data][itemDeclaredValues][][orderProduct][id] integer ID of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalId] string deprecatedExternal ID of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][][code] string Symbolic code
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][][value] string Value
order[delivery][data][itemDeclaredValues][][value] double Declared value of the product
order[delivery][data][packages][] array of objects (Package) Packages
order[delivery][data][packages][][packageId] string Package number
order[delivery][data][packages][][weight] double Weight
order[delivery][data][packages][][length] integer Length
order[delivery][data][packages][][width] integer Width
order[delivery][data][packages][][height] integer Height
order[delivery][data][packages][][items][] array of objects (PackageItem) Package content
order[delivery][data][packages][][items][][orderProduct] object (PackageItemOrderProduct) Order item
order[delivery][data][packages][][items][][orderProduct][id] integer ID of order item
order[delivery][data][packages][][items][][orderProduct][externalId] string deprecatedExternal ID of order item
order[delivery][data][packages][][items][][orderProduct][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[delivery][data][packages][][items][][orderProduct][externalIds][][code] string Symbolic code
order[delivery][data][packages][][items][][orderProduct][externalIds][][value] string Value
order[delivery][data][packages][][items][][quantity] double Quantity
order[delivery][data][id] integer Courier ID
order[delivery][data][firstName] string First name
order[delivery][data][lastName] string Last name
order[delivery][data][patronymic] string Middle name
order[delivery][data][active] boolean Activity status
order[delivery][data][email] string E-mail
order[delivery][data][phone] object (CourierPhone) Courier phone
order[delivery][data][phone][number] string Phone number
order[delivery][data][description] string Description
order[delivery][data][courierId] integer Courier ID
order[delivery][data][serviceType] string Delivery technology
order[delivery][data][pickuppoint] string Pickup pointPickup point name
order[delivery][data][receiverWarehouseTypeRef] string Shipping to department
order[delivery][data][statusName] string Delivery status name
order[delivery][data][price] float Delivery cost received from delivery service
order[delivery][data][receiverCity] string Delivery city nameDelivery city
order[delivery][data][receiverCityRef] string Delivery city ID in NewPostDelivery city ID
order[delivery][data][receiverStreet] string Delivery street name
order[delivery][data][receiverStreetRef] string Delivery street ID in NewPost
order[delivery][data][seatsAmount] integer Quantity of sending seats
order[delivery][data][cargoType] string Cargo type
order[delivery][data][cargoDescription] string Cargo description
order[delivery][data][cashPayerType] string Payer type for cash on delivery
order[delivery][data][paymentForm] string Payment form
order[delivery][data][ownershipForm] string Entity ownership type
order[delivery][data][packageNumber] string Package number
order[delivery][data][accompanyingDocument] string Accompanying documents
order[delivery][data][notes] string Additional information on sending
order[delivery][data][preferredDeliveryDate] DateTime Preferred delivery date
order[delivery][data][timeInterval] string Time intervals delivery
order[delivery][data][saturdayDelivery] boolean Saturday delivery
order[delivery][data][deliveryDate] string Date when the recipient took the order
order[delivery][data][denieReason] string Rejection reason
order[delivery][data][backwardDelivery] custom handler result for (bool) Return consignment
order[delivery][data][backwardDeliveryCargoType] string Type of backward delivery
order[delivery][data][backwardDeliveryPayerType] string Type of sender for backward delivery
order[delivery][data][backwardDeliveryRedeliveryString] string Description of backward delivery
order[delivery][data][afterpaymentOnGoodsCost] float Payment control (in entity currency)
order[delivery][data][declaredValue] float Declared value (in entity currency)
order[delivery][data][sendDate] DateTime Date of sending
order[delivery][data][deliveryType] string Delivery method ID
order[delivery][data][deliveryName] string Delivery service name
order[delivery][data][pickupType] integer Pickup type
order[delivery][data][pickuppointDescription] string Description of pickup point
order[delivery][data][placesCount] integer Seats quantity
order[delivery][data][services][] array of strings Additional services of delivery
order[delivery][data][comment] string Comment to the order
order[delivery][service] object (SerializedDeliveryService)
order[delivery][service][name] string Name
order[delivery][service][code] string Symbolic code
order[delivery][service][active] boolean Activity status
order[delivery][cost] double Cost
order[delivery][netCost] double Delivery net cost
order[delivery][date] DateTime Delivery date
order[delivery][time] object (TimeInterval) Information on time range
order[delivery][time][from] DateTime Time "from"
order[delivery][time][to] DateTime Time "to"
order[delivery][time][custom] string Time range in free form
order[delivery][address] object (OrderDeliveryAddress) Address
order[delivery][address][index] string Postal code
order[delivery][address][countryIso] string Country ISO code
order[delivery][address][region] string Region
order[delivery][address][regionId] integer Region ID in Geohelper
order[delivery][address][city] string City
order[delivery][address][cityId] integer City ID in Geohelper
order[delivery][address][cityType] string Locality type
order[delivery][address][street] string Street
order[delivery][address][streetId] integer Street ID in Geohelper
order[delivery][address][streetType] string Street type
order[delivery][address][building] string Building
order[delivery][address][flat] string Flat/office
order[delivery][address][floor] integer Floor
order[delivery][address][block] integer Entrance
order[delivery][address][house] string House
order[delivery][address][housing] string Housing
order[delivery][address][metro] string Underground
order[delivery][address][notes] string Notes to address
order[delivery][address][text] string Address as string
order[delivery][vatRate] string VAT rate
order[site] string Store
order[status] string Order status
order[statusComment] string Comment to the last status change
order[source] object (SerializedSource) Order source
order[source][source] string Source
order[source][medium] string Medium
order[source][campaign] string Campaign
order[source][keyword] string Keyword
order[source][content] string Ad content
order[items][] array of objects (OrderProduct) Order item
order[items][][externalId] string deprecated External ID of order item
order[items][][bonusesChargeTotal] double Amount of debited bonuses
order[items][][bonusesCreditTotal] double Amount of accrued bonuses
order[items][][markingCodes][] array of strings Marking codes
order[items][][id] integer ID of order item
order[items][][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[items][][externalIds][][code] string Symbolic code
order[items][][externalIds][][value] string Value
order[items][][priceType] object (PriceType) Price type
order[items][][priceType][code] string Price type code
order[items][][initialPrice] double Item price/SKU (in entity currency)
order[items][][discounts][] array of objects (AbstractDiscount) Array of discounts
order[items][][discounts][][type] string Discount type. Possible values:
manual_order - One-time discount on the order;
manual_product - Additional discount on the product;
loyalty_level - Discount on the level of the loyalty program;
loyalty_event - Discount on the event of the loyalty program;
personal - Personal discount;
bonus_charge - Redemption of bonuses of the loyalty program;
round - Discount from rounding
order[items][][discounts][][amount] float Discount amount
order[items][][discountTotal] double Final monetary discount per item including all item and order discounts (in entity currency)
order[items][][prices][] array of objects (OrderProductPriceItem) Set of total sales prices with the quantity
order[items][][prices][][price] float Total price including all discounts on the product and order (in entity currency)
order[items][][prices][][quantity] float Quantity of the product at the specified price
order[items][][vatRate] string VAT rate
order[items][][createdAt] DateTime Date of order item creation in the system
order[items][][quantity] float Quantity
order[items][][status] string Status of the order item
order[items][][comment] string Comment to the order item
order[items][][offer] object (Offer) SKU
order[items][][offer][displayName] string SKU name
order[items][][offer][id] integer SKU ID
order[items][][offer][externalId] string SKU ID in store
order[items][][offer][xmlId] string SKU ID in the warehouse system
order[items][][offer][name] string Name
order[items][][offer][article] string Vendor code
order[items][][offer][vatRate] string VAT rate
order[items][][offer][properties] array SKU properties
order[items][][offer][unit] object (Unit) Unit
order[items][][offer][unit][code] string Unit symbolic code
order[items][][offer][unit][name] string Unit name
order[items][][offer][unit][sym] string Unit short name
order[items][][offer][barcode] string Barcode
order[items][][isCanceled] boolean This order item is cancelled in the order
order[items][][properties] array [array] Additional properties of the order item
order[items][][purchasePrice] double Purchasing price (in base currency)
order[items][][ordering] integer Ordering
order[fullPaidAt] DateTime Full payment date
order[payments][] array of objects (Payment) Payments
order[payments][][id] integer Payment ID
order[payments][][status] string Payment Status
order[payments][][type] string Payment Type
order[payments][][externalId] string External ID
order[payments][][amount] double Amount (in entity currency)
order[payments][][paidAt] DateTime Payment date
order[payments][][comment] string Comment
order[fromApi] boolean Order received through API
order[weight] double Weight
order[length] integer Length
order[width] integer Width
order[height] integer Height
order[shipmentStore] string Shipping warehouse
order[shipmentDate] DateTime Shipment date
order[shipped] boolean Order is shipped
order[links][] array of objects (OrderLink) Orders link
order[links][][order] object (LinkedOrder) Linked order
order[links][][order][id] integer Linked order ID
order[links][][order][number] string Linked order number
order[links][][order][externalId] string Linked order external ID
order[links][][createdAt] DateTime Date/time of creation of the link with the order
order[links][][comment] string Comment
order[customFields] array Associative array of custom fields
order[clientId] string Google Analytics clientId

HTTP statuses

Status codeDescription
201
  • The order is created
400
  • Error on order creation

POST /api/v5/orders/fix-external-ids The mass recording of orders external ID

The mass recording of orders external ID

To access the method, the following permission is required order_write.

This method is useful in case of reverse synchronization of orders, which were created in system initially.

It is recommended to use the following script of order reverse synchronization between web store and system. Web store periodically requests method /api/v*/orders/history. On the basis of received data the store applies changes to existing orders, and also creates new orders, created in system initially. When creating of orders in store there are orders' own ID generated (externalId of orders in system notation). Immediately after customers creation the web-store calls method /api/v*/orders/fix-external-ids, keeping in system orders' own ID.

Parameters

ParameterTypeFormatDescription
orders[]array of objects (FixExternalRow) Uploaded objects IDs
orders[][id]digit{not blank}{range: {>=1, <=2147483647}}} Internal ID
orders[][externalId]string{not blank} External ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/orders/history Getting the order change history

Getting the order change history

To access the method, the following permission is required order_read.

Returns the changes in order data, which were made in the specified range of dates (using filter[startDate] and filter[endDate] filters) or the set of incremental changes for carrying out the permanent synchronization (using filter[sinceId] filter)

Full set of fields in corresponding 'order' or 'item' keys is returned for order creating or removal entries.

When adding item to order, fieldName=order_product entry is displayed in the history. By that full object in "item" context is available and only identificating fields are pointed out in "newValue" field.

The result is returned per-page. In the field pagination there is an information about the pagination. To paginate through history records, it is necessary to use filter[sinceId]. It is not recommended to use the page parameter.

More information about the work with history you can find in other article.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (OrderHistoryFilterV4Type)
filter[orderId]integer{range: {>=0, <=4294967295}}{not blank}} Order ID
filter[sinceId]integer{range: {>=0, <=4294967295}}{not blank}} Starting with orders history ID
filter[orderExternalId]string{length: {max: 255}} Order external ID
filter[startDate]DateTimeY-m-d H:i:s Start DateTime of change
filter[endDate]DateTimeY-m-d H:i:s End DateTime of change

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
generatedAt DateTime Time of response formation
history[] array of objects (OrderHistory)
history[][id] integer Internal identifier of entry in the history
history[][createdAt] DateTime Date of making change
history[][created] boolean Notes that the entity is created
history[][deleted] boolean Notes that the entity is deleted
history[][source] string Date of making change
history[][user] object (User) User
history[][user][id] integer User ID
history[][field] string Name of changed field
history[][oldValue] custom handler result for (mixed) Old value of field
history[][newValue] custom handler result for (mixed) New value of field
history[][apiKey] object (ApiKey) Information about api key used for making this change
history[][apiKey][current] boolean The change was made with the api key currently in use
history[][apiKey][id] integer Api key ID
history[][order] object (Order) Order
history[][order][id] integer Order ID
history[][order][externalId] string Order external ID
history[][order][managerId] integer Manager, responsible for order
history[][order][site] string Store
history[][order][status] string Order status
history[][ancestor] object (Order) Information about the order from which the current order was created
history[][item] object (OrderProduct) Order item
history[][item][externalId] string deprecated External ID of order item
history[][item][id] integer ID of order item
history[][item][externalIds][] array of objects (CodeValueModel) External IDs of order item
history[][item][externalIds][][code] string Symbolic code
history[][item][externalIds][][value] string Value
history[][item][discounts][] array of objects (AbstractDiscount) Array of discounts
history[][item][discounts][][type] string Discount type. Possible values:
manual_order - One-time discount on the order;
manual_product - Additional discount on the product;
loyalty_level - Discount on the level of the loyalty program;
loyalty_event - Discount on the event of the loyalty program;
personal - Personal discount;
bonus_charge - Redemption of bonuses of the loyalty program;
round - Discount from rounding
history[][item][discounts][][amount] float Discount amount
history[][item][offer] object (Offer) SKU
history[][item][offer][id] integer SKU ID
history[][item][offer][externalId] string SKU ID in store
history[][item][offer][xmlId] string SKU ID in the warehouse system
history[][item][offer][properties][] array of strings SKU properties
history[][item][ordering] integer Ordering
history[][item][properties][] array of strings [array] Additional properties of the order item
history[][item][properties][][code] string Property code (not mandatory field, the code can be transmitted in the property key)
history[][item][properties][][name] string Property name
history[][item][properties][][value] string Property value
history[][payment] object (Payment) Payment
history[][payment][id] integer Payment ID
history[][payment][type] string Payment Type
history[][payment][externalId] string External ID
history[][combinedTo] object (Order) Information on order, which is created after combining with current order
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/orders/links/create Creating a link between orders

Creating a link between orders

To access the method, the following permission is required order_write.

The method allows to link several orders together.

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of a store. It is specified if orders are specified via externalId or number
linkobject (SerializedOrderLink)
link[comment]string{length: {max: 1000}} Comment
link[orders][]array of objects (SerializedEntityOrder) Order
link[orders][][id]integer Order internal ID
link[orders][][externalId]string Order external ID
link[orders][][number]string Order number

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
201
  • The link between orders has been created successfully
400
  • Error when creating a link between orders

POST /api/v5/orders/loyalty/apply Applying bonuses according to the loyalty program

Applying bonuses according to the loyalty program

To access the method, the following permission is required order_write.

Method to apply bonuses according to the loyalty program. If the setting of the bonus account of the loyalty program "Confirm redemption by SMS" is enabled, it is required to specify a phone number in the participation of the loyalty program. An SMS message will be sent to this phone number confirming that bonuses will be redeemed. The redemption will be made only after the confirmation via the SMS code.

To resend SMS, call this method with the current parameters again. Resending is available in 60 seconds. The validity of the SMS code is 5 minutes.

If it is not required to send an SMS to confirm the redemption of bonuses, the bonuses will be redeemed and the SerializedLoyaltyOrder object will be returned in the response. In case of confirmation via SMS, the SmsVerification object will be returned.

Parameters

ParameterTypeFormatDescription
sitestring Store symbolic code
orderobject (SerializedEntityOrder) Order
order[id]integer Order internal ID
order[externalId]string Order external ID
order[number]string Order number
order[applyRound]boolean Apply the setting of rounding the order cost
bonusesfloat Amount of bonuses to be redeemed

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
order object (SerializedLoyaltyOrder)
order[bonusesCreditTotal] double Amount of accrued bonuses
order[bonusesChargeTotal] double Amount of debited bonuses
order[currency] string Currency
order[privilegeType] string Privilege type
order[totalSumm] double Total sum with discount (in entity currency)
order[personalDiscountPercent] double Personal discount on the order
order[loyaltyAccount] object (LoyaltyAccount) Participation in the loyalty program
order[loyaltyAccount][id] integer Participation ID
order[loyaltyAccount][amount] float Active bonus amount
order[loyaltyLevel] object (LoyaltyLevel) Level of participation in the loyalty program
order[loyaltyLevel][id] integer Level ID
order[loyaltyLevel][name] string Level name
order[loyaltyEventDiscount] object (LoyaltyEventDiscount) Discount on the event of the loyalty program
order[loyaltyEventDiscount][id] integer ID
order[customer] object (Customer) Customer
order[customer][id] integer Customer ID
order[customer][externalId] string Customer external ID
order[customer][personalDiscount] double Personal discount
order[delivery] object (SerializedOrderDelivery) Data on delivery
order[delivery][cost] double Cost
order[site] string Store
order[items][] array of objects (OrderProduct) Order item
order[items][][bonusesChargeTotal] double Amount of debited bonuses
order[items][][bonusesCreditTotal] double Amount of accrued bonuses
order[items][][id] integer ID of order item
order[items][][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[items][][externalIds][][code] string Symbolic code
order[items][][externalIds][][value] string Value
order[items][][priceType] object (PriceType) Price type
order[items][][priceType][code] string Price type code
order[items][][initialPrice] double Item price/SKU (in entity currency)
order[items][][discounts][] array of objects (AbstractDiscount) Array of discounts
order[items][][discounts][][type] string Discount type. Possible values:
manual_order - One-time discount on the order;
manual_product - Additional discount on the product;
loyalty_level - Discount on the level of the loyalty program;
loyalty_event - Discount on the event of the loyalty program;
personal - Personal discount;
bonus_charge - Redemption of bonuses of the loyalty program;
round - Discount from rounding
order[items][][discounts][][amount] float Discount amount
order[items][][discountTotal] double Final monetary discount per item including all item and order discounts (in entity currency)
order[items][][prices][] array of objects (OrderProductPriceItem) Set of total sales prices with the quantity
order[items][][prices][][price] float Total price including all discounts on the product and order (in entity currency)
order[items][][prices][][quantity] float Quantity of the product at the specified price
order[items][][vatRate] string VAT rate
order[items][][quantity] float Quantity
order[items][][offer] object (Offer) SKU
order[items][][offer][id] integer SKU ID
order[items][][offer][externalId] string SKU ID in store
order[items][][offer][xmlId] string SKU ID in the warehouse system
verification object (SmsVerification) SMS-verification
verification[createdAt] DateTime Date of creation. (Y-m-d H:i:s)
verification[expiredAt] DateTime Expiration date. (Y-m-d H:i:s)
verification[verifiedAt] DateTime Verification success date. (Y-m-d H:i:s)
verification[checkId] string Code verification ID
verification[actionType] string Type of action

POST /api/v5/orders/loyalty/cancel-bonus-operations Cancellation of bonus operations on the Loyalty Program

Cancellation of bonus operations on the Loyalty Program

To access the method, the following permission is required order_write.

The method cancels the actions performed with bonuses in the order. In case of cancellation, the customer will get back the bonuses redeemed in the order while the accrued bonuses will be redeemed.

If there are only redeemed or only accrued bonuses in the order, then only the performed operation will be cancelled.

Parameters

ParameterTypeFormatDescription
sitestring Store symbolic code
orderobject (SerializedEntityOrder) Order
order[id]integer Order internal ID
order[externalId]string Order external ID
order[number]string Order number
order[applyRound]boolean Apply the setting of rounding the order cost

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
order object (Order) Order
order[bonusesCreditTotal] double Amount of accrued bonuses
order[bonusesChargeTotal] double Amount of debited bonuses
order[currency] string Currency
order[privilegeType] string Privilege type
order[totalSumm] double Total sum with discount (in entity currency)
order[personalDiscountPercent] double Personal discount on the order
order[loyaltyAccount] object (LoyaltyAccount) Participation in the loyalty program
order[loyaltyAccount][id] integer Participation ID
order[loyaltyAccount][amount] float Active bonus amount
order[loyaltyLevel] object (LoyaltyLevel) Level of participation in the loyalty program
order[loyaltyLevel][id] integer Level ID
order[loyaltyLevel][name] string Level name
order[loyaltyEventDiscount] object (LoyaltyEventDiscount) Discount on the event of the loyalty program
order[loyaltyEventDiscount][id] integer ID
order[delivery] object (SerializedOrderDelivery) Data on delivery
order[delivery][cost] double Cost
order[site] string Store
order[items][] array of objects (OrderProduct) Order item
order[items][][bonusesChargeTotal] double Amount of debited bonuses
order[items][][bonusesCreditTotal] double Amount of accrued bonuses
order[items][][id] integer ID of order item
order[items][][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[items][][externalIds][][code] string Symbolic code
order[items][][externalIds][][value] string Value
order[items][][priceType] object (PriceType) Price type
order[items][][priceType][code] string Price type code
order[items][][initialPrice] double Item price/SKU (in entity currency)
order[items][][discounts][] array of objects (AbstractDiscount) Array of discounts
order[items][][discounts][][type] string Discount type. Possible values:
manual_order - One-time discount on the order;
manual_product - Additional discount on the product;
loyalty_level - Discount on the level of the loyalty program;
loyalty_event - Discount on the event of the loyalty program;
personal - Personal discount;
bonus_charge - Redemption of bonuses of the loyalty program;
round - Discount from rounding
order[items][][discounts][][amount] float Discount amount
order[items][][discountTotal] double Final monetary discount per item including all item and order discounts (in entity currency)
order[items][][prices][] array of objects (OrderProductPriceItem) Set of total sales prices with the quantity
order[items][][prices][][price] float Total price including all discounts on the product and order (in entity currency)
order[items][][prices][][quantity] float Quantity of the product at the specified price
order[items][][vatRate] string VAT rate
order[items][][quantity] float Quantity
order[items][][offer] object (Offer) SKU
order[items][][offer][id] integer SKU ID
order[items][][offer][externalId] string SKU ID in store
order[items][][offer][xmlId] string SKU ID in the warehouse system

POST /api/v5/orders/payments/create Payment creation

Payment creation

To access the method, the following permission is required order_write.

Method adds payment to the order and returns internal ID of created payment.

For specifying the order, which payment is related to, it is necessary to set the value for one of the following field:

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store
paymentobject (SerializedPayment) Payment
payment[externalId]string External ID
payment[amount]double Amount (in entity currency)
payment[paidAt]DateTime Payment date
payment[comment]string Comment
payment[order]object (SerializedEntityOrder) Order
payment[order][id]integer Order internal ID
payment[order][externalId]string Order external ID
payment[order][number]string Order number
payment[type]string Payment Type
payment[status]string Payment Status

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer ID of created payment

HTTP statuses

Status codeDescription
201
  • The payment is created
400
  • Error on payment create

POST /api/v5/orders/payments/{id}/delete Payment removing

Payment removing

To access the method, the following permission is required order_write.

Method allows to remove the payment.

Parameters

ParameterTypeFormatDescription
idinteger Payment ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • Payment is successfully removed
400
  • Error on payment removing
404
  • Payment not found

POST /api/v5/orders/payments/{id}/edit Payment editing

Payment editing

To access the method, the following permission is required order_write.

Methods allows to change the payment.

Change of payment[externalId] is available only when referring to payment by id (by=id), otherwise (by=externalId) transferred value will be ignored.

Parameters

ParameterTypeFormatDescription
bystring Here is specified, what exactly is transferred in id parameter: internal (by=id) or external (by=externalId) ID of payment. It is id by default.
sitestring Symbolic code of store. It should be specified in case of reference to payment by externalId (by=externalId)
paymentobject (SerializedPayment) Payment
payment[externalId]string External ID
payment[amount]double Amount (in entity currency)
payment[paidAt]DateTime Payment date
payment[comment]string Comment
payment[status]string Payment Status

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer ID of updated payment

HTTP statuses

Status codeDescription
200
  • They payment is updated
400
  • Error on payment editing
404
  • Payment not found

GET /api/v5/orders/statuses Getting the list of order statuses

Getting the list of order statuses

To access the method, the following permission is required order_read.

Returns statuses (and status groups) of orders, id or externalId of which were specified in parameters of query ids[] and externalIds[].

You may specify summarily up to 500 ids. if specified both ids[], and externalIds[], then order searching is carried out by all specified ids.

Parameters

ParameterTypeFormatDescription
ids[]array Orders ID (internal identifiers)
externalIds[]array Orders externalId (external identifiers)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
orders[] array of objects (OrderStatusItem) Order statuses
orders[][id] integer Order ID
orders[][externalId] string Order external ID
orders[][status] string Order status
orders[][group] string Order status group
orders[][number] string Order number

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/orders/upload Packet orders uploading

Packet orders uploading

To access the method, the following permission is required order_write.

Method allows to upload as packet up to 50 orders.

More detailed information on data format you can find in description of method /api/v*/orders/create.

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store, which includes downloadable orders
orders[]array of objects (SerializedOrder)
orders[][number]string Order number
orders[][externalId]string Order external ID
orders[][privilegeType]string Privilege type
orders[][countryIso]string Country ISO code
orders[][createdAt]DateTimeY-m-d H:i:s Order creation date
orders[][statusUpdatedAt]DateTimeY-m-d H:i:s Date of the last order status change
orders[][discountManualAmount]double Monetary discount (in entity currency)
orders[][discountManualPercent]double Percentage discount
orders[][mark]integer Order evaluation
orders[][markDatetime]DateTimeY-m-d H:i:s Date and time of getting evaluation from customer
orders[][lastName]string Surname
orders[][firstName]string Name
orders[][patronymic]string Middle name
orders[][phone]string Phone number
orders[][additionalPhone]string Additional phone
orders[][email]string E-mail
orders[][call]boolean Call required
orders[][expired]boolean Expired
orders[][customerComment]string Customer comment
orders[][managerComment]string Operator comment
orders[][contragent]object (OrderContragent) Requisites
orders[][contragent][contragentType]string Contragent type
orders[][contragent][legalName]string Legal name
orders[][contragent][legalAddress]string Registration address
orders[][contragent][INN]string TIN
orders[][contragent][OKPO]string RNNBO
orders[][contragent][KPP]string IECC
orders[][contragent][OGRN]string PSRN
orders[][contragent][OGRNIP]string PSRN of Individual entrepreneur
orders[][contragent][certificateNumber]string Certificate number
orders[][contragent][certificateDate]DateTimeY-m-d Certificate date
orders[][contragent][BIK]string RCBIC
orders[][contragent][bank]string Bank
orders[][contragent][bankAddress]string Bank address
orders[][contragent][corrAccount]string Corresponding account
orders[][contragent][bankAccount]string Settlement account
orders[][statusComment]string Comment to the last status change
orders[][weight]double Weight
orders[][length]integer Length
orders[][width]integer Width
orders[][height]integer Height
orders[][shipmentDate]DateTimeY-m-d Shipment date
orders[][shipped]boolean Order is shipped
orders[][dialogId]object (MGDialog) Chats dialog identifier
orders[][customFields]array Associative array of custom fields
orders[][orderType]string Order type
orders[][orderMethod]string Method
orders[][customer]object (SerializedRelationCustomer) Customer
orders[][customer][id]integer Customer internal ID
orders[][customer][externalId]string Customer external ID
orders[][customer][browserId]string Device ID in Collector
orders[][customer][site]string Store code, required when externalId is specified
orders[][customer][type]string Customer type (specified when creating new customer)
orders[][customer][nickName]string Corporate customer name (specified when creating new corporate customer)
orders[][contact]object (SerializedRelationAbstractCustomer) Contact person
orders[][contact][id]integer Customer internal ID
orders[][contact][externalId]string Customer external ID
orders[][contact][browserId]string Device ID in Collector
orders[][contact][site]string Store code, required when externalId is specified
orders[][company]object (EntityWithExternalIdInput) Company
orders[][company][id]integer ID
orders[][company][externalId]string External ID
orders[][managerId]integer Manager, responsible for order
orders[][status]string Order status
orders[][items][]array of objects (SerializedOrderProduct)
orders[][items][][markingCodes][]array of strings Marking codes
orders[][items][][initialPrice]double Item price/SKU (in entity currency)
orders[][items][][discountManualAmount]double Monetary discount per item (in entity currency)
orders[][items][][discountManualPercent]double Percentage discount per item
orders[][items][][vatRate]string VAT rate
orders[][items][][createdAt]DateTimeY-m-d H:i:s Date of order item creation in the system
orders[][items][][quantity]float Quantity
orders[][items][][comment]string Comment to the order item
orders[][items][][properties][]array [array] Additional properties of the order item
orders[][items][][properties][][code]string{not blank}{match: /^[a-zA-Z0-9_][a-zA-Z0-9_\-:]*$/D}} Property code (not mandatory field, the code can be transmitted in the property key)
orders[][items][][properties][][name]string{not blank} Property name
orders[][items][][properties][][value]string{not blank} Property value
orders[][items][][purchasePrice]double Purchasing price (in base currency)
orders[][items][][ordering]integer Ordering
orders[][items][][offer]object (SerializedOrderProductOffer) SKU
orders[][items][][offer][id]integer SKU ID
orders[][items][][offer][externalId]string SKU external ID
orders[][items][][offer][xmlId]string SKU ID in the warehouse system
orders[][items][][productName]string Item name
orders[][items][][status]string Status of the order item
orders[][items][][priceType]object (PriceType) Price type
orders[][items][][priceType][code]string Price type code
orders[][items][][externalId]stringdeprecated External ID of order item
orders[][items][][externalIds][]array of objects (CodeValueModel) External IDs of order item
orders[][items][][externalIds][][code]string Symbolic code
orders[][items][][externalIds][][value]string Value
orders[][delivery]object (SerializedOrderDelivery) Data on delivery
orders[][delivery][code]string Delivery type code
orders[][delivery][data]Data of the delivery service, connected by APICourier delivery service dataNew Post delivery service dataDDelivery delivery service dataKazPost delivery service data
orders[][delivery][data][externalId]string Delivery id in delivery service
orders[][delivery][data][trackNumber]stringTrack number (deprecated for write)Track numberTrack number
orders[][delivery][data][locked]booleanDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery service
orders[][delivery][data][tariff]string Tariff code
orders[][delivery][data][pickuppointId]stringPickup point IDPickup point idPickup point ID
orders[][delivery][data][payerType]stringPayerPayer type
orders[][delivery][data][shipmentpointId]stringShipment terminal IDShipment point id
orders[][delivery][data][extraData]array Additional delivery data (deliveryDataField.code => value)
orders[][delivery][data][itemDeclaredValues][]array of objects (DeclaredValueItem)
orders[][delivery][data][itemDeclaredValues][][orderProduct]object (PackageItemOrderProduct) Order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][id]integer ID of order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalId]stringdeprecatedExternal ID of order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalIds][]array of objects (CodeValueModel) External IDs of order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalIds][][code]string Symbolic code
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalIds][][value]string Value
orders[][delivery][data][itemDeclaredValues][][value]double Declared value of the product
orders[][delivery][data][packages][]array of objects (Package) Packages
orders[][delivery][data][packages][][packageId]string Package number
orders[][delivery][data][packages][][weight]double Weight
orders[][delivery][data][packages][][length]integer Length
orders[][delivery][data][packages][][width]integer Width
orders[][delivery][data][packages][][height]integer Height
orders[][delivery][data][packages][][items][]array of objects (PackageItem) Package content
orders[][delivery][data][packages][][items][][orderProduct]object (PackageItemOrderProduct) Order item
orders[][delivery][data][packages][][items][][orderProduct][id]integer ID of order item
orders[][delivery][data][packages][][items][][orderProduct][externalId]stringdeprecatedExternal ID of order item
orders[][delivery][data][packages][][items][][orderProduct][externalIds][]array of objects (CodeValueModel) External IDs of order item
orders[][delivery][data][packages][][items][][orderProduct][externalIds][][code]string Symbolic code
orders[][delivery][data][packages][][items][][orderProduct][externalIds][][value]string Value
orders[][delivery][data][packages][][items][][quantity]double Quantity
orders[][delivery][data][courierId]integer Courier ID
orders[][delivery][data][serviceType]string Delivery technology
orders[][delivery][data][pickuppoint]string Pickup point
orders[][delivery][data][receiverWarehouseTypeRef]string Shipping to department
orders[][delivery][data][receiverCity]stringDelivery city nameDelivery city
orders[][delivery][data][receiverCityRef]stringDelivery city ID in NewPostDelivery city ID
orders[][delivery][data][receiverStreet]string Delivery street name
orders[][delivery][data][receiverStreetRef]string Delivery street ID in NewPost
orders[][delivery][data][seatsAmount]integer Quantity of sending seats
orders[][delivery][data][cargoType]string Cargo type
orders[][delivery][data][cargoDescription]string Cargo description
orders[][delivery][data][cashPayerType]string Payer type for cash on delivery
orders[][delivery][data][paymentForm]string Payment form
orders[][delivery][data][ownershipForm]string Entity ownership type
orders[][delivery][data][packageNumber]string Package number
orders[][delivery][data][accompanyingDocument]string Accompanying documents
orders[][delivery][data][notes]string Additional information on sending
orders[][delivery][data][preferredDeliveryDate]DateTimeY-m-d Preferred delivery date
orders[][delivery][data][backwardDelivery]custom handler result for (bool) Return consignment
orders[][delivery][data][backwardDeliveryCargoType]string Type of backward delivery
orders[][delivery][data][backwardDeliveryPayerType]string Type of sender for backward delivery
orders[][delivery][data][backwardDeliveryRedeliveryString]string Description of backward delivery
orders[][delivery][data][afterpaymentOnGoodsCost]float Payment control (in entity currency)
orders[][delivery][data][declaredValue]float Declared value (in entity currency)
orders[][delivery][data][sendDate]DateTimeY-m-d Date of sending
orders[][delivery][data][deliveryType]string Delivery method ID
orders[][delivery][data][pickupType]integer Pickup type
orders[][delivery][data][placesCount]integer Seats quantity
orders[][delivery][data][services][]array of strings Additional services of delivery
orders[][delivery][data][comment]string Comment to the order
orders[][delivery][service]object (SerializedDeliveryService)
orders[][delivery][service][name]string Name
orders[][delivery][service][code]string Symbolic code
orders[][delivery][service][active]boolean Activity status
orders[][delivery][service][deliveryType]string Delivery type
orders[][delivery][cost]double Cost
orders[][delivery][netCost]double Delivery net cost
orders[][delivery][date]DateTimeY-m-d Delivery date
orders[][delivery][time]object (TimeInterval) Information on time range
orders[][delivery][time][from]DateTimeH:i Time "from"
orders[][delivery][time][to]DateTimeH:i Time "to"
orders[][delivery][time][custom]string Time range in free form
orders[][delivery][address]object (OrderDeliveryAddress) Address
orders[][delivery][address][index]string Postal code
orders[][delivery][address][countryIso]string Country ISO code
orders[][delivery][address][region]string Region
orders[][delivery][address][regionId]integer Region ID in Geohelper
orders[][delivery][address][city]string City
orders[][delivery][address][cityId]integer City ID in Geohelper
orders[][delivery][address][cityType]string Locality type
orders[][delivery][address][street]string Street
orders[][delivery][address][streetId]integer Street ID in Geohelper
orders[][delivery][address][streetType]string Street type
orders[][delivery][address][building]string Building
orders[][delivery][address][flat]string Flat/office
orders[][delivery][address][floor]integer Floor
orders[][delivery][address][block]integer Entrance
orders[][delivery][address][house]string House
orders[][delivery][address][housing]string Housing
orders[][delivery][address][metro]string Underground
orders[][delivery][address][notes]string Notes to address
orders[][delivery][address][text]string Address as string
orders[][delivery][vatRate]string VAT rate
orders[][source]object (SerializedSource) Order source
orders[][source][source]string Source
orders[][source][medium]string Medium
orders[][source][campaign]string Campaign
orders[][source][keyword]string Keyword
orders[][source][content]string Ad content
orders[][shipmentStore]string Shipping warehouse
orders[][payments][]array of objects (SerializedPayment) Payments
orders[][payments][][externalId]string External ID
orders[][payments][][amount]double Amount (in entity currency)
orders[][payments][][paidAt]DateTimeY-m-d H:i:s Payment date
orders[][payments][][comment]string Comment
orders[][payments][][type]string Payment Type
orders[][payments][][status]string Payment Status
orders[][loyaltyEventDiscountId]integer ID of the discount on the event of the loyalty program
orders[][applyRound]boolean Apply the setting of rounding the order cost
orders[][isFromCart]boolean Order created from cart

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
uploadedOrders[] array of objects (FixExternalRow) Uploaded objects IDs
uploadedOrders[][id] integer Internal ID
uploadedOrders[][externalId] string External ID
failedOrders[] array of objects (EntityWithExternalId) Non-uploaded objects IDs
failedOrders[][externalId] string External ID (if available)
orders[] array of objects (Order) Order
orders[][slug] custom handler result for (int) deprecated Symbolic code
orders[][bonusesCreditTotal] double Amount of accrued bonuses
orders[][bonusesChargeTotal] double Amount of debited bonuses
orders[][summ] double Total for goods/services (in entity currency)
orders[][currency] string Currency
orders[][id] integer Order ID
orders[][number] string Order number
orders[][externalId] string Order external ID
orders[][orderType] string Order type
orders[][orderMethod] string Method
orders[][privilegeType] string Privilege type
orders[][countryIso] string Country ISO code
orders[][createdAt] DateTime Order creation date
orders[][statusUpdatedAt] DateTime Date of the last order status change
orders[][totalSumm] double Total sum with discount (in entity currency)
orders[][prepaySum] double Paid sum (in entity currency)
orders[][purchaseSumm] double Total purchase sum (in base currency)
orders[][personalDiscountPercent] double Personal discount on the order
orders[][loyaltyLevel] object (LoyaltyLevel) Level of participation in the loyalty program
orders[][loyaltyLevel][id] integer Level ID
orders[][loyaltyLevel][name] string Level name
orders[][loyaltyEventDiscount] object (LoyaltyEventDiscount) Discount on the event of the loyalty program
orders[][loyaltyEventDiscount][id] integer ID
orders[][mark] integer Order evaluation
orders[][markDatetime] DateTime Date and time of getting evaluation from customer
orders[][lastName] string Surname
orders[][firstName] string Name
orders[][patronymic] string Middle name
orders[][phone] string Phone number
orders[][additionalPhone] string Additional phone
orders[][email] string E-mail
orders[][call] boolean Call required
orders[][expired] boolean Expired
orders[][customerComment] string Customer comment
orders[][managerComment] string Operator comment
orders[][managerId] integer Manager, responsible for order
orders[][customer]CustomerCorporate customer
orders[][customer][type] string Customer typeCustomer type
orders[][customer][id] integer Customer IDCorporate customer ID
orders[][customer][externalId] string Customer external IDCorporate customer external ID
orders[][customer][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
orders[][customer][createdAt] DateTime Created atCreated at
orders[][customer][managerId] integer Customer managerCorporate customer manager
orders[][customer][vip] boolean VIP customerVIP corporate customer
orders[][customer][bad] boolean Bad customerBad corporate customer
orders[][customer][site] string Store, from which the customer cameStore, from which the corporate customer came
orders[][customer][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
orders[][customer][contragent][contragentType] string Contragent type
orders[][customer][contragent][legalName] string Legal name
orders[][customer][contragent][legalAddress] string Registration address
orders[][customer][contragent][INN] string TIN
orders[][customer][contragent][OKPO] string RNNBO
orders[][customer][contragent][KPP] string IECC
orders[][customer][contragent][OGRN] string PSRN
orders[][customer][contragent][OGRNIP] string PSRN of Individual entrepreneur
orders[][customer][contragent][certificateNumber] string Certificate number
orders[][customer][contragent][certificateDate] DateTime Certificate date
orders[][customer][contragent][BIK] string RCBIC
orders[][customer][contragent][bank] string Bank
orders[][customer][contragent][bankAddress] string Bank address
orders[][customer][contragent][corrAccount] string Corresponding account
orders[][customer][contragent][bankAccount] string Settlement account
orders[][customer][tags][] array of objects (CustomerTagLink) [array] Tags[array] Tags
orders[][customer][tags][][color] string
orders[][customer][tags][][name] string
orders[][customer][tags][][colorCode] string
orders[][customer][tags][][attached] boolean
orders[][customer][firstClientId] string First Google Analytics clientIdFirst Google Analytics unique clientId
orders[][customer][lastClientId] string Last Google Analytics clientIdLast Google Analytics unique clientId
orders[][customer][customFields] array Associative array of custom fieldsAssociative array of custom fields
orders[][customer][personalDiscount] double Personal discountPersonal discount
orders[][customer][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)deprecated Cumulative discount (Not available starting from version 8 of the system)
orders[][customer][discountCardNumber] string Discount card numberDiscount card number
orders[][customer][avgMarginSumm] float Average gross profit of customer orders (in base currency)Average gross profit of corporate customer orders (in base currency)
orders[][customer][marginSumm] float LTV (in base currency)LTV (in base currency)
orders[][customer][totalSumm] float Orders total sum (in base currency)Orders total sum (in base currency)
orders[][customer][averageSumm] float Order average sum (in base currency)Order average sum (in base currency)
orders[][customer][ordersCount] integer Orders quantityOrders quantity
orders[][customer][costSumm] float Amount of costs (in base currency)Amount of costs (in base currency)
orders[][customer][address] object (CustomerAddress) Customer address
orders[][customer][address][id] integer Address ID
orders[][customer][address][index] string Postal code
orders[][customer][address][countryIso] string Country ISO code
orders[][customer][address][region] string Region
orders[][customer][address][regionId] integer Region ID in Geohelper
orders[][customer][address][city] string City
orders[][customer][address][cityId] integer City ID in Geohelper
orders[][customer][address][cityType] string Locality type
orders[][customer][address][street] string Street
orders[][customer][address][streetId] integer Street ID in Geohelper
orders[][customer][address][streetType] string Street type
orders[][customer][address][building] string Building
orders[][customer][address][flat] string Flat/office
orders[][customer][address][floor] integer Floor
orders[][customer][address][block] integer Entrance
orders[][customer][address][house] string House
orders[][customer][address][housing] string Housing
orders[][customer][address][metro] string Underground
orders[][customer][address][notes] string Notes to address
orders[][customer][address][text] string Address as string
orders[][customer][address][externalId] string External ID
orders[][customer][address][name] string Name
orders[][customer][segments][] array of objects (Segment) [array] Segments
orders[][customer][segments][][id] integer Internal ID of segment
orders[][customer][segments][][code] string Symbolic code
orders[][customer][segments][][name] string Segment name
orders[][customer][segments][][createdAt] DateTime Segment creation date
orders[][customer][segments][][isDynamic] boolean Is this segment dynamic
orders[][customer][segments][][customersCount] integer Customer quantity in segment
orders[][customer][segments][][active] boolean Activity state of segment
orders[][customer][maturationTime] integer Maturation time, in seconds
orders[][customer][firstName] string Name
orders[][customer][lastName] string Surname
orders[][customer][patronymic] string Middle name
orders[][customer][sex] string Sex
orders[][customer][presumableSex] string Guessed gender based on name
orders[][customer][email] string E-mail
orders[][customer][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
orders[][customer][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
orders[][customer][customerSubscriptions][][subscription] object (Subscription) Subscription category
orders[][customer][customerSubscriptions][][subscription][id] integer Subscription category ID
orders[][customer][customerSubscriptions][][subscription][channel] string Channel
orders[][customer][customerSubscriptions][][subscription][name] string Name
orders[][customer][customerSubscriptions][][subscription][code] string Symbolic code
orders[][customer][customerSubscriptions][][subscription][active] boolean Activity status
orders[][customer][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
orders[][customer][customerSubscriptions][][subscription][ordering] integer
orders[][customer][customerSubscriptions][][subscribed] boolean Subscription activity
orders[][customer][customerSubscriptions][][changedAt] DateTime Activity flag change date
orders[][customer][phones][] array of objects (CustomerPhone) Phone numbers
orders[][customer][phones][][number] string Phone number
orders[][customer][birthday] DateTime Birthday
orders[][customer][source] object (SerializedSource) Customer source
orders[][customer][source][source] string Source
orders[][customer][source][medium] string Medium
orders[][customer][source][campaign] string Campaign
orders[][customer][source][keyword] string Keyword
orders[][customer][source][content] string Ad content
orders[][customer][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
orders[][customer][mgCustomers][][id] integer Customer ID
orders[][customer][mgCustomers][][externalId] integer External ID of the MessageGateway customer
orders[][customer][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
orders[][customer][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
orders[][customer][mgCustomers][][mgChannel][id] integer ID of the channel
orders[][customer][mgCustomers][][mgChannel][externalId] integer External ID of the channel
orders[][customer][mgCustomers][][mgChannel][type] string Channel type
orders[][customer][mgCustomers][][mgChannel][active] boolean Channel activity
orders[][customer][mgCustomers][][mgChannel][name] string Channel name
orders[][customer][photoUrl] string URL of photo
orders[][customer][mainAddress] object (EntityWithExternalIdNameOutput) Main corporate customer address
orders[][customer][mainAddress][id] integer ID
orders[][customer][mainAddress][externalId] string External ID
orders[][customer][mainAddress][name] string Name
orders[][customer][mainCustomerContact] object (CustomerContact) Main contact person
orders[][customer][mainCustomerContact][id] integer Contact ID
orders[][customer][mainCustomerContact][customer] object (SerializedRelationAbstractCustomer) Customer
orders[][customer][mainCustomerContact][customer][id] integer Customer internal ID
orders[][customer][mainCustomerContact][customer][externalId] string Customer external ID
orders[][customer][mainCustomerContact][customer][browserId] string Device ID in Collector
orders[][customer][mainCustomerContact][companies][] array of objects (CustomerContactCompany) Contact person`s company
orders[][customer][mainCustomerContact][companies][][id] integer Company ID
orders[][customer][mainCustomerContact][companies][][company] object (EntityWithExternalIdNameOutput) Company
orders[][customer][mainCustomerContact][companies][][company][id] integer ID
orders[][customer][mainCustomerContact][companies][][company][externalId] string External ID
orders[][customer][mainCustomerContact][companies][][company][name] string Name
orders[][customer][mainCompany] object (EntityWithExternalIdNameOutput) Main company
orders[][customer][mainCompany][id] integer ID
orders[][customer][mainCompany][externalId] string External ID
orders[][customer][mainCompany][name] string Name
orders[][customer][nickName] string Name
orders[][contact] object (Customer) Contact person
orders[][contact][type] string Customer type
orders[][contact][id] integer Customer ID
orders[][contact][externalId] string Customer external ID
orders[][contact][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
orders[][contact][createdAt] DateTime Created at
orders[][contact][managerId] integer Customer manager
orders[][contact][vip] boolean VIP customer
orders[][contact][bad] boolean Bad customer
orders[][contact][site] string Store, from which the customer came
orders[][contact][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
orders[][contact][contragent][contragentType] string Contragent type
orders[][contact][contragent][legalName] string Legal name
orders[][contact][contragent][legalAddress] string Registration address
orders[][contact][contragent][INN] string TIN
orders[][contact][contragent][OKPO] string RNNBO
orders[][contact][contragent][KPP] string IECC
orders[][contact][contragent][OGRN] string PSRN
orders[][contact][contragent][OGRNIP] string PSRN of Individual entrepreneur
orders[][contact][contragent][certificateNumber] string Certificate number
orders[][contact][contragent][certificateDate] DateTime Certificate date
orders[][contact][contragent][BIK] string RCBIC
orders[][contact][contragent][bank] string Bank
orders[][contact][contragent][bankAddress] string Bank address
orders[][contact][contragent][corrAccount] string Corresponding account
orders[][contact][contragent][bankAccount] string Settlement account
orders[][contact][tags][] array of objects (CustomerTagLink) [array] Tags
orders[][contact][tags][][color] string
orders[][contact][tags][][name] string
orders[][contact][tags][][colorCode] string
orders[][contact][tags][][attached] boolean
orders[][contact][firstClientId] string First Google Analytics clientId
orders[][contact][lastClientId] string Last Google Analytics clientId
orders[][contact][customFields] array Associative array of custom fields
orders[][contact][personalDiscount] double Personal discount
orders[][contact][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)
orders[][contact][discountCardNumber] string Discount card number
orders[][contact][avgMarginSumm] float Average gross profit of customer orders (in base currency)
orders[][contact][marginSumm] float LTV (in base currency)
orders[][contact][totalSumm] float Orders total sum (in base currency)
orders[][contact][averageSumm] float Order average sum (in base currency)
orders[][contact][ordersCount] integer Orders quantity
orders[][contact][costSumm] float Amount of costs (in base currency)
orders[][contact][address] object (CustomerAddress) Customer address
orders[][contact][address][id] integer Address ID
orders[][contact][address][index] string Postal code
orders[][contact][address][countryIso] string Country ISO code
orders[][contact][address][region] string Region
orders[][contact][address][regionId] integer Region ID in Geohelper
orders[][contact][address][city] string City
orders[][contact][address][cityId] integer City ID in Geohelper
orders[][contact][address][cityType] string Locality type
orders[][contact][address][street] string Street
orders[][contact][address][streetId] integer Street ID in Geohelper
orders[][contact][address][streetType] string Street type
orders[][contact][address][building] string Building
orders[][contact][address][flat] string Flat/office
orders[][contact][address][floor] integer Floor
orders[][contact][address][block] integer Entrance
orders[][contact][address][house] string House
orders[][contact][address][housing] string Housing
orders[][contact][address][metro] string Underground
orders[][contact][address][notes] string Notes to address
orders[][contact][address][text] string Address as string
orders[][contact][address][externalId] string External ID
orders[][contact][address][name] string Name
orders[][contact][segments][] array of objects (Segment) [array] Segments
orders[][contact][segments][][id] integer Internal ID of segment
orders[][contact][segments][][code] string Symbolic code
orders[][contact][segments][][name] string Segment name
orders[][contact][segments][][createdAt] DateTime Segment creation date
orders[][contact][segments][][isDynamic] boolean Is this segment dynamic
orders[][contact][segments][][customersCount] integer Customer quantity in segment
orders[][contact][segments][][active] boolean Activity state of segment
orders[][contact][maturationTime] integer Maturation time, in seconds
orders[][contact][firstName] string Name
orders[][contact][lastName] string Surname
orders[][contact][patronymic] string Middle name
orders[][contact][sex] string Sex
orders[][contact][presumableSex] string Guessed gender based on name
orders[][contact][email] string E-mail
orders[][contact][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
orders[][contact][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
orders[][contact][customerSubscriptions][][subscription] object (Subscription) Subscription category
orders[][contact][customerSubscriptions][][subscription][id] integer Subscription category ID
orders[][contact][customerSubscriptions][][subscription][channel] string Channel
orders[][contact][customerSubscriptions][][subscription][name] string Name
orders[][contact][customerSubscriptions][][subscription][code] string Symbolic code
orders[][contact][customerSubscriptions][][subscription][active] boolean Activity status
orders[][contact][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
orders[][contact][customerSubscriptions][][subscription][ordering] integer
orders[][contact][customerSubscriptions][][subscribed] boolean Subscription activity
orders[][contact][customerSubscriptions][][changedAt] DateTime Activity flag change date
orders[][contact][phones][] array of objects (CustomerPhone) Phone numbers
orders[][contact][phones][][number] string Phone number
orders[][contact][birthday] DateTime Birthday
orders[][contact][source] object (SerializedSource) Customer source
orders[][contact][source][source] string Source
orders[][contact][source][medium] string Medium
orders[][contact][source][campaign] string Campaign
orders[][contact][source][keyword] string Keyword
orders[][contact][source][content] string Ad content
orders[][contact][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
orders[][contact][mgCustomers][][id] integer Customer ID
orders[][contact][mgCustomers][][externalId] integer External ID of the MessageGateway customer
orders[][contact][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
orders[][contact][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
orders[][contact][mgCustomers][][mgChannel][id] integer ID of the channel
orders[][contact][mgCustomers][][mgChannel][externalId] integer External ID of the channel
orders[][contact][mgCustomers][][mgChannel][type] string Channel type
orders[][contact][mgCustomers][][mgChannel][active] boolean Channel activity
orders[][contact][mgCustomers][][mgChannel][name] string Channel name
orders[][contact][photoUrl] string URL of photo
orders[][company] object (Company) Company
orders[][company][id] integer Company ID
orders[][company][externalId] string Company external ID
orders[][company][customer] object (SerializedEntityCustomer) Customer
orders[][company][customer][site] string Symbolic code of store
orders[][company][customer][id] integer Customer internal ID
orders[][company][customer][externalId] string Customer external ID
orders[][company][customer][type] string Customer type
orders[][company][active] boolean Activity
orders[][company][name] string Name
orders[][company][brand] string Brand
orders[][company][site] string Company website
orders[][company][createdAt] DateTime Creation date
orders[][company][contragent] object (CompanyContragent) Requisites
orders[][company][contragent][contragentType] string Contragent type
orders[][company][contragent][legalName] string Legal name
orders[][company][contragent][legalAddress] string Registration address
orders[][company][contragent][INN] string TIN
orders[][company][contragent][OKPO] string RNNBO
orders[][company][contragent][KPP] string IECC
orders[][company][contragent][OGRN] string PSRN
orders[][company][contragent][OGRNIP] string PSRN of Individual entrepreneur
orders[][company][contragent][certificateNumber] string Certificate number
orders[][company][contragent][certificateDate] DateTime Certificate date
orders[][company][contragent][BIK] string RCBIC
orders[][company][contragent][bank] string Bank
orders[][company][contragent][bankAddress] string Bank address
orders[][company][contragent][corrAccount] string Corresponding account
orders[][company][contragent][bankAccount] string Settlement account
orders[][company][address] object (CustomerAddress) Address
orders[][company][address][id] integer Address ID
orders[][company][address][index] string Postal code
orders[][company][address][countryIso] string Country ISO code
orders[][company][address][region] string Region
orders[][company][address][regionId] integer Region ID in Geohelper
orders[][company][address][city] string City
orders[][company][address][cityId] integer City ID in Geohelper
orders[][company][address][cityType] string Locality type
orders[][company][address][street] string Street
orders[][company][address][streetId] integer Street ID in Geohelper
orders[][company][address][streetType] string Street type
orders[][company][address][building] string Building
orders[][company][address][flat] string Flat/office
orders[][company][address][floor] integer Floor
orders[][company][address][block] integer Entrance
orders[][company][address][house] string House
orders[][company][address][housing] string Housing
orders[][company][address][metro] string Underground
orders[][company][address][notes] string Notes to address
orders[][company][address][text] string Address as string
orders[][company][address][externalId] string External ID
orders[][company][address][name] string Name
orders[][company][avgMarginSumm] float Average gross profit of customer orders (in base currency)
orders[][company][marginSumm] float LTV (in base currency)
orders[][company][totalSumm] float Orders total sum (in base currency)
orders[][company][averageSumm] float Order average sum (in base currency)
orders[][company][costSumm] float Amount of costs (in base currency)
orders[][company][ordersCount] integer Orders quantity
orders[][company][customFields] array Associative array of custom fields
orders[][contragent] object (OrderContragent) Requisites
orders[][contragent][contragentType] string Contragent type
orders[][contragent][legalName] string Legal name
orders[][contragent][legalAddress] string Registration address
orders[][contragent][INN] string TIN
orders[][contragent][OKPO] string RNNBO
orders[][contragent][KPP] string IECC
orders[][contragent][OGRN] string PSRN
orders[][contragent][OGRNIP] string PSRN of Individual entrepreneur
orders[][contragent][certificateNumber] string Certificate number
orders[][contragent][certificateDate] DateTime Certificate date
orders[][contragent][BIK] string RCBIC
orders[][contragent][bank] string Bank
orders[][contragent][bankAddress] string Bank address
orders[][contragent][corrAccount] string Corresponding account
orders[][contragent][bankAccount] string Settlement account
orders[][delivery] object (SerializedOrderDelivery) Data on delivery
orders[][delivery][code] string Delivery type code
orders[][delivery][integrationCode] string Integration code of delivery type
orders[][delivery][data]Data of the delivery service, connected by APICourier delivery service dataNew Post delivery service dataDDelivery delivery service dataKazPost delivery service data
orders[][delivery][data][externalId] string Delivery id in delivery servicedeprecated Track number (Use trackNumber instead)
orders[][delivery][data][trackNumber] string Track number (deprecated for write)Track numberTrack numberTrack number
orders[][delivery][data][status] string Delivery status codeDelivery status codeDelivery status codeDelivery status code
orders[][delivery][data][locked] boolean Do not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery service
orders[][delivery][data][pickuppointAddress] string Pickup point address
orders[][delivery][data][days] string Approximate delivery timeApproximate delivery timeApproximate delivery time
orders[][delivery][data][statusText] string Delivery status nameDelivery status nameDelivery status name
orders[][delivery][data][statusDate] DateTime Delivery status dateDate of the last delivery status updating
orders[][delivery][data][tariff] string Tariff code
orders[][delivery][data][tariffName] string Tariff name
orders[][delivery][data][pickuppointId] string Pickup point IDPickup point idPickup point ID
orders[][delivery][data][pickuppointSchedule] string Pickup point working timeSchedule of pickup point
orders[][delivery][data][pickuppointPhone] string Pickup point phone
orders[][delivery][data][payerType] string PayerPayer type
orders[][delivery][data][statusComment] string Comment to delivery status
orders[][delivery][data][cost] float Delivery cost received from delivery service (in entity currency)Delivery cost received from delivery service (in entity currency)
orders[][delivery][data][minTerm] integer Minimum delivery term
orders[][delivery][data][maxTerm] integer Maximum delivery term
orders[][delivery][data][shipmentpointId] string Shipment terminal IDShipment point id
orders[][delivery][data][shipmentpointName] string Shipment terminal name
orders[][delivery][data][shipmentpointAddress] string Shipment terminal address
orders[][delivery][data][shipmentpointSchedule] string Pickup point working time shipment terminal
orders[][delivery][data][shipmentpointPhone] string Shipment terminal phone
orders[][delivery][data][shipmentpointCoordinateLatitude] string Shipment terminal coordinates, latitude
orders[][delivery][data][shipmentpointCoordinateLongitude] string Shipment terminal coordinates, longitude
orders[][delivery][data][pickuppointName] string Pickup point name
orders[][delivery][data][pickuppointCoordinateLatitude] string Pickup point coordinates, latitude
orders[][delivery][data][pickuppointCoordinateLongitude] string Pickup point coordinates, longitude
orders[][delivery][data][extraData] array Additional delivery data (deliveryDataField.code => value)
orders[][delivery][data][itemDeclaredValues][] array of objects (DeclaredValueItem)
orders[][delivery][data][itemDeclaredValues][][orderProduct] object (PackageItemOrderProduct) Order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][id] integer ID of order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalId] string deprecatedExternal ID of order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalIds][] array of objects (CodeValueModel) External IDs of order item
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalIds][][code] string Symbolic code
orders[][delivery][data][itemDeclaredValues][][orderProduct][externalIds][][value] string Value
orders[][delivery][data][itemDeclaredValues][][value] double Declared value of the product
orders[][delivery][data][packages][] array of objects (Package) Packages
orders[][delivery][data][packages][][packageId] string Package number
orders[][delivery][data][packages][][weight] double Weight
orders[][delivery][data][packages][][length] integer Length
orders[][delivery][data][packages][][width] integer Width
orders[][delivery][data][packages][][height] integer Height
orders[][delivery][data][packages][][items][] array of objects (PackageItem) Package content
orders[][delivery][data][packages][][items][][orderProduct] object (PackageItemOrderProduct) Order item
orders[][delivery][data][packages][][items][][orderProduct][id] integer ID of order item
orders[][delivery][data][packages][][items][][orderProduct][externalId] string deprecatedExternal ID of order item
orders[][delivery][data][packages][][items][][orderProduct][externalIds][] array of objects (CodeValueModel) External IDs of order item
orders[][delivery][data][packages][][items][][orderProduct][externalIds][][code] string Symbolic code
orders[][delivery][data][packages][][items][][orderProduct][externalIds][][value] string Value
orders[][delivery][data][packages][][items][][quantity] double Quantity
orders[][delivery][data][id] integer Courier ID
orders[][delivery][data][firstName] string First name
orders[][delivery][data][lastName] string Last name
orders[][delivery][data][patronymic] string Middle name
orders[][delivery][data][active] boolean Activity status
orders[][delivery][data][email] string E-mail
orders[][delivery][data][phone] object (CourierPhone) Courier phone
orders[][delivery][data][phone][number] string Phone number
orders[][delivery][data][description] string Description
orders[][delivery][data][courierId] integer Courier ID
orders[][delivery][data][serviceType] string Delivery technology
orders[][delivery][data][pickuppoint] string Pickup pointPickup point name
orders[][delivery][data][receiverWarehouseTypeRef] string Shipping to department
orders[][delivery][data][statusName] string Delivery status name
orders[][delivery][data][price] float Delivery cost received from delivery service
orders[][delivery][data][receiverCity] string Delivery city nameDelivery city
orders[][delivery][data][receiverCityRef] string Delivery city ID in NewPostDelivery city ID
orders[][delivery][data][receiverStreet] string Delivery street name
orders[][delivery][data][receiverStreetRef] string Delivery street ID in NewPost
orders[][delivery][data][seatsAmount] integer Quantity of sending seats
orders[][delivery][data][cargoType] string Cargo type
orders[][delivery][data][cargoDescription] string Cargo description
orders[][delivery][data][cashPayerType] string Payer type for cash on delivery
orders[][delivery][data][paymentForm] string Payment form
orders[][delivery][data][ownershipForm] string Entity ownership type
orders[][delivery][data][packageNumber] string Package number
orders[][delivery][data][accompanyingDocument] string Accompanying documents
orders[][delivery][data][notes] string Additional information on sending
orders[][delivery][data][preferredDeliveryDate] DateTime Preferred delivery date
orders[][delivery][data][timeInterval] string Time intervals delivery
orders[][delivery][data][saturdayDelivery] boolean Saturday delivery
orders[][delivery][data][deliveryDate] string Date when the recipient took the order
orders[][delivery][data][denieReason] string Rejection reason
orders[][delivery][data][backwardDelivery] custom handler result for (bool) Return consignment
orders[][delivery][data][backwardDeliveryCargoType] string Type of backward delivery
orders[][delivery][data][backwardDeliveryPayerType] string Type of sender for backward delivery
orders[][delivery][data][backwardDeliveryRedeliveryString] string Description of backward delivery
orders[][delivery][data][afterpaymentOnGoodsCost] float Payment control (in entity currency)
orders[][delivery][data][declaredValue] float Declared value (in entity currency)
orders[][delivery][data][sendDate] DateTime Date of sending
orders[][delivery][data][deliveryType] string Delivery method ID
orders[][delivery][data][deliveryName] string Delivery service name
orders[][delivery][data][pickupType] integer Pickup type
orders[][delivery][data][pickuppointDescription] string Description of pickup point
orders[][delivery][data][placesCount] integer Seats quantity
orders[][delivery][data][services][] array of strings Additional services of delivery
orders[][delivery][data][comment] string Comment to the order
orders[][delivery][service] object (SerializedDeliveryService)
orders[][delivery][service][name] string Name
orders[][delivery][service][code] string Symbolic code
orders[][delivery][service][active] boolean Activity status
orders[][delivery][cost] double Cost
orders[][delivery][netCost] double Delivery net cost
orders[][delivery][date] DateTime Delivery date
orders[][delivery][time] object (TimeInterval) Information on time range
orders[][delivery][time][from] DateTime Time "from"
orders[][delivery][time][to] DateTime Time "to"
orders[][delivery][time][custom] string Time range in free form
orders[][delivery][address] object (OrderDeliveryAddress) Address
orders[][delivery][address][index] string Postal code
orders[][delivery][address][countryIso] string Country ISO code
orders[][delivery][address][region] string Region
orders[][delivery][address][regionId] integer Region ID in Geohelper
orders[][delivery][address][city] string City
orders[][delivery][address][cityId] integer City ID in Geohelper
orders[][delivery][address][cityType] string Locality type
orders[][delivery][address][street] string Street
orders[][delivery][address][streetId] integer Street ID in Geohelper
orders[][delivery][address][streetType] string Street type
orders[][delivery][address][building] string Building
orders[][delivery][address][flat] string Flat/office
orders[][delivery][address][floor] integer Floor
orders[][delivery][address][block] integer Entrance
orders[][delivery][address][house] string House
orders[][delivery][address][housing] string Housing
orders[][delivery][address][metro] string Underground
orders[][delivery][address][notes] string Notes to address
orders[][delivery][address][text] string Address as string
orders[][delivery][vatRate] string VAT rate
orders[][site] string Store
orders[][status] string Order status
orders[][statusComment] string Comment to the last status change
orders[][source] object (SerializedSource) Order source
orders[][source][source] string Source
orders[][source][medium] string Medium
orders[][source][campaign] string Campaign
orders[][source][keyword] string Keyword
orders[][source][content] string Ad content
orders[][items][] array of objects (OrderProduct) Order item
orders[][items][][externalId] string deprecated External ID of order item
orders[][items][][bonusesChargeTotal] double Amount of debited bonuses
orders[][items][][bonusesCreditTotal] double Amount of accrued bonuses
orders[][items][][markingCodes][] array of strings Marking codes
orders[][items][][id] integer ID of order item
orders[][items][][externalIds][] array of objects (CodeValueModel) External IDs of order item
orders[][items][][externalIds][][code] string Symbolic code
orders[][items][][externalIds][][value] string Value
orders[][items][][priceType] object (PriceType) Price type
orders[][items][][priceType][code] string Price type code
orders[][items][][initialPrice] double Item price/SKU (in entity currency)
orders[][items][][discounts][] array of objects (AbstractDiscount) Array of discounts
orders[][items][][discounts][][type] string Discount type. Possible values:
manual_order - One-time discount on the order;
manual_product - Additional discount on the product;
loyalty_level - Discount on the level of the loyalty program;
loyalty_event - Discount on the event of the loyalty program;
personal - Personal discount;
bonus_charge - Redemption of bonuses of the loyalty program;
round - Discount from rounding
orders[][items][][discounts][][amount] float Discount amount
orders[][items][][discountTotal] double Final monetary discount per item including all item and order discounts (in entity currency)
orders[][items][][prices][] array of objects (OrderProductPriceItem) Set of total sales prices with the quantity
orders[][items][][prices][][price] float Total price including all discounts on the product and order (in entity currency)
orders[][items][][prices][][quantity] float Quantity of the product at the specified price
orders[][items][][vatRate] string VAT rate
orders[][items][][createdAt] DateTime Date of order item creation in the system
orders[][items][][quantity] float Quantity
orders[][items][][status] string Status of the order item
orders[][items][][comment] string Comment to the order item
orders[][items][][offer] object (Offer) SKU
orders[][items][][offer][displayName] string SKU name
orders[][items][][offer][id] integer SKU ID
orders[][items][][offer][externalId] string SKU ID in store
orders[][items][][offer][xmlId] string SKU ID in the warehouse system
orders[][items][][offer][name] string Name
orders[][items][][offer][article] string Vendor code
orders[][items][][offer][vatRate] string VAT rate
orders[][items][][offer][properties] array SKU properties
orders[][items][][offer][unit] object (Unit) Unit
orders[][items][][offer][unit][code] string Unit symbolic code
orders[][items][][offer][unit][name] string Unit name
orders[][items][][offer][unit][sym] string Unit short name
orders[][items][][offer][barcode] string Barcode
orders[][items][][isCanceled] boolean This order item is cancelled in the order
orders[][items][][properties] array [array] Additional properties of the order item
orders[][items][][purchasePrice] double Purchasing price (in base currency)
orders[][items][][ordering] integer Ordering
orders[][fullPaidAt] DateTime Full payment date
orders[][payments][] array of objects (Payment) Payments
orders[][payments][][id] integer Payment ID
orders[][payments][][status] string Payment Status
orders[][payments][][type] string Payment Type
orders[][payments][][externalId] string External ID
orders[][payments][][amount] double Amount (in entity currency)
orders[][payments][][paidAt] DateTime Payment date
orders[][payments][][comment] string Comment
orders[][fromApi] boolean Order received through API
orders[][weight] double Weight
orders[][length] integer Length
orders[][width] integer Width
orders[][height] integer Height
orders[][shipmentStore] string Shipping warehouse
orders[][shipmentDate] DateTime Shipment date
orders[][shipped] boolean Order is shipped
orders[][links][] array of objects (OrderLink) Orders link
orders[][links][][order] object (LinkedOrder) Linked order
orders[][links][][order][id] integer Linked order ID
orders[][links][][order][number] string Linked order number
orders[][links][][order][externalId] string Linked order external ID
orders[][links][][createdAt] DateTime Date/time of creation of the link with the order
orders[][links][][comment] string Comment
orders[][customFields] array Associative array of custom fields
orders[][clientId] string Google Analytics clientId

HTTP statuses

Status codeDescription
201
  • All orders were successfully uploaded
400
  • Array of orders is not transmitted, or the array is too large
460
  • During uploading the errors occurred. The part of orders is not loaded (the response also contains an "errors" array)

GET /api/v5/orders/{externalId} Getting information on order

Getting information on order

To access the method, the following permission is required order_read.

Method returns full information on the order. You may refer to order either by external order ID (by=externalId), or by internal ID (by=id).

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

Empty fields without values are not returned.

In the fields orderType, orderMethod, payments[][type], payments[][status], status, site, delivery[code] the symbol code of the element is returned.

In the fields managerId, sourceId the internal ID of the system entity is returned.

In the customFields field the value array of custom fields is returned. For the "DataBook" fields the symbol code of data book value is specified. For the date fields the date in the format Y-m-d is specified. For other field types the exact value is specified.

If the customer address was specified in the string form it will be returned to the delivery[address][text]. If the address was specified in detailed view, there will be returned all delivery filled fields, and in the delivery[address][text] there will be automatically generated textual representation of the address.

The privilegeType field can contain one of the following values:

Parameters

ParameterTypeFormatDescription
externalIdstring Order ID

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) order ID. By default it is externalId.
site
DescriptionSymbolic code of store

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
order object (Order) Order
order[slug] custom handler result for (int) deprecated Symbolic code
order[bonusesCreditTotal] double Amount of accrued bonuses
order[bonusesChargeTotal] double Amount of debited bonuses
order[summ] double Total for goods/services (in entity currency)
order[currency] string Currency
order[id] integer Order ID
order[number] string Order number
order[externalId] string Order external ID
order[orderType] string Order type
order[orderMethod] string Method
order[privilegeType] string Privilege type
order[countryIso] string Country ISO code
order[createdAt] DateTime Order creation date
order[statusUpdatedAt] DateTime Date of the last order status change
order[totalSumm] double Total sum with discount (in entity currency)
order[prepaySum] double Paid sum (in entity currency)
order[purchaseSumm] double Total purchase sum (in base currency)
order[personalDiscountPercent] double Personal discount on the order
order[loyaltyLevel] object (LoyaltyLevel) Level of participation in the loyalty program
order[loyaltyLevel][id] integer Level ID
order[loyaltyLevel][name] string Level name
order[loyaltyEventDiscount] object (LoyaltyEventDiscount) Discount on the event of the loyalty program
order[loyaltyEventDiscount][id] integer ID
order[mark] integer Order evaluation
order[markDatetime] DateTime Date and time of getting evaluation from customer
order[lastName] string Surname
order[firstName] string Name
order[patronymic] string Middle name
order[phone] string Phone number
order[additionalPhone] string Additional phone
order[email] string E-mail
order[call] boolean Call required
order[expired] boolean Expired
order[customerComment] string Customer comment
order[managerComment] string Operator comment
order[managerId] integer Manager, responsible for order
order[customer]CustomerCorporate customer
order[customer][type] string Customer typeCustomer type
order[customer][id] integer Customer IDCorporate customer ID
order[customer][externalId] string Customer external IDCorporate customer external ID
order[customer][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
order[customer][createdAt] DateTime Created atCreated at
order[customer][managerId] integer Customer managerCorporate customer manager
order[customer][vip] boolean VIP customerVIP corporate customer
order[customer][bad] boolean Bad customerBad corporate customer
order[customer][site] string Store, from which the customer cameStore, from which the corporate customer came
order[customer][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
order[customer][contragent][contragentType] string Contragent type
order[customer][contragent][legalName] string Legal name
order[customer][contragent][legalAddress] string Registration address
order[customer][contragent][INN] string TIN
order[customer][contragent][OKPO] string RNNBO
order[customer][contragent][KPP] string IECC
order[customer][contragent][OGRN] string PSRN
order[customer][contragent][OGRNIP] string PSRN of Individual entrepreneur
order[customer][contragent][certificateNumber] string Certificate number
order[customer][contragent][certificateDate] DateTime Certificate date
order[customer][contragent][BIK] string RCBIC
order[customer][contragent][bank] string Bank
order[customer][contragent][bankAddress] string Bank address
order[customer][contragent][corrAccount] string Corresponding account
order[customer][contragent][bankAccount] string Settlement account
order[customer][tags][] array of objects (CustomerTagLink) [array] Tags[array] Tags
order[customer][tags][][color] string
order[customer][tags][][name] string
order[customer][tags][][colorCode] string
order[customer][tags][][attached] boolean
order[customer][firstClientId] string First Google Analytics clientIdFirst Google Analytics unique clientId
order[customer][lastClientId] string Last Google Analytics clientIdLast Google Analytics unique clientId
order[customer][customFields] array Associative array of custom fieldsAssociative array of custom fields
order[customer][personalDiscount] double Personal discountPersonal discount
order[customer][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)deprecated Cumulative discount (Not available starting from version 8 of the system)
order[customer][discountCardNumber] string Discount card numberDiscount card number
order[customer][avgMarginSumm] float Average gross profit of customer orders (in base currency)Average gross profit of corporate customer orders (in base currency)
order[customer][marginSumm] float LTV (in base currency)LTV (in base currency)
order[customer][totalSumm] float Orders total sum (in base currency)Orders total sum (in base currency)
order[customer][averageSumm] float Order average sum (in base currency)Order average sum (in base currency)
order[customer][ordersCount] integer Orders quantityOrders quantity
order[customer][costSumm] float Amount of costs (in base currency)Amount of costs (in base currency)
order[customer][address] object (CustomerAddress) Customer address
order[customer][address][id] integer Address ID
order[customer][address][index] string Postal code
order[customer][address][countryIso] string Country ISO code
order[customer][address][region] string Region
order[customer][address][regionId] integer Region ID in Geohelper
order[customer][address][city] string City
order[customer][address][cityId] integer City ID in Geohelper
order[customer][address][cityType] string Locality type
order[customer][address][street] string Street
order[customer][address][streetId] integer Street ID in Geohelper
order[customer][address][streetType] string Street type
order[customer][address][building] string Building
order[customer][address][flat] string Flat/office
order[customer][address][floor] integer Floor
order[customer][address][block] integer Entrance
order[customer][address][house] string House
order[customer][address][housing] string Housing
order[customer][address][metro] string Underground
order[customer][address][notes] string Notes to address
order[customer][address][text] string Address as string
order[customer][address][externalId] string External ID
order[customer][address][name] string Name
order[customer][segments][] array of objects (Segment) [array] Segments
order[customer][segments][][id] integer Internal ID of segment
order[customer][segments][][code] string Symbolic code
order[customer][segments][][name] string Segment name
order[customer][segments][][createdAt] DateTime Segment creation date
order[customer][segments][][isDynamic] boolean Is this segment dynamic
order[customer][segments][][customersCount] integer Customer quantity in segment
order[customer][segments][][active] boolean Activity state of segment
order[customer][maturationTime] integer Maturation time, in seconds
order[customer][firstName] string Name
order[customer][lastName] string Surname
order[customer][patronymic] string Middle name
order[customer][sex] string Sex
order[customer][presumableSex] string Guessed gender based on name
order[customer][email] string E-mail
order[customer][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
order[customer][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
order[customer][customerSubscriptions][][subscription] object (Subscription) Subscription category
order[customer][customerSubscriptions][][subscription][id] integer Subscription category ID
order[customer][customerSubscriptions][][subscription][channel] string Channel
order[customer][customerSubscriptions][][subscription][name] string Name
order[customer][customerSubscriptions][][subscription][code] string Symbolic code
order[customer][customerSubscriptions][][subscription][active] boolean Activity status
order[customer][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
order[customer][customerSubscriptions][][subscription][ordering] integer
order[customer][customerSubscriptions][][subscribed] boolean Subscription activity
order[customer][customerSubscriptions][][changedAt] DateTime Activity flag change date
order[customer][phones][] array of objects (CustomerPhone) Phone numbers
order[customer][phones][][number] string Phone number
order[customer][birthday] DateTime Birthday
order[customer][source] object (SerializedSource) Customer source
order[customer][source][source] string Source
order[customer][source][medium] string Medium
order[customer][source][campaign] string Campaign
order[customer][source][keyword] string Keyword
order[customer][source][content] string Ad content
order[customer][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
order[customer][mgCustomers][][id] integer Customer ID
order[customer][mgCustomers][][externalId] integer External ID of the MessageGateway customer
order[customer][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
order[customer][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
order[customer][mgCustomers][][mgChannel][id] integer ID of the channel
order[customer][mgCustomers][][mgChannel][externalId] integer External ID of the channel
order[customer][mgCustomers][][mgChannel][type] string Channel type
order[customer][mgCustomers][][mgChannel][active] boolean Channel activity
order[customer][mgCustomers][][mgChannel][name] string Channel name
order[customer][photoUrl] string URL of photo
order[customer][mainAddress] object (EntityWithExternalIdNameOutput) Main corporate customer address
order[customer][mainAddress][id] integer ID
order[customer][mainAddress][externalId] string External ID
order[customer][mainAddress][name] string Name
order[customer][mainCustomerContact] object (CustomerContact) Main contact person
order[customer][mainCustomerContact][id] integer Contact ID
order[customer][mainCustomerContact][customer] object (SerializedRelationAbstractCustomer) Customer
order[customer][mainCustomerContact][customer][id] integer Customer internal ID
order[customer][mainCustomerContact][customer][externalId] string Customer external ID
order[customer][mainCustomerContact][customer][browserId] string Device ID in Collector
order[customer][mainCustomerContact][companies][] array of objects (CustomerContactCompany) Contact person`s company
order[customer][mainCustomerContact][companies][][id] integer Company ID
order[customer][mainCustomerContact][companies][][company] object (EntityWithExternalIdNameOutput) Company
order[customer][mainCustomerContact][companies][][company][id] integer ID
order[customer][mainCustomerContact][companies][][company][externalId] string External ID
order[customer][mainCustomerContact][companies][][company][name] string Name
order[customer][mainCompany] object (EntityWithExternalIdNameOutput) Main company
order[customer][mainCompany][id] integer ID
order[customer][mainCompany][externalId] string External ID
order[customer][mainCompany][name] string Name
order[customer][nickName] string Name
order[contact] object (Customer) Contact person
order[contact][type] string Customer type
order[contact][id] integer Customer ID
order[contact][externalId] string Customer external ID
order[contact][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
order[contact][createdAt] DateTime Created at
order[contact][managerId] integer Customer manager
order[contact][vip] boolean VIP customer
order[contact][bad] boolean Bad customer
order[contact][site] string Store, from which the customer came
order[contact][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
order[contact][contragent][contragentType] string Contragent type
order[contact][contragent][legalName] string Legal name
order[contact][contragent][legalAddress] string Registration address
order[contact][contragent][INN] string TIN
order[contact][contragent][OKPO] string RNNBO
order[contact][contragent][KPP] string IECC
order[contact][contragent][OGRN] string PSRN
order[contact][contragent][OGRNIP] string PSRN of Individual entrepreneur
order[contact][contragent][certificateNumber] string Certificate number
order[contact][contragent][certificateDate] DateTime Certificate date
order[contact][contragent][BIK] string RCBIC
order[contact][contragent][bank] string Bank
order[contact][contragent][bankAddress] string Bank address
order[contact][contragent][corrAccount] string Corresponding account
order[contact][contragent][bankAccount] string Settlement account
order[contact][tags][] array of objects (CustomerTagLink) [array] Tags
order[contact][tags][][color] string
order[contact][tags][][name] string
order[contact][tags][][colorCode] string
order[contact][tags][][attached] boolean
order[contact][firstClientId] string First Google Analytics clientId
order[contact][lastClientId] string Last Google Analytics clientId
order[contact][customFields] array Associative array of custom fields
order[contact][personalDiscount] double Personal discount
order[contact][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)
order[contact][discountCardNumber] string Discount card number
order[contact][avgMarginSumm] float Average gross profit of customer orders (in base currency)
order[contact][marginSumm] float LTV (in base currency)
order[contact][totalSumm] float Orders total sum (in base currency)
order[contact][averageSumm] float Order average sum (in base currency)
order[contact][ordersCount] integer Orders quantity
order[contact][costSumm] float Amount of costs (in base currency)
order[contact][address] object (CustomerAddress) Customer address
order[contact][address][id] integer Address ID
order[contact][address][index] string Postal code
order[contact][address][countryIso] string Country ISO code
order[contact][address][region] string Region
order[contact][address][regionId] integer Region ID in Geohelper
order[contact][address][city] string City
order[contact][address][cityId] integer City ID in Geohelper
order[contact][address][cityType] string Locality type
order[contact][address][street] string Street
order[contact][address][streetId] integer Street ID in Geohelper
order[contact][address][streetType] string Street type
order[contact][address][building] string Building
order[contact][address][flat] string Flat/office
order[contact][address][floor] integer Floor
order[contact][address][block] integer Entrance
order[contact][address][house] string House
order[contact][address][housing] string Housing
order[contact][address][metro] string Underground
order[contact][address][notes] string Notes to address
order[contact][address][text] string Address as string
order[contact][address][externalId] string External ID
order[contact][address][name] string Name
order[contact][segments][] array of objects (Segment) [array] Segments
order[contact][segments][][id] integer Internal ID of segment
order[contact][segments][][code] string Symbolic code
order[contact][segments][][name] string Segment name
order[contact][segments][][createdAt] DateTime Segment creation date
order[contact][segments][][isDynamic] boolean Is this segment dynamic
order[contact][segments][][customersCount] integer Customer quantity in segment
order[contact][segments][][active] boolean Activity state of segment
order[contact][maturationTime] integer Maturation time, in seconds
order[contact][firstName] string Name
order[contact][lastName] string Surname
order[contact][patronymic] string Middle name
order[contact][sex] string Sex
order[contact][presumableSex] string Guessed gender based on name
order[contact][email] string E-mail
order[contact][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
order[contact][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
order[contact][customerSubscriptions][][subscription] object (Subscription) Subscription category
order[contact][customerSubscriptions][][subscription][id] integer Subscription category ID
order[contact][customerSubscriptions][][subscription][channel] string Channel
order[contact][customerSubscriptions][][subscription][name] string Name
order[contact][customerSubscriptions][][subscription][code] string Symbolic code
order[contact][customerSubscriptions][][subscription][active] boolean Activity status
order[contact][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
order[contact][customerSubscriptions][][subscription][ordering] integer
order[contact][customerSubscriptions][][subscribed] boolean Subscription activity
order[contact][customerSubscriptions][][changedAt] DateTime Activity flag change date
order[contact][phones][] array of objects (CustomerPhone) Phone numbers
order[contact][phones][][number] string Phone number
order[contact][birthday] DateTime Birthday
order[contact][source] object (SerializedSource) Customer source
order[contact][source][source] string Source
order[contact][source][medium] string Medium
order[contact][source][campaign] string Campaign
order[contact][source][keyword] string Keyword
order[contact][source][content] string Ad content
order[contact][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
order[contact][mgCustomers][][id] integer Customer ID
order[contact][mgCustomers][][externalId] integer External ID of the MessageGateway customer
order[contact][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
order[contact][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
order[contact][mgCustomers][][mgChannel][id] integer ID of the channel
order[contact][mgCustomers][][mgChannel][externalId] integer External ID of the channel
order[contact][mgCustomers][][mgChannel][type] string Channel type
order[contact][mgCustomers][][mgChannel][active] boolean Channel activity
order[contact][mgCustomers][][mgChannel][name] string Channel name
order[contact][photoUrl] string URL of photo
order[company] object (Company) Company
order[company][id] integer Company ID
order[company][externalId] string Company external ID
order[company][customer] object (SerializedEntityCustomer) Customer
order[company][customer][site] string Symbolic code of store
order[company][customer][id] integer Customer internal ID
order[company][customer][externalId] string Customer external ID
order[company][customer][type] string Customer type
order[company][active] boolean Activity
order[company][name] string Name
order[company][brand] string Brand
order[company][site] string Company website
order[company][createdAt] DateTime Creation date
order[company][contragent] object (CompanyContragent) Requisites
order[company][contragent][contragentType] string Contragent type
order[company][contragent][legalName] string Legal name
order[company][contragent][legalAddress] string Registration address
order[company][contragent][INN] string TIN
order[company][contragent][OKPO] string RNNBO
order[company][contragent][KPP] string IECC
order[company][contragent][OGRN] string PSRN
order[company][contragent][OGRNIP] string PSRN of Individual entrepreneur
order[company][contragent][certificateNumber] string Certificate number
order[company][contragent][certificateDate] DateTime Certificate date
order[company][contragent][BIK] string RCBIC
order[company][contragent][bank] string Bank
order[company][contragent][bankAddress] string Bank address
order[company][contragent][corrAccount] string Corresponding account
order[company][contragent][bankAccount] string Settlement account
order[company][address] object (CustomerAddress) Address
order[company][address][id] integer Address ID
order[company][address][index] string Postal code
order[company][address][countryIso] string Country ISO code
order[company][address][region] string Region
order[company][address][regionId] integer Region ID in Geohelper
order[company][address][city] string City
order[company][address][cityId] integer City ID in Geohelper
order[company][address][cityType] string Locality type
order[company][address][street] string Street
order[company][address][streetId] integer Street ID in Geohelper
order[company][address][streetType] string Street type
order[company][address][building] string Building
order[company][address][flat] string Flat/office
order[company][address][floor] integer Floor
order[company][address][block] integer Entrance
order[company][address][house] string House
order[company][address][housing] string Housing
order[company][address][metro] string Underground
order[company][address][notes] string Notes to address
order[company][address][text] string Address as string
order[company][address][externalId] string External ID
order[company][address][name] string Name
order[company][avgMarginSumm] float Average gross profit of customer orders (in base currency)
order[company][marginSumm] float LTV (in base currency)
order[company][totalSumm] float Orders total sum (in base currency)
order[company][averageSumm] float Order average sum (in base currency)
order[company][costSumm] float Amount of costs (in base currency)
order[company][ordersCount] integer Orders quantity
order[company][customFields] array Associative array of custom fields
order[contragent] object (OrderContragent) Requisites
order[contragent][contragentType] string Contragent type
order[contragent][legalName] string Legal name
order[contragent][legalAddress] string Registration address
order[contragent][INN] string TIN
order[contragent][OKPO] string RNNBO
order[contragent][KPP] string IECC
order[contragent][OGRN] string PSRN
order[contragent][OGRNIP] string PSRN of Individual entrepreneur
order[contragent][certificateNumber] string Certificate number
order[contragent][certificateDate] DateTime Certificate date
order[contragent][BIK] string RCBIC
order[contragent][bank] string Bank
order[contragent][bankAddress] string Bank address
order[contragent][corrAccount] string Corresponding account
order[contragent][bankAccount] string Settlement account
order[delivery] object (SerializedOrderDelivery) Data on delivery
order[delivery][code] string Delivery type code
order[delivery][integrationCode] string Integration code of delivery type
order[delivery][data]Data of the delivery service, connected by APICourier delivery service dataNew Post delivery service dataDDelivery delivery service dataKazPost delivery service data
order[delivery][data][externalId] string Delivery id in delivery servicedeprecated Track number (Use trackNumber instead)
order[delivery][data][trackNumber] string Track number (deprecated for write)Track numberTrack numberTrack number
order[delivery][data][status] string Delivery status codeDelivery status codeDelivery status codeDelivery status code
order[delivery][data][locked] boolean Do not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery service
order[delivery][data][pickuppointAddress] string Pickup point address
order[delivery][data][days] string Approximate delivery timeApproximate delivery timeApproximate delivery time
order[delivery][data][statusText] string Delivery status nameDelivery status nameDelivery status name
order[delivery][data][statusDate] DateTime Delivery status dateDate of the last delivery status updating
order[delivery][data][tariff] string Tariff code
order[delivery][data][tariffName] string Tariff name
order[delivery][data][pickuppointId] string Pickup point IDPickup point idPickup point ID
order[delivery][data][pickuppointSchedule] string Pickup point working timeSchedule of pickup point
order[delivery][data][pickuppointPhone] string Pickup point phone
order[delivery][data][payerType] string PayerPayer type
order[delivery][data][statusComment] string Comment to delivery status
order[delivery][data][cost] float Delivery cost received from delivery service (in entity currency)Delivery cost received from delivery service (in entity currency)
order[delivery][data][minTerm] integer Minimum delivery term
order[delivery][data][maxTerm] integer Maximum delivery term
order[delivery][data][shipmentpointId] string Shipment terminal IDShipment point id
order[delivery][data][shipmentpointName] string Shipment terminal name
order[delivery][data][shipmentpointAddress] string Shipment terminal address
order[delivery][data][shipmentpointSchedule] string Pickup point working time shipment terminal
order[delivery][data][shipmentpointPhone] string Shipment terminal phone
order[delivery][data][shipmentpointCoordinateLatitude] string Shipment terminal coordinates, latitude
order[delivery][data][shipmentpointCoordinateLongitude] string Shipment terminal coordinates, longitude
order[delivery][data][pickuppointName] string Pickup point name
order[delivery][data][pickuppointCoordinateLatitude] string Pickup point coordinates, latitude
order[delivery][data][pickuppointCoordinateLongitude] string Pickup point coordinates, longitude
order[delivery][data][extraData] array Additional delivery data (deliveryDataField.code => value)
order[delivery][data][itemDeclaredValues][] array of objects (DeclaredValueItem)
order[delivery][data][itemDeclaredValues][][orderProduct] object (PackageItemOrderProduct) Order item
order[delivery][data][itemDeclaredValues][][orderProduct][id] integer ID of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalId] string deprecatedExternal ID of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][][code] string Symbolic code
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][][value] string Value
order[delivery][data][itemDeclaredValues][][value] double Declared value of the product
order[delivery][data][packages][] array of objects (Package) Packages
order[delivery][data][packages][][packageId] string Package number
order[delivery][data][packages][][weight] double Weight
order[delivery][data][packages][][length] integer Length
order[delivery][data][packages][][width] integer Width
order[delivery][data][packages][][height] integer Height
order[delivery][data][packages][][items][] array of objects (PackageItem) Package content
order[delivery][data][packages][][items][][orderProduct] object (PackageItemOrderProduct) Order item
order[delivery][data][packages][][items][][orderProduct][id] integer ID of order item
order[delivery][data][packages][][items][][orderProduct][externalId] string deprecatedExternal ID of order item
order[delivery][data][packages][][items][][orderProduct][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[delivery][data][packages][][items][][orderProduct][externalIds][][code] string Symbolic code
order[delivery][data][packages][][items][][orderProduct][externalIds][][value] string Value
order[delivery][data][packages][][items][][quantity] double Quantity
order[delivery][data][id] integer Courier ID
order[delivery][data][firstName] string First name
order[delivery][data][lastName] string Last name
order[delivery][data][patronymic] string Middle name
order[delivery][data][active] boolean Activity status
order[delivery][data][email] string E-mail
order[delivery][data][phone] object (CourierPhone) Courier phone
order[delivery][data][phone][number] string Phone number
order[delivery][data][description] string Description
order[delivery][data][courierId] integer Courier ID
order[delivery][data][serviceType] string Delivery technology
order[delivery][data][pickuppoint] string Pickup pointPickup point name
order[delivery][data][receiverWarehouseTypeRef] string Shipping to department
order[delivery][data][statusName] string Delivery status name
order[delivery][data][price] float Delivery cost received from delivery service
order[delivery][data][receiverCity] string Delivery city nameDelivery city
order[delivery][data][receiverCityRef] string Delivery city ID in NewPostDelivery city ID
order[delivery][data][receiverStreet] string Delivery street name
order[delivery][data][receiverStreetRef] string Delivery street ID in NewPost
order[delivery][data][seatsAmount] integer Quantity of sending seats
order[delivery][data][cargoType] string Cargo type
order[delivery][data][cargoDescription] string Cargo description
order[delivery][data][cashPayerType] string Payer type for cash on delivery
order[delivery][data][paymentForm] string Payment form
order[delivery][data][ownershipForm] string Entity ownership type
order[delivery][data][packageNumber] string Package number
order[delivery][data][accompanyingDocument] string Accompanying documents
order[delivery][data][notes] string Additional information on sending
order[delivery][data][preferredDeliveryDate] DateTime Preferred delivery date
order[delivery][data][timeInterval] string Time intervals delivery
order[delivery][data][saturdayDelivery] boolean Saturday delivery
order[delivery][data][deliveryDate] string Date when the recipient took the order
order[delivery][data][denieReason] string Rejection reason
order[delivery][data][backwardDelivery] custom handler result for (bool) Return consignment
order[delivery][data][backwardDeliveryCargoType] string Type of backward delivery
order[delivery][data][backwardDeliveryPayerType] string Type of sender for backward delivery
order[delivery][data][backwardDeliveryRedeliveryString] string Description of backward delivery
order[delivery][data][afterpaymentOnGoodsCost] float Payment control (in entity currency)
order[delivery][data][declaredValue] float Declared value (in entity currency)
order[delivery][data][sendDate] DateTime Date of sending
order[delivery][data][deliveryType] string Delivery method ID
order[delivery][data][deliveryName] string Delivery service name
order[delivery][data][pickupType] integer Pickup type
order[delivery][data][pickuppointDescription] string Description of pickup point
order[delivery][data][placesCount] integer Seats quantity
order[delivery][data][services][] array of strings Additional services of delivery
order[delivery][data][comment] string Comment to the order
order[delivery][service] object (SerializedDeliveryService)
order[delivery][service][name] string Name
order[delivery][service][code] string Symbolic code
order[delivery][service][active] boolean Activity status
order[delivery][cost] double Cost
order[delivery][netCost] double Delivery net cost
order[delivery][date] DateTime Delivery date
order[delivery][time] object (TimeInterval) Information on time range
order[delivery][time][from] DateTime Time "from"
order[delivery][time][to] DateTime Time "to"
order[delivery][time][custom] string Time range in free form
order[delivery][address] object (OrderDeliveryAddress) Address
order[delivery][address][index] string Postal code
order[delivery][address][countryIso] string Country ISO code
order[delivery][address][region] string Region
order[delivery][address][regionId] integer Region ID in Geohelper
order[delivery][address][city] string City
order[delivery][address][cityId] integer City ID in Geohelper
order[delivery][address][cityType] string Locality type
order[delivery][address][street] string Street
order[delivery][address][streetId] integer Street ID in Geohelper
order[delivery][address][streetType] string Street type
order[delivery][address][building] string Building
order[delivery][address][flat] string Flat/office
order[delivery][address][floor] integer Floor
order[delivery][address][block] integer Entrance
order[delivery][address][house] string House
order[delivery][address][housing] string Housing
order[delivery][address][metro] string Underground
order[delivery][address][notes] string Notes to address
order[delivery][address][text] string Address as string
order[delivery][vatRate] string VAT rate
order[site] string Store
order[status] string Order status
order[statusComment] string Comment to the last status change
order[source] object (SerializedSource) Order source
order[source][source] string Source
order[source][medium] string Medium
order[source][campaign] string Campaign
order[source][keyword] string Keyword
order[source][content] string Ad content
order[items][] array of objects (OrderProduct) Order item
order[items][][externalId] string deprecated External ID of order item
order[items][][bonusesChargeTotal] double Amount of debited bonuses
order[items][][bonusesCreditTotal] double Amount of accrued bonuses
order[items][][markingCodes][] array of strings Marking codes
order[items][][id] integer ID of order item
order[items][][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[items][][externalIds][][code] string Symbolic code
order[items][][externalIds][][value] string Value
order[items][][priceType] object (PriceType) Price type
order[items][][priceType][code] string Price type code
order[items][][initialPrice] double Item price/SKU (in entity currency)
order[items][][discounts][] array of objects (AbstractDiscount) Array of discounts
order[items][][discounts][][type] string Discount type. Possible values:
manual_order - One-time discount on the order;
manual_product - Additional discount on the product;
loyalty_level - Discount on the level of the loyalty program;
loyalty_event - Discount on the event of the loyalty program;
personal - Personal discount;
bonus_charge - Redemption of bonuses of the loyalty program;
round - Discount from rounding
order[items][][discounts][][amount] float Discount amount
order[items][][discountTotal] double Final monetary discount per item including all item and order discounts (in entity currency)
order[items][][prices][] array of objects (OrderProductPriceItem) Set of total sales prices with the quantity
order[items][][prices][][price] float Total price including all discounts on the product and order (in entity currency)
order[items][][prices][][quantity] float Quantity of the product at the specified price
order[items][][vatRate] string VAT rate
order[items][][createdAt] DateTime Date of order item creation in the system
order[items][][quantity] float Quantity
order[items][][status] string Status of the order item
order[items][][comment] string Comment to the order item
order[items][][offer] object (Offer) SKU
order[items][][offer][displayName] string SKU name
order[items][][offer][id] integer SKU ID
order[items][][offer][externalId] string SKU ID in store
order[items][][offer][xmlId] string SKU ID in the warehouse system
order[items][][offer][name] string Name
order[items][][offer][article] string Vendor code
order[items][][offer][vatRate] string VAT rate
order[items][][offer][properties][] array SKU properties
order[items][][offer][quantity] float Available quantity
order[items][][offer][unit] object (Unit) Unit
order[items][][offer][unit][code] string Unit symbolic code
order[items][][offer][unit][name] string Unit name
order[items][][offer][unit][sym] string Unit short name
order[items][][offer][barcode] string Barcode
order[items][][isCanceled] boolean This order item is cancelled in the order
order[items][][properties][] array [array] Additional properties of the order item
order[items][][properties][][code] string Property code (not mandatory field, the code can be transmitted in the property key)
order[items][][properties][][name] string Property name
order[items][][properties][][value] string Property value
order[items][][purchasePrice] double Purchasing price (in base currency)
order[items][][ordering] integer Ordering
order[fullPaidAt] DateTime Full payment date
order[payments][] array of objects (Payment) Payments
order[payments][][id] integer Payment ID
order[payments][][status] string Payment Status
order[payments][][type] string Payment Type
order[payments][][externalId] string External ID
order[payments][][amount] double Amount (in entity currency)
order[payments][][paidAt] DateTime Payment date
order[payments][][comment] string Comment
order[fromApi] boolean Order received through API
order[weight] double Weight
order[length] integer Length
order[width] integer Width
order[height] integer Height
order[shipmentStore] string Shipping warehouse
order[shipmentDate] DateTime Shipment date
order[shipped] boolean Order is shipped
order[links][] array of objects (OrderLink) Orders link
order[links][][order] object (LinkedOrder) Linked order
order[links][][order][id] integer Linked order ID
order[links][][order][number] string Linked order number
order[links][][order][externalId] string Linked order external ID
order[links][][createdAt] DateTime Date/time of creation of the link with the order
order[links][][comment] string Comment
order[customFields] array Associative array of custom fields
order[clientId] string Google Analytics clientId

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • Order not found

POST /api/v5/orders/{externalId}/delivery/cancel Cancellation of the integrated delivery

Cancellation of the integrated delivery

To access the method, the following permission is required order_write.

This method allows to cancel the integrated delivery for a specific order.

If there is no integrated delivery in the order or the order contains the integrated delivery which was cancelled or cannot be cancelled, an error returns.

Note to the force parameter: if the value is trueand an error occurs, when trying to cancel the delivery in the delivery service, we mark such delivery as deleted in our system. If the value is false, the delivery status won't be changed to the cancellation status and an error message will be returned explaining why the delivery couldn't be cancelled in the delivery service.

Parameters

ParameterTypeFormatDescription
bystring The field allowing to identify the order in which it is necessary to cancel the delivery. Possible values: id, externalId. By default, externalId.
forceboolean If the value is true, the delivery will be marked as cancelled even if it couldn't be cancelled in the external service. If the value is false and a server error occurs in the delivery service, cancelling is interrupted.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

POST /api/v5/orders/{externalId}/edit Order editing

Order editing

To access the method, the following permission is required order_write.

Method allows to edit the order. You may refer to order either by external order ID (by=externalId), or by internal ID (by=id).

In case of trying to edit the removed order, the system returns state=removed in the answer.

Field contragent[contragentType] can receive 3 values: individual - private individual, legal-entity - legal entity, entrepreneur - individual entrepreneur. For different types of legal entities there are available different set of fields. For type individual all fields are unavailable, for type legal-entity the fields contragent[OGRNIP], contragent[certificateNumber], contragent[certificateDate] are unavailable, for type entrepreneur the fields contragent[OGRN], contragent[KPP] are unavailable.

In the fields order[orderType], order[orderMethod], order[status], order[shipmentStore], order[delivery][code], order[items][][status] the symbol code of the element is specified.

In the fields order[managerId], order[sourceId] the internal ID of the system entity is specified.

The comment order[statusComment] cannot be changed without changing the order status order[status].

Order items are specified in the field order[items][]. The products that were not passed in the request for editing are deleted from the order. If item is in the catalog, then it is necessary to set the value for one of the following fields:

If the values are set for several fields, they will be processed in the following above order.

In case, if the ofeer will be not found by any of criteria, the order item will be automatically created based on data from fields order[items][][initialPrice], order[items][][purchasePrice], order[items][][productName].

The delivery address order[delivery][address] you can specify either in the string form in the order[delivery][address][text] field, or in the detailed view, filling all the fields except order[delivery][address][text].

In the order[customFields] field you can pass the values array of custom fields. For the "DataBook" fields the symbol code of data book value is specified. For the "Date" fields the date in the format Y-m-d is specified. For other field types the exact value is specified.

For working with price types, more than one price type must be enabled in data book. For transferring the price type for order item, code of necessary price type must be transferred to order[items][][priceType][code] field. It is recommended to transfer actual value of item price together with price type to order[items][][initialPrice]. If order[items][][priceType][code] price type is transferred without the order[items][][initialPrice] price value, then the current value of this price type for the current item will be taken for the item price. For new item it is recommended always to transfer order[items][][initialPrice] price clearly, in case if actual price has not been downloaded to system yet. If not to transfer order[items][][priceType][code] price type for the item, then price type for the item in order will be No type. In case if there is only the basic price type in the system, then order[items][][priceType][code] parameter should not be considered.

The order of order items order[items][] is saved in response.

Parameters order[items][][externalId] and order[items][][externalIds] are optional.

Either external ID value order[items][][externalId] or array of external IDs order[items][][externalIds] can be specified at the same time.

The external ID value order[items][][externalId] will be written to the array order[items][][externalIds] with default code.

Values of external identifiers order[items][][externalIds][][value] should be unique by code order[items][][externalIds][][code] within one order.

The privilegeType field can contain one of the following values:

To apply the Loyalty Program to an order, the following conditions must be met:

If the loyalty_event value is specified in privilegeType and the event gives a discount, then it is required to specify the ID in the loyaltyEventDiscountId field

If there are items with the same SKUs in the order, then it is required to pass identifiers (order[items][][id] or order[items][][externalId] or order[items][][externalIds]) to edit them.

When editing an item via identifiers (order[items][][id] or order[items][][externalId] or order[items][][externalIds]), it is impossible to change the SKU order[items][][offer].

When editing an order, items are updated in the following order:

Please note that it will be possible to edit an order containing items with the same SKUs only if the setting “Possibility of adding the same SKUs to the order as different items” is enabled.

Parameters

ParameterTypeFormatDescription
bystring Is specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) order ID. By default it is externalId.
sitestring Symbolic code of store
orderobject (SerializedOrder)
order[number]string Order number
order[externalId]string Order external ID
order[privilegeType]string Privilege type
order[countryIso]string Country ISO code
order[createdAt]DateTimeY-m-d H:i:s Order creation date
order[discountManualAmount]double Monetary discount (in entity currency)
order[discountManualPercent]double Percentage discount
order[mark]integer Order evaluation
order[markDatetime]DateTimeY-m-d H:i:s Date and time of getting evaluation from customer
order[lastName]string Surname
order[firstName]string Name
order[patronymic]string Middle name
order[phone]string Phone number
order[additionalPhone]string Additional phone
order[email]string E-mail
order[call]boolean Call required
order[expired]boolean Expired
order[customerComment]string Customer comment
order[managerComment]string Operator comment
order[contragent]object (OrderContragent) Requisites
order[contragent][contragentType]string Contragent type
order[contragent][legalName]string Legal name
order[contragent][legalAddress]string Registration address
order[contragent][INN]string TIN
order[contragent][OKPO]string RNNBO
order[contragent][KPP]string IECC
order[contragent][OGRN]string PSRN
order[contragent][OGRNIP]string PSRN of Individual entrepreneur
order[contragent][certificateNumber]string Certificate number
order[contragent][certificateDate]DateTimeY-m-d Certificate date
order[contragent][BIK]string RCBIC
order[contragent][bank]string Bank
order[contragent][bankAddress]string Bank address
order[contragent][corrAccount]string Corresponding account
order[contragent][bankAccount]string Settlement account
order[statusComment]string Comment to the last status change
order[weight]double Weight
order[length]integer Length
order[width]integer Width
order[height]integer Height
order[shipmentDate]DateTimeY-m-d Shipment date
order[shipped]boolean Order is shipped
order[dialogId]object (MGDialog) Chats dialog identifier
order[customFields]array Associative array of custom fields
order[orderType]string Order type
order[orderMethod]string Method
order[customer]object (SerializedRelationCustomer) Customer
order[customer][id]integer Customer internal ID
order[customer][externalId]string Customer external ID
order[customer][browserId]string Device ID in Collector
order[customer][site]string Store code, required when externalId is specified
order[customer][type]string Customer type (specified when creating new customer)
order[customer][nickName]string Corporate customer name (specified when creating new corporate customer)
order[contact]object (SerializedRelationAbstractCustomer) Contact person
order[contact][id]integer Customer internal ID
order[contact][externalId]string Customer external ID
order[contact][browserId]string Device ID in Collector
order[contact][site]string Store code, required when externalId is specified
order[company]object (EntityWithExternalIdInput) Company
order[company][id]integer ID
order[company][externalId]string External ID
order[managerId]integer Manager, responsible for order
order[status]string Order status
order[items][]array of objects (SerializedOrderProduct)
order[items][][markingCodes][]array of strings Marking codes
order[items][][id]integer ID of order item
order[items][][initialPrice]double Item price/SKU (in entity currency)
order[items][][discountManualAmount]double Monetary discount per item (in entity currency)
order[items][][discountManualPercent]double Percentage discount per item
order[items][][vatRate]string VAT rate
order[items][][createdAt]DateTimeY-m-d H:i:s Date of order item creation in the system
order[items][][quantity]float Quantity
order[items][][comment]string Comment to the order item
order[items][][properties][]array [array] Additional properties of the order item
order[items][][properties][][code]string{not blank}{match: /^[a-zA-Z0-9_][a-zA-Z0-9_\-:]*$/D}} Property code (not mandatory field, the code can be transmitted in the property key)
order[items][][properties][][name]string{not blank} Property name
order[items][][properties][][value]string{not blank} Property value
order[items][][purchasePrice]double Purchasing price (in base currency)
order[items][][ordering]integer Ordering
order[items][][offer]object (SerializedOrderProductOffer) SKU
order[items][][offer][id]integer SKU ID
order[items][][offer][externalId]string SKU external ID
order[items][][offer][xmlId]string SKU ID in the warehouse system
order[items][][productName]string Item name
order[items][][status]string Status of the order item
order[items][][priceType]object (PriceType) Price type
order[items][][priceType][code]string Price type code
order[items][][externalId]stringdeprecated External ID of order item
order[items][][externalIds][]array of objects (CodeValueModel) External IDs of order item
order[items][][externalIds][][code]string Symbolic code
order[items][][externalIds][][value]string Value
order[delivery]object (SerializedOrderDelivery) Data on delivery
order[delivery][code]string Delivery type code
order[delivery][data]Data of the delivery service, connected by APICourier delivery service dataNew Post delivery service dataDDelivery delivery service dataKazPost delivery service data
order[delivery][data][externalId]string Delivery id in delivery service
order[delivery][data][trackNumber]stringTrack number (deprecated for write)Track numberTrack number
order[delivery][data][locked]booleanDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery service
order[delivery][data][tariff]string Tariff code
order[delivery][data][pickuppointId]stringPickup point IDPickup point idPickup point ID
order[delivery][data][payerType]stringPayerPayer type
order[delivery][data][shipmentpointId]stringShipment terminal IDShipment point id
order[delivery][data][extraData]array Additional delivery data (deliveryDataField.code => value)
order[delivery][data][itemDeclaredValues][]array of objects (DeclaredValueItem)
order[delivery][data][itemDeclaredValues][][orderProduct]object (PackageItemOrderProduct) Order item
order[delivery][data][itemDeclaredValues][][orderProduct][id]integer ID of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalId]stringdeprecatedExternal ID of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][]array of objects (CodeValueModel) External IDs of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][][code]string Symbolic code
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][][value]string Value
order[delivery][data][itemDeclaredValues][][value]double Declared value of the product
order[delivery][data][packages][]array of objects (Package) Packages
order[delivery][data][packages][][packageId]string Package number
order[delivery][data][packages][][weight]double Weight
order[delivery][data][packages][][length]integer Length
order[delivery][data][packages][][width]integer Width
order[delivery][data][packages][][height]integer Height
order[delivery][data][packages][][items][]array of objects (PackageItem) Package content
order[delivery][data][packages][][items][][orderProduct]object (PackageItemOrderProduct) Order item
order[delivery][data][packages][][items][][orderProduct][id]integer ID of order item
order[delivery][data][packages][][items][][orderProduct][externalId]stringdeprecatedExternal ID of order item
order[delivery][data][packages][][items][][orderProduct][externalIds][]array of objects (CodeValueModel) External IDs of order item
order[delivery][data][packages][][items][][orderProduct][externalIds][][code]string Symbolic code
order[delivery][data][packages][][items][][orderProduct][externalIds][][value]string Value
order[delivery][data][packages][][items][][quantity]double Quantity
order[delivery][data][courierId]integer Courier ID
order[delivery][data][serviceType]string Delivery technology
order[delivery][data][pickuppoint]string Pickup point
order[delivery][data][receiverWarehouseTypeRef]string Shipping to department
order[delivery][data][receiverCity]stringDelivery city nameDelivery city
order[delivery][data][receiverCityRef]stringDelivery city ID in NewPostDelivery city ID
order[delivery][data][receiverStreet]string Delivery street name
order[delivery][data][receiverStreetRef]string Delivery street ID in NewPost
order[delivery][data][seatsAmount]integer Quantity of sending seats
order[delivery][data][cargoType]string Cargo type
order[delivery][data][cargoDescription]string Cargo description
order[delivery][data][cashPayerType]string Payer type for cash on delivery
order[delivery][data][paymentForm]string Payment form
order[delivery][data][ownershipForm]string Entity ownership type
order[delivery][data][packageNumber]string Package number
order[delivery][data][accompanyingDocument]string Accompanying documents
order[delivery][data][notes]string Additional information on sending
order[delivery][data][preferredDeliveryDate]DateTimeY-m-d Preferred delivery date
order[delivery][data][backwardDelivery]custom handler result for (bool) Return consignment
order[delivery][data][backwardDeliveryCargoType]string Type of backward delivery
order[delivery][data][backwardDeliveryPayerType]string Type of sender for backward delivery
order[delivery][data][backwardDeliveryRedeliveryString]string Description of backward delivery
order[delivery][data][afterpaymentOnGoodsCost]float Payment control (in entity currency)
order[delivery][data][declaredValue]float Declared value (in entity currency)
order[delivery][data][sendDate]DateTimeY-m-d Date of sending
order[delivery][data][deliveryType]string Delivery method ID
order[delivery][data][pickupType]integer Pickup type
order[delivery][data][placesCount]integer Seats quantity
order[delivery][data][services][]array of strings Additional services of delivery
order[delivery][data][comment]string Comment to the order
order[delivery][service]object (SerializedDeliveryService)
order[delivery][service][name]string Name
order[delivery][service][code]string Symbolic code
order[delivery][service][active]boolean Activity status
order[delivery][service][deliveryType]string Delivery type
order[delivery][cost]double Cost
order[delivery][netCost]double Delivery net cost
order[delivery][date]DateTimeY-m-d Delivery date
order[delivery][time]object (TimeInterval) Information on time range
order[delivery][time][from]DateTimeH:i Time "from"
order[delivery][time][to]DateTimeH:i Time "to"
order[delivery][time][custom]string Time range in free form
order[delivery][address]object (OrderDeliveryAddress) Address
order[delivery][address][index]string Postal code
order[delivery][address][countryIso]string Country ISO code
order[delivery][address][region]string Region
order[delivery][address][regionId]integer Region ID in Geohelper
order[delivery][address][city]string City
order[delivery][address][cityId]integer City ID in Geohelper
order[delivery][address][cityType]string Locality type
order[delivery][address][street]string Street
order[delivery][address][streetId]integer Street ID in Geohelper
order[delivery][address][streetType]string Street type
order[delivery][address][building]string Building
order[delivery][address][flat]string Flat/office
order[delivery][address][floor]integer Floor
order[delivery][address][block]integer Entrance
order[delivery][address][house]string House
order[delivery][address][housing]string Housing
order[delivery][address][metro]string Underground
order[delivery][address][notes]string Notes to address
order[delivery][address][text]string Address as string
order[delivery][vatRate]string VAT rate
order[source]object (SerializedSource) Order source
order[source][source]string Source
order[source][medium]string Medium
order[source][campaign]string Campaign
order[source][keyword]string Keyword
order[source][content]string Ad content
order[shipmentStore]string Shipping warehouse
order[loyaltyEventDiscountId]integer ID of the discount on the event of the loyalty program
order[applyRound]boolean Apply the setting of rounding the order cost
order[isFromCart]boolean Order created from cart

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Order internal ID
order object (Order) Order
order[slug] custom handler result for (int) deprecated Symbolic code
order[bonusesCreditTotal] double Amount of accrued bonuses
order[bonusesChargeTotal] double Amount of debited bonuses
order[summ] double Total for goods/services (in entity currency)
order[currency] string Currency
order[id] integer Order ID
order[number] string Order number
order[externalId] string Order external ID
order[orderType] string Order type
order[orderMethod] string Method
order[privilegeType] string Privilege type
order[countryIso] string Country ISO code
order[createdAt] DateTime Order creation date
order[statusUpdatedAt] DateTime Date of the last order status change
order[totalSumm] double Total sum with discount (in entity currency)
order[prepaySum] double Paid sum (in entity currency)
order[purchaseSumm] double Total purchase sum (in base currency)
order[personalDiscountPercent] double Personal discount on the order
order[loyaltyLevel] object (LoyaltyLevel) Level of participation in the loyalty program
order[loyaltyLevel][id] integer Level ID
order[loyaltyLevel][name] string Level name
order[loyaltyEventDiscount] object (LoyaltyEventDiscount) Discount on the event of the loyalty program
order[loyaltyEventDiscount][id] integer ID
order[mark] integer Order evaluation
order[markDatetime] DateTime Date and time of getting evaluation from customer
order[lastName] string Surname
order[firstName] string Name
order[patronymic] string Middle name
order[phone] string Phone number
order[additionalPhone] string Additional phone
order[email] string E-mail
order[call] boolean Call required
order[expired] boolean Expired
order[customerComment] string Customer comment
order[managerComment] string Operator comment
order[managerId] integer Manager, responsible for order
order[customer]CustomerCorporate customer
order[customer][type] string Customer typeCustomer type
order[customer][id] integer Customer IDCorporate customer ID
order[customer][externalId] string Customer external IDCorporate customer external ID
order[customer][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
order[customer][createdAt] DateTime Created atCreated at
order[customer][managerId] integer Customer managerCorporate customer manager
order[customer][vip] boolean VIP customerVIP corporate customer
order[customer][bad] boolean Bad customerBad corporate customer
order[customer][site] string Store, from which the customer cameStore, from which the corporate customer came
order[customer][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
order[customer][contragent][contragentType] string Contragent type
order[customer][contragent][legalName] string Legal name
order[customer][contragent][legalAddress] string Registration address
order[customer][contragent][INN] string TIN
order[customer][contragent][OKPO] string RNNBO
order[customer][contragent][KPP] string IECC
order[customer][contragent][OGRN] string PSRN
order[customer][contragent][OGRNIP] string PSRN of Individual entrepreneur
order[customer][contragent][certificateNumber] string Certificate number
order[customer][contragent][certificateDate] DateTime Certificate date
order[customer][contragent][BIK] string RCBIC
order[customer][contragent][bank] string Bank
order[customer][contragent][bankAddress] string Bank address
order[customer][contragent][corrAccount] string Corresponding account
order[customer][contragent][bankAccount] string Settlement account
order[customer][tags][] array of objects (CustomerTagLink) [array] Tags[array] Tags
order[customer][tags][][color] string
order[customer][tags][][name] string
order[customer][tags][][colorCode] string
order[customer][tags][][attached] boolean
order[customer][firstClientId] string First Google Analytics clientIdFirst Google Analytics unique clientId
order[customer][lastClientId] string Last Google Analytics clientIdLast Google Analytics unique clientId
order[customer][customFields] array Associative array of custom fieldsAssociative array of custom fields
order[customer][personalDiscount] double Personal discountPersonal discount
order[customer][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)deprecated Cumulative discount (Not available starting from version 8 of the system)
order[customer][discountCardNumber] string Discount card numberDiscount card number
order[customer][avgMarginSumm] float Average gross profit of customer orders (in base currency)Average gross profit of corporate customer orders (in base currency)
order[customer][marginSumm] float LTV (in base currency)LTV (in base currency)
order[customer][totalSumm] float Orders total sum (in base currency)Orders total sum (in base currency)
order[customer][averageSumm] float Order average sum (in base currency)Order average sum (in base currency)
order[customer][ordersCount] integer Orders quantityOrders quantity
order[customer][costSumm] float Amount of costs (in base currency)Amount of costs (in base currency)
order[customer][address] object (CustomerAddress) Customer address
order[customer][address][id] integer Address ID
order[customer][address][index] string Postal code
order[customer][address][countryIso] string Country ISO code
order[customer][address][region] string Region
order[customer][address][regionId] integer Region ID in Geohelper
order[customer][address][city] string City
order[customer][address][cityId] integer City ID in Geohelper
order[customer][address][cityType] string Locality type
order[customer][address][street] string Street
order[customer][address][streetId] integer Street ID in Geohelper
order[customer][address][streetType] string Street type
order[customer][address][building] string Building
order[customer][address][flat] string Flat/office
order[customer][address][floor] integer Floor
order[customer][address][block] integer Entrance
order[customer][address][house] string House
order[customer][address][housing] string Housing
order[customer][address][metro] string Underground
order[customer][address][notes] string Notes to address
order[customer][address][text] string Address as string
order[customer][address][externalId] string External ID
order[customer][address][name] string Name
order[customer][segments][] array of objects (Segment) [array] Segments
order[customer][segments][][id] integer Internal ID of segment
order[customer][segments][][code] string Symbolic code
order[customer][segments][][name] string Segment name
order[customer][segments][][createdAt] DateTime Segment creation date
order[customer][segments][][isDynamic] boolean Is this segment dynamic
order[customer][segments][][customersCount] integer Customer quantity in segment
order[customer][segments][][active] boolean Activity state of segment
order[customer][maturationTime] integer Maturation time, in seconds
order[customer][firstName] string Name
order[customer][lastName] string Surname
order[customer][patronymic] string Middle name
order[customer][sex] string Sex
order[customer][presumableSex] string Guessed gender based on name
order[customer][email] string E-mail
order[customer][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
order[customer][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
order[customer][customerSubscriptions][][subscription] object (Subscription) Subscription category
order[customer][customerSubscriptions][][subscription][id] integer Subscription category ID
order[customer][customerSubscriptions][][subscription][channel] string Channel
order[customer][customerSubscriptions][][subscription][name] string Name
order[customer][customerSubscriptions][][subscription][code] string Symbolic code
order[customer][customerSubscriptions][][subscription][active] boolean Activity status
order[customer][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
order[customer][customerSubscriptions][][subscription][ordering] integer
order[customer][customerSubscriptions][][subscribed] boolean Subscription activity
order[customer][customerSubscriptions][][changedAt] DateTime Activity flag change date
order[customer][phones][] array of objects (CustomerPhone) Phone numbers
order[customer][phones][][number] string Phone number
order[customer][birthday] DateTime Birthday
order[customer][source] object (SerializedSource) Customer source
order[customer][source][source] string Source
order[customer][source][medium] string Medium
order[customer][source][campaign] string Campaign
order[customer][source][keyword] string Keyword
order[customer][source][content] string Ad content
order[customer][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
order[customer][mgCustomers][][id] integer Customer ID
order[customer][mgCustomers][][externalId] integer External ID of the MessageGateway customer
order[customer][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
order[customer][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
order[customer][mgCustomers][][mgChannel][id] integer ID of the channel
order[customer][mgCustomers][][mgChannel][externalId] integer External ID of the channel
order[customer][mgCustomers][][mgChannel][type] string Channel type
order[customer][mgCustomers][][mgChannel][active] boolean Channel activity
order[customer][mgCustomers][][mgChannel][name] string Channel name
order[customer][photoUrl] string URL of photo
order[customer][mainAddress] object (EntityWithExternalIdNameOutput) Main corporate customer address
order[customer][mainAddress][id] integer ID
order[customer][mainAddress][externalId] string External ID
order[customer][mainAddress][name] string Name
order[customer][mainCustomerContact] object (CustomerContact) Main contact person
order[customer][mainCustomerContact][id] integer Contact ID
order[customer][mainCustomerContact][customer] object (SerializedRelationAbstractCustomer) Customer
order[customer][mainCustomerContact][customer][id] integer Customer internal ID
order[customer][mainCustomerContact][customer][externalId] string Customer external ID
order[customer][mainCustomerContact][customer][browserId] string Device ID in Collector
order[customer][mainCustomerContact][companies][] array of objects (CustomerContactCompany) Contact person`s company
order[customer][mainCustomerContact][companies][][id] integer Company ID
order[customer][mainCustomerContact][companies][][company] object (EntityWithExternalIdNameOutput) Company
order[customer][mainCustomerContact][companies][][company][id] integer ID
order[customer][mainCustomerContact][companies][][company][externalId] string External ID
order[customer][mainCustomerContact][companies][][company][name] string Name
order[customer][mainCompany] object (EntityWithExternalIdNameOutput) Main company
order[customer][mainCompany][id] integer ID
order[customer][mainCompany][externalId] string External ID
order[customer][mainCompany][name] string Name
order[customer][nickName] string Name
order[contact] object (Customer) Contact person
order[contact][type] string Customer type
order[contact][id] integer Customer ID
order[contact][externalId] string Customer external ID
order[contact][isContact] boolean The customer is a contact person (created as the contact person and has no orders)
order[contact][createdAt] DateTime Created at
order[contact][managerId] integer Customer manager
order[contact][vip] boolean VIP customer
order[contact][bad] boolean Bad customer
order[contact][site] string Store, from which the customer came
order[contact][contragent] object (CustomerContragent) deprecated Requisites (The fields of the object should be used only if the "Corporate customers" functionality is disabled)
order[contact][contragent][contragentType] string Contragent type
order[contact][contragent][legalName] string Legal name
order[contact][contragent][legalAddress] string Registration address
order[contact][contragent][INN] string TIN
order[contact][contragent][OKPO] string RNNBO
order[contact][contragent][KPP] string IECC
order[contact][contragent][OGRN] string PSRN
order[contact][contragent][OGRNIP] string PSRN of Individual entrepreneur
order[contact][contragent][certificateNumber] string Certificate number
order[contact][contragent][certificateDate] DateTime Certificate date
order[contact][contragent][BIK] string RCBIC
order[contact][contragent][bank] string Bank
order[contact][contragent][bankAddress] string Bank address
order[contact][contragent][corrAccount] string Corresponding account
order[contact][contragent][bankAccount] string Settlement account
order[contact][tags][] array of objects (CustomerTagLink) [array] Tags
order[contact][tags][][color] string
order[contact][tags][][name] string
order[contact][tags][][colorCode] string
order[contact][tags][][attached] boolean
order[contact][firstClientId] string First Google Analytics clientId
order[contact][lastClientId] string Last Google Analytics clientId
order[contact][customFields] array Associative array of custom fields
order[contact][personalDiscount] double Personal discount
order[contact][cumulativeDiscount] double deprecated Cumulative discount (Not available starting from version 8 of the system)
order[contact][discountCardNumber] string Discount card number
order[contact][avgMarginSumm] float Average gross profit of customer orders (in base currency)
order[contact][marginSumm] float LTV (in base currency)
order[contact][totalSumm] float Orders total sum (in base currency)
order[contact][averageSumm] float Order average sum (in base currency)
order[contact][ordersCount] integer Orders quantity
order[contact][costSumm] float Amount of costs (in base currency)
order[contact][address] object (CustomerAddress) Customer address
order[contact][address][id] integer Address ID
order[contact][address][index] string Postal code
order[contact][address][countryIso] string Country ISO code
order[contact][address][region] string Region
order[contact][address][regionId] integer Region ID in Geohelper
order[contact][address][city] string City
order[contact][address][cityId] integer City ID in Geohelper
order[contact][address][cityType] string Locality type
order[contact][address][street] string Street
order[contact][address][streetId] integer Street ID in Geohelper
order[contact][address][streetType] string Street type
order[contact][address][building] string Building
order[contact][address][flat] string Flat/office
order[contact][address][floor] integer Floor
order[contact][address][block] integer Entrance
order[contact][address][house] string House
order[contact][address][housing] string Housing
order[contact][address][metro] string Underground
order[contact][address][notes] string Notes to address
order[contact][address][text] string Address as string
order[contact][address][externalId] string External ID
order[contact][address][name] string Name
order[contact][segments][] array of objects (Segment) [array] Segments
order[contact][segments][][id] integer Internal ID of segment
order[contact][segments][][code] string Symbolic code
order[contact][segments][][name] string Segment name
order[contact][segments][][createdAt] DateTime Segment creation date
order[contact][segments][][isDynamic] boolean Is this segment dynamic
order[contact][segments][][customersCount] integer Customer quantity in segment
order[contact][segments][][active] boolean Activity state of segment
order[contact][maturationTime] integer Maturation time, in seconds
order[contact][firstName] string Name
order[contact][lastName] string Surname
order[contact][patronymic] string Middle name
order[contact][sex] string Sex
order[contact][presumableSex] string Guessed gender based on name
order[contact][email] string E-mail
order[contact][emailMarketingUnsubscribedAt] DateTime deprecated Date of unsubscription from emails
order[contact][customerSubscriptions][] array of objects (CustomerSubscription) Subscriptions
order[contact][customerSubscriptions][][subscription] object (Subscription) Subscription category
order[contact][customerSubscriptions][][subscription][id] integer Subscription category ID
order[contact][customerSubscriptions][][subscription][channel] string Channel
order[contact][customerSubscriptions][][subscription][name] string Name
order[contact][customerSubscriptions][][subscription][code] string Symbolic code
order[contact][customerSubscriptions][][subscription][active] boolean Activity status
order[contact][customerSubscriptions][][subscription][autoSubscribe] boolean Automatically subscribe new clients
order[contact][customerSubscriptions][][subscription][ordering] integer
order[contact][customerSubscriptions][][subscribed] boolean Subscription activity
order[contact][customerSubscriptions][][changedAt] DateTime Activity flag change date
order[contact][phones][] array of objects (CustomerPhone) Phone numbers
order[contact][phones][][number] string Phone number
order[contact][birthday] DateTime Birthday
order[contact][source] object (SerializedSource) Customer source
order[contact][source][source] string Source
order[contact][source][medium] string Medium
order[contact][source][campaign] string Campaign
order[contact][source][keyword] string Keyword
order[contact][source][content] string Ad content
order[contact][mgCustomers][] array of objects (MGCustomer) MessageGateway customers
order[contact][mgCustomers][][id] integer Customer ID
order[contact][mgCustomers][][externalId] integer External ID of the MessageGateway customer
order[contact][mgCustomers][][mgChannel] object (MGChannel) MessageGateway channel
order[contact][mgCustomers][][mgChannel][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
order[contact][mgCustomers][][mgChannel][id] integer ID of the channel
order[contact][mgCustomers][][mgChannel][externalId] integer External ID of the channel
order[contact][mgCustomers][][mgChannel][type] string Channel type
order[contact][mgCustomers][][mgChannel][active] boolean Channel activity
order[contact][mgCustomers][][mgChannel][name] string Channel name
order[contact][photoUrl] string URL of photo
order[company] object (Company) Company
order[company][id] integer Company ID
order[company][externalId] string Company external ID
order[company][customer] object (SerializedEntityCustomer) Customer
order[company][customer][site] string Symbolic code of store
order[company][customer][id] integer Customer internal ID
order[company][customer][externalId] string Customer external ID
order[company][customer][type] string Customer type
order[company][active] boolean Activity
order[company][name] string Name
order[company][brand] string Brand
order[company][site] string Company website
order[company][createdAt] DateTime Creation date
order[company][contragent] object (CompanyContragent) Requisites
order[company][contragent][contragentType] string Contragent type
order[company][contragent][legalName] string Legal name
order[company][contragent][legalAddress] string Registration address
order[company][contragent][INN] string TIN
order[company][contragent][OKPO] string RNNBO
order[company][contragent][KPP] string IECC
order[company][contragent][OGRN] string PSRN
order[company][contragent][OGRNIP] string PSRN of Individual entrepreneur
order[company][contragent][certificateNumber] string Certificate number
order[company][contragent][certificateDate] DateTime Certificate date
order[company][contragent][BIK] string RCBIC
order[company][contragent][bank] string Bank
order[company][contragent][bankAddress] string Bank address
order[company][contragent][corrAccount] string Corresponding account
order[company][contragent][bankAccount] string Settlement account
order[company][address] object (CustomerAddress) Address
order[company][address][id] integer Address ID
order[company][address][index] string Postal code
order[company][address][countryIso] string Country ISO code
order[company][address][region] string Region
order[company][address][regionId] integer Region ID in Geohelper
order[company][address][city] string City
order[company][address][cityId] integer City ID in Geohelper
order[company][address][cityType] string Locality type
order[company][address][street] string Street
order[company][address][streetId] integer Street ID in Geohelper
order[company][address][streetType] string Street type
order[company][address][building] string Building
order[company][address][flat] string Flat/office
order[company][address][floor] integer Floor
order[company][address][block] integer Entrance
order[company][address][house] string House
order[company][address][housing] string Housing
order[company][address][metro] string Underground
order[company][address][notes] string Notes to address
order[company][address][text] string Address as string
order[company][address][externalId] string External ID
order[company][address][name] string Name
order[company][avgMarginSumm] float Average gross profit of customer orders (in base currency)
order[company][marginSumm] float LTV (in base currency)
order[company][totalSumm] float Orders total sum (in base currency)
order[company][averageSumm] float Order average sum (in base currency)
order[company][costSumm] float Amount of costs (in base currency)
order[company][ordersCount] integer Orders quantity
order[company][customFields] array Associative array of custom fields
order[contragent] object (OrderContragent) Requisites
order[contragent][contragentType] string Contragent type
order[contragent][legalName] string Legal name
order[contragent][legalAddress] string Registration address
order[contragent][INN] string TIN
order[contragent][OKPO] string RNNBO
order[contragent][KPP] string IECC
order[contragent][OGRN] string PSRN
order[contragent][OGRNIP] string PSRN of Individual entrepreneur
order[contragent][certificateNumber] string Certificate number
order[contragent][certificateDate] DateTime Certificate date
order[contragent][BIK] string RCBIC
order[contragent][bank] string Bank
order[contragent][bankAddress] string Bank address
order[contragent][corrAccount] string Corresponding account
order[contragent][bankAccount] string Settlement account
order[delivery] object (SerializedOrderDelivery) Data on delivery
order[delivery][code] string Delivery type code
order[delivery][integrationCode] string Integration code of delivery type
order[delivery][data]Data of the delivery service, connected by APICourier delivery service dataNew Post delivery service dataDDelivery delivery service dataKazPost delivery service data
order[delivery][data][externalId] string Delivery id in delivery servicedeprecated Track number (Use trackNumber instead)
order[delivery][data][trackNumber] string Track number (deprecated for write)Track numberTrack numberTrack number
order[delivery][data][status] string Delivery status codeDelivery status codeDelivery status codeDelivery status code
order[delivery][data][locked] boolean Do not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery serviceDo not synchronize with the delivery service
order[delivery][data][pickuppointAddress] string Pickup point address
order[delivery][data][days] string Approximate delivery timeApproximate delivery timeApproximate delivery time
order[delivery][data][statusText] string Delivery status nameDelivery status nameDelivery status name
order[delivery][data][statusDate] DateTime Delivery status dateDate of the last delivery status updating
order[delivery][data][tariff] string Tariff code
order[delivery][data][tariffName] string Tariff name
order[delivery][data][pickuppointId] string Pickup point IDPickup point idPickup point ID
order[delivery][data][pickuppointSchedule] string Pickup point working timeSchedule of pickup point
order[delivery][data][pickuppointPhone] string Pickup point phone
order[delivery][data][payerType] string PayerPayer type
order[delivery][data][statusComment] string Comment to delivery status
order[delivery][data][cost] float Delivery cost received from delivery service (in entity currency)Delivery cost received from delivery service (in entity currency)
order[delivery][data][minTerm] integer Minimum delivery term
order[delivery][data][maxTerm] integer Maximum delivery term
order[delivery][data][shipmentpointId] string Shipment terminal IDShipment point id
order[delivery][data][shipmentpointName] string Shipment terminal name
order[delivery][data][shipmentpointAddress] string Shipment terminal address
order[delivery][data][shipmentpointSchedule] string Pickup point working time shipment terminal
order[delivery][data][shipmentpointPhone] string Shipment terminal phone
order[delivery][data][shipmentpointCoordinateLatitude] string Shipment terminal coordinates, latitude
order[delivery][data][shipmentpointCoordinateLongitude] string Shipment terminal coordinates, longitude
order[delivery][data][pickuppointName] string Pickup point name
order[delivery][data][pickuppointCoordinateLatitude] string Pickup point coordinates, latitude
order[delivery][data][pickuppointCoordinateLongitude] string Pickup point coordinates, longitude
order[delivery][data][extraData] array Additional delivery data (deliveryDataField.code => value)
order[delivery][data][itemDeclaredValues][] array of objects (DeclaredValueItem)
order[delivery][data][itemDeclaredValues][][orderProduct] object (PackageItemOrderProduct) Order item
order[delivery][data][itemDeclaredValues][][orderProduct][id] integer ID of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalId] string deprecatedExternal ID of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][][code] string Symbolic code
order[delivery][data][itemDeclaredValues][][orderProduct][externalIds][][value] string Value
order[delivery][data][itemDeclaredValues][][value] double Declared value of the product
order[delivery][data][packages][] array of objects (Package) Packages
order[delivery][data][packages][][packageId] string Package number
order[delivery][data][packages][][weight] double Weight
order[delivery][data][packages][][length] integer Length
order[delivery][data][packages][][width] integer Width
order[delivery][data][packages][][height] integer Height
order[delivery][data][packages][][items][] array of objects (PackageItem) Package content
order[delivery][data][packages][][items][][orderProduct] object (PackageItemOrderProduct) Order item
order[delivery][data][packages][][items][][orderProduct][id] integer ID of order item
order[delivery][data][packages][][items][][orderProduct][externalId] string deprecatedExternal ID of order item
order[delivery][data][packages][][items][][orderProduct][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[delivery][data][packages][][items][][orderProduct][externalIds][][code] string Symbolic code
order[delivery][data][packages][][items][][orderProduct][externalIds][][value] string Value
order[delivery][data][packages][][items][][quantity] double Quantity
order[delivery][data][id] integer Courier ID
order[delivery][data][firstName] string First name
order[delivery][data][lastName] string Last name
order[delivery][data][patronymic] string Middle name
order[delivery][data][active] boolean Activity status
order[delivery][data][email] string E-mail
order[delivery][data][phone] object (CourierPhone) Courier phone
order[delivery][data][phone][number] string Phone number
order[delivery][data][description] string Description
order[delivery][data][courierId] integer Courier ID
order[delivery][data][serviceType] string Delivery technology
order[delivery][data][pickuppoint] string Pickup pointPickup point name
order[delivery][data][receiverWarehouseTypeRef] string Shipping to department
order[delivery][data][statusName] string Delivery status name
order[delivery][data][price] float Delivery cost received from delivery service
order[delivery][data][receiverCity] string Delivery city nameDelivery city
order[delivery][data][receiverCityRef] string Delivery city ID in NewPostDelivery city ID
order[delivery][data][receiverStreet] string Delivery street name
order[delivery][data][receiverStreetRef] string Delivery street ID in NewPost
order[delivery][data][seatsAmount] integer Quantity of sending seats
order[delivery][data][cargoType] string Cargo type
order[delivery][data][cargoDescription] string Cargo description
order[delivery][data][cashPayerType] string Payer type for cash on delivery
order[delivery][data][paymentForm] string Payment form
order[delivery][data][ownershipForm] string Entity ownership type
order[delivery][data][packageNumber] string Package number
order[delivery][data][accompanyingDocument] string Accompanying documents
order[delivery][data][notes] string Additional information on sending
order[delivery][data][preferredDeliveryDate] DateTime Preferred delivery date
order[delivery][data][timeInterval] string Time intervals delivery
order[delivery][data][saturdayDelivery] boolean Saturday delivery
order[delivery][data][deliveryDate] string Date when the recipient took the order
order[delivery][data][denieReason] string Rejection reason
order[delivery][data][backwardDelivery] custom handler result for (bool) Return consignment
order[delivery][data][backwardDeliveryCargoType] string Type of backward delivery
order[delivery][data][backwardDeliveryPayerType] string Type of sender for backward delivery
order[delivery][data][backwardDeliveryRedeliveryString] string Description of backward delivery
order[delivery][data][afterpaymentOnGoodsCost] float Payment control (in entity currency)
order[delivery][data][declaredValue] float Declared value (in entity currency)
order[delivery][data][sendDate] DateTime Date of sending
order[delivery][data][deliveryType] string Delivery method ID
order[delivery][data][deliveryName] string Delivery service name
order[delivery][data][pickupType] integer Pickup type
order[delivery][data][pickuppointDescription] string Description of pickup point
order[delivery][data][placesCount] integer Seats quantity
order[delivery][data][services][] array of strings Additional services of delivery
order[delivery][data][comment] string Comment to the order
order[delivery][service] object (SerializedDeliveryService)
order[delivery][service][name] string Name
order[delivery][service][code] string Symbolic code
order[delivery][service][active] boolean Activity status
order[delivery][cost] double Cost
order[delivery][netCost] double Delivery net cost
order[delivery][date] DateTime Delivery date
order[delivery][time] object (TimeInterval) Information on time range
order[delivery][time][from] DateTime Time "from"
order[delivery][time][to] DateTime Time "to"
order[delivery][time][custom] string Time range in free form
order[delivery][address] object (OrderDeliveryAddress) Address
order[delivery][address][index] string Postal code
order[delivery][address][countryIso] string Country ISO code
order[delivery][address][region] string Region
order[delivery][address][regionId] integer Region ID in Geohelper
order[delivery][address][city] string City
order[delivery][address][cityId] integer City ID in Geohelper
order[delivery][address][cityType] string Locality type
order[delivery][address][street] string Street
order[delivery][address][streetId] integer Street ID in Geohelper
order[delivery][address][streetType] string Street type
order[delivery][address][building] string Building
order[delivery][address][flat] string Flat/office
order[delivery][address][floor] integer Floor
order[delivery][address][block] integer Entrance
order[delivery][address][house] string House
order[delivery][address][housing] string Housing
order[delivery][address][metro] string Underground
order[delivery][address][notes] string Notes to address
order[delivery][address][text] string Address as string
order[delivery][vatRate] string VAT rate
order[site] string Store
order[status] string Order status
order[statusComment] string Comment to the last status change
order[source] object (SerializedSource) Order source
order[source][source] string Source
order[source][medium] string Medium
order[source][campaign] string Campaign
order[source][keyword] string Keyword
order[source][content] string Ad content
order[items][] array of objects (OrderProduct) Order item
order[items][][externalId] string deprecated External ID of order item
order[items][][bonusesChargeTotal] double Amount of debited bonuses
order[items][][bonusesCreditTotal] double Amount of accrued bonuses
order[items][][markingCodes][] array of strings Marking codes
order[items][][id] integer ID of order item
order[items][][externalIds][] array of objects (CodeValueModel) External IDs of order item
order[items][][externalIds][][code] string Symbolic code
order[items][][externalIds][][value] string Value
order[items][][priceType] object (PriceType) Price type
order[items][][priceType][code] string Price type code
order[items][][initialPrice] double Item price/SKU (in entity currency)
order[items][][discounts][] array of objects (AbstractDiscount) Array of discounts
order[items][][discounts][][type] string Discount type. Possible values:
manual_order - One-time discount on the order;
manual_product - Additional discount on the product;
loyalty_level - Discount on the level of the loyalty program;
loyalty_event - Discount on the event of the loyalty program;
personal - Personal discount;
bonus_charge - Redemption of bonuses of the loyalty program;
round - Discount from rounding
order[items][][discounts][][amount] float Discount amount
order[items][][discountTotal] double Final monetary discount per item including all item and order discounts (in entity currency)
order[items][][prices][] array of objects (OrderProductPriceItem) Set of total sales prices with the quantity
order[items][][prices][][price] float Total price including all discounts on the product and order (in entity currency)
order[items][][prices][][quantity] float Quantity of the product at the specified price
order[items][][vatRate] string VAT rate
order[items][][createdAt] DateTime Date of order item creation in the system
order[items][][quantity] float Quantity
order[items][][status] string Status of the order item
order[items][][comment] string Comment to the order item
order[items][][offer] object (Offer) SKU
order[items][][offer][displayName] string SKU name
order[items][][offer][id] integer SKU ID
order[items][][offer][externalId] string SKU ID in store
order[items][][offer][xmlId] string SKU ID in the warehouse system
order[items][][offer][name] string Name
order[items][][offer][article] string Vendor code
order[items][][offer][vatRate] string VAT rate
order[items][][offer][properties] array SKU properties
order[items][][offer][unit] object (Unit) Unit
order[items][][offer][unit][code] string Unit symbolic code
order[items][][offer][unit][name] string Unit name
order[items][][offer][unit][sym] string Unit short name
order[items][][offer][barcode] string Barcode
order[items][][isCanceled] boolean This order item is cancelled in the order
order[items][][properties] array [array] Additional properties of the order item
order[items][][purchasePrice] double Purchasing price (in base currency)
order[items][][ordering] integer Ordering
order[fullPaidAt] DateTime Full payment date
order[payments][] array of objects (Payment) Payments
order[payments][][id] integer Payment ID
order[payments][][status] string Payment Status
order[payments][][type] string Payment Type
order[payments][][externalId] string External ID
order[payments][][amount] double Amount (in entity currency)
order[payments][][paidAt] DateTime Payment date
order[payments][][comment] string Comment
order[fromApi] boolean Order received through API
order[weight] double Weight
order[length] integer Length
order[width] integer Width
order[height] integer Height
order[shipmentStore] string Shipping warehouse
order[shipmentDate] DateTime Shipment date
order[shipped] boolean Order is shipped
order[links][] array of objects (OrderLink) Orders link
order[links][][order] object (LinkedOrder) Linked order
order[links][][order][id] integer Linked order ID
order[links][][order][number] string Linked order number
order[links][][order][externalId] string Linked order external ID
order[links][][createdAt] DateTime Date/time of creation of the link with the order
order[links][][comment] string Comment
order[customFields] array Associative array of custom fields
order[clientId] string Google Analytics clientId
state string Order condition (not returned by default)

HTTP statuses

Status codeDescription
200
  • The order was successfully changed
400
  • Error on order editing

GET /api/v5/orders/{externalId}/plates/{plateId}/print Getting the file of the printed form for the order

Getting the file of the printed form for the order

To access the method, the following permission is required order_read.

This method allows to download the generated printed form for the template with id={plateId} in the context of the specified order. When downloading, the content of the file is given as a stream, the name of the file is given in the HTTP header Content-Disposition.

Parameters

ParameterTypeFormatDescription
externalIdstring Order ID
plateIdint Printed form ID

Filter parameters

ParameterDescription
by
Templateid|externalId
Default valueexternalId
DescriptionIs specified what is transmitted in parameter externalId: internal (by=id) or external (by=externalId) order ID. By default it is externalId.
site
DescriptionSymbolic code of store

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error when generating printed form
404
  • Order or printed form not found

Orders picking

GET /api/v5/orders/packs Getting the list of packs matched the specified filter

Getting the list of packs matched the specified filter

To access the method, the following permission is required order_read.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (OrderProductPackFilter)
filter[ids]array of integers Array of order product pack's ID
filter[stores][]array of strings Warehouse
filter[itemId]integer{range: {>=0}} Product ID
filter[offerXmlId]string{length: {max: 255}} SKU XMLId
filter[offerExternalId]string{length: {max: 255}} SKU external ID
filter[orderId]integer{range: {>=0}} Order ID
filter[orderExternalId]string{length: {max: 255}} Order external ID
filter[shipmentDateFrom]DateTimeInterface Shipment date from
filter[shipmentDateTo]DateTimeInterface Shipment date to
filter[invoiceNumber]string{length: {max: 255}} Tax number
filter[deliveryNoteNumber]string{length: {max: 255}} Way bill number

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
packs[] array of objects (OrderProductPack) Pack - items pack, within the one item position, from one warehouse
packs[][id] integer ID
packs[][purchasePrice] float Purchasing price (in base currency)
packs[][quantity] float Item quantity in pack
packs[][unit] object (Unit) Unit
packs[][unit][code] string Unit symbolic code
packs[][unit][name] string Unit name
packs[][unit][sym] string Unit short name
packs[][store] string Warehouse
packs[][item] object (OrderProduct) Order item
packs[][item][externalId] string deprecated External ID of order item
packs[][item][id] integer ID of order item
packs[][item][externalIds][] array of objects (CodeValueModel) External IDs of order item
packs[][item][order] object (Order) Order
packs[][item][order][id] integer Order ID
packs[][item][offer] object (Offer) SKU
packs[][item][offer][externalId] string SKU ID in store
packs[][item][offer][xmlId] string SKU ID in the warehouse system
packs[][shipmentDate] DateTime Pack shipment date
packs[][invoiceNumber] string Tax number
packs[][deliveryNoteNumber] string Packing list number

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/orders/packs/create Pack creation

Pack creation

To access the method, the following permission is required order_write.

The method creates a pack and returns its internal ID. The creation of the pack is not allowed for cancelled SKUs and services. There will be an error message in this case.

Parameters

ParameterTypeFormatDescription
packobject (SerializedOrderProductPack)
pack[purchasePrice]float Purchasing price (in base currency)
pack[quantity]float Item quantity in pack
pack[store]string Warehouse
pack[shipmentDate]DateTime Pack shipment date
pack[invoiceNumber]string Tax number
pack[deliveryNoteNumber]string Packing list number
pack[itemId]integer Order item ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Pack ID

HTTP statuses

Status codeDescription
201
  • The pack is successfully created
400
  • Error on pack creation

GET /api/v5/orders/packs/history Getting the history of order packing

Getting the history of order packing

To access the method, the following permission is required order_read.

The result is returned per-page. In the field pagination there is an information about the pagination.

More information about the work with history you can find in other article.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (OrderProductPackHistoryFilterType)
filter[orderId]integer{range: {>=0}} Order internal identifier
filter[sinceId]integer{range: {>=0}} The lower limit on entry id in the history (excluding boundary)
filter[orderExternalId]string{length: {max: 255}} Order identifier in store
filter[startDate]DateTimeY-m-d H:i:s Time of change (from)
filter[endDate]DateTimeY-m-d H:i:s Time of change (to)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
generatedAt DateTime Time of response formation
history[] array of objects (OrderProductPackHistory) Set of changes in the collecting history
history[][id] integer Internal identifier of entry in the history
history[][createdAt] DateTime Date of making change
history[][created] boolean Flag is displayed when creation of new pack of items
history[][deleted] boolean Flag is displayed when removing the new pack of items
history[][field] string Name of changed field
history[][oldValue] object (HistoryField) Old value
history[][newValue] object (HistoryField) New value
history[][pack] object (OrderProductPack) Pack - items pack, within the one item position, from one warehouse
history[][pack][id] integer ID
history[][pack][purchasePrice] float Purchasing price (in base currency)
history[][pack][quantity] float Item quantity in pack
history[][pack][store] object (Store) Warehouse
history[][pack][store][code] string Symbolic code
history[][pack][item] object (OrderProduct) Order item
history[][pack][item][externalId] string deprecated External ID of order item
history[][pack][item][id] integer ID of order item
history[][pack][item][externalIds][] array of objects (CodeValueModel) External IDs of order item
history[][pack][item][order] object (Order) Order
history[][pack][item][order][id] integer Order ID
history[][pack][item][offer] object (Offer) SKU
history[][pack][item][offer][externalId] string SKU ID in store
history[][pack][item][offer][xmlId] string SKU ID in the warehouse system
history[][pack][shipmentDate] DateTime Pack shipment date
history[][pack][invoiceNumber] string Tax number
history[][pack][deliveryNoteNumber] string Packing list number
history[][source] string Source of change
history[][user] object (User)
history[][user][id] integer User ID
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/orders/packs/{id} Getting information on pack

Getting information on pack

To access the method, the following permission is required order_read.

Parameters

ParameterTypeFormatDescription
idinteger Pack ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pack object (OrderProductPack) Pack - items pack, within the one item position, from one warehouse
pack[id] integer ID
pack[purchasePrice] float Purchasing price (in base currency)
pack[quantity] float Item quantity in pack
pack[unit] object (Unit) Unit
pack[unit][code] string Unit symbolic code
pack[unit][name] string Unit name
pack[unit][sym] string Unit short name
pack[store] string Warehouse
pack[item] object (OrderProduct) Order item
pack[item][externalId] string deprecated External ID of order item
pack[item][id] integer ID of order item
pack[item][externalIds][] array of objects (CodeValueModel) External IDs of order item
pack[item][order] object (Order) Order
pack[item][order][id] integer Order ID
pack[item][offer] object (Offer) SKU
pack[item][offer][externalId] string SKU ID in store
pack[item][offer][xmlId] string SKU ID in the warehouse system
pack[shipmentDate] DateTime Pack shipment date
pack[invoiceNumber] string Tax number
pack[deliveryNoteNumber] string Packing list number

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • Pack not found

POST /api/v5/orders/packs/{id}/delete Pack removing

Pack removing

To access the method, the following permission is required order_write.

Deleting the pack for the shipped order is not available.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The pack was successfully deleted
400
  • Error on pack removing

POST /api/v5/orders/packs/{id}/edit Pack editing

Pack editing

To access the method, the following permission is required order_write.

For the shipped order:

Parameters

ParameterTypeFormatDescription
packobject (SerializedOrderProductPack)
pack[purchasePrice]float Purchasing price (in base currency)
pack[quantity]float Item quantity in pack
pack[shipmentDate]DateTime Pack shipment date
pack[invoiceNumber]string Tax number
pack[deliveryNoteNumber]string Packing list number

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Pack ID

HTTP statuses

Status codeDescription
200
  • The pack was successfully changed
400
  • Error on pack editing

Payments

POST /api/v5/payment/check Checking the invoice

Checking the invoice

To access the method, the following permission is required payments_read.

Method allows to check invoice parameters before debiting

Parameters

ParameterTypeFormatDescription
checkobject (ApiCheckRequest) JSON with data for checking
check[invoiceUuid]string{not blank} Invoice UUID in the system
check[amount]float{not blank} Amount
check[currency]string{not blank} Currency code in ISO-4217 format

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
result object (ApiCheckResponseResult) Object with the result of checking
result[success] boolean Result of checking (successful/unsuccessful)
result[errorMsg] string Error message (in case if the checking has failed)

POST /api/v5/payment/create-invoice Creating an invoice

Creating an invoice

To access the method, the following permission is required payments_write.

Method allows to create link to pay for the specified payment

Parameters

ParameterTypeFormatDescription
createInvoiceobject (ApiCreateInvoiceRequest) JSON with invoice data
createInvoice[paymentId]integer{range: {<=2147483647}}{not blank}} Internal ID of the payment
createInvoice[returnUrl]string{url} URL to which the user will be redirected after confirmation or cancellation of the payment

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
result object (ApiCreateInvoiceResponseResult) JSON with data of the created invoice
result[link] string Link to checkout page for buyer

POST /api/v5/payment/invoice/import Import the invoice

Import the invoice

To access the method, the following permission is required payments_write.

The method allows importing an invoice. The fields invoice[status] and invoice[refunds][][status] can only have the value succeeded. If invoice[refunds] is specified, all internal fields (except comment) are required.

Parameters

ParameterTypeFormatDescription
invoiceobject (ApiImportInvoiceRequest) JSON with invoice data
invoice[paymentId]integer{not blank} Internal payment ID
invoice[externalId]string{not blank}{length: {max: 255}}} External payment identifier in the module
invoice[amount]float{not blank} Amount
invoice[currency]string{not blank} Currency code in ISO-4217 format
invoice[status]string{not blank} Status
invoice[createdAt]DateTimeY-m-d H:i:s Creation date and time
invoice[paidAt]DateTimeY-m-d H:i:s Payment date and time
invoice[discountAmount]float Discount
invoice[refunds][]array of objects (ApiImportInvoicePaymentRefund) Refund data
invoice[refunds][][externalId]string External refund identifier in the module
invoice[refunds][][status]string Status
invoice[refunds][][comment]string Comment
invoice[refunds][][amount]float Amount
invoice[refunds][][createdAt]DateTimeY-m-d H:i:s Creation date and time
invoice[refundable]boolean Refund possibility

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
invoice object (PaymentInvoice)
invoice[invoiceUuid] string Invoice UUID

HTTP statuses

Status codeDescription
201
  • The invoice was successfully imported
400
  • Invoice import error

GET /api/v5/payment/invoice/{invoiceUuid} Get the invoice

Get the invoice

To access the method, the following permission is required payments_read.

Parameters

ParameterTypeFormatDescription
invoiceUuidstring Invoice UUID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
invoice object (PaymentInvoice)
invoice[createdAt] DateTime Invoice creation date
invoice[customerId] integer Customer ID
invoice[orderId] integer Order ID
invoice[paymentId] integer Internal payment ID
invoice[amount] string Invoice amount
invoice[currency] string Currency code in the ISO-4217 format
invoice[email] string E-mail
invoice[phone] string Phone number
invoice[status] string Invoice status
invoice[statusMessage] string Invoice status message
invoice[externalId] string Internal ID of payment in the module (UUID)
invoice[invoiceUuid] string Invoice UUID
invoice[invoiceType] string Invoice type
invoice[link] string Link to the payment page for the buyer
invoice[errorMsg] string Error message
invoice[paidAt] DateTime Date and time of payment
invoice[expiredAt] DateTime The date and time before which the invoice with the "waitingForCapture" status will be awaiting confirmation/cancellation
invoice[cancellationDetails] string Details of the cancellation
invoice[refundable] boolean Ability of a refund
invoice[cancellable] boolean Ability to cancel a payment
invoice[refunds][] array of objects (PaymentRefund) Refunds
invoice[refunds][][id] integer Refund ID
invoice[refunds][][status] string Status
invoice[refunds][][externalId] string External ID
invoice[refunds][][comment] string Comment
invoice[refunds][][amount] string Refund amount (in entity currency)
invoice[refunds][][createdAt] DateTime Refund creation date
invoice[discountAmount] string Discount amount (in entity currency)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • Invoice not found

POST /api/v5/payment/update-invoice Changing the invoice

Changing the invoice

To access the method, the following permission is required payments_write.

The method allows you to change the invoice data in the system.

When passing the discount amount updateInvoice[discountAmount], it is necessary to reduce the payment amount updateInvoice[amount] by the corresponding amount. This discount will be added to the order in the system as a One-time discount.

Changing the payment amount updateInvoice[amount] with the specified discount updateInvoice[discountAmount] is only possible when changing the payment status updateInvoice[status] to waitingForCapture or succeeded.

Parameters

ParameterTypeFormatDescription
updateInvoiceobject (ApiUpdateInvoiceRequest) JSON with invoice data
updateInvoice[invoiceUuid]string{not blank} Invoice UUID in the system
updateInvoice[paymentId]string{length: {max: 255}} Internal ID of payment in the module (UUID)
updateInvoice[amount]float Amount payment
updateInvoice[status]string{length: {max: 50}} Code of payment status
updateInvoice[cancellationDetails]string{length: {max: 255}} Reason for payment cancellation
updateInvoice[invoiceUrl]string{url} Link to checkout page for buyer
updateInvoice[paidAt]string{DateTime YYYY-MM-DD HH:MM:SS} Date and time of payment
updateInvoice[expiredAt]string{DateTime YYYY-MM-DD HH:MM:SS} Date and time until which the payment is waiting for confirmation or cancellation (for two-stage payment)
updateInvoice[refund]object (ModuleRefund) JSON with return data
updateInvoice[refund][status]string Return status. Possible values: pending, succeeded, canceled
updateInvoice[refund][id]string Internal return identificator in module
updateInvoice[refund][comment]string Manager comment
updateInvoice[refund][amount]float Amount return
updateInvoice[discountAmount]float Discount amount
updateInvoice[refundable]boolean Parameter of possibility for payment refund
updateInvoice[cancellable]boolean Parameter of possibility for payment cancellation

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["payment"]["actions"]["approve"]} Payment confirmation

Payment confirmation

To confirm the payment at reserving, the system initiates calling POST method specified in configuration integrationModule["integrations"]["payment"]["actions"]["approve"]

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
approveobject (ModuleApiRequest) JSON with request data
approve[paymentId]string Internal ID of payment in the module
approve[amount]float Total amount which will be debited from the customer

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
errorMsg string Error message
errors array Error details array

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["payment"]["actions"]["cancel"]} Payment cancellation

Payment cancellation

To cancel the payment, the system initiates calling POST method specified in configuration integrationModule["integrations"]["payment"]["actions"]["cancel"]

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
cancelobject (ModuleApiRequest) JSON with request data
cancel[paymentId]string Internal ID of payment in the module

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
errorMsg string Error message
errors array Error details array

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["payment"]["actions"]["create"]} Payment creation

Payment creation

To create a payment, the system initiates calling POST method specified in configuration integrationModule["integrations"]["payment"]["actions"]["create"].
For products with the entered marking codes, each product unit will be passed as a separate string in create[items][]

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
createobject (Create) JSON with data for payment creation
create[shopId]string Store ID
create[invoiceUuid]string Invoice ID the (UUID). All requests to API of the system are made via this ID
create[invoiceType]string Invoice type. Possible values: link
create[amount]float Amount in the selected currency
create[currency]string Currency code in ISO-4217 format
create[orderNumber]string Order number
create[orderId]integer Order internal ID
create[siteUrl]string Store URL
create[returnUrl]string URL to which the user will be redirected after confirmation or cancellation of the payment
create[items][]array of objects (Item) Products list
create[items][][name]string Name
create[items][][price]float Price
create[items][][quantity]float Quantity
create[items][][measurementUnit]string Unit of measurement
create[items][][vat]string VAT rate. Possible values: none, vat0, vat10, vat110, vat20, vat120
create[items][][paymentMethod]string Parameter of payment method. Possible values: full_prepayment, advance
create[items][][paymentObject]string Parameter of payment subject. Possible values: commodity, service, payment
create[items][][productCode]string Marking code in hexadecimal notation
create[items][][markingCode]string Marking code
create[items][][offerId]integer SKU ID
create[items][][offerExternalId]string SKU external ID
create[items][][offerXmlId]string SKU ID in the warehouse system
create[customer]object (Customer) Buyer details
create[customer][email]string Email address
create[customer][phone]string Phone number
create[customer][firstName]string First name
create[customer][lastName]string Last name
create[customer][patronymic]string Middle name
create[customer][sex]string Gender, possible values: male, female
create[customer][contragentType]string Counterparty type: individual, legal-entity, enterpreneur
create[customer][legalName]string The full name of the legal entity or enterpreneur, is transferred in the case of fiscalization on the module side for legal entities and enterpreneurs
create[customer][INN]string Customer TIN, is transmitted in the case of fiscalization on the side of the module for legal entities and enterpreneurs

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
errorMsg string Error message
result object (Result) JSON with information about the created payment
result[paymentId] string Internal ID of payment in the module (UUID)
result[invoiceUrl] string Link to checkout page for buyer
result[cancellable] boolean Parameter of possibility for payment cancellation
errors array Error details array

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["payment"]["actions"]["refund"]} Refund

Refund

For refund, the system initiates calling POST method specified in configuration integrationModule["integrations"]["payment"]["actions"]["refund"]

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
refundobject (ModuleApiRequest) JSON with request data
refund[paymentId]string Internal ID of payment in the module

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
errorMsg string Error message
result object (ModuleRefund) JSON with return data
result[status] string Return status. Possible values: pending, succeeded, canceled
result[id] string Internal return identificator in module
result[comment] string Manager comment
result[amount] float Amount return
errors array Error details array

Recommendation

CallbackGET {integrationModule["baseUrl"]}/{integrationModule["integrations"]["recommendation"]["actions"]["recommendation"]} Recommended products request

Recommended products request

To receive a list of recommendations the system initiates a GET method request, which is specified in integrationModule[integrations][recommendation]["actions"]["recommendation"]. The system transmits the product identifiers and the type of requested recommendations.

In response the system expects to receive a list of product identifiers and the field name for identification.

Parameters

ParameterTypeFormatDescription
clientIdstring Client ID in external service
ids[]array of integers Products ID
externalIds[]array of strings Products external ID
modestring Recommendations type: products "Buying with" and products "Analogs". Possible values buying_with, analogs

Response

ParameterTypeDescription
by string field name for product identification. Possible values id, externalId
ids[] array of strings Array with products identifications

Data book

GET /api/v5/reference/cost-groups Getting of the costs groups list

Getting of the costs groups list

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
costGroups[] array of objects (CostGroup) Costs group
costGroups[][code] string Symbolic code of costs group
costGroups[][name] string Costs group name
costGroups[][ordering] integer Ordering
costGroups[][active] boolean Activity
costGroups[][color] string Colour

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/cost-groups/{code}/edit Editing costs groups

Editing costs groups

To access the method, the following permission is required reference_write.

For a new costs group it`s necessary to point name name, character code code and color color.

character code has to be unique color has to be specified in a format #RRGGBB, for example #123ABC.

The list of available colors:

Using this method it`s not possible to change color color or a character code code of system costs groups, the meaning system is true

Parameters

ParameterTypeFormatDescription
costGroupobject (SerializedCostGroup)
costGroup[code]string{not blank}{length: {max: 255}}} Symbolic code of costs group
costGroup[name]string{not blank}{length: {max: 255}}} Costs group name
costGroup[ordering]integer{not blank}{range: {>=0}}} Ordering
costGroup[active]boolean Activity
costGroup[color]string{not blank}{length: {max: 7}}{match: /#[0-9,a-f,A-F]{6}/}[#19976e|#4191ff|#6ce0b9|#8453df|#8a96a6|#bc6b01|#c7cdd4|#ef8e06|#ff8e87|#ffd298]} Colour

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • Data of costs groups are successfully changed
201
  • The new cost group is successfully created
400
  • Error on query execution

GET /api/v5/reference/cost-items Getting of the costs items list

Getting of the costs items list

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
costItems[] array of objects (CostItem) Costs item
costItems[][source] object (SerializedSource) The data about source
costItems[][source][source] string Source
costItems[][source][medium] string Medium
costItems[][source][campaign] string Campaign
costItems[][source][keyword] string Keyword
costItems[][source][content] string Ad content
costItems[][code] string Symbolic code of costs item
costItems[][name] string Costs item name
costItems[][group] string Symbolic code of costs group
costItems[][ordering] integer Ordering
costItems[][active] boolean Activity
costItems[][appliesToOrders] boolean Refers to the costs on orders
costItems[][type] string Cost type
costItems[][appliesToUsers] boolean Refers to the costs on users

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/cost-items/{code}/edit Editing costs items

Editing costs items

To access the method, the following permission is required reference_write.

When creating or editing a cost item, belonging to the cost group for attracting customers in fields costItem[source][...] it`s possible to specify meanings of appropriate tags. These tags will be installed by default for all costs, belonging to this item.

Following meanings are available for specifying the cost item type:

Parameters

ParameterTypeFormatDescription
costItemobject (SerializedCostItem)
costItem[code]string Symbolic code of costs item
costItem[name]string Costs item name
costItem[ordering]integer Ordering
costItem[active]boolean Activity
costItem[appliesToOrders]boolean Refers to the costs on orders
costItem[appliesToUsers]boolean Refers to the costs on users
costItem[group]string Symbolic code of costs group
costItem[source]object (SerializedSource) The data about source
costItem[source][source]string Source
costItem[source][medium]string Medium
costItem[source][campaign]string Campaign
costItem[source][keyword]string Keyword
costItem[source][content]string Ad content
costItem[type]string Cost type

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • Data of costs items are successfully changed
201
  • The new cost item is successfully created
400
  • Error on query execution

GET /api/v5/reference/countries Getting the list of available country codes

Getting the list of available country codes

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
countriesIso[] array of strings List of ISO 3166-1 alpha-2 codes of active countries

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/reference/couriers Getting the list of couriers

Getting the list of couriers

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
couriers[] array of objects (Courier) Courier
couriers[][id] integer Courier ID
couriers[][firstName] string First name
couriers[][lastName] string Last name
couriers[][patronymic] string Middle name
couriers[][active] boolean Activity status
couriers[][email] string E-mail
couriers[][phone] object (CourierPhone) Contact phone
couriers[][phone][number] string Phone number
couriers[][description] string Description

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/couriers/create Courier creation

Courier creation

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
courierobject (SerializedCourier)
courier[firstName]string First name
courier[lastName]string Last name
courier[patronymic]string Middle name
courier[active]boolean Activity status
courier[email]string E-mail
courier[phone]object (CourierPhone) Contact phone
courier[phone][number]string Phone number
courier[description]string Description

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Internal ID of created object

HTTP statuses

Status codeDescription
201
  • The new courier is successfully created
400
  • Error on query execution

POST /api/v5/reference/couriers/{id}/edit Courier editing

Courier editing

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
courierobject (SerializedCourier)
courier[firstName]string First name
courier[lastName]string Last name
courier[patronymic]string Middle name
courier[active]boolean Activity status
courier[email]string E-mail
courier[phone]object (CourierPhone) Contact phone
courier[phone][number]string Phone number
courier[description]string Description

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The courier was successfully changed
400
  • Error on query execution
404
  • Courier not found

GET /api/v5/reference/currencies Getting the list of currencies

Getting the list of currencies

To access the method, the following permission is required reference_read.

The base currency has the currencies[][isBase]=true attribute. All other fields returned refer to the settings of additional currencies.

If the additional currency is in automatic conversion mode currencies[][isAutoConvert]=true, the extra percent value currencies[][autoConvertExtraPercent] is also returned.

If the additional currency is in manual conversion mode currencies[][isAutoConvert]=false, the values of the currency nominal currencies[][manualConvertNominal] and the conversion rate currencies[][manualConvertValue] are also returned.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
currencies[] array of objects (Currency) Currency
currencies[][id] integer ID
currencies[][code] string Currency code
currencies[][isBase] boolean Is base currency
currencies[][isAutoConvert] boolean Auto conversion of the currency
currencies[][autoConvertExtraPercent] integer Extra percent (%) for auto conversion
currencies[][manualConvertNominal] integer Currency nominal for manual conversion
currencies[][manualConvertValue] float Conversion rate for manual conversion

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/currencies/create Currency creation

Currency creation

To access the method, the following permission is required reference_write.

You can only create additional currencies.

Specify the conversion mode in the field currency[isAutoConvert] (true if automatic and false if manual).

The automatic exchange rate is allowed to be set if the base currency belongs to one of the following currencies — Belarusian Ruble, Kazakhstani Tenge, Russian Ruble, and the Central Bank of the corresponding base currency forms the exchange rate of the target currency.

When is the automatic conversion mode you can also specify the amount of the extra percent value currency[autoConvertExtraPercent]. When is the manual conversion mode, you can specify the nominal of the currency currency[manualConvertNominal] and the conversion rate currency[manualConvertValue].

Parameters

ParameterTypeFormatDescription
currencyobject (SerializedCurrency) Currency
currency[code]string{not blank}{length: {min: 3, max: 3}}} Currency code
currency[autoConvertExtraPercent]integer{range: {>=0, <=100}} Extra percent (%) for auto conversion
currency[manualConvertNominal]integer[1|10|100|1000|10000] Currency nominal for manual conversion
currency[manualConvertValue]float Conversion value for manual conversion
currency[isAutoConvert]boolean Auto conversion of the currency

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Internal ID of created object

HTTP statuses

Status codeDescription
201
  • Currency is successfully created
400
  • Error on query execution

POST /api/v5/reference/currencies/{id}/edit Currency editing

Currency editing

To access the method, the following permission is required reference_write.

You can edit both the base and additional currencies, but the composition of the fields differs, which accepted for editing. When you edit the base currency, you can only change the currency itself currency[code]. When you edit additional currencies you can change all other fields except currency[code].

Specify the conversion mode in the field currency[isAutoConvert] (true if automatic and false if manual).

The automatic exchange rate is allowed to be set if the base currency belongs to one of the following currencies — Belarusian Ruble, Kazakhstani Tenge, Russian Ruble, and the Central Bank of the corresponding base currency forms the exchange rate of the target currency.

When is the automatic conversion mode you can also specify the amount of the extra percent value currency[autoConvertExtraPercent]. When is the manual conversion mode, you can specify the nominal of the currency currency[manualConvertNominal] and the conversion rate currency[manualConvertValue].

Parameters

ParameterTypeFormatDescription
currencyobject (SerializedCurrency) Currency
currency[code]string{not blank}{length: {min: 3, max: 3}}} Currency code
currency[autoConvertExtraPercent]integer{range: {>=0, <=100}} Extra percent (%) for auto conversion
currency[manualConvertNominal]integer[1|10|100|1000|10000] Currency nominal for manual conversion
currency[manualConvertValue]float Conversion value for manual conversion
currency[isAutoConvert]boolean Auto conversion of the currency

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • Currency was successfully changed
400
  • Error on query execution
404
  • Currency not found

GET /api/v5/reference/delivery-services Getting the list of delivery services

Getting the list of delivery services

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
deliveryServices[] array of objects (DeliveryService) Delivery service
deliveryServices[][name] string Name
deliveryServices[][code] string Symbolic code
deliveryServices[][active] boolean Activity status

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/delivery-services/{code}/edit Delivery service creation/editing

Delivery service creation/editing

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
deliveryServiceobject (SerializedDeliveryService)
deliveryService[code]string{not blank} Symbolic code
deliveryService[name]string{not blank} Name
deliveryService[deliveryType]string Delivery type
deliveryService[active]boolean Activity status

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The delivery service was successfully changed
201
  • The new delivery service is successfully created
400
  • Error on query execution

GET /api/v5/reference/delivery-types Getting the list of delivery types

Getting the list of delivery types

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
deliveryTypes[] array of objects (DeliveryType) Delivery type
deliveryTypes[][paymentTypes] array deprecated Allowed payment types. Use deliveryPaymentTypes
deliveryTypes[][isDynamicCostCalculation] boolean Dynamic type of calculation of delivery cost
deliveryTypes[][isAutoCostCalculation] boolean Delivery cost is calculated automatically by the delivery service
deliveryTypes[][isAutoNetCostCalculation] boolean Net cost of delivery is calculated automatically by the delivery service
deliveryTypes[][isCostDependsOnRegionAndWeightAndSum] boolean Delivery cost depends on the region, weight and order amount
deliveryTypes[][isCostDependsOnDateTime] boolean Delivery cost depends on the time and day of the week
deliveryTypes[][currency] string Currency
deliveryTypes[][name] string Name
deliveryTypes[][code] string Symbolic code
deliveryTypes[][active] boolean Activity status
deliveryTypes[][defaultCost] double Default cost (in entity currency)
deliveryTypes[][defaultNetCost] double Default net cost (in entity currency)
deliveryTypes[][description] string Comment
deliveryTypes[][deliveryPaymentTypes][] array of objects (DeliveryTypePaymentType) Allowed payment types
deliveryTypes[][deliveryPaymentTypes][][code] string Symbolic code
deliveryTypes[][deliveryPaymentTypes][][cod] boolean Cash on delivery
deliveryTypes[][integrationCode] string Code of integration module
deliveryTypes[][deliveryServices] array Delivery services included in this delivery type
deliveryTypes[][defaultForCrm] boolean Set by default for orders created in system
deliveryTypes[][vatRate] string VAT rate
deliveryTypes[][defaultTariffCode] string Code of a default tariff
deliveryTypes[][defaultTariffType] string Type of a default tariff
deliveryTypes[][defaultTariffName] string Name of a default tariff
deliveryTypes[][sites] array Stores which the delivery type is available in for. The delivery type is available for all stores if array is empty

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/delivery-types/{code}/edit Delivery type creation/editing

Delivery type creation/editing

To access the method, the following permission is required reference_write.

For new delivery type it is necessary to specify the name name and symbolic code code. The symbolic code must be unique.

In the field integrationCode you may specify the code of that integrated delivery service, which was activated in the system. Otherwise there will be an error message.

Parameters

ParameterTypeFormatDescription
deliveryTypeobject (SerializedDeliveryType)
deliveryType[name]string{not blank}{length: {max: 255}}} Name
deliveryType[code]string{length: {max: 255}} Symbolic code
deliveryType[defaultCost]double{not blank}{range: {>=0}}} Default cost (in entity currency)
deliveryType[defaultNetCost]double{not blank}{range: {>=0}}} Default net cost (in entity currency)
deliveryType[sites]array Store codes array which the delivery type is available for
deliveryType[integrationModule]string
deliveryType[regionWeightCostConditions]string
deliveryType[vatRate]string VAT rate
deliveryType[defaultTariffCode]string Code of a default tariff
deliveryType[defaultTariffType]string Type of a default tariff
deliveryType[defaultTariffName]string Name of a default tariff
deliveryType[paymentTypes]arraydeprecated Allowed payment types. Use deliveryPaymentTypes
deliveryType[active]boolean Activity status
deliveryType[description]string Comment
deliveryType[defaultForCrm]boolean Set by default for orders created in system
deliveryType[integrationCode]string Code of integration module
deliveryType[deliveryServices]array Delivery services included in this delivery type

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The delivery type was successfully changed
201
  • The new delivery type is successfully created
400
  • Error on query execution

POST /api/v5/reference/legal-entities/{code}/edit Editing of information on legal entity

Editing of information on legal entity

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
legalEntityobject (SerializedLegalEntity)
legalEntity[contragentType]string Legal entity type
legalEntity[legalName]string Legal name
legalEntity[legalAddress]string Registration address
legalEntity[INN]string TIN
legalEntity[OKPO]string RNNBO
legalEntity[KPP]string IECC
legalEntity[OGRN]string PSRN
legalEntity[OGRNIP]string PSRN of Individual entrepreneur
legalEntity[certificateNumber]string Certificate number
legalEntity[certificateDate]DateTime Certificate date
legalEntity[BIK]string RCBIC
legalEntity[bank]string Bank
legalEntity[bankAddress]string Bank address
legalEntity[corrAccount]string Corresponding account
legalEntity[bankAccount]string Settlement account
legalEntity[code]string Symbolic code
legalEntity[countryIso]string Country
legalEntity[vatRate]string VAT rate

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The legal entity information was successfully changed
201
  • The new legal entity successfully created
400
  • Error on query execution

GET /api/v5/reference/mg-channels Getting a list of MessageGateway channels

Getting a list of MessageGateway channels

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
mgChannels[] array of objects (MGChannel) MessageGateway channel
mgChannels[][allowedSendByPhone] custom handler result for (bool) Whether it is possible to be the first to write in this channel by phone number
mgChannels[][id] integer ID of the channel
mgChannels[][externalId] integer External ID of the channel
mgChannels[][type] string Channel type
mgChannels[][active] boolean Channel activity
mgChannels[][name] string Channel name

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/reference/order-methods Getting the list of order methods

Getting the list of order methods

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
orderMethods[] array of objects (OrderMethod) Order method
orderMethods[][name] string Name
orderMethods[][code] string Symbolic code
orderMethods[][active] boolean Activity status
orderMethods[][defaultForCrm] boolean Set by default for orders created in system
orderMethods[][defaultForApi] boolean Set by default for orders received through API

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/order-methods/{code}/edit Order method creation/editing

Order method creation/editing

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
orderMethodobject (SerializedOrderMethod)
orderMethod[name]string{not blank}{length: {max: 255}}} Name
orderMethod[code]string{length: {max: 255}} Symbolic code
orderMethod[active]boolean Activity status
orderMethod[defaultForCrm]boolean Set by default for orders created in system
orderMethod[defaultForApi]boolean Set by default for orders received through API

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The order method was successfully changed
201
  • The new order method is successfully created
400
  • Error on query execution

GET /api/v5/reference/order-types Getting the list of order types

Getting the list of order types

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
orderTypes[] array of objects (OrderType) Order type
orderTypes[][name] string Name
orderTypes[][code] string Symbolic code
orderTypes[][active] boolean Activity status
orderTypes[][defaultForCrm] boolean Set by default for orders created in system
orderTypes[][defaultForApi] boolean Set by default for orders received through API
orderTypes[][ordering] integer Ordering

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/order-types/{code}/edit Order type creation/editing

Order type creation/editing

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
orderTypeobject (SerializedOrderType)
orderType[name]string{not blank}{length: {max: 255}}} Name
orderType[code]string{length: {max: 255}} Symbolic code
orderType[ordering]integer{not blank}{range: {>=0}}} Ordering
orderType[active]boolean Activity status
orderType[defaultForCrm]boolean Set by default for orders created in system
orderType[defaultForApi]boolean Set by default for orders received through API

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The order type was successfully changed
201
  • The new order type is successfully created
400
  • Error on query execution

GET /api/v5/reference/payment-statuses Getting the list of payment statuses

Getting the list of payment statuses

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
paymentStatuses[] array of objects (PaymentStatus) Payment status
paymentStatuses[][name] string Name
paymentStatuses[][code] string Symbolic code
paymentStatuses[][active] boolean Activity status
paymentStatuses[][defaultForCrm] boolean Set by default for orders created in system
paymentStatuses[][defaultForApi] boolean Set by default for orders received through API
paymentStatuses[][paymentComplete] boolean The sigh that order is paid
paymentStatuses[][ordering] integer Ordering
paymentStatuses[][description] string Comment
paymentStatuses[][paymentTypes] array Payment types, in which this payment status is used

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/payment-statuses/{code}/edit Payment status creation/editing

Payment status creation/editing

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
paymentStatusobject (SerializedPaymentStatus)
paymentStatus[name]string{not blank}{length: {max: 255}}} Name
paymentStatus[code]string{length: {max: 255}} Symbolic code
paymentStatus[ordering]integer{not blank}{range: {>=0}}} Ordering
paymentStatus[active]boolean Activity status
paymentStatus[defaultForCrm]boolean Set by default for orders created in system
paymentStatus[defaultForApi]boolean Set by default for orders received through API
paymentStatus[paymentComplete]boolean The sigh that order is paid
paymentStatus[description]string Comment

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The payment status was successfully changed
201
  • The new payment status is successfully created
400
  • Error on query execution

GET /api/v5/reference/payment-types Getting the list of payment types

Getting the list of payment types

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
paymentTypes[] array of objects (PaymentType) Payment type
paymentTypes[][name] string Name
paymentTypes[][code] string Symbolic code
paymentTypes[][active] boolean Activity status
paymentTypes[][defaultForCrm] boolean Set by default for orders created in system
paymentTypes[][defaultForApi] boolean Set by default for orders received through API
paymentTypes[][description] string Comment
paymentTypes[][deliveryTypes] array Compatible delivery types
paymentTypes[][paymentStatuses] array Array of identifiers of compatible payment statuses
paymentTypes[][integrationModule] object (IntegrationModule) Integration module
paymentTypes[][integrationModule][active] boolean Activity status
paymentTypes[][integrationModule][name] string Name (required if module is not publicated in markeplace)
paymentTypes[][integrationModule][logo] string Link to svg logotype (required if module is not publicated in markeplace)
paymentTypes[][sites] array Stores which the payment type is available in for. The payment type is available for all stores if array is empty

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/payment-types/{code}/edit Payment type creation/editing

Payment type creation/editing

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
paymentTypeobject (SerializedPaymentType)
paymentType[name]string{not blank}{length: {max: 255}}} Name
paymentType[code]string{length: {max: 255}} Symbolic code
paymentType[sites]array Store codes array which the payment type is available for
paymentType[active]boolean Activity status
paymentType[defaultForCrm]boolean Set by default for orders created in system
paymentType[defaultForApi]boolean Set by default for orders received through API
paymentType[description]string Comment
paymentType[paymentStatuses]array Array of identifiers of compatible payment statuses

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The payment type was successfully changed
201
  • The new payment type is successfully created
400
  • Error on query execution

GET /api/v5/reference/price-types Getting the list of price types

Getting the list of price types

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
priceTypes[] array of objects (PriceType) Price type
priceTypes[][id] integer Price type ID
priceTypes[][code] string Symbolic code
priceTypes[][name] string Name
priceTypes[][active] boolean Activity
priceTypes[][promo] boolean Promotional price
priceTypes[][default] boolean Price type is used by default
priceTypes[][description] string Description
priceTypes[][filterExpression] string Filter
priceTypes[][geo][] array of objects (GeoHierarchyRow) Regional restrictions
priceTypes[][geo][][country] string Country ISO
priceTypes[][geo][][regionId] string Region ID in Geohelper
priceTypes[][geo][][region] string Region
priceTypes[][geo][][cityId] string City ID in Geohelper
priceTypes[][geo][][city] string City
priceTypes[][groups] array User groups
priceTypes[][ordering] integer Ordering
priceTypes[][currency] string Currency

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/price-types/{code}/edit Price type creation/editing

Price type creation/editing

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
priceTypeobject (SerializedPriceType)
priceType[code]string Symbolic code
priceType[name]string Name
priceType[active]boolean Activity
priceType[promo]boolean Promotional price
priceType[description]string Description
priceType[filterExpression]string Filter
priceType[ordering]integer Ordering
priceType[geo][]array of objects (GeoHierarchyRow) Regional restrictions
priceType[geo][][country]string Country ISO
priceType[geo][][regionId]string Region ID in Geohelper
priceType[geo][][cityId]string City ID in Geohelper
priceType[groups]array User groups
priceType[currency]string Currency

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The warehouse information was successfully changed
201
  • The new warehouse is successfully created
400
  • Error on query execution

GET /api/v5/reference/product-statuses Getting the list of item statuses in order

Getting the list of item statuses in order

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
productStatuses[] array of objects (OrderProductStatus) Item status in order
productStatuses[][code] string Symbolic code
productStatuses[][ordering] integer Ordering
productStatuses[][active] boolean Activity status
productStatuses[][createdAt] DateTime Creation date
productStatuses[][orderStatusByProductStatus] string Order status, which is set, if all items has this status
productStatuses[][orderStatusForProductStatus] string Order status, in which the item status is changed to this
productStatuses[][cancelStatus] boolean Is cancellation status
productStatuses[][name] string Name

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/product-statuses/{code}/edit Item status creation/editing

Item status creation/editing

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
productStatusobject (SerializedOrderProductStatus)
productStatus[name]string{not blank}{length: {max: 255}}} Name
productStatus[code]string Symbolic code
productStatus[type]choice[product-status-type-cancel] Payment type
productStatus[ordering]integer Ordering
productStatus[active]boolean Activity status
productStatus[cancelStatus]boolean Is cancellation status
productStatus[orderStatusByProductStatus]string Order status, which is set, if all items has this status
productStatus[orderStatusForProductStatus]string Order status, in which the item status is changed to this

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The item status was successfully changed
201
  • The new item status is successfully created
400
  • Error on query execution

GET /api/v5/reference/sites Getting the stores list

Getting the stores list

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
sites[] array of objects (Site) Store
sites[][catalogId] string Catalog ID
sites[][isCatalogMainSite] boolean Main store of catalog
sites[][isDemo] boolean Store with demo data
sites[][id] integer ID
sites[][name] string Name
sites[][url] string Store URL
sites[][code] string Store symbolic code
sites[][description] string Comment
sites[][phones] string Store phones
sites[][address] string Store address
sites[][zip] string Zip code
sites[][defaultForCrm] boolean Set by default for orders created in system
sites[][ymlUrl] string YML URL
sites[][loadFromYml] boolean Upload the catalog of this store from YML/ICML or not
sites[][catalogUpdatedAt] DateTime Date/time of the last successful YML/ICML uploading
sites[][catalogLoadingAt] DateTime Date/time of the last YML/ICML uploading
sites[][ordering] integer Ordering
sites[][contragent] object (LegalEntity) Legal entity
sites[][contragent][contragentType] string Legal entity type
sites[][contragent][legalName] string Legal name
sites[][contragent][legalAddress] string Registration address
sites[][contragent][INN] string TIN
sites[][contragent][OKPO] string RNNBO
sites[][contragent][KPP] string IECC
sites[][contragent][OGRN] string PSRN
sites[][contragent][OGRNIP] string PSRN of Individual entrepreneur
sites[][contragent][certificateNumber] string Certificate number
sites[][contragent][certificateDate] DateTime Certificate date
sites[][contragent][BIK] string RCBIC
sites[][contragent][bank] string Bank
sites[][contragent][bankAddress] string Bank address
sites[][contragent][corrAccount] string Corresponding account
sites[][contragent][bankAccount] string Settlement account
sites[][contragent][code] string Symbolic code
sites[][contragent][countryIso] string Country
sites[][contragent][vatRate] string VAT rate
sites[][countryIso] string Country ISO code
sites[][currency] string Currency
sites[][senderEmail] string Sender e-mail for the store
sites[][senderName] string Sender name
sites[][usedInSimlaweb] boolean Linked the store with Simlaweb or not

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/sites/{code}/edit Store creation/editing

Store creation/editing

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
siteobject (SerializedSite)
site[name]string{not blank}{length: {max: 255}}} Name
site[url]string{url}{length: {max: 255}}} Store URL
site[code]string{length: {max: 255}} Store symbolic code
site[description]string{length: {max: 3000}} Comment
site[phones]string{length: {max: 255}} Store phones
site[address]string{length: {max: 255}} Store address
site[zip]string{length: {max: 255}} Zip code
site[ymlUrl]string{length: {max: 1000}} YML URL
site[defaultForCrm]boolean Set by default for orders created in system
site[loadFromYml]boolean Upload the catalog of this store from YML/ICML or not
site[countryIso]string Country ISO code
site[contragentCode]string Symbolic code of legal entity
site[currency]string Currency

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Internal ID of created object

HTTP statuses

Status codeDescription
200
  • The store was successfully changed
201
  • The new store is successfully created
400
  • Error on query execution

GET /api/v5/reference/status-groups Getting the list of order status groups

Getting the list of order status groups

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
statusGroups[] array of objects (StatusGroup) Status group
statusGroups[][name] string Name
statusGroups[][code] string Symbolic code
statusGroups[][active] boolean Activity status
statusGroups[][ordering] integer Ordering
statusGroups[][process] boolean Is the order processing status or not
statusGroups[][statuses] array Orders statuses included in this group

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/reference/statuses Getting the list of order statuses

Getting the list of order statuses

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
statuses[] array of objects (Status) Order status
statuses[][name] string Name
statuses[][code] string Symbolic code
statuses[][active] boolean Activity status
statuses[][ordering] integer Ordering
statuses[][group] string Status group, which contains this status

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/statuses/{code}/edit Order status creation/editing

Order status creation/editing

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
statusobject (SerializedStatus)
status[name]string{not blank}{length: {max: 255}}} Name
status[code]string{length: {max: 255}} Symbolic code
status[ordering]integer{not blank}{range: {>=0}}} Ordering
status[group]string{not blank} Status group, which contains this status
status[active]boolean Activity status

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The order status was successfully changed
201
  • The new order status is successfully created
400
  • Error on query execution

GET /api/v5/reference/stores Getting the list of warehouses

Getting the list of warehouses

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
stores[] array of objects (Store) Warehouse
stores[][externalId] string External ID
stores[][xmlId] string 1C identifier
stores[][description] string Warehouse description
stores[][email] string Warehouse email
stores[][type] string Warehouse type
stores[][inventoryType] string Type of warehouse stock
stores[][address] object (StoreAddress) Warehouse address
stores[][address][index] string Postal code
stores[][address][countryIso] string Country ISO code
stores[][address][region] string Region
stores[][address][regionId] integer Region ID in Geohelper
stores[][address][city] string City
stores[][address][cityId] integer City ID in Geohelper
stores[][address][cityType] string Locality type
stores[][address][street] string Street
stores[][address][streetId] integer Street ID in Geohelper
stores[][address][streetType] string Street type
stores[][address][building] string Building
stores[][address][flat] string Flat/office
stores[][address][floor] integer Floor
stores[][address][block] integer Entrance
stores[][address][house] string House
stores[][address][housing] string Housing
stores[][address][metro] string Underground
stores[][address][notes] string Notes to address
stores[][address][text] string Address as string
stores[][address][coordinates] object (Point) Coordinates
stores[][address][coordinates][latitude] float Latitude
stores[][address][coordinates][longitude] float Longitude
stores[][active] boolean Activity status
stores[][ordering] string Ordering
stores[][phone] object (StorePhone) Warehouse phone
stores[][phone][number] string Phone number
stores[][contact] string Contact person at the warehouse
stores[][code] string Symbolic code
stores[][workTime] object (SerializedStoreWeekOpeningHours) Warehouse working hours
stores[][workTime][mo][] array of objects (StoreWorkTime) Working hours at Monday
stores[][workTime][mo][][startTime] string Start of the warehouse work time interval (in H:i format)
stores[][workTime][mo][][endTime] string End of the warehouse work time interval (in H:i format)
stores[][workTime][mo][][lunchStartTime] string Start of the lunch time interval (in H:i format)
stores[][workTime][mo][][lunchEndTime] string End of the lunch time interval (in H:i format)
stores[][workTime][tu][] array of objects (StoreWorkTime) Working hours at Tuesday
stores[][workTime][we][] array of objects (StoreWorkTime) Working hours at Wednesday
stores[][workTime][th][] array of objects (StoreWorkTime) Working hours at Thursday
stores[][workTime][fr][] array of objects (StoreWorkTime) Working hours at Friday
stores[][workTime][sa][] array of objects (StoreWorkTime) Working hours at Saturday
stores[][workTime][su][] array of objects (StoreWorkTime) Working hours at Sunday
stores[][name] string Name

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/stores/{code}/edit Creation/editing of information on warehouse

Creation/editing of information on warehouse

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
storeobject (SerializedStore)
store[name]string{not blank}{length: {max: 255}}} Name
store[email]string{length: {max: 255}} Warehouse email
store[type]string[store-type-online|store-type-retail|store-type-supplier|store-type-warehouse] Warehouse type
store[inventoryType]string[available|integer] Type of warehouse stock
store[address]object (StoreAddress) Warehouse address
store[address][index]string Postal code
store[address][countryIso]string Country ISO code
store[address][region]string Region
store[address][regionId]integer Region ID in Geohelper
store[address][city]string City
store[address][cityId]integer City ID in Geohelper
store[address][cityType]string Locality type
store[address][street]string Street
store[address][streetId]integer Street ID in Geohelper
store[address][streetType]string Street type
store[address][building]string Building
store[address][flat]string Flat/office
store[address][floor]integer Floor
store[address][block]integer Entrance
store[address][house]string House
store[address][housing]string Housing
store[address][metro]string Underground
store[address][notes]string Notes to address
store[address][text]string Address as string
store[address][coordinates]object (Point) Coordinates
store[address][coordinates][latitude]float Latitude
store[address][coordinates][longitude]float Longitude
store[phone]object (StorePhone) Warehouse phone
store[phone][number]string Phone number
store[externalId]string External ID
store[xmlId]string 1C identifier
store[description]string Warehouse description
store[active]boolean Activity status
store[code]string Symbolic code
store[workTime]object (SerializedStoreWeekOpeningHours) Warehouse working hours
store[workTime][mo][]array of objects (StoreWorkTime) Working hours at Monday
store[workTime][mo][][startTime]string Start of the warehouse work time interval (in H:i format)
store[workTime][mo][][endTime]string End of the warehouse work time interval (in H:i format)
store[workTime][mo][][lunchStartTime]string Start of the lunch time interval (in H:i format)
store[workTime][mo][][lunchEndTime]string End of the lunch time interval (in H:i format)
store[workTime][tu][]array of objects (StoreWorkTime) Working hours at Tuesday
store[workTime][we][]array of objects (StoreWorkTime) Working hours at Wednesday
store[workTime][th][]array of objects (StoreWorkTime) Working hours at Thursday
store[workTime][fr][]array of objects (StoreWorkTime) Working hours at Friday
store[workTime][sa][]array of objects (StoreWorkTime) Working hours at Saturday
store[workTime][su][]array of objects (StoreWorkTime) Working hours at Sunday

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The warehouse information was successfully changed
201
  • The new warehouse is successfully created
400
  • Error on query execution

GET /api/v5/reference/units Getting the list of units

Getting the list of units

To access the method, the following permission is required reference_read.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
units[] array of objects (SerializedUnit)
units[][code] string Unit symbolic code
units[][name] string Unit name
units[][sym] string Unit short name
units[][default] boolean Set by default for items created in system
units[][active] boolean Activity status

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/reference/units/{code}/edit Unit creation/edition

Unit creation/edition

To access the method, the following permission is required reference_write.

Parameters

ParameterTypeFormatDescription
unitobject (SerializedUnit)
unit[code]string{length: {max: 255}} Unit symbolic code
unit[name]string{not blank}{length: {max: 255}}} Unit name
unit[sym]string{not blank}{length: {max: 5}}} Unit short name
unit[default]boolean Set by default for items created in system
unit[active]boolean Activity status

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
201
  • Unit has been created
400
  • Error on query execution

Segments

GET /api/v5/segments Getting the list of customer segments

Getting the list of customer segments

To access the method, the following permission is required segment_read.

The result is returned page by page. In the field pagination there is information on pagination.

One of two values can be specified in filter[type]:

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (SegmentFilterData)
filter[ids][]array of integers Array of segments ID
filter[name]string{length: {max: 255}} Segment name
filter[isTree]boolean
filter[active]boolean Activity
filter[dateFrom]DateTimeY-m-d Creation date (from)
filter[dateTo]DateTimeY-m-d Creation date (to)
filter[minCustomersCount]integer Number of customers (from)
filter[maxCustomersCount]integer Number of customers (to)
filter[type]choice[dynamic|static] Segment type

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
segments[] array of objects (Segment) Segment
segments[][id] integer Internal ID of segment
segments[][code] string Symbolic code
segments[][name] string Segment name
segments[][createdAt] DateTime Segment creation date
segments[][isDynamic] boolean Is this segment dynamic
segments[][customersCount] integer Customer quantity in segment
segments[][active] boolean Activity state of segment

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

Settings

GET /api/v5/settings Getting system settings

Getting system settings

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
settings object (Settings) System settings
settings[default_currency] object (Value) deprecated Default currency
settings[default_currency][value] string Setting value
settings[default_currency][updated_at] DateTime Date and time when the setting was last changed
settings[system_language] object (Value) System language
settings[system_language][value] string Setting value
settings[system_language][updated_at] DateTime Date and time when the setting was last changed
settings[timezone] object (Value) Time zone
settings[timezone][value] string Setting value
settings[timezone][updated_at] DateTime Date and time when the setting was last changed
settings[work_times][] array of objects (WorkTime) Working hours
settings[work_times][][day_type] string Day of the week
settings[work_times][][start_time] string Start of working hours
settings[work_times][][end_time] string End of working hours
settings[work_times][][lunch_start_time] string Time when lunch starts
settings[work_times][][lunch_end_time] string Time when lunch ends
settings[non_working_days][] array of objects (NonWorkingDay) Non-working days
settings[non_working_days][][start_date] DateTime Start of non-working days
settings[non_working_days][][end_date] DateTime End of non-working days
settings[mg] object (IntegrationData) Chat settings
settings[mg][order_creation] object (OrderCreationSettings) Parameters that will be automatically specified in the order when registering from chats
settings[mg][order_creation][default] object (ChannelSetting) Default parameters
settings[mg][order_creation][default][site] string Store
settings[mg][order_creation][default][order_type] string Order type
settings[mg][order_creation][default][order_method] string Method
settings[mg][order_creation][channels][] array of objects (ChannelSetting) Parameters for individual channels (key - channel externalId)
settings[mg][order_creation][channels][][site] string Store
settings[mg][order_creation][channels][][order_type] string Order type
settings[mg][order_creation][channels][][order_method] string Method

HTTP statuses

Status codeDescription
200
  • The query was successfully executed

Store

GET /api/v5/store/inventories Getting the leftover stocks and purchasing prices

Getting the leftover stocks and purchasing prices

To access the method, the following permission is required store_read.

The method allows to receive information about the stock balance and cost price of the SKUs. If the parameter filter[details]=1 is specified, the detailed elaboration of the stock balance and cost price will be returned. The data is returned by the stores, to which the used API key has the access, or by the certain store, if the parameter filter[sites][]=site-code is specified.

By default the information about both enabled and disabled products and SKUs is returned. To receive the information only about enabled products and SKUs, use the parameters filter[productActive]=1 and filter[offerActive]=1.

The field offers[][site] is returned only if the data is returned by the several stores.

Parameters

ParameterTypeFormatDescription
limitchoice{not blank}[20|50|100|250]}
pagestring{not blank}{range: {>=1}}}
filterobject (InventoryAlternativeFilterData)
filter[ids][]array of integers Array of SKU's ID
filter[sites][]array of strings Stores
filter[catalogs][]array of integers Array of catalog's ID
filter[productExternalId]string{length: {max: 255}} Product external ID
filter[productArticle][]array of strings Array of product articles
filter[productActive]boolean Return the stock balance only for active products
filter[offerExternalId][]array of strings Array of external IDs for SKUs
filter[offerXmlId][]array of strings Array of XML IDs for SKUs
filter[offerArticle][]array of strings Array of articles for SKUs
filter[offerActive]boolean Return the stock balance only for active SKUs
filter[details]boolean Return the details for stock balance

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
offers[] array of objects (Offer) SKU
offers[][id] integer SKU ID
offers[][externalId] string SKU ID in store
offers[][xmlId] string SKU ID in the warehouse system
offers[][site] string deprecated Store. Use getCatalog()
offers[][purchasePrice] double SKU purchasing price (in base currency)
offers[][quantity] float Available quantity
offers[][stores][] array of objects (Inventory) Leftover stock by warehouses
offers[][stores][][quantity] float Quantity
offers[][stores][][purchasePrice] double Purchasing price (in base currency)
offers[][stores][][store] string Warehouse

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/store/inventories/upload Updating the leftover stocks and purchasing prices

Updating the leftover stocks and purchasing prices

To access the method, the following permission is required store_write.

The method allows to update the leftover stock and purchase prices by warehouses for SKUs. Per one query it is possible to update up to 250 SKUs. In one SKU it is possible to specify stocks up to 500 warehouses.

Field offers[][stores][][available] may be integer or fractional. Using actual stock accounting, 0 should be transmitted - in case of item absence at the warehouse, and 1 - in case of presence.

Each SKU should have at least one of three parameters: id, xmlId or externalId. If several or all above-mentioned parameters are specified, the search is made, first of all, by id, then by xmlId and then by externalId.

If the SKU relates to a service, the transmitted data will be ignored.

If found several items with the specified xmlId, then the stocks will be changed for all of them.

Parameters

ParameterTypeFormatDescription
offers[]array of objects (SerializedOffer)
offers[][id]integer SKU ID
offers[][externalId]string SKU ID in store
offers[][xmlId]string SKU ID in the warehouse system
offers[][stores][]array of objects (SerializedStore)
offers[][stores][][code]string Symbolic code
offers[][stores][][available]float Quantity of available items or the fact of availability
offers[][stores][][purchasePrice]float Purchasing price
sitestring Symbolic code of store. Specified in case of SKUs identification by externalId

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
processedOffersCount integer Quantity of successfully processed SKUs
notFoundOffers[] array of objects (Offer) SKU
notFoundOffers[][id] integer SKU ID
notFoundOffers[][externalId] string SKU ID in store
notFoundOffers[][xmlId] string SKU ID in the warehouse system

HTTP statuses

Status codeDescription
200
  • The stocks are uploaded
400
  • Error on leftover stocks uploading, or the current system settings don't allow to edit stocks

GET /api/v5/store/offers Getting a list of offers that meet the specified filter

Getting a list of offers that meet the specified filter

The method allows you to get information about offers. Data is returned by stores accessible to the used API key, or by a specific store if the parameter filter[sites][]=site-code is specified.

By default, information is returned for both active and inactive offers. To get information only for active offers, use the parameter filter[active].

Filters filter[minPrice], filter[maxPrice] filter products by the prices of offers converted to the base currency. If, along with these filters, you specify a filter by price type filter[priceType] (to which you need to pass a symbolic code of the price type) then filtering will be carried out by the prices of offers of this price type and in the currency of this price type.

The filter filter[properties][] allows you to get products by their properties. The filter must be specified in the format filter[properties][property_code_1]=value_1&filter[properties][property_code_2]=value_2.

When passing group identifiers in the filter[groups][] parameter, offers related to products or services from the specified groups, as well as all their subgroups, will be returned.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (OfferFilterData)
filter[ids][]array of integers Array of offer IDs
filter[externalIds][]array of strings Array of external IDs
filter[xmlIds][]array of strings Array of XML IDs
filter[name]string{length: {max: 255}} Name/article of the product or article/barcode of the offer
filter[sites][]array of strings Array of store codes
filter[catalogs][]array of integers Array of catalog IDs
filter[groups][]array of integers Array of product or service group IDs
filter[priceType]string Price type
filter[active]boolean[|1] Activity
filter[properties][]array Offer properties
filter[sinceId]custom handler result for (int){range: {>=0, <=2147483647}} Starting with the offer ID
filter[minPrice]integer Offer price (from)
filter[maxPrice]integer Offer price (to)
filter[minQuantity]integer Offer quantity (from)
filter[maxQuantity]integer Offer quantity (to)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
offers[] array of objects (Offer) SKU
offers[][images][] array of strings Images URL
offers[][id] integer SKU ID
offers[][externalId] string SKU ID in store
offers[][xmlId] string SKU ID in the warehouse system
offers[][site] string deprecated Store. Use getCatalog()
offers[][name] string Name
offers[][article] string Vendor code
offers[][prices][] array of objects (OfferPrice) Available prices
offers[][prices][][priceType] string Price type
offers[][prices][][currency] string Currency
offers[][prices][][price] double Price (in entity currency)
offers[][prices][][ordering] integer Ordering
offers[][purchasePrice] double SKU purchasing price (in base currency)
offers[][vatRate] string VAT rate
offers[][product] object (Product) Item, which refers to SKU
offers[][product][type] string Type (product product or service service)
offers[][product][minPrice] double Minimum item price (in base currency)
offers[][product][maxPrice] double Maximum item price (in base currency)
offers[][product][catalogId] custom handler result for (int) Catalog ID
offers[][product][id] integer Product ID
offers[][product][article] string Vendor code
offers[][product][name] string Name
offers[][product][url] string Link to item page in the web-store
offers[][product][imageUrl] string Image URL
offers[][product][description] string Description
offers[][product][popular] boolean Mark Sales leader
offers[][product][stock] boolean Mark Best price
offers[][product][novelty] boolean Mark New
offers[][product][recommended] boolean Mark Recommended
offers[][product][options] array Array of item options
offers[][product][groups][] array of objects (ProductGroup) Item groups, which contains this item
offers[][product][groups][][id] integer ID
offers[][product][groups][][externalId] string Item group external ID
offers[][product][externalId] string Item external ID
offers[][product][manufacturer] string Manufacturer
offers[][product][updatedAt] DateTime Date of editing the product in the system
offers[][product][active] boolean Activity
offers[][product][quantity] double Quantity
offers[][product][markable] boolean Subject to marking
offers[][properties] array SKU properties
offers[][quantity] float Available quantity
offers[][weight] double Weight
offers[][length] double Length
offers[][width] double Width
offers[][height] double Height
offers[][active] boolean Activity
offers[][unit] object (Unit) Unit
offers[][unit][code] string Unit symbolic code
offers[][unit][name] string Unit name
offers[][unit][sym] string Unit short name
offers[][barcode] string Barcode

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/store/prices/upload SKU prices updating

SKU prices updating

To access the method, the following permission is required store_write.

You may specify summarily up to 250 prices by one request.

Parameters

ParameterTypeFormatDescription
prices[]array of objects (PriceUploadInput)
prices[][externalId]string SKU ID in the store
prices[][xmlId]string SKU ID in the warehouse system
prices[][id]integer SKU ID
prices[][site]string Store code, required when SKU externalId is specified
prices[][prices][]array of objects (PriceUploadPricesInput) SKU price
prices[][prices][][code]string Price type code
prices[][prices][][price]float Price
prices[][prices][][remove]boolean Remove price

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
processedOffersCount integer Quantity of successfully processed SKUs
notFoundOffers[] array of objects (PriceUploadNotFoundResponse) List of unprocessed SKUs
notFoundOffers[][id] string
notFoundOffers[][externalId] string ID of unprocessed SKU in the store
notFoundOffers[][xmlId] string ID of unprocessed SKU in the warehouse system

HTTP statuses

Status codeDescription
200
  • The prices are uploaded
400
  • Error on prices uploading, or the array is too large

GET /api/v5/store/product-groups Getting the list of product groups

Getting the list of product groups

To access the method, the following permission is required store_read.

The method allows to receive information about product groups. The data is returned by the stores, to which the used API key has the access, or by the certain stores, if the parameter filter[sites][]=site-code is specified.

By default the information about both enabled and disabled product groups is returned. To receive the information only about enabled product groups use the parameter filter[active].

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (ProductGroupFilterData)
filter[ids][]array of integers Array of product groups ID
filter[sites][]array of strings Stores
filter[catalogs][]array of integers Array of catalog's ID
filter[active]boolean Activity
filter[parentGroupId]integer{range: {>=0, <=100000000000}} ID of parent group
filter[loadFromYml]boolean Catalog loaded from ICML file
filter[minLevel]integer Minimum nesting level
filter[maxLevel]integer Maximum nesting level

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
productGroup[] array of objects (ProductGroup) Item group
productGroup[][parentId] integer Parental group ID
productGroup[][site] string Store
productGroup[][id] integer ID
productGroup[][name] string Name
productGroup[][lvl] custom handler result for (int) Nesting level
productGroup[][externalId] string Item group external ID
productGroup[][active] boolean Activity

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/store/product-groups/create Adding a product group

Adding a product group

To access the method, the following permission is required store_write.

This method allows to create product groups. If successful, the internal ID of the created product group is returned.

To set the store, it is required to specify the store code in the productGroup[site] parameter. The active store will be searched by code.

To set the parent product group, specify one of the following parameters: productGroup[parentId] or productGroup[parentExternalId]. The active product group will be searched, first of all, by the productGroup[parentId] parameter, then by productGroup[parentExternalId] and productGroup[site].

If the productGroup[active] parameter isn't specified, the default value - true will be set.

Parameters

ParameterTypeFormatDescription
productGroupobject (SerializedProductGroup)
productGroup[parentId]integer Parental group ID
productGroup[name]string Name
productGroup[description]string Description
productGroup[externalId]string Item group external ID
productGroup[active]boolean Activity
productGroup[parentExternalId]string External ID of the parent product group
productGroup[site]string Store code

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Internal ID of the created product group

HTTP statuses

Status codeDescription
201
  • Product group created successfully
400
  • An error occurred when creating a product group

POST /api/v5/store/product-groups/{externalId}/edit Editing a product group

Editing a product group

To access the method, the following permission is required store_write.

This method allows to make changes to product groups. If successful, the internal ID of the modified product group is returned.

The product group can be searched both by external ID (externalId) and internal ID (id) - just specify the corresponding value in the by parameter (by default, externalId). To search by external ID, you should pass the site parameter.

Parameters

ParameterTypeFormatDescription
bystring You should specify what is passed in the externalId parameter: internal (by=id) or external (by=externalId) ID of the product group. By default, externalId.
sitestring The symbolic code of the store. Specified if the product group is searched by externalId (by=externalId)
productGroupobject (SerializedProductGroup)
productGroup[name]string Name
productGroup[description]string Description
productGroup[externalId]string Item group external ID
productGroup[active]boolean Activity

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
id integer Internal ID of the modified product group

HTTP statuses

Status codeDescription
200
  • The product group has been changed successfully
400
  • An error occurred when changing the product group

GET /api/v5/store/products Getting the list of products and SKU

Getting the list of products and SKU

To access the method, the following permission is required store_read.

The method allows to receive information about stock balance and cost price of the SKUs. The data is returned by the stores, to which the used API key has the access, or by the certain stores, if the parameter filter[sites][]=site-code is specified.

When implementing a constant transfer of changes to an external system, it is recommended to use the approach of collecting incremental changes via filter[sinceId] passing the id of the product which was received last.

By default the information about both enabled and disabled products is returned. To receive the information only about enabled products and SKUs, use the parameters filter[active].

The result is returned page by page. In the field pagination there is information on pagination.

Filters filter[minPrice], filter[maxPrice] filter products by the prices of offers converted to the base currency. If, along with these filters, you specify a filter by price type filter[priceType] (to which you need to pass a symbolic code of the price type) then filtering will be carried out by the prices of offers of this price type and in the currency of this price type.

filter[properties][] allows to get items by its properties. Filter must be specified in format filter[properties][property_code_1]=value_1&filter[properties][property_code_2]=value_2.

In the filter filter[groups] there are item group IDs specified.

Filter filter[classSegment] allows to get segments of ABC/XYZ-analysis of items. Available values: abc[0..2]_xyz[0..2].

Filters filter[offerIds][], filter[offerExternalId], filter[offerXmlId] allow to get items, to which the SKUs with these id, externalId, xmlId accordingly belong

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (ProductFilterData)
filter[ids][]array of integers Array of product's ID
filter[name]string{length: {max: 255}} Name/article of the product or article/barcode of the SKU
filter[groups][]array of integers Group of the product
filter[sites][]array of strings Stores
filter[catalogs][]array of integers Array of catalog's ID
filter[priceType]string Price type
filter[manufacturer]string{length: {max: 255}} Manufacturer
filter[externalId]string{length: {max: 255}} External ID
filter[xmlId]string{length: {max: 255}} Xml ID
filter[url]string{length: {max: 2000}} URL
filter[urlLike]string{length: {max: 2000}} Partial URL match (ignoring domain and query parameters)
filter[classSegment]string{length: {max: 255}}{match: /^abc[0-2]_xyz[0-2]$/}} ABC/XYZ segment
filter[active]boolean Activity
filter[popular]boolean Mark Sales leader
filter[stock]boolean Mark Best price
filter[novelty]boolean Mark Novelty
filter[recommended]boolean Mark Recommended
filter[properties][]array Items properties
filter[markable]boolean
filter[offerIds][]array of integers Array of SKU ID
filter[offerExternalId]string{length: {max: 255}} SKU external ID
filter[offerXmlId]string{length: {max: 255}} SKU XMLId
filter[groupExternalId]string{length: {max: 255}} Item group external ID
filter[sinceUpdatedAt]DateTimeY-m-d H:i:s Lower limit on the date of product change (excluding the border)
filter[sinceId]custom handler result for (int){range: {>=0, <=2147483647}} Starting with the product ID
filter[productType]custom handler result for (int)
filter[minPrice]integer Price of product (from)
filter[maxPrice]integer Price of product (to)
filter[minPurchasePrice]integer Purchase price of product (from)
filter[maxPurchasePrice]integer Purchase price of product (to)
filter[minQuantity]integer Product quantity (from)
filter[maxQuantity]integer Product quantity (to)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
products[] array of objects (Product) Product
products[][type] string Type (product product or service service)
products[][minPrice] double Minimum item price (in base currency)
products[][maxPrice] double Maximum item price (in base currency)
products[][catalogId] custom handler result for (int) Catalog ID
products[][id] integer Product ID
products[][article] string Vendor code
products[][name] string Name
products[][url] string Link to item page in the web-store
products[][imageUrl] string Image URL
products[][description] string Description
products[][popular] boolean Mark Sales leader
products[][stock] boolean Mark Best price
products[][novelty] boolean Mark New
products[][recommended] boolean Mark Recommended
products[][options] array Array of item options
products[][groups][] array of objects (ProductGroup) Item groups, which contains this item
products[][groups][][id] integer ID
products[][groups][][externalId] string Item group external ID
products[][externalId] string Item external ID
products[][manufacturer] string Manufacturer
products[][offers][] array of objects (Offer) SKUs
products[][offers][][name] string Name
products[][offers][][price] double SKU price
products[][offers][][images][] array of strings Images URL
products[][offers][][id] integer SKU ID
products[][offers][][externalId] string SKU ID in store
products[][offers][][xmlId] string SKU ID in the warehouse system
products[][offers][][article] string Vendor code
products[][offers][][prices][] array of objects (OfferPrice) Available prices
products[][offers][][prices][][priceType] string Price type
products[][offers][][prices][][currency] string Currency
products[][offers][][prices][][price] double Price (in entity currency)
products[][offers][][prices][][ordering] integer Ordering
products[][offers][][purchasePrice] double SKU purchasing price (in base currency)
products[][offers][][vatRate] string VAT rate
products[][offers][][properties] array SKU properties
products[][offers][][quantity] float Available quantity
products[][offers][][weight] double Weight
products[][offers][][length] double Length
products[][offers][][width] double Width
products[][offers][][height] double Height
products[][offers][][active] boolean Activity
products[][offers][][unit] object (Unit) Unit
products[][offers][][unit][code] string Unit symbolic code
products[][offers][][unit][name] string Unit name
products[][offers][][unit][sym] string Unit short name
products[][offers][][barcode] string Barcode
products[][updatedAt] DateTime Date of editing the product in the system
products[][active] boolean Activity
products[][quantity] double Quantity
products[][markable] boolean Subject to marking

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/store/products/batch/create Batch adding of products and services

Batch adding of products and services

To access the method, the following permission is required store_write.

Up to 50 products can be transferred in total per request.

In the type parameter, you can specify whether a product (product) or a service (service) is being created. By default, the product is created.

Such parameters as name and catalogId must be specified for each product.

Each product group must have one of the parameters: id or externalId. If several parameters are specified, the search is carried out, first of all, by id, but only within the product catalog.

For services, the fields "Manufacturer" (manufacturer) and "Subject to marking" (markable) are ignored.

Parameters

ParameterTypeFormatDescription
products[]array of objects (ProductCreateInput)
products[][type]string Type (product product or service service)
products[][catalogId]integer Catalog ID
products[][article]string Vendor code
products[][name]string Name
products[][url]string Link to item page in the web-store
products[][description]string Description
products[][popular]boolean Mark Sales leader
products[][stock]boolean Mark Best price
products[][novelty]boolean Mark New
products[][recommended]boolean Mark Recommended
products[][groups][]array of objects (ProductEditGroupInput) Item groups, which contains this item
products[][groups][][externalId]string External ID of the product group
products[][groups][][id]integer Product group ID
products[][externalId]string Item external ID
products[][manufacturer]string Manufacturer
products[][active]boolean Activity
products[][markable]boolean Subject to marking

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
processedProductsCount integer Number of successfully processed products
addedProducts[] array of integers List of IDs of added products

HTTP statuses

Status codeDescription
200
  • Products added successfully
400
  • An error occurred while adding products or the array is too large

POST /api/v5/store/products/batch/edit Batch editing of products and services

Batch editing of products and services

To access the method, the following permission is required store_write.

Up to 50 products can be transferred in total per request.

Each product must have the id parameter or the externalId and site parameters. If several or all of the above-mentioned parameters are specified, the search is made, first of all, by the id field, then by externalId and site.

Only those product parameters that were passed in the request are involved in editing. When editing the product catalog, the assigned product groups, properties and options are cleared.

Each product group must have one of the parameters: id or externalId. The search is carried out in the same way as for products, but only within the framework of the product catalog. If an empty array is passed in the groups parameter, the assigned product groups will be cleared.

For services, the fields "Manufacturer" (manufacturer) and "Subject to marking" (markable) are ignored.

Parameters

ParameterTypeFormatDescription
products[]array of objects (ProductEditInput)
products[][catalogId]integer Catalog ID
products[][id]integer Product ID
products[][article]string Vendor code
products[][name]string Name
products[][url]string Link to item page in the web-store
products[][description]string Description
products[][popular]boolean Mark Sales leader
products[][stock]boolean Mark Best price
products[][novelty]boolean Mark New
products[][recommended]boolean Mark Recommended
products[][groups][]array of objects (ProductEditGroupInput) Item groups, which contains this item
products[][groups][][externalId]string External ID of the product group
products[][groups][][id]integer Product group ID
products[][externalId]string Item external ID
products[][manufacturer]string Manufacturer
products[][active]boolean Activity
products[][markable]boolean Subject to marking
products[][site]string Store code; required when transferring the externalId of the product

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
processedProductsCount integer Number of successfully processed products
notFoundProducts[] array of objects (ProductEditNotFoundResponse) List of unprocessed products
notFoundProducts[][id] string ID of the unprocessed product
notFoundProducts[][externalId] string External ID of the unprocessed product

HTTP statuses

Status codeDescription
200
  • The products have been changed successfully
400
  • Error when changing products or the array is too large

GET /api/v5/store/products/properties Getting the list of item properties, matching the specified filter

Getting the list of item properties, matching the specified filter

To access the method, the following permission is required store_read.

Method allows to get information on items properties. The data is returned by the stores, to which the used API key has the access, or by the certain stores, if the parameter filter[sites][]=site-code is specified.

The visible field determines the visibility of the product property for the buyer. If the field has the false value, then the property is recommended for displaying only within the system.

The variative field determines whether the property is used when creating variations. If the field has the true value, then the property is used when creating the product variability.

The result is returned page by page. In the field pagination there is information on pagination.

Item properties can be filtered by identifiers filter[ids], name filter[name] (partial coincidence), symbolic code filter[code], visibility filter[visible] and variability filter[variative].

When passing group identifiers in the filter[groups][] parameter, properties for the specified groups as well as all child groups will be returned.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (ProductPropertiesFilterData)
filter[ids][]array of integers Array of product or service IDs
filter[name]string Name of the product or service
filter[code]string Symbolic code of the product or service
filter[sites][]array of strings Array of store codes
filter[visible]boolean Property visibility
filter[variative]boolean Property variability
filter[catalogs][]array of integers Array of catalog IDs
filter[groups][]array of integers Array of product or service group IDs

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
properties[] array of objects (ProductProperty) Item property
properties[][sites][] array of strings Symbolic codes of sites, which the catalog is bound to
properties[][groups][] array of objects (ProductPropertyGroup) Groups, containing products with this property
properties[][groups][][id] integer Group ID
properties[][groups][][name] string Group name
properties[][code] string Property symbolic code
properties[][name] string Property name
properties[][isNumeric] boolean Numeric property
properties[][visible] boolean Property visibility
properties[][variative] boolean Property variability

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/store/products/properties/values Getting a list of property values for products or services that match the specified filters

Getting a list of property values for products or services that match the specified filters

The method allows retrieving information about the property values of products or services. Data is returned for the stores that are accessible using the provided API key.

The result is returned page by page. In the field pagination there is information on pagination.

Item properties can be filtered by identifiers filter[ids], name filter[name] (partial coincidence), symbolic code filter[code], visibility filter[visible] and variability filter[variative].

When passing group identifiers in the filter[groups][] parameter, properties for the specified groups as well as all child groups will be returned.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (ProductPropertyValuesFilterData)
filter[propertyName]string Property name
filter[propertyCode]string Property code
filter[groups][]array of integers Array of product or service group IDs

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
productPropertyValues[] array of objects (ProductPropertyValueResponse)
productPropertyValues[][property] object (ProductPropertyResponse)
productPropertyValues[][property][code] string Property symbolic code
productPropertyValues[][property][name] string Property name
productPropertyValues[][value] string Property value
productPropertyValues[][offersCount] custom handler result for (int) Number of uses in offers

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["store"]["actions"]["inventoriesActualize"]} Actualizing the leftover stocks after warehouse system interaction

Actualizing the leftover stocks after warehouse system interaction

Method allows to update stocks by warehouses for offers. For updating of stocks the system initiates POST request of the method specified in integrationModule["integrations"]["store"]["actions"]["inventoriesActualize"]. Offers, which are absent in request, will be ignored in the response.

Each SKU should have at least one of three parameters: id, xmlId or externalId. If several or all above-mentioned parameters are specified, the search is made, first of all, by id, then by xmlId and then by externalId.

In case of error occurrence in external resource, which callback method refers to, data on error will be displayed in action log (Settings > System > Action log).

If the reservation is canceled, the POST request will be initiated for the method specified in the integrationModule["integrations"]["store"]["actions"]["inventoriesActualize"] with the parameter packs[][quantity] set to 0.

Parameters

ParameterTypeFormatDescription
orderobject (OrderDataModel) Order
order[id]integer Order ID
order[externalId]string Order external ID
order[site]string Store
packs[]array of objects (PackDataModel) Packs
packs[][item]object (PackItemModel) Order item
packs[][item][id]integer Order item ID
packs[][item][externalIds][]array of objects (CodeValueModel) External IDs of order item
packs[][offer]object (OfferDataModel) SKU
packs[][offer][id]integer SKU ID
packs[][offer][externalId]string SKU ID in store
packs[][offer][xmlId]string SKU ID in the warehouse system
packs[][quantity]float Item quantity in pack
packs[][store]string Warehouse
packs[][purchasePrice]float Purchasing price
packs[][shipmentDate]DateTime Pack shipment date
packs[][invoiceNumber]string Tax number
packs[][deliveryNoteNumber]string Packing list number

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
errorMsg string Error message
inventories[] array of objects (InventoriesDataModel) Leftover stocks
inventories[][offers][] array of objects (SerializedOffer)
inventories[][offers][][id] integer SKU ID
inventories[][offers][][externalId] string SKU ID in store
inventories[][offers][][xmlId] string SKU ID in the warehouse system
inventories[][offers][][stores][] array of objects (SerializedStore)
inventories[][offers][][stores][][code] string Symbolic code
inventories[][offers][][stores][][available] float Quantity of available items or the fact of availability
inventories[][offers][][stores][][purchasePrice] float Purchasing price

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["store"]["actions"]["inventoriesUpload"]} Updating the leftover stocks and purchasing prices

Updating the leftover stocks and purchasing prices

Method allows to update stocks and purchasing prices by warehouses for offers. For updating of stocks the system initiates POST request of the method specified in integrationModule["integrations"]["store"]["actions"]["inventoriesUpload"]. System transmits the list of offers, for which need to transfer information on stocks, depending on the methods calling context. Offers, which are absent in request, will be ignored in the response. Points of method call are set in configuration in the field integrationModule["integrations"]["store"]["actions"]["inventoriesUpload"]["callPoints"].

Each SKU should have at least one of three parameters: id, xmlId or externalId. If several or all above-mentioned parameters are specified, the search is made, first of all, by id, then by xmlId and then by externalId.

Field offers[][stores][][available] may be integer or fractional. Using actual stock accounting, 0 should be transmitted - in case of item absence at the warehouse, and 1 - in case of presence.

In case of error occurrence in external resource, which callback method refers to, data on error will be displayed in action log (Settings > System > Action log).

Parameters

ParameterTypeFormatDescription
clientIdstring
offers[]array of objects (SerializedOffer)
offers[][id]integer SKU ID
offers[][externalId]string SKU ID in store
offers[][xmlId]string SKU ID in the warehouse system
offers[][site]stringdeprecated Store. Use getCatalog()

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
errorMsg string Error message
offers[] array of objects (SerializedOffer)
offers[][id] integer SKU ID
offers[][externalId] string SKU ID in store
offers[][xmlId] string SKU ID in the warehouse system
offers[][stores][] array of objects (SerializedStore)
offers[][stores][][code] string Symbolic code
offers[][stores][][available] float Quantity of available items or the fact of availability
offers[][stores][][purchasePrice] float Purchasing price
offers[][site] string deprecated Store. Use getCatalog()

Tasks

GET /api/v5/tasks Getting the task list

Getting the task list

To access the method, the following permission is required task_read.

The result is returned page by page. In the field pagination there is information on pagination.

The array of task internal identifiers is being transmitted in filter[ids][].

An array of internal identifiers of users is passed in the filter[creators][].

An array of internal identifiers of users or groups is passed in the filter[performers][].

filter[status] allows to get tasks, which are in certain status. Available values are:

By filter filter[customer] possible to search by customer name, email and phone.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (TaskFilterData)
filter[ids][]array of integers Task ID array
filter[orderNumber]string{length: {max: 255}} Number of order, related to the task
filter[customer]string Customer, related to the task
filter[performers][]array of integers Task executors
filter[status]string[completed|performing] Task status
filter[creators][]array of integers Task authors
filter[text]string{length: {max: 255}} Task text
filter[tagsFilter]object (TagsFilter)
filter[tagsFilter][matchMode]object (EntityTagFilterMatchMode)
filter[tagsFilter][matchMode][name]string
filter[tagsFilter][matchMode][value]string
filter[tagsFilter][attached]custom handler result for (bool)
filter[tagsFilter][without]custom handler result for (bool)
filter[tags][]array of strings
filter[attachedTags][]array of strings
filter[createdAtFrom]DateTimeY-m-d Task creation date (from)
filter[createdAtTo]DateTimeY-m-d Task creation date (to)
filter[dateFrom]DateTimeY-m-d Task execution date (from)
filter[dateTo]DateTimeY-m-d Task execution date (to)
filter[completedAtFrom]DateTimeY-m-d Actual task completion date (from)
filter[completedAtTo]DateTimeY-m-d Actual task completion date (to)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
tasks[] array of objects (Task) Task
tasks[][id] integer Task ID
tasks[][text] string Task text
tasks[][commentary] string Commentary, related to the task
tasks[][datetime] DateTime Task execution date
tasks[][createdAt] DateTime Creation date
tasks[][complete] boolean Sign of the task execution
tasks[][creator] integer Task author
tasks[][performer] integer Task executor
tasks[][performerType] string Type of task executor
tasks[][customer] object (AbstractCustomer) Customer, related to the task
tasks[][customer][type] string Customer type
tasks[][customer][id] integer Customer ID
tasks[][customer][externalId] string Customer external ID
tasks[][customer][site] string Store, from which the customer came
tasks[][order] object (Order) Order, related to the task
tasks[][order][id] integer Order ID
tasks[][order][number] string Order number
tasks[][order][externalId] string Order external ID
tasks[][order][site] string Store
tasks[][phone] string Phone number, related to the task
tasks[][phoneSite] string Store, related to recall task
tasks[][completedAt] DateTime Task completion time

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/tasks/create Task creation

Task creation

To access the method, the following permission is required task_write.

Method creates the task and returns its internal ID.

If it is needed to change the task execution date, it is necessary to transmit date in Y-m-d H:i format to the task[datetime] field. Date should be in the future.

In the task[performerId] field it is required to pass the internal ID of the user or group to assign the responsible user/group

If it is needed to relate the task with existing customer, then it is necessary to set the value of one of the following fields:

If the values of several fields are set, they will be processed in the ordering specified above. Customer search will be made within stores, which the used API-key has access to. If customer will not be found, relation will not be set.

If it is needed to relate task with existing order, then it is necessary to set the value of one of the following fields:

If the values of several fields are set, they will be processed in the ordering specified above. Order search will be made within stores, which the used API-key has access to. If order will not be found, relation will not be set.

When relating the task with existing order, task will be automatically related with customer, which the order belongs to.

When binding the task with customer/order it is necessary to specify data of order or customer.

When creating the task for recall you should specify phone number, which has to be called, in the task[phone] field. It is desirable to specify the symbolic code of store in task[phoneSite] field for having opportunity to make recall from the certain store phone. This opportunity depends on used telephony and its settings.

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store
taskobject (SerializedTask)
task[text]string Task text
task[commentary]string Commentary, related to the task
task[datetime]DateTime Task execution date
task[complete]boolean Sign of the task execution
task[phone]string Phone number, related to the task
task[customer]object (SerializedEntityCustomer) Customer, related to the task
task[customer][id]integer Customer internal ID
task[customer][externalId]string Customer external ID
task[performerId]integer Task executor
task[order]object (SerializedEntityOrder) Order, related to the task
task[order][id]integer Order internal ID
task[order][externalId]string Order external ID
task[order][number]string Order number
task[phoneSite]string Store, related to recall task

HTTP statuses

Status codeDescription
201
  • Task has been created
400
  • Error at task creating

GET /api/v5/tasks/history Getting the task change history

Getting the task change history

To access the method, the following permission is required task_read.

Returns changes in tasks made in the specified date range (using filters filter[startDate] and filter[endDate]), or incremental changes (using filter[sinceId]). When implementing a permanent translation of changes to an external system ​it is recommended​ to use the approach with collecting incremental changes via filter[sinceId] transferring id of the last received history record.

For task creation records, the full set of fields is returned in the context task.

The result is returned page by page. Field pagination contains pagination information. To paginate through history records, it is necessary to use filter[sinceId]. It is not recommended to use the page parameter.

You can find more details about working with history in a separate documentation article.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (TaskHistoryFilterType)
filter[taskId]integer{range: {>=0, <=4294967295}}{not blank}} Task ID
filter[sinceId]integer{range: {>=0, <=4294967295}}{not blank}} Starting with tasks history ID
filter[startDate]DateTimeY-m-d H:i:s Start DateTime of change
filter[endDate]DateTimeY-m-d H:i:s End DateTime of change

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
generatedAt DateTime Time of response formation
history[] array of objects (TaskHistory)
history[][id] integer Internal identifier of entry in the history
history[][createdAt] DateTime Date of making change
history[][created] boolean Notes that the entity is created
history[][source] string Date of making change
history[][user] object (User) User
history[][user][id] integer User ID
history[][field] string Name of changed field
history[][oldValue] custom handler result for (mixed) Old value of field
history[][newValue] custom handler result for (mixed) New value of field
history[][apiKey] object (ApiKey) Information about api key used for making this change
history[][apiKey][current] boolean The change was made with the api key currently in use
history[][apiKey][id] integer Api key ID
history[][task] object (Task) Task
history[][task][id] integer Task ID
history[][comment] object (TaskComment) User comment on the task
history[][comment][id] integer Task comment ID
history[][comment][text] string Task comment text
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/tasks/{id} Getting information on task

Getting information on task

To access the method, the following permission is required task_read.

Parameters

ParameterTypeFormatDescription
idinteger Task ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
task object (Task) Task
task[id] integer Task ID
task[text] string Task text
task[commentary] string Commentary, related to the task
task[datetime] DateTime Task execution date
task[createdAt] DateTime Creation date
task[complete] boolean Sign of the task execution
task[creator] integer Task author
task[performer] integer Task executor
task[performerType] string Type of task executor
task[customer] object (AbstractCustomer) Customer, related to the task
task[customer][type] string Customer type
task[customer][id] integer Customer ID
task[customer][externalId] string Customer external ID
task[customer][site] string Store, from which the customer came
task[order] object (Order) Order, related to the task
task[order][id] integer Order ID
task[order][number] string Order number
task[order][externalId] string Order external ID
task[order][site] string Store
task[phone] string Phone number, related to the task
task[phoneSite] string Store, related to recall task
task[completedAt] DateTime Task completion time

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • Task not found

GET /api/v5/tasks/{id}/comments Receiving comments on the task

Receiving comments on the task

To access the method, the following permission is required task_read.

It returns user comments on the task. By default, the response contains up to 20 entries.

The result is returned page by page. The pagination field contains information about pagination.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
idinteger Task ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
comments[] array of objects (TaskComment) User comment on the task
comments[][id] integer Task comment ID
comments[][creator] integer Comment author
comments[][text] string Task comment text
comments[][createdAt] DateTime Creation date
comments[][updatedAt] DateTime Date of change

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/tasks/{id}/edit Task editing

Task editing

To access the method, the following permission is required task_write.

Method allows to edit the task

If it is needed to edit the task, which was not executed and execution time was expired, it is necessary to change task execution time also. If the value of task[complete] field is set as true, when changing the task, then there is no need to change task execution time.

If it is needed to edit the task execution date, it is necessary to transmit date in Y-m-d H:i format to the task[datetime] field. Date should be in the future.

In the task[performerId] field it is required to pass the internal ID of the user or group to change the responsible user/group

If it is needed to relate the task with existing customer, then it is necessary to set the value of one of the following fields:

If the values of several fields are set, they will be processed in the ordering specified above. Customer search will be made within stores, which the used API-key has access to. If customer will not be found, relation will not be set.

If it is needed to relate task with existing order, then it is necessary to set the value of one of the following fields:

If the values of several fields are set, they will be processed in the ordering specified above. Order search will be made within stores, which the used API-key has access to. If order will not be found, relation will not be set.

When relating the task with existing order, task will be automatically related with customer, which the order belongs to.

When binding the task with customer/order it is necessary to specify data of order or customer.

When editing the task for recall you should specify phone number, which has to be called, in the task[phone] field. It is desirable to specify the symbolic code of store in task[phoneSite] field for having opportunity to make recall from the certain store phone. This opportunity depends on used telephony and its settings.

Parameters

ParameterTypeFormatDescription
sitestring Symbolic code of store
taskobject (SerializedTask)
task[text]string Task text
task[commentary]string Commentary, related to the task
task[datetime]DateTime Task execution date
task[complete]boolean Sign of the task execution
task[phone]string Phone number, related to the task
task[customer]object (SerializedEntityCustomer) Customer, related to the task
task[customer][id]integer Customer internal ID
task[customer][externalId]string Customer external ID
task[performerId]integer Task executor
task[order]object (SerializedEntityOrder) Order, related to the task
task[order][id]integer Order internal ID
task[order][externalId]string Order external ID
task[order][number]string Order number
task[phoneSite]string Store, related to recall task

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • Task has been successfully changed
400
  • Error at task changing

Telephony

POST /api/v5/telephony/call/event Call events

Call events

To access the method, the following permission is required telephony_write.

Method fixes the call events for users with extension numbers codes and/or with userIds ID, from phone number phone. codes field contains JSON array of extension codes, userIds field contains JSON array of users ID.

If there are both codes and userIds fields specified, the call event will be fixed for all listed users.

The field type contains the event type: in - incoming call, out - outgoing call, hangup - call completion.

In case if type is equal to ​hangup​, then in the field hangupStatus you can pass the status.

The field hangupStatus contains the call completion status: answered - call is received, no answered - there were no answer for the call, busy - the calling part gets the signal "busy", cancel - the call is cancelled, failed - failed to call. By default the value is answered.

The field campaign contains an advertising campaign the call related with.Contains JSON, where with the fields: name - advertising campaign name and code - advertising campaign code. In case if this field is not empty, in the incoming call window there will be an information on advertising campaign.

Call event can be related to the store. For this purpose it is necessary to specify the symbolic code of store in site field, or external phone number of store in externalPhone field. If both fields are specified, they will be processed in the following order:

Parameters

ParameterTypeFormatDescription
eventobject (CallEvent)
event[phone]string{length: {max: 255}}{not blank}} Phone
event[type]string{not blank}[hangup|in|out]} Event type
event[codes][]array of strings Manager's extension codes in telephony
event[userIds][]array of integers Array of user's ID
event[site]string Symbolic code of store related to call event
event[hangupStatus]string[answered|busy|cancel|failed|no answered] Status of call end
event[externalPhone]string{length: {max: 255}} External phone number
event[callExternalId]string{length: {max: 255}} External Id of call related with the event
event[webAnalyticsData]object (SerializedWebAnalyticsData)
event[webAnalyticsData][campaign]object (SerializedCampaign) Advertising campaign
event[webAnalyticsData][campaign][name]string Advertising campaign name
event[webAnalyticsData][campaign][code]string Advertising campaign code
event[webAnalyticsData][queryString]string Search query

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
notExistCodes array Array of extensions, which are absent in the system
notExistUsers array Array of userId, which are absent in the system

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

POST /api/v5/telephony/calls/upload Calls uploading

Calls uploading

To access the method, the following permission is required telephony_write.

The method allows to save the call history. In one request you can pass up to 50 calls.

The field calls contains JSON.

The field calls[][date], contains date and time of the call in the format Y-m-d H:i:s.

The field calls[][type], may receive the following values: in - incoming call, out - outgoing call.

The field calls[][result], may receive the following values: failed - failed, answered - answered, busy - busy, no answer - no answer, not allowed - not allowed, unknown - unknown

The field calls[][externalId] contains the unique call identifier in the PABX, if there will be passed the value that is already exist the call will not be created.

The field calls[][recordUrl] contains the link to the call record, e.g. http://example.com/record.mp3. Supported records format is .wav, .mp3

For call saving, calls[][userId] and calls[][code] fields should be filled.

calls[][userId] field contains ID of user, who processed the call.

calls[][code] field contains extension code of user, who processed the call.

Field Call durationcalls[][duration] must be more than Waiting time for the operator's answercalls[][durationWaiting]. If the calls[][duration] field is not transferred, there will be no player to listen the call recording at the order.

If both fields are specified, they will be processed in the following order:

Call can be related to the store. For this purpose it is necessary to specify the symbolic code of store in calls[][site] field, or external phone number of store in calls[][externalPhone] field. If both fields are specified, they will be processed in the following order:

Parameters

ParameterTypeFormatDescription
calls[]array of objects (Call) Call
calls[][date]DateTime{not blank} Date/time of call
calls[][type]string[in|out], {not blank} Call type
calls[][phone]string{not blank}{length: {max: 255}}} Phone number
calls[][code]string{length: {max: 255}} Extension of user, who processed the call
calls[][userId]integer{range: {>=1, <=2147483647}} Id of user, who processed the call
calls[][result]string[answered|busy|failed|no answer|not allowed|unknown], {not blank} Call result
calls[][duration]integer{range: {>=0, <=1000000000}} Call duration (in seconds)
calls[][durationWaiting]integer{range: {>=0, <=1000000000}} Waiting time of operator answer (in seconds)
calls[][externalId]string{not blank}{length: {max: 255}}} Call ID in PBX
calls[][recordUrl]string{length: {max: 2048}} Record url
calls[][source]object (SerializedSource) Source
calls[][source][source]string Source
calls[][source][medium]string Medium
calls[][source][campaign]string Campaign
calls[][source][keyword]string Keyword
calls[][source][content]string Content
calls[][externalPhone]string{length: {max: 255}} External phone number
calls[][site]string Store
calls[][clientId]string Google Analytics unique clientId

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
processedCallsCount integer Quantity of successfully processed calls
duplicateCalls array Array of externalId, which are present in the system

HTTP statuses

Status codeDescription
200
  • Calls are successfully uploaded
400
  • Error on query execution

GET /api/v5/telephony/manager Getting the responsible manager

Getting the responsible manager

To access the method, the following permission is required telephony_read.

The method returns responsible manager for the customer with the phone number phone, that is actually Online in the system and is in the status Free.

If there is no responsible manager, the field manager will be absent in the answer.

If the field ignoreStatus equals to 1, there will be the field manager in the response regardless of the status of the responsible manager in the system (Online status and/or Free status).

If the field details is equal to 1, there will be the following fields links, customer in the answer. Otherwise, the fields will be absent.

If the customer is found, the fields links[newCustomerLink], links[newOrderLink] will be absent in answer.

If the customer is not found, the fields customer, links[lastOrderLink], links[customerLink] will be absent in answer.

Parameters

ParameterTypeFormatDescription
phonestring{not blank}{length: {max: 255}}} Phone
detailsstring[0|1] Detailed information
ignoreStatusstring[0|1] Ignore the manager status

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
manager object (SerializedManager) Manager
manager[id] string Manager Id
manager[firstName] string Manager's first name
manager[lastName] string Manager's last name
manager[patronymic] string Manager's patronymic
manager[email] string E-mail
manager[code] string Manager's extension code in telephony
customer object (SerializedCustomer) Customer
customer[id] string Customer ID
customer[externalId] string Id from external site
customer[firstName] string Customer's first name
customer[lastName] string Customer's last name
customer[patronymic] string Customer's patronymic
customer[email] string E-mail
customer[phones][] array of objects (CustomerPhone) Customer phone
customer[phones][][number] string Phone number
links object (SerializedLinks) Links
links[newOrderLink] string Link to the page of new order creation
links[lastOrderLink] string Link to the page of last order
links[newCustomerLink] string Link to the page of new customer creation
links[customerLink] string Link to the customer page

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

CallbackGET {integrationModule["baseUrl"]}/{integrationModule["integrations"]["telephony"]["changeUserStatusUrl"]} Notification on status change

Notification on status change

If in the telephony settings the field changeUserStatusUrl is specified, when changing of manager status in system the GET request will be sent to the specified address.

Parameters

ParameterTypeFormatDescription
codestring{not blank}{length: {max: 255}}} Additional code
userIdinteger{not blank}{length: {max: 255}}} User Id
clientIdstring{not blank}{length: {max: 255}}} Client id
statusstring{not blank}[break|busy|dinner|free]} User status in the system

CallbackGET {integrationModule["baseUrl"]}/{integrationModule["integrations"]["telephony"]["makeCallUrl"]} Initiation of call

Initiation of call

If in the telephony settings the field makeCallUrl is specified, when initiating of call, the GET request will be sent to the specified address. Expected return code is 200, otherwise user will receive error message.

Parameters

ParameterTypeFormatDescription
codestring{not blank}{length: {max: 255}}} Additional code
phonestring{not blank}{length: {max: 255}}} Phone
clientIdstring{not blank}{length: {max: 255}}} Client id
userIdinteger{not blank}{range: {>=1, <=2147483647}}} User id
externalPhonestring{length: {max: 255}} External phone number

HTTP statuses

Status codeDescription
200
  • The query was successfully executed

CallbackPOST {integrationModule["baseUrl"]}/{integrationModule["integrations"]["telephony"]["personalAccountUrl"]} Transition to personal account

Transition to personal account

If the personalAccountUrl field is specified, in telephony integration settings there will be "Telephony personal account" button available, by clicking which the POST request with clientId parameter will be sent to the specified address.

Parameters

ParameterTypeFormatDescription
clientIdstring{not blank}{length: {max: 255}}} Client id

CallbackGET {recordUrl} Listening of the call

Listening of the call

If the field recordUrl is specified for the call, when trying to listen the call, GET-request will be sent to the specified address. Expected return code is 200, otherwise user will receive the error message.

For correct playback of record must specify the correct header Content-Type

Parameters

ParameterTypeFormatDescription
clientIdstring{not blank}{length: {max: 255}}} Client Id

HTTP statuses

Status codeDescription
200
  • The query was successfully executed

Transports

CallbackGET {integrationModule["baseUrl"]}/{integrationModule["integrations"]["mgTransport"]["actions"]["online"]} Get customer's online status in chat

Get customer's online status in chat

This callback retrieves the online status of the customer for the provided chat. For getting data the system initiates GET-request of method specified in integrationModule["integrations"]["mgTransport"]["actions"]["online"] configuration. The clientId for the integration module will be provided in the X-Client-Id header.

Parameters

ParameterTypeFormatDescription
externalUserIdstring GET-parameter with chat customer's external ID

Response

ParameterTypeDescription
lastOnline DateTime Customer last online date

CallbackGET {integrationModule["baseUrl"]}/{integrationModule["integrations"]["mgTransport"]["actions"]["visits"]} Retrieve data on chat visits

Retrieve data on chat visits

This callback retrieves visits data for the provided chat. For getting data the system initiates GET-request of method specified in integrationModule["integrations"]["mgTransport"]["actions"]["visits"] configuration. The clientId for the integration module will be provided in the X-Client-Id header.

Parameters

ParameterTypeFormatDescription
externalChatIdstring GET-parameter with chat's external ID

Response

ParameterTypeDescription
lastVisit object (ChatLastVisit) Last visit date
lastVisit[source] string Visit source
lastVisit[createdAt] DateTime Visit start date and time
lastVisit[endedAt] DateTime Visit end date and time (current time if visit has not ended)
lastVisit[duration] integer Visit duration in seconds
lastVisit[pages][] array of objects (ChatVisitedPage) List of visited pages
lastVisit[pages][][dateTime] DateTime Date and time when page was visited
lastVisit[pages][][url] string Page URL
lastVisit[pages][][title] string Page Title
countVisits custom handler result for (int) Visits count
device object (ChatDevice) Information about customer's device
device[lang] string Device language (formatted as en_US)
device[browser] string Browser name and version
device[os] string OS type
utm object (ChatUtm) User's UTM-marks
utm[source] string Value of utm_source mark
utm[medium] string Value of utm_medium mark
utm[campaign] string Value of utm_campaign mark
country string Customer country name
city string Customer city name

Users

GET /api/v5/user-groups Getting the list of user groups

Getting the list of user groups

To access the method, the following permission is required user_read.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
groups[] array of objects (Group) Users group
groups[][id] integer ID
groups[][name] string Name
groups[][signatureTemplate] string Signature template
groups[][code] string Symbolic code
groups[][isManager] boolean Group processes orders
groups[][isDeliveryMen] boolean Group responsible for delivery
groups[][deliveryTypes] array Delivery types the group responsible for
groups[][breakdownOrderTypes] array Types of the orders, which are being distributed to managers of this group
groups[][breakdownSites] array Stores, the orders of which are being distributed to managers of this group
groups[][breakdownOrderMethods] array Methods of the orders, which are being distributed to managers of this group
groups[][grantedOrderTypes] array Order types, which are available for managers of this group, if the access is restricted
groups[][grantedSites] array Stores, which are available for managers of this group

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/users Getting the list of users matched the specified filter

Getting the list of users matched the specified filter

To access the method, the following permission is required user_read.

Parameters

ParameterTypeFormatDescription
limitinteger{not blank}[20|50|100]} Quantity of elements in the answer (20 by default)
pageinteger{not blank}{range: {>=1}}} Number of page with the results (1 by default)
filterobject (ApiUserFilter)
filter[email]string{length: {max: 255}} User email
filter[status]string[break|busy|dinner|free] User status in the system. When using the filter[status] filter, only those users who have the true value in the online field are included in the selection.
filter[online]string[0|1] User online
filter[active]string[0|1] Active
filter[isManager]string[1] User is manager
filter[isAdmin]string[0|1] User is administator
filter[groups][]array User groups
filter[createdAtFrom]DateTime User creation date (from)
filter[createdAtTo]DateTime User creation date (to)

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
pagination object (PaginationResponse) Pagination
pagination[limit] integer Quantity of elements in the answer
pagination[totalCount] integer Total quantity of found elements
pagination[currentPage] integer Current issuance page
pagination[totalPageCount] integer Total quantity of issuance pages
users[] array of objects (SerializedUser) User
users[][id] integer User ID
users[][createdAt] DateTime User creation date
users[][active] boolean Activity
users[][email] string E-mail
users[][firstName] string FirstName
users[][lastName] string LastName
users[][patronymic] string Middle name
users[][position] string Position
users[][photoUrl] string URL of the photo
users[][phone] string Phone number
users[][status] string Status
users[][online] boolean Online
users[][isAdmin] boolean Is an administrator
users[][isManager] boolean User is a manager
users[][groups][] array of objects (SerializedGroups) User groups
users[][groups][][id] integer ID
users[][groups][][name] string Name
users[][groups][][code] string Symbolic code
users[][mgUserId] integer ID MessageGateway user
users[][senderEmail] string Sender e-mail for the manager
users[][senderName] string Sender name
users[][language] string Interface language

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution

GET /api/v5/users/{id} Getting information on user

Getting information on user

To access the method, the following permission is required user_read.

Getting information on user

The field user[status] contains user status in the system, it may receive the following values: free - free; busy - busy;dinner - at lunch; break - break.

Parameters

ParameterTypeFormatDescription
idinteger User ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
user object (SerializedUser) User
user[id] integer User ID
user[createdAt] DateTime User creation date
user[active] boolean Activity
user[email] string E-mail
user[firstName] string FirstName
user[lastName] string LastName
user[patronymic] string Middle name
user[position] string Position
user[photoUrl] string URL of the photo
user[phone] string Phone number
user[status] string Status
user[online] boolean Online
user[isAdmin] boolean Is an administrator
user[isManager] boolean User is a manager
user[groups][] array of objects (SerializedGroups) User groups
user[groups][][id] integer ID
user[groups][][name] string Name
user[groups][][code] string Symbolic code
user[mgUserId] integer ID MessageGateway user
user[senderEmail] string Sender e-mail for the manager
user[senderName] string Sender name
user[language] string Interface language

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
404
  • User not found

POST /api/v5/users/{id}/status Change user status

Change user status

To access the method, the following permission is required user_write.

Parameters

ParameterTypeFormatDescription
statusstring[free|busy|dinner|break] User status in the system. When using the filter[status] filter, only those users who have the true value in the online field are included in the selection.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed
400
  • Error on query execution
404
  • User not found

Verification

POST /api/v5/verification/sms/confirm Confirmation of verification

Confirmation of verification

To access the method, the following permission is required verification_write.

Method for confirmation of verification

Parameters

ParameterTypeFormatDescription
verificationobject (SmsVerificationConfirm)
verification[code]string Verification code
verification[checkId]string Code verification ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
verification object (SmsVerification) SMS-verification
verification[createdAt] DateTime Date of creation. (Y-m-d H:i:s)
verification[expiredAt] DateTime Expiration date. (Y-m-d H:i:s)
verification[verifiedAt] DateTime Verification success date. (Y-m-d H:i:s)
verification[checkId] string Code verification ID
verification[actionType] string Type of action

GET /api/v5/verification/sms/{checkId}/status Checking the verification status

Checking the verification status

To access the method, the following permission is required verification_read.

The actionType field returns the type of action for which the phone is confirmed. Possible values:

Parameters

ParameterTypeFormatDescription
checkIdstring Code verification ID

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
verification object (SmsVerification) SMS-verification
verification[createdAt] DateTime Date of creation. (Y-m-d H:i:s)
verification[expiredAt] DateTime Expiration date. (Y-m-d H:i:s)
verification[verifiedAt] DateTime Verification success date. (Y-m-d H:i:s)
verification[checkId] string Code verification ID
verification[actionType] string Type of action

Web analytics

POST /api/v5/web-analytics/client-ids/upload Batch uploading of web analytics clientId

Batch uploading of web analytics clientId

To access the method, the following permission is required web_analytics_write.

The method allows uploading up to 100 tags of web analytics clientId. The clientIds field contains a JSON array.

The clientId value is transferred in the mandatory field clientIds[][value].

The tag can be linked to an order or a customer. The clientIds[][order] field is used to upload to the order. To do this, you need to set the value of one of the following fields:

clientIds[order][id] – internal ID of the order;
clientIds[order][externalId] – external ID of the order;
clientIds[order][number] – order number.

To upload to the customer one of the fields is used:

clientIds[customer][id] – internal ID of the customer;
clientIds[customer][externalId] – external ID of the customer;

If the value of several fields is set, they will be processed in the order specified above. The search by externalId/number will be performed within the store specified in the optional parameter clientIds[][site].

When adding a clientId to an order it will also be added to the clientId list of the linked customer, if not already added. If necessary, the fields of the first and last clientId of the customer are changed. The clientId setting date can be specified in the optional clientIds[][createdAt] field (if left blank, the current date will be used).

The value field as well as any of the order and customer fields are mandatory.

Parameters

ParameterTypeFormatDescription
clientIds[]array of objects (ClientId){not blank} Array of clientId to upload
clientIds[][value]string{not blank}{length: {min: 1, max: 255}}} Value of the clientId being added
clientIds[][createdAt]DateTime Date the clientId was added
clientIds[][order]object (SerializedEntityOrder) Order
clientIds[][order][id]integer Order internal ID
clientIds[][order][externalId]string Order external ID
clientIds[][order][number]string Order number
clientIds[][customer]object (SerializedEntityCustomer) Customer
clientIds[][customer][id]integer Customer internal ID
clientIds[][customer][externalId]string Customer external ID
clientIds[][site]string{length: {min: 1, max: 255}} Symbol code of the store where the order or customer is searched for

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
failedClientIds[] array of objects (ClientId) Array of clientId to upload
failedClientIds[][value] string Value of the clientId being added
failedClientIds[][createdAt] DateTime Date the clientId was added
failedClientIds[][order] object (SerializedEntityOrder) Order
failedClientIds[][order][id] integer Order internal ID
failedClientIds[][order][externalId] string Order external ID
failedClientIds[][order][number] string Order number
failedClientIds[][customer] object (SerializedEntityCustomer) Customer
failedClientIds[][customer][site] string Symbolic code of store
failedClientIds[][customer][id] integer Customer internal ID
failedClientIds[][customer][externalId] string Customer external ID
failedClientIds[][customer][type] string Customer type
failedClientIds[][site] string Symbol code of the store where the order or customer is searched for
errorMsg string
errors array

HTTP statuses

Status codeDescription
201
  • ClientId uploaded successfully
400
  • ClientId uploading error
460
  • Errors occurred during the uploading. Part of the clientId are not uploaded (the response also contains an "errors" array)

POST /api/v5/web-analytics/sources/upload Batch uploading of sources

Batch uploading of sources

To access the method, the following permission is required web_analytics_write.

The method allows uploading up to 100 web analytics sources. The sources field contains a JSON array.

Source data is transferred in the fields sources[][source], sources[][medium], sources[][campaign], sources[][keyword], sources[][content]; at least one of the fields must be transferred.

The source can be linked to an order or a customer. The sources[][order] field is used to upload to the order. To do this, you need to set the value of one of the following fields:

source[order][id] – internal ID of the order;
source[order][externalId] – external ID of the order;
source[order][number] – order number.

To upload to the customer one of the fields is used:

source[customer][id] – internal ID of the customer;
source[customer][externalId] – external ID of the customer;

If the customer does not have a source when writing the source to the order, it will be installed in the customer.

The sources[][clientId] field can also be transferred with the value of the web analytics clientId: if it is found in the system, the source will be linked to the customer associated with this clientId.

If the value of several fields is set, they will be processed in the order specified above. The search by externalId/number will be performed within the store specified in the optional parameter source[site].

At least one of the three fields order, customer, clientId is mandatory as well as at least one of the source fields.

Parameters

ParameterTypeFormatDescription
sources[]array of objects (Source){not blank} Array of sources to upload
sources[][source]string Source
sources[][medium]string Medium
sources[][campaign]string Campaign
sources[][keyword]string Keyword
sources[][content]string Ad content
sources[][clientId]string{length: {min: 1, max: 255}} The clientId of web analytics to which the source will be linked
sources[][order]object (SerializedEntityOrder) Order
sources[][order][id]integer Order internal ID
sources[][order][externalId]string Order external ID
sources[][order][number]string Order number
sources[][customer]object (SerializedEntityCustomer) Customer
sources[][customer][id]integer Customer internal ID
sources[][customer][externalId]string Customer external ID
sources[][site]string{length: {min: 1, max: 255}} Symbol code of the store where the order or customer is searched for

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
failedSources[] array of objects (Source) Array of sources to upload
failedSources[][source] string Source
failedSources[][medium] string Medium
failedSources[][campaign] string Campaign
failedSources[][keyword] string Keyword
failedSources[][content] string Ad content
failedSources[][clientId] string The clientId of web analytics to which the source will be linked
failedSources[][order] object (SerializedEntityOrder) Order
failedSources[][order][id] integer Order internal ID
failedSources[][order][externalId] string Order external ID
failedSources[][order][number] string Order number
failedSources[][customer] object (SerializedEntityCustomer) Customer
failedSources[][customer][site] string Symbolic code of store
failedSources[][customer][id] integer Customer internal ID
failedSources[][customer][externalId] string Customer external ID
failedSources[][customer][type] string Customer type
failedSources[][site] string Symbol code of the store where the order or customer is searched for
errorMsg string
errors array

HTTP statuses

Status codeDescription
201
  • Sources uploaded successfully
400
  • Sources uploading error
460
  • Errors occurred during the uploading. Part of the sources are not uploaded (the response also contains an "errors" array)

POST /api/v5/web-analytics/visits/upload Batch uploading of visits

Batch uploading of visits

To access the method, the following permission is required web_analytics_write.

The method allows downloading up to 50 web analytics visits. The visits field contains a JSON array.

The visit is linked to the client. One of the fields for this purpose is specified in the visit:

visit[customer][id] – internal ID of the customer;
visit[customer][externalId] – external ID of the customer;
visit[][clientId] – web analytics clientId value: if it is found in the system, the source will be linked to the customer associated with this clientId.

Each visit must contain a site field that points to the store associated with the visit.

Parameters

ParameterTypeFormatDescription
visits[]array of objects (Visit){not blank} Array of visits to upload
visits[][createdAt]string{DateTime YYYY-MM-DD HH:MM:SS} Date and time the visit was created
visits[][visitLength]integer Visit duration
visits[][exitPage]string Page where the visit ended
visits[][landingPage]string Page where the visit started
visits[][pageViews]integer Number of pages viewed per visit
visits[][pageDepth]integer Page view depth per visit
visits[][customer]object (SerializedEntityCustomer) Customer
visits[][customer][id]integer Customer internal ID
visits[][customer][externalId]string Customer external ID
visits[][source]object (SerializedSource) The data about source
visits[][source][source]string Source
visits[][source][medium]string Medium
visits[][source][campaign]string Campaign
visits[][source][keyword]string Keyword
visits[][source][content]string Ad content
visits[][pages][]array of objects (Page) Array of pages to upload
visits[][pages][][url]string{not blank} Page URL
visits[][pages][][title]string Page title
visits[][pages][][countViews]integer Number of page views
visits[][pages][][timeOnPage]integer Time spent on the page in milliseconds
visits[][clientId]string{length: {min: 1, max: 255}} The clientId of web analytics to which the visit will be linked
visits[][site]string{length: {min: 1, max: 255}} The symbol code of the store in which the pages or the customer are being searched

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)
failedVisits[] array of objects (Visit) Array of visits to upload
failedVisits[][createdAt] string Date and time the visit was created
failedVisits[][visitLength] integer Visit duration
failedVisits[][exitPage] string Page where the visit ended
failedVisits[][landingPage] string Page where the visit started
failedVisits[][pageViews] integer Number of pages viewed per visit
failedVisits[][pageDepth] integer Page view depth per visit
failedVisits[][customer] object (SerializedEntityCustomer) Customer
failedVisits[][customer][site] string Symbolic code of store
failedVisits[][customer][id] integer Customer internal ID
failedVisits[][customer][externalId] string Customer external ID
failedVisits[][customer][type] string Customer type
failedVisits[][source] object (SerializedSource) The data about source
failedVisits[][source][source] string Source
failedVisits[][source][medium] string Medium
failedVisits[][source][campaign] string Campaign
failedVisits[][source][keyword] string Keyword
failedVisits[][source][content] string Ad content
failedVisits[][pages][] array of objects (Page) Array of pages to upload
failedVisits[][pages][][url] string Page URL
failedVisits[][pages][][title] string Page title
failedVisits[][pages][][countViews] integer Number of page views
failedVisits[][pages][][timeOnPage] integer Time spent on the page in milliseconds
failedVisits[][clientId] string The clientId of web analytics to which the visit will be linked
failedVisits[][site] string The symbol code of the store in which the pages or the customer are being searched
errorMsg string
errors array

HTTP statuses

Status codeDescription
201
  • Visits uploaded successfully
400
  • Visits uploading error
460
  • Errors occurred during the uploading. Part of the visits are not uploaded (the response also contains an "errors" array)

Statistics

GET /api/v5/statistic/update Statistics updating

Statistics updating

To access the method, the following permission is required analytics_write.

Queues up the task to update key statistical indicators in the system. Retry timeout is 60 seconds. If calls are made more frequently, a 400 error will be returned.

Response

ParameterTypeDescription
success boolean Query result (successful/unsuccessful)

HTTP statuses

Status codeDescription
200
  • The query was successfully executed