Skip to main content

2.2 Order Certificate

2.2.1 Interface Description

Test environment
Production environmenthttps://portal.racent.com/ssl/place
Request methodPOST
content-typemultipart/form-data
DescriptionThis interface is used to order certificates.

2.2.2 Parameter Definition

Parameter nameParameter typeRequiredDescription
api_tokenStringYIdentity credential. To generate a token, please contact Racent technical support.
productCodeStringYProduct code, obtain the product code (see Section 2.7)
yearsIntYPurchase validity period in years (currently only 1, 2, 3, 4, and 5 are supported), subject to the specific product.
refIdStringNUnique customer order number provided by the customer
verificationPicFileNAlternative verification material. Used for organization validation, supports .jpg/.jpeg/.png/.gif/.bmp/.rar/.zip/.pdf formats, with a file size no larger than 2 MB.
domainVerificationPicFileNThis parameter is Y when the domain verification method is VERIFY_DOCUMENT. Used for Domain Control Validation (DCV) (currently only supported by CFCA).
paramsStringYOrder information, described in detail as follows:
csrStringNWhen this parameter is empty, a CSR will be generated for you and the private key will be saved.
privateKeyStringNPrivate key.
serverStringNServer. Only relevant to SSL certificates. This parameter is Y for SSL certificates and N for other types of products. If this parameter is not required, use the default value "other".
orgCheckIntNValue is 0 or 1. When the value is 1, the system will retrieve all organizations under your account based on the organization information you submit. If a matching organization exists, its associated information will be used; if no match is found, the submitted information will be saved as a new organization. When the value is 0, organization information will not be saved.
duplicateOrgCheckIntNValue is 0 or 1. This parameter currently applies only to DigiCert SSL certificates. It is used to determine whether to reuse previously validated organization and domain information. When the value is 1, existing information is reused. When the value is 0, new information is created. The default value is 1.
needFreeIntNValue is 1 or 2. When the value is 1, the FQDN will be provided for free, and the www domain will also be provided for free along with the root domain. When the value is 2, no free domains are provided.
uniqueValueStringNRelevant to Sectigo products only. 1-20 characters (a-z A-Z 0-9) used by resellers to generate validation values independently.
dcvMethodStringNUnified configuration for the Domain Control Validation (DCV) method.
Must be one of the following four methods:
EMAIL (Email validation)
HTTP_CSR_HASH (File validation)
CNAME_CSR_HASH (DNS validation)
HTTPS_CSR_HASH (HTTPS file validation)
VERIFY_DOCUMENT (Domain certificate proof, supported by CFCA only)
This parameter is Y for CFCA.
domainInfoStringNDomain information, relevant to SSL certificates only. This parameter is Y for SSL certificates and N for other product types.
Example:
[
{ "dcvEmail": "admin@xxx.com",
"dcvMethod": "EMAIL",
"domainName": "www.xxx.com"
},
{
"dcvEmail": "admin@aaa.com",
"dcvMethod": "EMAIL",
"domainName": "aaa.com"
},
"dcvEmail": "admin@racent.com",
"dcvMethod": "EMAIL",
"domainName": "racent.com"
}
]
Detailed descriptions are as follows:
dcvMethodStringNDomain Control Validation method.
Must be one of the following four values:
EMAIL(Email Validation)
HTTP_CSR_HASH(File Validation)
CNAME_CSR_HASH(DNS Validation)
HTTPS_CSR_HASH(HTTPS File Validation)
This field is required (Y) when the parent dcvMethod does not exist.
If the parent dcvMethod exists and this field is also provided, the parent dcvMethod will take precedence.
dcvEmailStringNDomain Control Validation email address.
Default values when this field is not provided:
racent.com : admin@racent.com
www.racent.com : admin@racent.com
*.racent.com : admin@racent.com
domainNameStringNDomain name
organizationInfoStringNCompany information. This parameter is Y when ordering products that require enterprise validation. Example as follows:
{
"organizationCity": "上海",
"organizationName": "某公司",
"organizationMobile": "18111111111",
"organizationAddress": "上海市路",
"organizationCountry": "CN",
"organizationPostCode": "401320"
}"
organizationCityStringNCity where the company is located.
organizationNameStringNCompany name.
organizationMobileStringNCompany phone number.
organizationAddressStringNCompany address.
organizationCountryStringNCountry/Region where the company is located (two-letter code in the ISO 3166-1 standard).
organizationPostCodeStringNPostal code of the company's location.
organizationRegNumbeStringNCompany registration number. This field is required (Y) for CFCA.
idTypeStringNCompany registration document type. This field is required (Y) for CFCA.
Allowed values:
TYDMZ: Unified Social Credit Code
OTHERS: Other
AdministratorstringYAdministrator information, contact person. This parameter is used as application information when applying for code signing, email signing, or document signing certificates. In addition, if csr is set to N, this information will be used to generate the CSR.
{
"job": "General Manager's Office",
"city": "Shanghai",
"email": "xx@yy.com",
"state": "Shanghai",
"mobile": "18111111111",
"address": "Shanghai",
"country": "CN",
"lastName": "zhang",
"postCode": "401320",
"firstName": "nick",
"organation": "Company Name"
}"
jobStringYThe job title of the administrator.
cityStringYThe city where the administrator is located.
emailStringYThe email address of the administrator.
stateStringYProvince or state where the administrator is located.
mobileStringYAdministrator contact phone number.
addressStringYAdministrator contact address.
countryStringYThe country where the administrator is located (use the two-letter code as defined in the ISO 3166-1 standard).
lastNameStringYLast name of the administrator.
postCodeStringYPostal code of the administrator's location.
firstNameStringYAdministrator name.
organationStringYAdministrator company name.
idTypeStringNIdentity document type. This field is required (Y) for CFCA.
idNumberStringNIdentification number. This field is Y for CFCA.
financestringOnly relevant to SSL certificates.
Financial personnel information. This can be consistent with the administrator information. This parameter is Y when the ordered product is not of DV type.
{
"job": "Finance Department",
"city": "Shanghai",
"email": "xx@yy.com",
"state": "Shanghai",
"mobile": "18111111111",
"address": "Shanghai",
"country": "CN",
"lastName": "zhang",
"postCode": "401320",
"firstName": "nick",
"organation": "A Company"
}"
jobStringNPosition of the financial staff member.
cityStringNCity where the finance staff member is located.
emailStringNEmail address of the finance staff member.
stateStringNProvince or state where the finance staff member is located.
mobileStringNContact information of the finance staff.
addressStringNContact address of the finance staff.
countryStringNCountry where the finance staff is located (two-letter code in ISO 3166-1 standard).
lastNameStringNLast name of the finance contact.
postCodeStringNPostal code of the finance contact's location.
firstNameStringNFirst name of the finance contact.
organationStringNThe company where the finance staff member is located.
idTypeStringNID type. This field is Y for CFCA.
Values are as follows:
SFZ: Resident ID Card
HZ: Passport
idNumberStringNID number. This field is Y for CFCA.
techstringNRelevant to SSL certificates only.
Technician information. This parameter is required (Y) when the ordered product is not of DV type.
{
"job": "Technical Department","city": "Shanghai",
"email": "xx@yy.com",
"state": "Shanghai",
"mobile": "18111111111",
"address": "Shanghai",
"country": "CN",
"lastName": "zhang",
"postCode": "401320",
"firstName": "nick",
"organation": "Some Company"
}"
jobStringNPosition of the technician.
cityStringNCity where the technician is located.
emailStringNEmail address of the technical contact.
stateStringNProvince or state where the technical contact is located.
mobileStringNContact phone number of the technical contact.
addressStringNContact address of the technical contact.
countryStringNCountry where the technical contact is located (two-letter code per the ISO 3166-1 standard).
lastNameStringNLast name of the technical contact.
postCodeStringNPostal code of the technician's location.
firstNameStringNFirst name of the technician.
organationStringNCompany the technician works for.
idTypeStringNID type. This field is Y for CFCA.
Values are as follows:
SFZ: ID card
HZ: Passport
idNumberStringNID number. This field is Y for CFCA.

