Request

Endpoint: !ResendCollectionEmailSMIME

https://secure.trust-provider.com/products/!ResendCollectionEmailSMIME

Use the POST method for this endpoint.

Submit parameters in the x-www-form-urlencoded format.

Request parameters

The following table displays the required, optional, and conditional parameters.

Parameter Requirement Type Max.Length Description

loginName

required

string

64 chars

Your account username.

This value is case sensitive.

loginPassword

required

string

128 chars

Your account password.

This value is case sensitive.

orderNumber

required

string

128 chars

The order number of the certificate to resend the email for.

Sample request

The following is a sample request to ResendCollectionEmailSMIME.

curl --location 'https://secure.trust-provider.com/products/!ResendCollectionEmailSMIME' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'orderNumber=123456789'

Response

The request is successful when the server returns a response with the status code equals 0.

Any status code less than 0 indicates an error condition.

The list of codes and their descriptions can be found in Error codes.

The response consists of one or two lines.

The first line represents the errorCode.

  • If errorCode=0, only one line is returned.

  • If errorCode<0, the second line contains the errorMessage.

The second line contains the errorMessage, which provides a description of the error.

Sample success response

Success response with the code 0.

0

Sample error response

-122
The Certificate is in wrong state.

Error codes

The following table outlines error responses returned by the ResendCollectionEmailSMIME API endpoint. Each error response consists of an errorCode and an errorMessage indicating why the request failed.

Error Code Error Message Description

-1

Request was not made over https!

The request must use HTTPS protocol.

-2

Unrecognised argument!

The provided argument is not recognized.

-3

The 'xxxx' argument is missing!

The required argument is missing from the request.

-4

The value of the 'xxxx' argument is invalid!

The provided value for the 'xxxx' argument is invalid.

-14

An unknown error occurred!

An unknown error occurred.

-16

Incorrect login details, account is locked, password has expired or your source IP is blocked.

Authentication has failed due to one of the specified reasons.

Verify your login credentials or check account restrictions.

-17

Request used GET rather than POST!

The request method should be POST.

-122

The Certificate is in wrong state.

The certificate is not in a state that allows the requested operation.

-123

The agreement was not passed.

The required agreement has not been accepted.

-124

The Certificate has actions not yet completed.

The certificate has pending actions that must be completed before proceeding.

-125

The Certificate is not issued yet.

The certificate has not been issued yet.