Request
Endpoint: !ValidateMarkLogo
https://secure.trust-provider.com/products/!ValidateMarkLogo
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 | Type | Requirement | 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. |
|
string |
required |
32767 chars |
The mark logo image, provided as a Base64-encoded string. |
Sample request
curl --location 'https://secure.trust-provider.com/products/!ValidateMarkLogo' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'markLogo=yourBase64EncodedLogo'
Response
The MIME type of the response is application/json.
The response contains an error object that indicates the result of the request.
If the status code value is less than 0, the response represents a failure and includes an error description.
If the status code value is greater than or equal to 0, the response represents a successful operation.
Response parameters
| Field | Type | Description |
|---|---|---|
|
integer |
A numeric code that identifies the type of error. |
|
string |
A description of the error.
This field is |
|
string |
Additional error details.
This field is |
Sample error response
{
"error": {
"code": -160,
"description": "Failed to validate logo. SVG must be version 1.2 with baseProfile 'tiny-ps'.viewBox width and height must be equal (square). Got 216.03749x216.36249. Width and height must be numeric (optionally ending in 'px'). Attribute xmlns:dc not allowed on <svg>.Attri",
"item": "Failed to validate logo. SVG must be version 1.2 with baseProfile 'tiny-ps'.viewBox width and height must be equal (square). Got 216.03749x216.36249. Width and height must be numeric (optionally ending in 'px'). Attribute xmlns:dc not allowed on <svg>.Attri"
}
}
Error codes
The following table outlines error responses returned by the ValidateMarkLogo API endpoint.
Each error response consists of an errorCode and an errorMessage indicating why the request failed.
| Error Code | Error Message | Description |
|---|---|---|
-1 |
|
The request must use HTTPS protocol. |
-2 |
|
The provided argument is not recognized. |
-2 |
|
The provided argument is not recognized. |
-3 |
|
A required argument is missing from the request. |
-4 |
|
The argument value does not meet validation requirements. |
-16 |
|
The authentication failed due to incorrect login details, locked account, expired password, or blocked source IP address. |
-16 |
|
Authentication failed due to permission issues. |
-17 |
|
The request method should be |
-42 |
|
The maximum number of allowed API requests has been exceeded. Please wait before submitting additional requests. |
-91 |
|
The user does not have permission for the specified context. |
-91 |
|
The user does not have permission for the requested context. |
-91 |
|
The user is not permitted to use the auto-apply service. |
-160 |
|
The provided logo does not meet validation requirements. |