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

loginName

string

required

64 chars

Your account username.

This value is case sensitive.

loginPassword

string

required

128 chars

Your account password.

This value is case sensitive.

orderNumber

integer

optional

The order number of the mark certificate to be replaced or the details to be updated.

domainNames

required

string

32767 chars

A comma-separated list of domain names.

dcvEmailAddresses

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 domainNames parameter.

csr

required

string

32767 chars

Your Base64 URL-encoded certificate signing request.

The CSR must not contain domain names other than those provided in the domainNames parameter value.

markLogo

required

string

32000 chars

Your Base64 URL-encoded trademark logo.

trademarkCountryName

required

string

2 chars

(VMC only) The two-letter ISO country code where the trademark is registered.

trademarkOffice

required

string

128 chars

(VMC only) The trademark office where the trademark is registered.

trademarkIdentifier

required

string

64 chars

(VMC only) The trademark registration number or serial number.

organizationName

required

string

64 chars

The organization name requested for inclusion in the resulting certificate.

postOfficeBox

optional

string

40 chars

The organization post office box.

streetAddress1

required

string

128 chars

The street address of the organization provided for validation purposes.

streetAddress2

optional

string

128 chars

The second part of the organization’s street address (if necessary).

streetAddress3

optional

string

128 chars

The third part of the organization’s street address (if necessary).

localityName

required

string

128 chars

The city or town where the organization resides.

stateOrProvinceName

required

string

128 chars

The state or province in which the organization operates.

postalCode

required

string

40 chars

The postal code at which the organization operates.

countryName

required

string

2 chars

The country in which the organization operates.

companyNumber

required

string

64 chars

The registration number of the organization provided for validation purposes.

dunsNumber

optional

string

20 chars

A unique nine-digit identifier for businesses, provided by the company Dun & Bradstreet.

joiLocalityName

optional

string

128 chars

The city or locality where the organization is incorporated or registered.

joiStateOrProvinceName

optional

string

128 chars

The state or province where the organization is incorporated or registered.

joiCountryName

required

string

2 chars

The country in which the organization is incorporated.

assumedName

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).

dateOfIncorporation

optional

string

10 chars

The date when the organization was officially incorporated (YYYY-MM-DD).

businessCategory

required

char

1 char

The legal classification of the organization.

The possible values are:

  • b — Private

  • c — Government

  • d — Business Entity

appRepTitle

required

string

64 chars

The applicant representative’s job title.

appRepForename

required

string

64 chars

The applicant representative’s first name.

appRepSurname

required

string

64 chars

The applicant representative’s last name.

appRepEmailAddress

required

string

255 chars

The applicant representative’s email address.

appRepTelephone

required

string

32 chars

The contact phone number of the applicant representative.

appRepFax

optional

string

32 chars

The applicant representative’s fax number.

appRepOrganizationName

optional

string

64 chars

The applicant representative’s organization name.

appRepOrganizationalUnitName

optional

string

64 chars

The applicant representative’s organizational unit name.

appRepPostOfficeBox

optional

string

40 chars

The applicant representative’s post office box.

appRepStreetAddress1

optional

string

128 chars

The street address where the applicant representative does business.

appRepStreetAddress2

optional

string

128 chars

The second part of the applicant representative’s street address (if necessary).

appRepStreetAddress3

optional

string

128 chars

The third part of the applicant representative’s street address (if necessary).

appRepLocalityName

optional

string

128 chars

The city in which the applicant representative does business.

appRepStateOrProvinceName

optional

string

128 chars

The state or province in which the applicant representative does business.

appRepPostalCode

optional

string

40 chars

The postal code at which the applicant representative does business.

appRepCountryName

optional

string

2 chars

Applicant representative’s country code.

logoPriorUseDomainName

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.

logoHostedByCA

optional

string

1 char

Indicates whether the logo and certificates are hosted on the CA basis or not.

The possible options are:

  • Y - yes

  • N - no

If omitted, its value defaults to Y.

updateOrgDetails

optional

char

1 char

Indicates how organization and address details are handled.

  • Y - Sectigo will update the organizationName and address parameters (e.g., localityName, countryName, etc.), and the corresponding subject fields.

  • N - Sectigo will use newly provided values for these parameters to create a new address.

If omitted, its value defaults to N.

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'

Success response

// errorCode=0