Creation of a new item in the directory "Departments"
POST
Creating a new item in the "Departments" directory
Request Body
application/json
accountantFromUserId
integer
Format
"int32"active
boolean
address
string
branchId
integer
Format
"int64"cashierFromUserId
integer
Format
"int32"chiefNameGenitive
string
chiefNameNominative
string
chiefNameNominativeForDoc
string
chiefPositionGenitive
string
chiefPositionNominative
string
code
string
commercialNetwork
string
contractPrefix
string
courtInfo
string
directorEmail
string
directorFullName
string
directorPhone
string
directorPosition
string
docNameForAccountant
string
docNameForCashier
string
docNameGenitive
string
documentDate
string
Format
"date"documentNumber
string
factAddress
string
generalAccountant
string
legalForm
string
name
string
ogrnRegDate
string
Format
"date"okpo
string
orgLicense
string
rnn
string
shops
object[]
id
integer
Format
"int64"shopId
integer
Format
"int64"subCode
string
telephone
string
transactionPrefix
string
Responses
OK
*/*
DefaultResponseOflong
object
data
integer
The identifier of the created item of the "Invoices" lookup
Format
"int64"status
string
If the element is successfully added to the directory, the status "ok" is returned. Otherwise, an error is returned
Valid values
"error""ok"timestamp
integer
Returns the date + time (kernel) in unix timestamp format in milliseconds
Format
"int64"