Follow the question structure recommended by Dev Bot before submitting your integration questions.
| Parameter | Type | Required | Description |
|---|---|---|---|
voucher | string | Yes | Code of the voucher to be validated. |
idMembership | int32 | Yes | ID of the associated contract. |
idService | int32 | No | ID of the associated service. |
idBranch | int32 | Yes | ID of the branch. |
| Field | Type | Description |
|---|---|---|
idVoucher | int32 | Identifier of the voucher in the system. |
idVoucherItem | int32 | Identifier of the voucher item. |
voucher | string | Code of the voucher provided for validation. |
flFreePass | boolean | Indicates if the voucher grants free access. |
membershipValue | number | Original value of the contract before applying the discount. |
discountKind | int32 | Type of discount applied to the contract. |
discountValue | number | Value of the discount applied to the contract. |
finalMembershipValue | number | Final value of the contract after applying the discount. |
flSingleServiceDiscount | boolean | Indicates if the voucher has a discount for single service. |
singleServiceValue | number | Original value of the single service. |
singleServiceDiscountKind | int32 | Type of discount applied to the single service. |
singleServiceDiscountValue | number | Value of the discount applied to the single service. |
finalSingleServiceDiscountValue | number | Final value of the single service after applying the discount. |
flRecurringDiscount | boolean | Indicates if the voucher has a recurring discount. |
monthsRecurringDiscount | int32 | Number of months in which the recurring discount will be applied. |
flAnnuityDiscount | boolean | Indicates if the voucher has a discount on the annual fee. |
annuityValue | number | Original value of the annual fee. |
annuityDiscountKind | int32 | Type of discount applied to the annual fee. |
annuityDiscountValue | number | Value of the discount applied to the annual fee. |
finalAnnuityValue | number | Final value of the annual fee after applying the discount. |
dayAnnuity | int32 | Day configured for charging the annual fee. |
monthAnnuity | int32 | Month configured for charging the annual fee. |
finalValue | number | Final total value after applying all discounts of the voucher. |