Customers
This page provides a description of the available API routes for managing customers.
Last updated
Was this helpful?
This page provides a description of the available API routes for managing customers.
Last updated
Was this helpful?
The data model for customer is represented by class.
GET
http://{server-address}/customers
Returns all customers that matches query parameters. Result is of type .
CardSerialNumber
string
Supports NData syntax. Compares SerialNumber
property of elements in Cards
collection.
ExternalId
string
Supports NData syntax.
CreditRate
decimal
Supports NData syntax.
DiscountRate
decimal
Supports NData syntax.
IsActive
bool
Supports NData syntax.
ExpirationTime
DateTime
Supports NData syntax.
IsExpired
bool
Boolean values allowed. Compares provided value to Status
property based on ActivationTime
and ExpirationTime
.
Search
string
Value is compared with partial case-insensitive match in following properties: FirstName
, LastName
, Company.Name
, Company.VatId
, Company.TaxId
and Note
.
$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.
Authorization*
string
Authorization header with authorization token.
GET
http://{server-address}/customers/{id}
id*
string
Unique customer identifier.
Authorization*
string
Authorization header with authorization token.
POST
http://{server-address}/customers
Required rights
Authorization*
string
Authorization header with authorization token.
(body)*
Customer
Customer model to create
PUT
http://{server-address}/customers/{id}
Required rights
id*
string
Unique customer identifier.
Authorization*
string
Authorization header with authorization token.
(body)*
Customer
Customer model to create or update.
DELETE
http://{server-address}/customers/{id}
Required rights
id*
string
Unique customer identifier.
Authorization*
string
Authorization header with authorization token.
Result is of type .
Creates new customer. Result is of type .
Authorized user must have CustomerCreate
assigned.
Updates existing or creates new customer. Result is of type .
Authorized user must have assigned CustomerCreate
or CustomerUpdate
. When updating existing customer, additional roles may be required: if discountRate
property is changed, CustomerSetDiscount
is required; If credit
property is changed, CustomerSetCredit
is required.
Authorized user must have CustomerDelete
assigned.