Operation Id:
clients/giftcards/put [Official Documentaction]
Methods
- giftCards Array<Object>
- id Integer
- number String
- pin String
- name String
- expirationDate String
- balanceOperationType 'set'|'add'|'subtract'
- balance Object
- shops Array<Integer>
- note String
- add amount: number, currency: string
- subtract amount: number, currency: string
- set amount: number, currency: string
Examples
This function updates the name of the gift card with ID 23 to "MyCard".
const result = await idosellRequest.putClientsGiftcards
.id(23)
.name("MyCard")
.exec()
This function adds 10 PLN to the balance of the gift card with ID 23.
const result = await idosellRequest.putClientsGiftcards
.id(23)
.add(10,"PLN")
.exec()
This function sets balance vaue to 100 PLN to the gift card with ID 23, and then subtracts 20 PLN from the gift card with ID 24.
const result = await idosellRequest.putClientsGiftcards
.id(23)
.set(100,"PLN")
.append()
.id(24)
.subtract(20)
.exec()