Follow the question structure recommended by Dev Bot before submitting your integration questions.
| Parameter | Type | Required | Description |
|---|---|---|---|
| idVoucher | int32 | No | Filter by the specific ID of the voucher. |
| name | string | No | Filter by the name of the voucher. |
| idBranch | int32 | Recommended | Filter by the branch number (only applicable for multi-location keys; ignored otherwise). |
| take | int32 | No | Number of records to be returned (maximum 50). Default: 25. |
| skip | int32 | No | Number of records to be ignored in the listing (pagination). Default: 0. |
| valid | boolean | No | Filter to return only valid vouchers (true) or invalid (false). |
| type | int32 | No | Filter by the type of voucher, according to types defined in the system. |
| Field | Type | Description |
|---|---|---|
| idVoucher | int32 | Unique ID of the voucher. |
| nameVoucher | string | Name of the voucher. |
| typeVoucher | string | Type of the voucher (e.g., promotional, membership discount, service discount). |
| limited | boolean | Indicates if the voucher has limited use. |
| available | int32 | Quantity available for use. |
| used | int32 | Quantity already used. |
| expirationDate | string (date-time) | Expiration date and time of the voucher. |
| overdue | boolean | Indicates if the voucher is expired (true) or still valid (false). |
| siteAvailable | boolean | Indicates if the voucher is available for use on the site/app. |
| idMemberships | array<int32> | List of membership IDs to which the voucher applies. |
| monthyDiscount | object | Information about applicable monthly discount. |
| yearlyDiscount | object | Information about applicable annual discount. |
| serviceDiscount | object | Information about applicable service discount. |
monthyDiscount Object| Field | Type | Description |
|---|---|---|
| typeDiscountMembership | string | Type of membership discount (e.g., percentage, fixed amount). |
| value | number | Value of the discount. |
| numberMounths | int32 | Number of months the discount will be applied |
yearlyDiscount Object| Field | Type | Description |
|---|---|---|
| typeDisocuntYearly | string | Type of annual discount (e.g., percentage, fixed amount). |
| value | number | Value of the discount. |
serviceDiscount Object| Field | Type | Description |
|---|---|---|
| typeDiscountService | string | Type of service discount (e.g., percentage, fixed amount). |
| value | number | Value of the discount. |