Create voucher order
POST https://www.digicert.com/services/v2/voucher
Use this endpoint to place a voucher order. To order voucher codes for multiple products at once, pass a voucher
object for each product configuration you want to order.
Note
Each voucher order is intended to be used by the same customer. If you need to order vouchers for multiple customers, place separate orders for each customer.
Example requests and responses
Request parameters
Name | Req/Opt | Type | Description |
---|---|---|---|
vouchers | required | array | List of object containers for new vouchers to order. |
.. product_name_id | required | string | Product name identifier. See Glossary – Product identifiers. |
.. no_of_fqdns | optional | integer | Number of FQDN SAN slots. Range: |
.. no_of_wildcards | optional | integer | Number of Wildcard SAN slots. Range: |
.. validity_years | conditional | integer | The number of years of order coverage. You must provide a value for either Range: Maximum order validity varies by product. To get the maximum order validity period for a product, use the Product info endpoint. |
.. validity_days | conditional | integer | The number of days of order coverage. Overrides Range: Maximum order validity varies by product. To get the maximum order validity period for a product, use the Product info endpoint. |
.. quantity | required | integer | Quantity of certificates you want to order with this configuration. Each certificate receives a unique voucher code. Range: |
.. shipping_method | conditional | string | For document signing and code signing certificates, choose how the requestor will provision or ship the certificates. Usage requirements depend on product type.
|
payment_method | required | string | Specify the payment method to use. Allowed values: |
credit_card | conditional | object | Object with information about the credit card charged for the order. Required if |
.. number | required | string | Credit card number. |
.. expiration_month | required | integer | Credit card expiration month. Format as a two-digit number between |
.. expiration_year | required | integer | Credit card expiration year. Format as a four-digit number. For example: |
.. cvv | required | integer | Card verification value (CVV). Format as a three- or four-digit number. For example: |
.. cardholder_name | required | string | Cardholder’s first and last name. |
billing_address | conditional | object | Object with information about the billing address. Required if |
.. address | required | string | Billing street address. |
.. address2 | optional | string | Continuation of street address. |
.. city | required | string | Billing city. |
.. state | conditional | string | Billing state or province. Optional for some countries. |
.. country | required | string | Billing country. |
.. zip | conditional | string | Billing zip or postal code. Optional for some countries. |
billing_contact | conditional | object | Billing contact to use for wire transfers. Required if |
.. name | required | string | Billing contact name. Character limit: 128 |
.. organization_name | required | string | Billing contact organization name. Character limit: 128 |
.. country | required | string | Two-letter country code for the country where the billing contact resides. Format: Must be a valid ISO 3166-1 alpha-2 code. |
.. address | required | string | Billing contact address. Character limit: 64 |
.. address2 | optional | string | Continuation of billing contact address. Character limit: 64 |
.. city | required | string | Billing contact city. Character limit: 64 |
.. state | optional | string | Billing contact state or province. Character limit: 64 |
.. zip | required | integer | Billing contact zip or postal code. Character limit: 10 |
required | string | Billing contact email address. Character limit: 255 | |
.. phone | optional | string | Billing contact phone number. Character limit: 32 |
name | optional | string | Include a customer name or organization that this voucher order is intended for. Only for tracking and order management purposes. Character limit: |
notes | optional | string | Include any notes that help you with order management. Character limit: |
Response parameters
Name | Type | Description |
---|---|---|
id | integer | Voucher order ID. |
name | string | Voucher order name provided in request. |
status | string | Status of Voucher order. Possible values: |
cost | number | Voucher order cost, without tax. |
cost_plus_tax | number | Voucher order cost, with tax. |
created_date | string | Date and time the voucher order was created. Format: |
expiration_date | string | Date the voucher order expires. Format: |
receipt_id | integer | Receipt ID. Returned when the |
invoice_id | integer | Invoice ID. Returned when the |
codes | array | List of objects with details about the voucher codes in this order. Each certificate in the order is returned as a separate object. |
.. id | integer | Voucher code ID. |
.. value | string | Unique voucher code. |
.. product | object | Object with product details. |
.. .. name_id | string | Name ID of the product. See Glossary – Product identifiers. |
.. no_of_fqdns | integer | Number of FQDN SAN slots. Possible values: |
.. no_of_wildcards | integer | Number of Wildcard SAN slots. Possible values: |
.. validity_years | integer | Number of years the certificate is valid. Only returned if the order request used |
.. validity_days | integer | Number of days the certificate is valid. Only returned if the order request used |
.. status | string | Voucher code status. |
notes | string | Notes provided in request to help you manage the voucher order. |