# List active orders

All completed orders are available on the server for at least 1 week. ACME client can list all active orders using the URL from the "orders" item of the ACME Account object:

```
POST https://stica.peeringhub.io/acme/orders/6A1AD155B73D45448E7B832888C3EF54
Content-Type: application/jose+json
Content-Length: 432
{
  "protected" : BASE64URL(
    {
      "alg": "ES256",
      "nonce": "A1D5D59169B8441B939843C0605BCD28",
      "url": "https://stica.peeringhub.io/acme/orders/6A1AD155B73D45448E7B832888C3EF54",
      "kid": "https://stica.peeringhub.io/acme/acct/6A1AD155B73D45448E7B832888C3EF54"
    }
  ),
  "payload" : "",
  "signature" : "<base64url-encoded signature>"
}
```

ACME server must return an array of ACME Order URL strings:

```
HTTP/1.1 200 OK
Replay-Nonce: 5962FB340B1D4C61B7E402513F018460
Content-Type: application/json; charset=utf-8
Content-Length: 168
{
  "orders": [
    "https://stica.peeringhub.io/acme/order/B572A9240F244CCB8716CC5B6853A22D",
    "https://stica.peeringhub.io/acme/order/0E22FC02933D42BC86A64425BB20D4B0"
  ]
}
```

Failed orders are kept available for at least one day.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.peeringhub.io/guides/generating-certificate/acme-protocol-reference/list-active-orders.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
