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
bonus_checks_get_bonus_checks_for_contactGet all bonus checks for a contact. Expired, redeemed and available.

The result can be paginated, using the offset and count query parameters. | |bonus_checks_get_redeemed_bonus_checks_for_contact| Get redeemed bonus checks for a contact. The result can be paginated, using the offset and count query parameters. | |bonus_checks_get_available_bonus_checks| 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. | |bonus_checks_redeem_bonus_check| Redeem a bonus check for a certain contact. |

bonus_checks_get_bonus_checks_for_contact

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
contact_idstrContact identifier (GUID).
offsetintThe first item to retrieve. (Default value 0)
countintThe max number of items to retrieve. (Default value 100)

Return Type

PagedResultOfAllBonusCheckModel

Example Usage Code Snippet

from voyado_engage import VoyadoEngage, Environment

sdk = VoyadoEngage(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.bonuschecks.bonus_checks_get_bonus_checks_for_contact(
contact_id="contactId",
offset=3,
count=6
)

print(result)

bonus_checks_get_redeemed_bonus_checks_for_contact

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
contact_idstrContact identifier (GUID).
offsetintThe first item to retrieve. (Default value 0)
countintThe max number of items to retrieve. (Default value 100)

Return Type

PagedResultOfRedeemedBonusCheckModel

Example Usage Code Snippet

from voyado_engage import VoyadoEngage, Environment

sdk = VoyadoEngage(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.bonuschecks.bonus_checks_get_redeemed_bonus_checks_for_contact(
contact_id="contactId",
offset=3,
count=8
)

print(result)

bonus_checks_get_available_bonus_checks

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
contact_idstrContact identifier (GUID).
offsetintNumber of items to skip. (Default value 0)
countintMax number of items to take. (Default value 100)

Return Type

PagedResultOfAvailableBonusCheckModel

Example Usage Code Snippet

from voyado_engage import VoyadoEngage, Environment

sdk = VoyadoEngage(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.bonuschecks.bonus_checks_get_available_bonus_checks(
contact_id="contactId",
offset=5,
count=9
)

print(result)

bonus_checks_redeem_bonus_check

Redeem a bonus check for a certain contact.

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

Parameters

NameTypeRequiredDescription
contact_idstrContact identifier (GUID).
bonus_check_idstrBonus check identifier.

Return Type

RedeemedBonusCheckModel

Example Usage Code Snippet

from voyado_engage import VoyadoEngage, Environment

sdk = VoyadoEngage(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.bonuschecks.bonus_checks_redeem_bonus_check(
contact_id="contactId",
bonus_check_id="bonusCheckId"
)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →