Request
Endpoint: !GetMasterAccountDetails
https://secure.trust-provider.com/products/!GetMasterAccountDetails
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 |
|---|---|---|---|---|
|
required |
string |
64 chars |
Your account username. This value is case sensitive. |
|
required |
string |
64 chars |
Your account password. This value is case sensitive. |
|
required |
string |
128 chars |
Specifies the order number with the Enterprise Authentication record. |
|
optional |
string |
128 chars |
The timestamp indicates when the Enterprise Authentication record was created. It is expressed as a UNIX time value. The Enterprise Authentication created before this time will be ignored. The date range requested using If both |
|
optional |
integer |
The timestamp indicates when the Enterprise Authentication record was created. It is expressed as a UNIX time value. The Enterprise Authentication created after the time will be ignored. The date range requested using If If If both |
|
|
optional |
integer |
The timestamp indicates when the Enterprise Authentication expires. It is expressed as a UNIX time value. The Enterprise Authentication that expires before this time will be ignored. Date range requested using If both |
|
|
optional |
integer |
The timestamp indicates when the Enterprise Authentication expires. It is expressed as a UNIX time value. The Enterprise Authentication that expires after this time will be ignored. The date range requested using If If If both |
|
|
optional |
integer |
The status of the Enterprise Authentication. The allowed values are:
|
Sample request
The following example shows a sample request to getMasterAccountDetails with all required parameters.
curl --location 'https://secure.trust-provider.com/products/!GetMasterAccountDetails' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'orderNumber=order_number' \
--data-urlencode 'responseFormat=2'
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 MIME type will be application/x-www-form-urlencoded, because the format of the response will be the same URL-encoded format as the request (for example, name1=value1&name2=value2).
Response parameters
The following table displays the various parameters that can appear in the response.
| Parameter | Type | Description |
|---|---|---|
|
integer |
The error code. For more information, see Error codes. |
|
string |
The explanation of the error. |
|
string |
The order number. |
|
integer |
The status code of the enterprise authentication. |
|
string |
The status description of the enterprise authentication. |
|
integer |
The time the enterprise authentication was confirmed (created before confirmation). It is expressed as a UNIX time value. |
|
integer |
The time until the enterprise authentication expires. It is expressed as a UNIX time value. |
|
string |
The Enterprise Authentication email address. |
|
string |
The name of the company. |
|
string |
The department within the company. |
|
string |
The organization post office box. |
|
string |
The street address where the organization is incorporated. |
|
string |
The second part of the street address where the organization is incorporated (if necessary). |
|
string |
The third part of the street address where the organization is incorporated (if necessary). |
|
string |
The city in which the organization is incorporated. |
|
string |
The state or province in which the organization operates. |
|
string |
The postal code at which the organization operates. |
|
string |
The country in which the organization operates. The country name should be a two-character ISO 3166 country code. |
|
string |
The city or town (if any) in which the company is incorporated. Available for EV certificates. |
|
string |
The State or Province (if any) in which the company is incorporated. Available for EV certificates. |
|
string |
The country in which the company is incorporated.
Available for EV certificates. |
|
string |
The d/b/a (does business as) name (if any) for the company. Available Only for EV certificates. |
|
string |
The date of incorporation ( Applicable only for EV certificates. This is useful information for Validation purposes. |
|
string |
DUNS number — a unique nine-digit identifier for businesses, provided by the company Dun & Bradstreet. |
|
string |
The company registration number. |
|
string |
The legal classification of the organization. |
Sample success response
{
"data": {
"noOfResults": 1,
"orders": [
{
"orderNumber": "xxxxxx",
"type": "EV",
"statusCode": 21,
"statusDesc": "Awaiting Validation",
"creationDate": 1733488716,
"expiryDate": null,
"emailAddress": "[email protected]",
"telephoneNumber": null,
"surName": "signerSurname",
"foreName": "signerForename",
"organizationName": "Company Name XXXX",
"organizationalUnitName": null,
"postOfficeBox": null,
"streetAddress1": "streetAddress1",
"streetAddress2": null,
"streetAddress3": null,
"localityName": null,
"stateOrProvinceName": "California",
"postalCode": null,
"countryName": "US",
"joiLocalityName": null,
"joiStateOrProvinceName": "California",
"joiCountryName": "US",
"assumedName": null,
"dateOfIncorporation": null,
"dunsNumber": null,
"companyNumber": null,
"businessCategory": null,
"organizationIdentifier": null
}
]
},
"error": {
"code": 0,
"description": null,
"item": null
}
}
Error codes
The following table outlines error responses returned by the getMasterAccountDetails API endpoint.
Each error response consists of an errorCode and an errorMessage indicating why the request failed.
| Error Code | Error Message | Description |
|---|---|---|
|
|
The request must use |
|
|
The provided argument is not recognized. |
|
|
The required argument is missing from the request. |
|
|
The argument value does not meet validation requirements. |
|
|
An unknown error occurred. |
|
|
Authentication has failed due to one of the specified reasons. Verify your login credentials or check account restrictions. |
|
|
The request method should be |
|
|
The maximum number of API calls has been reached. |