Get the last order details for each domain

The GETLASTORDER action returns information about the latest certificate requested or issued for every domain in the active subscription.

This action enables you to monitor certificate management performed via customer ACME clients. It enables you to track certificate issuance and renewal activities, identify potential issues (such as missed renewals or abnormal ordering patterns), and implement other value-added services for your customers.

Action: GETLASTORDER

Variable Name Type Max. Length Description

loginName

string

64 chars

Your account username.

This value is case sensitive.

loginPassword

string

128 chars

Your account password.

This value is case sensitive.

action

string

30 chars

The action to be taken.

In this case, the value is: GETLASTORDER.

acmeAccountID

string

32 chars

Your Base64 url encoded ACME account ID.

filter

string

32767 chars

(Optional) Expression for filtering.

  • Expression format: <JSON field name> <operation> <value>.

  • Allowed fields for filtering: domainName, validNotAfter.

  • Operations supported for string values: =, !=, ?, !?.

  • Operations supported for date values: =, !=, >, <, >=, <=.

  • Multiple filter parameters are allowed.

The response contains the statusCode and statusDesc parameters, which indicate the status of the certificate request and provide its description. The table below lists the possible values for these parameters, along with the corresponding status name (status) for reference.

The status column is for reference only and is not included in the API response.
Status code Status Status description

6

issued

Valid

9

issued

Issued but not yet collected

8

revoked

Revoked

14

replaced

Replaced

5

failed

POST-SIGN FAILED

3

failed

PRE-SIGN FAILED

7

rejected

Rejected

Sample request

curl --location --request POST 'https://secure.trust-provider.com/products/!ACMEAdmin' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=loginName' \
--data-urlencode 'loginPassword=loginPassword' \
--data-urlencode 'action=GETLASTORDER' \
--data-urlencode 'acmeAccountID=ABc_123xYZ456'

Success responses

Success response with data
{
    "Orders": [
        {
            "orderNumber": 123455,
            "acmeOrderID": "1ABCdEFGY1XYZ",
            "acmeOrderStatus": "valid",
            "certificateID": 123456770,
            "statusCode": 6,
            "statusDesc": "Valid",
            "domainName": "example.com",
            "serialNumber": "1AB234C082DE565F5A38DA",
            "validNotBefore": "2025-05-16T14:54:51Z",
            "validNotAfter": "2026-05-15T14:54:53Z",
            "acmeAccountID": "ABc_123xYZ456",
            "acmeEABKeyID": "5643Yx321_cBA"
        },
        {
            "orderNumber": 123457,
            "acmeOrderID": "ZYX321_abc654DeF1",
            "acmeOrderStatus": "processing",
            "certificateID": 123456779,
            "statusCode": 3,
            "statusDesc": "PRE-SIGN FAILED!!!",
            "domainName": "domain.com",
            "serialNumber": "",
            "validNotBefore": "",
            "validNotAfter": "",
            "acmeAccountID": "654ZYx321_cBA",
            "acmeEABKeyID": "ZYx321_abc654DeF1"
        }
    ]
}
Success response without data
{
    "Orders": [ ]
}