Voucher types - OBSOLETE API

List Voucher types

URL

https://dev.v3manager.com/demo/api/voucherType

HTTP Method

GET

Example

curl -H "key: {apiKey}" "https://dev.v3manager.com/demo/api/voucherType"

Count Voucher types

URL

https://dev.v3manager.com/demo/api/voucherType/count

HTTP Method

GET

Sum Voucher types

URL

https://dev.v3manager.com/demo/api/voucherType/sum

HTTP Method

GET

Example

curl -H "key: {apiKey}" "https://dev.v3manager.com/demo/api/voucherType/sum?field=total&search=["created",">","05-07-2023"]" Encoded: curl -H "key: {apiKey}" "https://dev.v3manager.com/demo/api/voucherType/sum?field=total&search=%5B%22created%22%2C%22%3E%22%2C%2205-07-2023%22%5D"

Parameters

Name Type Required
field string yes
filter array no

Load Voucher type by id

URL

https://dev.v3manager.com/demo/api/voucherType/:id

HTTP Method

GET

Example

curl -H "key: {apiKey}" "https://dev.v3manager.com/demo/api/voucherType/22"

Create or update Voucher types

URL

https://dev.v3manager.com/demo/api/voucherType

HTTP Method

POST

Fields

Name Label Data type Readonly Descrition
updateUserName Updated by string No
updateUser Updated by int Yes
expiration Expiration duration No
createUserName Created by string No
createUser Created by int Yes
shortDescription Short description string No
daysOfWeek Days of the week daysOfWeek No
customerTag Will assign this tag int No
customerTagName Will assign this tag string No
updated Update date datetime Yes
created Creation date datetime Yes
startTime Time from time No
endTime Time until time No
name Name string No
productName Product string No
product Product int No
id ID int Yes
kind Type select No
Values for kind
Value Name
1 Money
3 Units