Endpoint: !AutoReplaceMC
https://secure.trust-provider.com/products/!AutoReplaceMC
The AutoReplaceMC API action enables you to replace an issued mark certificate associated with the specified order.
If the mark certificate for the order has not been issued yet, this API allows you to update the order details during validation.
Use the POST method for this endpoint.
Submit parameters in the x-www-form-urlencoded format.
The following table lists the required and optional parameters.
| Parameter | Type | Required/Optional | Max. Length | Description |
|---|---|---|---|---|
|
string |
required |
64 chars |
Your account username. This value is case sensitive. |
|
string |
required |
128 chars |
Your account password. This value is case sensitive. |
|
integer |
optional |
The order number of the mark certificate to be replaced or the details to be updated. |
|
|
required |
string |
32767 chars |
A comma-separated list of domain names. |
|
optional |
string |
32767 chars |
A comma-separated list of DCV email addresses and/or DCV methods to be used for validating the domains specified in the |
|
required |
string |
32767 chars |
Your Base64 URL-encoded certificate signing request. The CSR must not contain domain names other than those provided in the |
|
required |
string |
32000 chars |
Your Base64 URL-encoded trademark logo. |
|
required |
string |
2 chars |
(VMC only) The two-letter ISO country code where the trademark is registered. |
|
required |
string |
128 chars |
(VMC only) The trademark office where the trademark is registered. |
|
required |
string |
64 chars |
(VMC only) The trademark registration number or serial number. |
|
required |
string |
64 chars |
The organization name requested for inclusion in the resulting certificate. |
|
optional |
string |
40 chars |
The organization post office box. |
|
required |
string |
128 chars |
The street address of the organization provided for validation purposes. |
|
optional |
string |
128 chars |
The second part of the organization’s street address (if necessary). |
|
optional |
string |
128 chars |
The third part of the organization’s street address (if necessary). |
|
required |
string |
128 chars |
The city or town where the organization resides. |
|
required |
string |
128 chars |
The state or province in which the organization operates. |
|
required |
string |
40 chars |
The postal code at which the organization operates. |
|
required |
string |
2 chars |
The country in which the organization operates. |
|
required |
string |
64 chars |
The registration number of the organization provided for validation purposes. |
|
optional |
string |
20 chars |
A unique nine-digit identifier for businesses, provided by the company Dun & Bradstreet. |
|
optional |
string |
128 chars |
The city or locality where the organization is incorporated or registered. |
|
optional |
string |
128 chars |
The state or province where the organization is incorporated or registered. |
|
required |
string |
2 chars |
The country in which the organization is incorporated. |
|
optional |
string |
64 chars |
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 |
string |
10 chars |
The date when the organization was officially incorporated ( |
|
required |
char |
1 char |
The legal classification of the organization. The possible values are:
|
|
required |
string |
64 chars |
The applicant representative’s job title. |
|
required |
string |
64 chars |
The applicant representative’s first name. |
|
required |
string |
64 chars |
The applicant representative’s last name. |
|
required |
string |
255 chars |
The applicant representative’s email address. |
|
required |
string |
32 chars |
The contact phone number of the applicant representative. |
|
optional |
string |
32 chars |
The applicant representative’s fax number. |
|
optional |
string |
64 chars |
The applicant representative’s organization name. |
|
optional |
string |
64 chars |
The applicant representative’s organizational unit name. |
|
optional |
string |
40 chars |
The applicant representative’s post office box. |
|
optional |
string |
128 chars |
The street address where the applicant representative does business. |
|
optional |
string |
128 chars |
The second part of the applicant representative’s street address (if necessary). |
|
optional |
string |
128 chars |
The third part of the applicant representative’s street address (if necessary). |
|
optional |
string |
128 chars |
The city in which the applicant representative does business. |
|
optional |
string |
128 chars |
The state or province in which the applicant representative does business. |
|
optional |
string |
40 chars |
The postal code at which the applicant representative does business. |
|
optional |
string |
2 chars |
Applicant representative’s country code. |
|
required |
string |
255 chars |
(CMC only) The domain name where the logo was previously used. It must coincide with the domain name the certificate is requested for. |
|
optional |
string |
1 char |
Indicates whether the logo and certificates are hosted on the CA basis or not. The possible options are:
If omitted, its value defaults to |
|
optional |
char |
1 char |
Indicates how organization and address details are handled.
If omitted, its value defaults to |
Sample request
curl --location --request POST 'https://secure.trust-provider.com/products/!AutoReplaceMC' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=yourLoginName' \
--data-urlencode 'loginPassword=yourPassword' \
--data-urlencode 'orderNumber=123456' \
--data-urlencode 'isCustomerValidated=Y' \
--data-urlencode 'domainNames=example.com,www.example.com' \
--data-urlencode '[email protected]' \
--data-urlencode 'csr=BASE64_ENCODED_CSR' \
--data-urlencode 'markLogo=BASE64_ENCODED_LOGO' \
--data-urlencode 'trademarkCountryName=US' \
--data-urlencode 'trademarkOffice=USPTO' \
--data-urlencode 'trademarkIdentifier=123456789' \
--data-urlencode 'organizationName=Example Corp' \
--data-urlencode 'streetAddress1=123 Main St' \
--data-urlencode 'localityName=Anytown' \
--data-urlencode 'stateOrProvinceName=CA' \
--data-urlencode 'postalCode=12345' \
--data-urlencode 'countryName=US' \
--data-urlencode 'companyNumber=987654321' \
--data-urlencode 'joiCountryName=US' \
--data-urlencode 'businessCategory=b' \
--data-urlencode 'appRepTitle=Manager' \
--data-urlencode 'appRepForename=John' \
--data-urlencode 'appRepSurname=Doe' \
--data-urlencode 'appRepTelephone=+1-555-1234' \
--data-urlencode 'logoPriorUseDomainName=example.com'