๐ชPayment types
This page provides a description of the available API routes for managing payment types.
Last updated
This page provides a description of the available API routes for managing payment types.
Last updated
Each purchase has to be paid using various methods, including cash, payment cards, vouchers, and more. These payment methods are collectively referred to as "payment types" and are represented by the PaymentType
class.
GET
http://{server-address}/paymenttypes
Returns all payment types that matches query parameters. Result is of type QueryResult<PaymentType>
.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
GET
http://{server-address}/paymenttypes/{number}
Result is of type PaymentType.
POST
http://{server-address}/paymenttypes
Creates new payment type. Result is of type PaymentType.
Required rights
Authorized user must have PaymentTypeCreate
right assigned.
PUT
http://{server-address}/paymenttypes/{number}
Updates existing or creates new payment type. Result is of type PaymentType.
Required rights
Authorized user must have assigned PaymentTypeCreate
or PaymentTypeUpdate
right.
DELETE
http://{server-address}/paymenttypes/{number}
Required rights
Authorized user must have PaymentTypeDelete
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 |
---|---|---|
number
int
Supports NData syntax.
isActive
bool
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.
category
PaymentTypeCategory
Supports NData syntax.
isChangeable
bool
Supports NData syntax.
Authorization*
string
Authorization header with authorization token.
number*
int
Unique payment type number.
Authorization*
string
Authorization header with authorization token.
Authorization*
string
Authorization header with authorization token.
(body)*
PaymentType
Model to create
number*
int
Unique payment type number.
Authorization*
string
Authorization header with authorization token.
(body)*
PaymentType
The model to create or update.
number*
int
Unique payment type number.
Authorization*
string
Authorization header with authorization token.