List used voucher codes
GET https://www.digicert.com/services/v2/voucher/download/used-codes
Use this endpoint to get a list of used voucher codes.
To get the list in CSV format, set the Accept
header in the request to text/csv
.
Example requests and responses
Filters and URL query parameters
This endpoint supports filters, sorting, and pagination. For general information and examples of the syntax to use when applying filters and sorting results, see Services API – Filters, sorting, and pagination parameters.
Name | Req/Opt | Type | Description |
---|---|---|---|
filters[ | optional | string | Filters results by the specified property. Replace If the value of the property is a date (for example,
For examples of filtering by date range, see Services API – Filters, sorting, and pagination parameters. Supported filters:
|
Response parameters
Name | Type | Description |
---|---|---|
codes | array | List of used voucher codes. Each voucher code object has the key/value pairs listed below. |
.. id | integer | Voucher code ID. |
.. value | string | Voucher code. |
.. product_name | string | Product the voucher code is for. Possible values: See Glossary – Product identifiers. |
.. no_of_fqdns | integer | Number of FQDNs the voucher allows. |
.. no_of_wildcards | string | Number of wildcard domain names the voucher allows. |
.. shipping_method | string | Voucher code shipping method. Possible values: |
.. validity_years | integer | Order validity in years. Returns 0 if the order validity for the voucher code is set using days instead of years. |
.. validity_days | integer | Order validity in days. Returns 0 if the order validity for the voucher code is set using years instead of days. |
.. status | string | Voucher code status. For used voucher codes, the status is always |
.. created_date | string | Date and time the voucher code was created. Format: |
.. voucher_order_id | integer | ID of voucher order associated with the voucher code. |
.. cert_request_date | string | Date and time the voucher code was used to request a certificate. Format: |
.. cert_validity_start_date | string | Certificate validity start date. Returns an empty string ( |
.. cert_validity_end_date | string | Certificate validity end date. Returns an empty string ( |
.. cert_organization | string | Name of the organization on the certificate request. |
.. cert_common_name | string | Value of the common name on the certificate request. |
.. certificate_order_id | string | Certificate order ID. Use this ID with the Order info API to get more information about the certificate order. |
.. voucher_validity_end_date | string | Voucher code expiration date. Format: |
.. order_valid_from | string | Order validity start date. Returns an empty string ( |
.. order_valid_till | string | Order validity end date. Returns an empty string ( |
.. server_licenses | integer | Number of server licenses included with the certificate. |