Skip to main content

BonuschecksService

A list of all methods in the BonuschecksService service. Click on the method name to view detailed information about that method.

MethodsDescription
BonusChecks_GetBonusChecksForContactGet all bonus checks for a contact. Expired, redeemed and available. The result can be paginated, using the offset and count query parameters.
BonusChecks_GetRedeemedBonusChecksForContactGet redeemed bonus checks for a contact. The result can be paginated, using the offset and count query parameters.
BonusChecks_GetAvailableBonusChecksGet available bonus checks for a contact. Expired and redeemed bonus checks are excluded The result can be paginated, using the offset and count query parameters.
BonusChecks_RedeemBonusCheckRedeem a bonus check for a certain contact.

BonusChecks_GetBonusChecksForContact

Get all bonus checks for a contact. Expired, redeemed and available. The result can be paginated, using the offset and count query parameters.

  • HTTP Method: GET
  • Endpoint: /api/v2/contacts/{contactId}/bonuschecks

Parameters

NameTypeRequiredDescription
contactIdstringContact identifier (GUID).
offsetnumberThe first item to retrieve. (Default value 0)
countnumberThe max number of items to retrieve. (Default value 100)

Return Type

PagedResultOfAllBonusCheckModel

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.bonuschecks.bonusChecksGetBonusChecksForContact('contactId', {
offset: 2,
count: 7,
});

console.log(data);
})();

BonusChecks_GetRedeemedBonusChecksForContact

Get redeemed bonus checks for a contact. The result can be paginated, using the offset and count query parameters.

  • HTTP Method: GET
  • Endpoint: /api/v2/contacts/{contactId}/bonuschecks/redeemed

Parameters

NameTypeRequiredDescription
contactIdstringContact identifier (GUID).
offsetnumberThe first item to retrieve. (Default value 0)
countnumberThe max number of items to retrieve. (Default value 100)

Return Type

PagedResultOfRedeemedBonusCheckModel

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.bonuschecks.bonusChecksGetRedeemedBonusChecksForContact('contactId', {
offset: 6,
count: 3,
});

console.log(data);
})();

BonusChecks_GetAvailableBonusChecks

Get available bonus checks for a contact. Expired and redeemed bonus checks are excluded The result can be paginated, using the offset and count query parameters.

  • HTTP Method: GET
  • Endpoint: /api/v2/contacts/{contactId}/bonuschecks/available

Parameters

NameTypeRequiredDescription
contactIdstringContact identifier (GUID).
offsetnumberNumber of items to skip. (Default value 0)
countnumberMax number of items to take. (Default value 100)

Return Type

PagedResultOfAvailableBonusCheckModel

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.bonuschecks.bonusChecksGetAvailableBonusChecks('contactId', {
offset: 8,
count: 9,
});

console.log(data);
})();

BonusChecks_RedeemBonusCheck

Redeem a bonus check for a certain contact.

  • HTTP Method: POST
  • Endpoint: /api/v2/contacts/{contactId}/bonuschecks/{bonusCheckId}/redeem

Parameters

NameTypeRequiredDescription
contactIdstringContact identifier (GUID).
bonusCheckIdstringBonus check identifier.

Return Type

RedeemedBonusCheckModel

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.bonuschecks.bonusChecksRedeemBonusCheck('contactId', 'bonusCheckId');

console.log(data);
})();

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →