Request

Endpoint: !ResendMAEmails

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

Use the POST method for this endpoint.

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

Request parameters

The following table lists the required and optional 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

An order number belonging to one of your customers for which MA emails should be resent.

Sample request

curl --location --globoff 'https://secure.trust-provider.com/products/!ResendMAEmails' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'orderNumber=12345789'

Response

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

Any errorCode less than 0 indicates an error condition.

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

The response format is newline-delimited.

Response parameters

The response consists of one or two lines:

  • The first line represents the errorCode.

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

Sample success response

Success response with code 0.

0

Sample error response

-17
Request used GET rather than POST!

Error codes

The following table outlines error responses returned by the ResendMAEmails 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 argument value does not meet validation requirements.

-14

An unknown error occurred!

An unknown error occurred.

-17

Request used GET rather than POST!

The request method should be POST.

-42

Call limit reached! Please try again later.

The maximum number of allowed API requests has been reached.

-129

Address details confirmation errors

The address details provided are incorrect.