Skip to main content

2.1 Validate Data

2.1.1 API Description

Test Environment
Production Environmenthttps://portal.racent.com/ssl/validate
Request MethodPOST
content-typemultipart/form-data
DescriptionThis API is used to validate all the order data you submit. Please call this API before calling the order API to ensure smooth order processing. This validation confirms your account information and ensures that your order details are correct, returning relevant error codes (see Appendix 3.1).

2.1.2 Parameter Definition

Parameter NameParameter TypeRequiredDescription
api_tokenStringYUser token. To obtain the token, please contact Racent technical support.
productCodeStringYProduct code. To obtain the product code (see 2.7).
yearsIntYPurchase duration (currently only 1, 2, 3, 4, 5 are supported), depending on the specific product.
refIdStringNThe unique customer order number provided by the customer
verificationPicFileNBackup verification material. Used for organization pre-validation, supports .jpg/.jpeg/.png/.gif/.bmp/.rar/.zip/.pdf formats, content size does not exceed 2M.
domainVerificationPicFileNWhen the Domain Control Validation (DCV) method is: VERIFY_DOCUMENT, this field is Y. Used for Domain Control Validation (DCV) (currently only supports CFCA).
paramsStringYOrder information (JSON string), as described in detail below
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. The parameter is Y for SSL certificates and N for other product types. If this parameter is not required, default to "other".
uniqueValueStringNOnly relevant to Sectigo products. 1-20 characters (a-z A-Z 0-9) used by distributors to generate a verification value independently.
dcvMethodStringNSet the domain validation method for the certificate request uniformly.
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, only supported for CFCA)
Y for CFCA
domainInfoStringNDomain information, only relevant to SSL certificates. This parameter is Y for SSL certificates and N for other 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 description is as follows:
dcvMethodStringNDomain validation 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)
When the parent dcvMethod does not exist, this parameter is Y.
When the parent dcvMethod exists and this parameter also exists, the parent dcvMethod takes precedence.
dcvEmailStringNDomain validation email.
When this field is N, the default values are as follows:
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 verification. Example:
{
"organizationCity": "Shanghai",
"organizationName": "A Company",
"organizationMobile": "18111111111",
"organizationAddress": "Shanghai Road",
"organizationCountry": "CN",
"organizationPostCode": "401320"
}"
organizationCityStringNThe city where the company is located.
organizationNameStringNThe company name.
organizationMobileStringNThe company phone number.
organizationAddressStringNCompany address.
organizationCountryStringNCountry where the company is located (two-letter code per ISO 3166-1 standard).
organizationPostCodeStringNPostal code of the company location.
organizationRegNumberStringNCompany registration number. This is Y for CFCA.
idTypeStringNCompany ID type. This is Y for CFCA.
Values:
TYDMZ: Unified Social Credit Code
OTHERS: Others
AdministratorstringYAdministrator information, contact. When applying for code signing, email signing, or document signing, this parameter serves as application information. Additionally, if csr is N, this information is used to generate the CSR.
{
"job": "General Manager Office",
"city": "Shanghai",
"email": "xx@yy.com",
"state": "Shanghai",
"mobile": "18111111111",
"address": "Shanghai",
"country": "CN",
"lastName": "zhang",
"postCode": "401320",
"firstName": "nick",
"organation": "A Company"
}"
jobStringYAdministrator's job title.
cityStringYAdministrator's city.
emailStringYAdministrator's email address.
stateStringYThe province or state where the administrator is located.
mobileStringYThe administrator's contact information.
addressStringYThe administrator's contact address.
countryStringYThe country where the administrator is located (two-letter code per ISO 3166-1).
lastNameStringYThe administrator's last name.
postCodeStringYThe postal code of the administrator's location.
firstNameStringYAdministrator's first name.
organationStringYAdministrator's company name.
idTypeStringNID type. This field is Y for CFCA.
Values are as follows:
SFZ: ID card
HZ: Passport
idNumberStringNID number. For CFCA, this field is Y.
financestringOnly relevant to SSL certificates.
Financial officer information. Can be the same as the administrator information. When the ordered product is not of the DV type, this parameter is Y.
{
"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"
}"
jobStringNThe job title of the financial officer.
cityStringNThe city where the financial officer is located.
emailStringNThe email address of the financial officer.
stateStringNThe province or state where the finance officer is located.
mobileStringNContact information for the finance officer.
addressStringNContact address for the finance officer.
countryStringNCountry where the finance officer is located (two-letter code per ISO 3166-1 standard).
lastNameStringNLast name of the finance officer.
postCodeStringNPostal code of the finance officer's location.
firstNameStringNAccountant's first name.
organationStringNThe company the accountant belongs to.
idTypeStringNID type. For CFCA, this field is Y.
Values are as follows:
SFZ: ID card
HZ: Passport
idNumberStringNID number. This is Y for CFCA.
techstringNOnly relevant to SSL certificates.
Technician information. This parameter is Y when the ordered product is not of the 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": "A Company"
}"
jobStringNTechnician job title.
cityStringNThe city where the technician is located.
emailStringNThe technician's email address.
stateStringNThe province or state where the technician is located.
mobileStringNTechnician contact information.
addressStringNTechnician contact address.
countryStringNCountry where the technician is located (two-letter code per ISO 3166-1 standard).
lastNameStringNLast name of the technician.
postCodeStringNPostal code of the technician's location.
firstNameStringNFirst name of the technician.
organizationStringNThe company of the technician.
idTypeStringNID type. Required for CFCA.
Values:
SFZ: ID card
HZ: Passport
idNumberStringNID number. Required for CFCA.

Function Return

Parameter NameParameter TypeRequiredDescription
codeIntYReturn status. Refer to Appendix 3.1 for details.
errorsObject or StringNError message when the return status indicates an error.

2.1.3 Request Example

请求示例

{
"years": 2,
"params":{"server":"iis7","csr":"-----BEGIN CERTIFICATE REQUEST-----\nxxxxxxyyyoo\n-----END CERTIFICATE REQUEST-----\n","domainInfo":[{"domainName":"tt.cn","dcvMethod":"HTTP_CSR_HASH","dcvEmail":""}],"Administrator":{"organation":"cola","job":"it","firstName":"nick","lastName":"zhang","email":"xx@tt.com.cn","mobile":"13911111111","country":"CN","address":"上海市","city":"上海","state":"上海","postCode":"4457145"},"finance":{"organation":"某公司","job":"ceo","firstName":"nick","lastName":"zhang","email":"xxx@qq.com","mobile":"18111111111","country":"CN","address":"上海市","city":"上海","state":"上海","postCode":"4514154"},"tech":{"organation":"某公司","job":"ceo","firstName":"nick","lastName":"zhang","email":"xxx@qq.com","mobile":"15122222222","country":"CN","address":"上海市","city":"上海","state":"上海","postCode":"48787"},"organizationInfo":{"organizationCity":"上海","organizationState":"上海","organizationMobile":"153999999999","organizationAddress":"上海某地","organizationCountry":"CN","organizationPostCode":"200233","organizationName":"个人"}},
"api_token": "zzzoooppzz",
"productCode": "comodo-positivessl"
}