Operation Id:
vouchers/vouchers/post [Official Documentaction]
Methods
- vouchers Array<Object>
- typeId Integer
- number String
- name String
- expirationDate String
- balance Object
- shops Array<Integer>
- note String
Examples
This function creates a voucher with the specified properties such as type ID, number, shop IDs, balance, and name.
Loading editor...
const result = await idosellRequest.postVouchers
.typeId(9)
.number("V123456789")
.shops([1])
.balance({ "amount":100,
"currency":"PLN"
})
.name("MyVoucher")
.exec();