Vouchers Models
Product filter
Endpoints
Retrieve by ID
GET https://eu.golfmanager.com/api/model/voucherProduct/[id]
Retrieve many
GET https://eu.golfmanager.com/api/model/voucherProduct
Create
POST https://eu.golfmanager.com/api/model/voucherProduct
Update
POST https://eu.golfmanager.com/api/model/voucherProduct/[id]
Delete
DELETE https://eu.golfmanager.com/api/model/voucherProduct/[id]
Fields
Name |
Label |
Type |
Required |
Readonly |
id |
ID |
int |
no |
yes |
type |
Type |
int |
yes |
no |
product |
Product |
int |
yes |
no |
ratio |
Ratio |
float |
no |
no |
created |
Creation date |
datetime |
no |
yes |
createUser |
Created by |
int |
no |
yes |
updated |
Update date |
datetime |
no |
yes |
updateUser |
Updated by |
int |
no |
yes |
deleted |
Removed |
bool |
no |
yes |
Transaction
Endpoints
Retrieve by ID
GET https://eu.golfmanager.com/api/model/voucherTransaction/[id]
Retrieve many
GET https://eu.golfmanager.com/api/model/voucherTransaction
Create
POST https://eu.golfmanager.com/api/model/voucherTransaction
Update
POST https://eu.golfmanager.com/api/model/voucherTransaction/[id]
Delete
DELETE https://eu.golfmanager.com/api/model/voucherTransaction/[id]
Fields
Name |
Label |
Type |
Required |
Readonly |
id |
ID |
int |
no |
yes |
voucher |
Voucher |
int |
yes |
no |
description |
Description |
string |
yes |
no |
sale |
Sale |
int |
no |
no |
salePayment |
|
int |
no |
no |
payment |
Payment |
int |
no |
no |
amount |
Amount |
float |
yes |
no |
balanceAfter |
Balance |
float |
yes |
no |
unitPrice |
|
currency |
yes |
no |
useDate |
Production date |
datetime |
yes |
no |
fkModel |
|
fkModel |
no |
yes |
fkId |
|
int |
no |
yes |
ratio |
Ratio |
float |
no |
no |
refunded |
Back |
bool |
yes |
no |
type |
Type |
select |
yes |
no |
voucherType |
Type |
string |
yes |
no |
customerName |
Customer |
string |
yes |
no |
beneficiary |
Beneficiary |
int |
no |
no |
created |
Creation date |
datetime |
no |
yes |
createUser |
Created by |
int |
no |
yes |
updated |
Update date |
datetime |
no |
yes |
updateUser |
Updated by |
int |
no |
yes |
deleted |
Removed |
bool |
no |
yes |
Values for type
Value |
Name |
1 |
Recarga |
2 |
Consumption |
3 |
Manual |
4 |
Bulk Top up |
Voucher
Endpoints
Retrieve by ID
GET https://eu.golfmanager.com/api/model/voucher/[id]
Retrieve many
GET https://eu.golfmanager.com/api/model/voucher
Create
POST https://eu.golfmanager.com/api/model/voucher
Update
POST https://eu.golfmanager.com/api/model/voucher/[id]
Delete
DELETE https://eu.golfmanager.com/api/model/voucher/[id]
Fields
Name |
Label |
Type |
Required |
Readonly |
id |
ID |
int |
no |
yes |
customer |
Customer |
int |
yes |
no |
type |
Type |
int |
yes |
no |
unitPrice |
Price per unit |
currency |
yes |
no |
balance |
Balance |
float |
yes |
no |
startDate |
Valid from |
date |
no |
no |
endDate |
Valid until |
date |
no |
no |
startTime |
Time from |
time |
no |
no |
endTime |
Time until |
time |
no |
no |
daysOfWeek |
Days of the week |
daysOfWeek |
no |
no |
comments |
Observations |
text |
no |
no |
created |
Creation date |
datetime |
no |
yes |
createUser |
Created by |
int |
no |
yes |
updated |
Update date |
datetime |
no |
yes |
updateUser |
Updated by |
int |
no |
yes |
deleted |
Removed |
bool |
no |
yes |
Voucher beneficiary
Endpoints
Retrieve by ID
GET https://eu.golfmanager.com/api/model/voucherBeneficiary/[id]
Retrieve many
GET https://eu.golfmanager.com/api/model/voucherBeneficiary
Create
POST https://eu.golfmanager.com/api/model/voucherBeneficiary
Update
POST https://eu.golfmanager.com/api/model/voucherBeneficiary/[id]
Delete
DELETE https://eu.golfmanager.com/api/model/voucherBeneficiary/[id]
Fields
Name |
Label |
Type |
Required |
Readonly |
id |
ID |
int |
no |
yes |
customer |
Holder |
int |
yes |
no |
beneficiary |
Beneficiary |
int |
yes |
no |
created |
Creation date |
datetime |
no |
yes |
createUser |
Created by |
int |
no |
yes |
updated |
Update date |
datetime |
no |
yes |
updateUser |
Updated by |
int |
no |
yes |
deleted |
Removed |
bool |
no |
yes |
Voucher type
Endpoints
Retrieve by ID
GET https://eu.golfmanager.com/api/model/voucherType/[id]
Retrieve many
GET https://eu.golfmanager.com/api/model/voucherType
Create
POST https://eu.golfmanager.com/api/model/voucherType
Update
POST https://eu.golfmanager.com/api/model/voucherType/[id]
Delete
DELETE https://eu.golfmanager.com/api/model/voucherType/[id]
Fields
Name |
Label |
Type |
Required |
Readonly |
id |
ID |
int |
no |
yes |
name |
Name |
string |
yes |
no |
kind |
Type |
select |
yes |
no |
product |
Product |
int |
yes |
no |
shortDescription |
Short description |
string |
no |
no |
expiration |
Expiration |
duration |
no |
no |
startTime |
Time from |
time |
no |
no |
endTime |
Time until |
time |
no |
no |
daysOfWeek |
Days of the week |
daysOfWeek |
no |
no |
customerTag |
Will assign this tag |
int |
no |
no |
created |
Creation date |
datetime |
no |
yes |
createUser |
Created by |
int |
no |
yes |
updated |
Update date |
datetime |
no |
yes |
updateUser |
Updated by |
int |
no |
yes |
deleted |
Removed |
bool |
no |
yes |
Values for kind
Value |
Name |
1 |
Money |
3 |
Units |
VoucherPrice
Endpoints
Retrieve by ID
GET https://eu.golfmanager.com/api/model/voucherPrice/[id]
Retrieve many
GET https://eu.golfmanager.com/api/model/voucherPrice
Create
POST https://eu.golfmanager.com/api/model/voucherPrice
Update
POST https://eu.golfmanager.com/api/model/voucherPrice/[id]
Delete
DELETE https://eu.golfmanager.com/api/model/voucherPrice/[id]
Fields
Name |
Label |
Type |
Required |
Readonly |
id |
ID |
int |
no |
yes |
type |
Type |
int |
yes |
no |
tagFilter |
Filter tag |
int |
no |
no |
amount |
Top up amount |
float |
yes |
no |
price |
Price |
currency |
yes |
no |
online |
Available online |
bool |
yes |
no |
minAge |
Minimum age |
int |
no |
no |
maxAge |
Maximum age |
int |
no |
no |
description |
Description |
text |
no |
no |
priority |
Priority |
int |
yes |
no |
created |
Creation date |
datetime |
no |
yes |
createUser |
Created by |
int |
no |
yes |
updated |
Update date |
datetime |
no |
yes |
updateUser |
Updated by |
int |
no |
yes |
deleted |
Removed |
bool |
no |
yes |