Get voucher code and details

GET
https://www.digicert.com/services/v2/voucher/{ID}/code/{ID}

Use this endpoint to get complete details and the redeemable code for an individual voucher from an order.

Example requests and responses

cURL
https://www.digicert.com/services/v2/subscription/1000/code/1
200 OK
{
  "id": "1",
  "value": "QWWQ7LQSO72QLPXEXMC5OA65SHS2CPWJ",
  "product_name_id": "ssl_basic",
  "no_of_fqdns": 5,
  "no_of_wildcards": 2,
  "validity_years": 6,
  "status": "used",
  "used_from": "2020-04-01",
  "valid_till": "2026-03-31"
}

Response parameters

Name Type Description
id int Voucher code ID.
value string Unique voucher code.
product_name_id string Name ID of the product. See Glossary – Product identifiers.
no_of_fqdns int Number of FQDN SAN slots. Range1-250. Note that the total number of SANs cannot exceed 250.
no_of_wildcards int Number of Wildcard SAN slots. Range1-250Note that the total number of SANs cannot exceed 250.
validity_years int Number of years the certificate is valid. Range1-6.
validity_days int Number of days the certificate is valid. Overrides cert_validity.years.
status string Status of Voucher code. Possible values: active, used, canceled,