Function return

Parameter nameParameter typeRequiredDescription
codeIntYReturn status. For detailed explanations, see Appendix 3.1
errorsObject or StringNSpecific error information when the return status indicates an error.
dataObjectNThis parameter is Y when the return status is success. The specific description is as follows:
certIdStringNRacent certificate ID. Please keep it properly; this parameter is the unique credential of the Racent instance.
failReasonObjectNThis field is returned when Racent fails to apply for a certificate from the CA and the failure reason can be clearly identified.
dataReasonsArrayNData reason
keyStringNItem
reasonStringNReason
sysReasonStringNSystem reason
vendorIdStringNCA order number.
vendorCertIdStringNCA certificate number.
DCVfileNameStringNFile validation filename
DCVfileContentStringNFile validation file content
DCVdnsHostStringNDNS validation host value
DCVdnsValueStringNDNS validation record value
DCVdnsTypeStringNDNS validation record type
DCVfilePathStringNFile validation file path
dcvInfoObjectNIf validation values differ for each domain in the certificate request, this field is set to Y
Each entry is of type Object, with the requested domain as the object name, for example: racent.com. Details for each entry are as follows:
DCVfileNameStringNFile validation file content
DCVfileContentStringNFile validation file content
DCVdnsHostStringNDNS validation host value
DCVdnsValueStringNDNS validation record value
DCVdnsTypeStringNDNS validation record type
DCVfilePathStringNFile validation file path