Request
Endpoint: !PlaceOrder
https://secure.trust-provider.com/products/!PlaceOrder
For GET requests, submit parameters in the query string.
For POST requests, submit parameters in application/x-www-form-urlencoded format.
Request parameters
The following table displays the required, optional, and conditional parameters.
| Parameter | Requirement | Type | Max.Length | Description |
|---|---|---|---|---|
|
optional |
string |
64 chars |
The affiliate brand name. |
|
optional |
string |
3 chars |
The three-character ISO4217 currency code of the prices that have been quoted to customer or when The supported currencies are:
|
|
optional |
string |
64 chars |
The region where the order originates. The default value is |
|
optional |
char |
Specifies whether the customer placing the order is new or already in the system. The allowed values are:
This parameter is only relevant when |
|
|
optional |
string |
255 chars |
A URL to which the browser will be redirected if an error occurs. |
|
optional |
string |
255 chars |
Specifies a URL that will be linked from the order confirmation page if Otherwise, if the order is placed successfully, it specifies a URL to which the browser will be immediately redirected. |
|
optional |
string |
255 chars |
Specifies the URL that will be linked from the order cancellation page when |
|
optional |
string |
255 chars |
A URL to which the browser will be redirected after payment, if necessary, bypassing the default order confirmation page. |
|
optional |
integer |
1 char |
Specifies when the payment is to be taken. The allowed values are:
|
|
optional |
char |
1 char |
Specifies whether the customer placing the order wishes to opt in to the Sectigo mailing list. The allowed values are:
|
|
optional |
string |
64 chars |
Specifies values related to offers and provided in cases of special pricing or when extra products are added. The allowed values are:
|
Company address details Some products do not require an address.
When an address is required, the state or province name may be omitted if For returning customers, any address details supplied here will replace any details supplied on previous occasions. |
||||
|
optional |
string |
64 chars |
The organization name. |
|
optional |
string |
64 chars |
The organizational unit name. |
|
optional |
string |
40 chars |
The organization post office box. |
|
optional |
string |
128 chars |
The street address where the organization is incorporated. |
|
optional |
string |
128 chars |
The second part of the company’s street address (if necessary). |
|
optional |
string |
128 chars |
The third part of the company’s street address (if necessary). |
|
optional |
string |
128 chars |
The city in which the organization is incorporated. |
|
optional |
string |
128 chars |
The state or province in which the organization operates. |
|
optional |
string |
40 chars |
The company’s postal code. |
|
optional |
string |
2 chars |
The ISO 3166 two-character code for the company’s country. If omitted, the value defaults to |
Other company details |
||||
|
optional |
string |
20 chars |
A unique nine-digit identifier for businesses, provided by the company Dun & Bradstreet. |
|
optional |
string |
64 chars |
The company’s registration number |
|
optional |
string |
128 chars |
(EV only) The jurisdiction of the city in which the organization is incorporated. |
|
optional |
string |
128 chars |
(EV only) The jurisdiction of the state or province in which the organization operates. |
|
optional |
string |
2 chars |
(EV only) The jurisdiction of the country in which the company is incorporated. |
|
optional |
string |
10 chars |
(EV only) The date of incorporation ( |
|
optional |
string |
64 chars |
(EV only) An optional name under which the organization operates that is different from its legal name. This is a so-called DBA (doing business as) name for the company (if any). |
|
optional |
char |
1 char |
The legal classification of the organization. The allowed values are:
|
|
optional |
string |
100 chars |
The organization identifier, or the PSD2 Authorization Identifier recognized by the National Competent Authority. This parameter is required for:
|
Tax Details |
||||
|
optional |
string |
14 chars |
(EU/UK customers) The VAT registration number. |
User personal details |
||||
|
optional |
string |
64 chars |
The customer’s title (for example, Mr, Mrs, Dr). |
|
conditional |
string |
128 chars |
The customer’s full name. If |
|
conditional |
string |
64 chars |
The customer’s first name. If |
|
optional |
string |
64 chars |
The customer’s last name. If |
|
required |
string |
255 chars |
The customer’s email address. If
|
|
optional |
string |
32 chars |
The customer’s telephone number. |
|
optional |
string |
32 chars |
The customer’s fax number. |
User login details |
||||
|
conditional |
string |
64 chars |
Your account username. This value is case sensitive. Whether this field is required depends on the product(s) being ordered. |
|
conditional |
string |
128 chars |
Your account password. This value is case sensitive. Whether this field is required depends on the product(s) being ordered. |
|
optional |
string |
255 chars |
The relevant 'licence code' from a previous order. |
|
optional |
string |
1 char |
(SSL certificates only) Specifies whether to disable inclusion of free web products in a particular SSL certificate order. The allowed values are:
|
|
optional |
string |
64 chars |
(SiteLock only) The domain name that the SiteLock product is ordered for. |
Shipping details |
||||
|
optional |
string |
64 chars |
Specifies the organization name required for shipping. |
|
optional |
string |
64 chars |
Specifies the organizational unit name required for shipping. |
|
optional |
string |
128 chars |
Specifies the street address required for shipping. |
|
optional |
string |
128 chars |
Specifies the second part of the street address required for shipping. |
|
optional |
string |
128 chars |
Specifies the third part of the street address required for shipping. |
|
optional |
string |
128 chars |
Specifies the city required for shipping. |
|
optional |
string |
128 chars |
Specifies the state or province required for shipping. |
|
optional |
string |
40 chars |
Specifies the postal code required for shipping. |
|
optional |
string |
2 chars |
Specifies the country required for shipping. This parameter must be an ISO 3166 two-character country code. |
|
optional |
string |
64 chars |
The customer’s title (for example, Mr, Mrs, Dr, etc.) to be specified as a contact person in the courier. |
|
optional |
string |
64 chars |
The customer’s first name to be specified as a contact person in the courier shipping document. |
|
optional |
string |
64 chars |
The customer’s last name to be specified as a contact person in the courier shipping document. |
|
optional |
string |
255 chars |
The customer’s email address who should be specified as a contact person in the courier shipping document. |
|
optional |
string |
32 chars |
The customer’s telephone number to be specified as a contact person in the courier shipping document. |
|
The parameters for shipping details are only relevant for token-based certificates. If no parameters for shipping address are provided, the shipping address defaults to the organization address. Though the parameters related to shipping details are optional, the absence of some of them (flagged as required for shipping below) will trigger sending of an email to the applicant representative requesting to provide the missing shipping details. If the missing shipping details, which are required for shipping, are not provided before the token is ready for shipment, the token will be shipped to the verified organization address with the applicant representative being specified as a contact person. |
Various parameters must also be provided to define the product(s) being purchased. They vary considerably depending on the product(s).
The following table outlines a sample of the types of a parameter.
Definitive parameter requirements for each product are documented in the PlaceOrder API for Resellers document.
|
The The first 'item number' is |
You may prepend an underscore to any of the x_ parameters.
This will be necessary if you need to reference such parameters in Javascript, because Javascript variables may not begin with a digit.
Parameters prefixed with x_ are product-specific and their requirements depend on the selected product type.
|
| Parameter | Requirement | Type | Max.Length | Description | ||
|---|---|---|---|---|---|---|
|
conditional |
integer |
A product ID. |
|||
|
conditional |
integer |
A product pricing parameter. |
|||
|
optional |
integer |
Specifies the visibility of the product in the control panel. The allowed values are:
|
|||
|
conditional |
integer |
The number of days. Its necessity is determined by the specific product. |
|||
|
required |
integer |
Indicates a quantity that affects the pricing. |
|||
|
required |
integer |
Indicates another quantity that affects the pricing. |
|||
|
optional |
string |
32 chars |
The selected method for domain control validation (DCV). The allowed values are:
If omitted, the value defaults to For more information, see Domain Control Validation.
|
||
|
required |
string |
15 chars |
(HackerGuardian only) An IPv4 address. |
||
|
optional |
char |
1 char |
(Document Signing, non-QWAC eIDAS, EV/OV Code Signing certificates only) Specifies whether the Code Signing certificate is to be issued on a smart card. The allowed values are:
|
||
|
optional |
string |
20 chars |
(OV/EV Code Signing and Document Signing certificates only) The hardware type used to generate the keypair in a non-exportable format, CSR and key attestation. The allowed values are:
|
||
|
optional |
string |
32767 chars |
(OV/EV Code Signing and Document Signing certificates only) The Base64-encoded HSM-specific attestation package/blob. Proof that the keypair has been generated and stored in secure hardware. |
||
|
optional |
integer |
Specifies the web server software that will be used to host the certificate. The allowed values are:
This parameter does not directly affect the certificate content. The |
|||
|
optional |
string |
255 chars |
The email address(es) that are to be included in the Subject Alternative Names (SAN) field of the resulting certificate. |
||
|
optional |
char |
1 char |
Specifies in the organization-validated S/MIME certificate request whether to include the organization name in the Common Name field of the certificate subject. The allowed values are:
|
||
|
optional |
string |
255 chars |
Specifies whether to include the email address in the certificate subject. |
||
|
optional |
string |
100 chars |
The semantics information for attributes stored in the subject field related to natural person. Required for eIDAS Citizen, Employee and QWAC Natural Qualified Certificate Profiles.
|
||
|
optional |
string |
100 chars |
An abbreviated unique identifier of the National Competent Authority (NCA). Required for PSD2 Qualified Certificate Profiles. This parameter must contain information using the following structure in the presented order:
|
||
|
optional |
char |
100 char |
The name of National Competent Authority in English that registered the payment service provider. Required for PSD2 Qualified Certificate Profiles. If omitted, the value is defined automatically based on the |
||
|
optional |
char |
1 char |
Specifies one of possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles. The allowed values are:
At least one PSD role should be set to |
||
|
optional |
char |
1 char |
Specifies one of possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles. The allowed values are:
|
||
|
optional |
char |
1 char |
Specifies one of possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles. The allowed values are:
|
||
|
optional |
char |
1 char |
One of possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles. The allowed values are:
|
An account can contain multiple email templates for the S/MIME certificate orders and provisioning of missing shipping details.
Contact Support when needed.
When configured, the following parameters can be included in the request to identify the email template to be used.
| Parameter | Requirement | Type | Max.Length | Description |
|---|---|---|---|---|
|
optional |
string |
2 chars |
Specifies the language for S/MIME emails. An account can contain multiple email templates in different languages for S/MIME emails. Contact Support for the email templates. There may be exactly one of the following values specified:
Any of the following parameters prevail over the
|
|
optional |
integer |
The S/MIME verification email templates.
|
|
|
optional |
integer |
The S/MIME request email templates.
|
|
|
optional |
integer |
The S/MIME collection email templates.
|
|
|
optional |
integer |
The shipping details email templates.
|
|
|
optional |
integer |
(OV/EV SSL, eIDAS, S/MIME, Code and Document signing certificates only) Specifies the Subscriber Agreement email template ID to be used for the order.
|
Sample request
curl --location 'https://secure.trust-provider.com/products/!PlaceOrder' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'isReturningCustomer=Y' \
--data-urlencode 'ap=Affiliate_Brand_Name' \
--data-urlencode '[email protected]' \
--data-urlencode '_1_PPP=400' \
--data-urlencode '1_webserverSoftwareID=-1'
Response
The type of response depends on whether the call was successful and on the successURL, errorURL and paymentStatus parameters supplied in the request.
successURL and errorURL, cancelURL and confirmURL are intended to be used only when PlaceOrder is called by a browser.
When PlaceOrder is called from a back-end server, these parameters are irrelevant.
If an Affiliate calls PlaceOrder from their back-end code, they should specify paymentStatus=2.
Unspecified errorURL
If an error occurs but errorURL was not supplied, then the MIME type of the response will be application/x-www-form-urlencoded, because the format of the response will be the same URL-encoded format as the request.
For example, name1=value1&name2=value2.
Response parameters
Various parameters may appear in the response:
| Parameter | Type | Max.Length | Description |
|---|---|---|---|
|
integer |
A numeric code that identifies the type of the error. For more information, see Error codes |
|
|
string |
128 chars |
A newly assigned order number if the order was placed successfully. |
|
string |
255 chars |
A description of the error. |
|
string |
255 chars |
The name of the request parameter that caused the error if applicable. |
Specified errorURL or successURL
If the call is successful and a successURL was supplied, or an error occurs and an errorURL was supplied, then the browser will be redirected to the successURL or errorURL, whichever is applicable.
The parameters listed in Unspecified errorURL will be passed as GET parameters in the 'query string' of the URL.
This query string can be parsed by some JavaScript code.
If paymentStatus=1, the browser will first be redirected through the payment pages of the default Sectigo payment gateway.
Once the payment has been received successfully, the browser will either be redirected to the confirmURL if specified.
Otherwise, the confirmation webpage will provide a link to the successURL if supplied.
If paymentStatus=0 or 2, then successURL, errorURL, cancelURL and confirmURL are completely ignored.
Instead, the response is specified like for the unspecified errorURL.
For orders that are cancelled from the payment gateway webpage, the order cancellation webpage will provide a link to the cancelURL if specified.
Specified paymentStatus
If paymentStatus=0, the following additional parameters are required in the request:
| Parameter | Type | Max.Length | Description |
|---|---|---|---|
|
number |
The total itemized cost without tax, in the specified currency, that has been paid already. |
|
|
number |
The total itemized tax in the specified currency, that has been paid already. |
|
|
integer |
Specifies the payment method used for the order. The possible values are:
|
|
|
string |
64 chars |
The payment transaction identifier provided by the payment gateway. For WorldPay, NobelPay, PayPal and SectigoPayments this parameter represents a 'transaction ID' assigned by the payment gateway. For cheque and wire transfer it is an optional comment assigned by whoever took the payment.
|
|
integer |
The date/time at which payment occurred. It is expressed as a UNIX time value. |
The response will be the same application/x-www-form-urlencoded response as for the unspecified errorURL.
The caller must be authenticated more strongly.
This must be done using an SSL client certificate issued by the Sectigo CA.
Also, the URL will be https://private.sectigo.com/products/!PlaceOrder instead of the endpoint URL in Request.
As the caller will be a server rather than the end customer’s browser, and as SSL Client authentication will strongly authenticate the caller, the caller need not supply the loginPassword of the customer.
The customer will be identified by just their loginName.
If paymentStatus=1, the behavior is as defined in other sections of this specification.
If any items in the order require payment using a regular payment agreement (such as FuturePay, FlexiPay, or FlexiBurn), then paymentStatus=1.
|
If paymentStatus=2, then the MIME type of the response will be application/x-www-form-urlencoded, because the format of the response will be the same URL-encoded format as the request (for example, name1=value1&name2=value2).
In addition to the parameters listed in, the following parameters will appear in the response:
| Parameter | Type | Max.Length | Description |
|---|---|---|---|
|
number |
The total cost required to be paid, including any applicable tax. |
|
|
string |
3 chars |
The three-character ISO4217 currency code of |
Specified confirmURL
If a confirmURL is specified, then after successful payment through the default Sectigo payment gateway, currently NobelPay or WorldPay, the default Sectigo confirmation page will not be displayed.
Instead, the browser will be redirected to confirmURL with the following parameters supplied in the query string:
| Parameter | Type | Max.Length | Description |
|---|---|---|---|
|
string |
64 chars |
The newly assigned order number. |
|
string |
3 chars |
The three-character ISO4217 currency code of the |
|
string |
255 chars |
A description of the item where |
|
number |
The cost without tax for the item where |
|
|
number |
The tax for the item where |
Error codes
The following table outlines error responses returned by the PlaceOrder API endpoint for Affiliates.
Each error response consists of an errorCode and an errorMessage indicating why the request failed.
| Error Code | Error Message | Description |
|---|---|---|
|
|
The request must use HTTPS protocol. |
|
|
The provided argument is not recognized. |
|
|
A required argument is missing from the request. |
|
|
The argument value does not meet validation requirements. |
|
|
The key size in the CSR is not supported. |
|
|
An unknown error occurred. |
|
|
Authentication has failed due to one of the specified reasons. Verify your login credentials or check account restrictions. |
|
|
Certain required details for validation are missing from the account. |
|
|
The order does not contain all items. |
|
|
The provided public key is not on the whitelist. |
|
|
The offer allows only one free license per account. |
|
|
The duration specified for the main HackerGuardian license or additional IP address pack is incorrect. |
|
|
The order is limited to one main license. |
|
|
The current license is not eligible for renewal at this time. |
|
|
The provided company name is already registered in the Qualys service. |
|
|
The additional IP address pack cannot be requested for a trial license. |
|
|
The additional IP address packs can only be purchased for existing HackerGuardian accounts. |
|
|
To renew access to the PCI portal, you must purchase enough IP addresses to cover the existing setup. |
|
|
The number of IP addresses provided does not correspond to the selected product. |
|
|
The required company name is missing. |
|
|
The provided email address is already registered in the CodeGuard service. |
|
|
The specified partner for the CodeGuard service is not recognized. |
|
|
The specified PlanID for the product could not be found. |
|
|
The CodeGuard partner is not currently activated. |
|
|
The order is limited to one CodeGuard license. |
|
|
The CodeGuard service is currently disabled. |
|
|
The provided email address is not valid. |
|
|
You cannot renew a trial Qualys license. |
|
|
The account has already placed an order for this Sectigo Web Platform (SWP) product. |
|
|
The specified argument is not applicable for the current order. |
|
|
The user does not have permission for the specified context. |
|
|
The session has expired. |
|
|
The required "Role" arguments are missing for the PSD2 certificate type. |
|
|
The SiteLock Monitor must be ordered alongside an SSL product. |
|
|
The HTTP(S) CSR Hash DCV methods cannot be used to validate a wildcard domain. |
|
|
The use of Document Signing Anchors is restricted when using the |
|
|
You are not permitted to purchase the specified addon. |
|
|
The key attestation verification failed. |