๐ซCustomers
This page provides a description of the available API routes for managing customers.
Last updated
This page provides a description of the available API routes for managing customers.
Last updated
The data model for customer is represented by Customer
class.
GET
http://{server-address}/customers
Returns all customers that matches query parameters. Result is of type QueryResult<Customer>
.
Name | Type | Description |
---|---|---|
GET
http://{server-address}/customers/{id}
Result is of type Customer
.
POST
http://{server-address}/customers
Creates new customer. Result is of type Customer
.
Required rights
Authorized user must have CustomerCreate
right assigned.
PUT
http://{server-address}/customers/{id}
Updates existing or creates new customer. Result is of type Customer
.
Required rights
Authorized user must have assigned CustomerCreate
or CustomerUpdate
right. 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.
DELETE
http://{server-address}/customers/{id}
Required rights
Authorized user must have CustomerDelete
right assigned.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|