Create unit order
POST https://www.digicert.com/services/v2/units/order
Use this endpoint to create a unit order. Unit orders allow you to buy units for the subaccounts you manage.
To buy units for a subaccount, the pricing method for the subaccount must be set to units
. To get the pricing method for a subaccount, use the List subaccount products endpoint.
Notice
To create a unit order, the option to allow unit transfers must be enabled for your account. To find out if this option is enabled for your account, contact your account manager.
Example requests and responses
Request parameters
Name | Req/Opt | Type | Description |
---|---|---|---|
unit_account_id | required | integer | ID of the subaccount to buy units for. To get IDs for the subaccounts you manage, use the List subaccounts endpoint. |
notes | optional | string | Custom note to attach to the order. Character limit: 512 |
bundle | required | array | List of one or more objects with information about the amount of units to order for each type of product. |
.. product_name_id | required | string | Unique identifier for the product that you want to order units for. Allowed values: See Glossary - Product identifiers. |
.. units | required | integer | Amount of units to order for the specified product. |
Response parameters
Name | Type | Description |
---|---|---|
id | integer | ID of the order. |