GET vouchers/configuration/types/list
This method returns the voucher types that are allowed to be used in the system. Multiple voucher types are returned by each call
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Response Data
Name | Type | Description |
---|---|---|
Id | String | The ID of the retrieved voucher type |
name | String | The Name of the retrieved voucher type |
alternative_code | String | The Alternative Code of the retrieved voucher type |
description | String | The Description of the retrieved voucher type |
classification | String | The Classification of the retrieved voucher type. The supported options are PRINTED_PAYMENT_VOUCHER, ELECTRONIC_PAYMENT_VOUCHER and REFUND_VOUCHER Available from CRM.COM R13.1.0. Refund vouchers are available from CRM.COM R14.0.0 |
value_option | String | Defines if the value should be fixed or a variable. The supported options are FIXED and VARIABLE From CRM.COM R13.1.0 and onwards if the voucher type classification is "Electronic Voucher", then this value can be set as VARIABLE or FIXED From CRM.COM R14.0.0 and onwards if the voucher type classification is "Refund Voucher", then this value can only be set as VARIABLE |
value | Number | The value of the retrieved voucher type. This information is available only if the value option is set to FIXED |
extra_added_value | Number | The extra added value of the retrieved voucher type. This information is available only if the value option is set to FIXED From CRM.COM R13.1.0 and onwards if the voucher type classification is "Electronic Voucher", then this value can be set as VARIABLE or FIXED |
secret_number_length | Number | The length of the secret number of the retrieved voucher type |
voucher_using_method | String | The method which defines how the e-voucher can be used. This information is only available if the type's classification is "Electronic Voucher" and the supported options are PERSONAL, SHAREABLE Available from CRM.COM R13.1.0 |
minimum_allowed_value | Number | The minimum value allowed to be provided while creating an e-voucher. This information is only available if the type's value option is set to "VARIABLE" (excluding Refund Vouchers) Available from CRM.COM R13.1.0 |
maximum_allowed_value | Number | The maximum value allowed to be provided while creating an e-voucher. This information is only available if the type's value option is set to "VARIABLE" (excluding Refund Vouchers) Available from CRM.COM R13.1.0 |
udf_string_1 | String | User Defined Field of type String |
udf_string_2 | String | User Defined Field of type String |
udf_string_3 | String | User Defined Field of type String |
udf_string_4 | String | User Defined Field of type String |
udf_string_5 | String | User Defined Field of type String |
udf_string_6 | String | User Defined Field of type String |
udf_string_7 | String | User Defined Field of type String |
udf_string_8 | String | User Defined Field of type String |
udf_float_1 | Float | User Defined Field of type Float |
udf_float_2 | Float | User Defined Field of type Float |
udf_float_3 | Float | User Defined Field of type Float |
udf_float_4 | Float | User Defined Field of type Float |
udf_date_1 | Date | User Defined Field of type Date |
udf_date_2 | Date | User Defined Field of type Date |
udf_date_3 | Date | User Defined Field of type Date |
udf_date_4 | Date | User Defined Field of type Date |
Time Period Object | The validity period that a voucher of this type will be valid, measured in days or months. This information is available only if the voucher type has a "Refund Voucher" or an "Electronic Voucher" classification Available from CRM.COM R13.1.0 | |
default_payment_type | Financial Transaction Type Object | The type of payment that will be created on using vouchers of this type From CRM.COM R13.1.0 and onwards this information is only available if the voucher type classification is "Payment Voucher" and "Electronic Voucher" Deprecated from CRM.COM R15.0.0 |
default_invoice_type | Financial Transaction Type Object | The type of invoice that will be created on selling vouchers of this type. Applicable only when selling Printed Payment Voucher to customers or partners. From CRM.COM R13.1.0 and onwards this information is only available if the voucher type classification is "Electronic Voucher" Deprecated from CRM.COM R15.0.0 |
default_invoice_product | Product Object | The default product to be added on the invoice that will be created on using vouchers of this type. From CRM.COM R13.1.0 and onwards this information is only available if the voucher type classification is "Electronic Voucher" From CRM.COM R15.0.0 this product represents the voucher's product that will be used when Invoice financial transactions are generated because of various voucher processes |
default_payment_cancellation_type | Financial Transaction Type Object | The type of Payment Cancellation that will be created on cancelling vouchers of this type upon return From CRM.COM R13.1.0 and onwards this information is only available if the voucher type classification is "Electronic Voucher" Deprecated from CRM.COM R15.0.0 |
default_invoice_cancellation_type | Financial Transaction Type Object | The type of Invoice Cancellation that will be created on cancelling vouchers of this type upon return From CRM.COM R13.1.0 and onwards this information is only available if the voucher type classification is "Electronic Voucher" Deprecated from CRM.COM R15.0.0 |
default_refund_method | Refund Method Object | Contains all refund methods that will be used for performing back-end reduction, except the Payment Gateways options This information is applicable only if the voucher type classification is Refund Voucher Available from CRM.COM R14.0.0 |
currency | Currency Object | The currency in which vouchers of this type will be created Available from CRM.COM R14.2.0 |
log_information | Log Information Object | The log information of the retrieved voucher type |
products_set | Set of Voucher Products Objects | The voucher type products that can consume the amount of money that will be paid by vouchers of this type |
Referred Objects Response Data