Companies
This page provides a description of the available API routes for managing companies.
Last updated
Was this helpful?
This page provides a description of the available API routes for managing companies.
Last updated
Was this helpful?
Suppliers and purchasers are commonly referred to as companies, and within the companies database, there exists an additional record marked as "default" that represents the merchant, owner or the cash register system.
Company is represented by class.
GET
http://{server-address}/companies
Returns all companies that matches query parameters. Result is of type .
id
string
Supports NData syntax.
crn
string
Supports NData syntax.
$skip
int
Pagination property. Describing number of records to skip from beginning of result collection.
$take
int
Pagination property. Maximum count of items to be returned.
$sort
string[]
Comma separated list of property names. Please see NData syntax.
$count
bool
If set to true
, response will not contain items
collection. Use to get resource count, not the resources themselves.
discountRate
decimal
Supports NData syn
name
string
Supports NData syntax.
isDefault
bool
Supports NData syntax.
isActive
bool
Supports NData syntax.
isTaxPayer
bool
Supports NData syntax.
type
CompanyType
Supports NData syntax.
taxId
string
Supports NData syntax.
vatId
string
Supports NData syntax.
dueDays
int
Supports NData syntax.
search
string
Supports NData syntax.
Authorization*
string
Authorization header with authorization token.
GET
http://{server-address}/companies/{id}
id*
string
Unique identifier.
Authorization*
string
Authorization header with authorization token.
POST
http://{server-address}/companies
Required rights
Authorization*
string
Authorization header with authorization token.
(body)*
Company
Model to create.
PUT
http://{server-address}/companies/{id}
Required rights
id*
string
Unique identifier.
Authorization*
string
Authorization header with authorization token.
(body)*
Company
Model to create or update.
DELETE
http://{server-address}/companies/{id}
Required rights
id*
string
Unique identifier.
Authorization*
string
Authorization header with authorization token.
Result is of type .
Creates new company. Result is of type .
Authorized user must have CompanyCreate
assigned.
Creates new or updates existing company. Result is of type .
Authorized user must have assigned CompanyCreate
or CompanyUpdate
.
Authorized user must have CompanyDelete
assigned.