---
title: "Get ACME order for a domain"
method: GET
path: "/domains/{domain_id}/order"
tags: ["Domains"]
---

# Get ACME order for a domain

`GET /domains/{domain_id}/order`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/domains/{domain_id}/order`
- Auth: HTTP bearer

A domain without an ACME order (for example once its certificate is active)
answers 200 with `order: null` and a `reason`; only an unknown domain is a 404.

## Path parameters

- `domain_id` integer, required

## Response `200`

Order lookup result; `order` is null when the domain has no ACME order

- DomainOrderResponse: Result of looking up the ACME order of a domain. Having no order is a normal state (the certificate is already issued, or no order has been started yet), so it is reported as `order: null` with a `reason` and a 200 instead of a 404. Only an unknown domain is a 404.
  - `order` AcmeOrderResponse, nullable
    - `authorizations` unknown
    - `certificate_url` string, nullable
    - `challenge_validation` ChallengeValidationStatus, nullable
      - `error` ChallengeError, nullable
        - `detail` string, required: Human-readable error description
        - `status` integer, required: HTTP status code
        - `type` string, required: Error type (e.g., "urn:ietf:params:acme:error:unauthorized")
      - `status` string, required: Challenge status (e.g., "pending", "valid", "invalid")
      - `token` string, required: Challenge token
      - `type` string, required: Challenge type (e.g., "dns-01", "http-01")
      - `url` string, required: Challenge validation URL
      - `validated` string, nullable: When the challenge was validated (if successful)
    - `created_at` string, date-time, required
    - `domain_id` integer, required
    - `email` string, required
    - `error` string, nullable
    - `error_type` string, nullable
    - `expires_at` string, date-time, nullable
    - `finalize_url` string, nullable
    - `id` integer, required
    - `identifiers` unknown, required
    - `order_url` string, required
    - `status` string, required
    - `updated_at` string, date-time, required
  - `reason` string, nullable: Why there is no order. Present only when `order` is `null`.

## Other responses

- `401`: Unauthorized
- `404`: Domain not found
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 3 breaking
  - the `order/oneOf[#/components/schemas/AcmeOrderResponse]/created_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
  - the `order/oneOf[#/components/schemas/AcmeOrderResponse]/expires_at` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `order/oneOf[#/components/schemas/AcmeOrderResponse]/updated_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
- **2026-10-13** `dd766bfd1f06`: 8 breaking, 7 warning, 2 info
  - removed the required property `created_at` from the response with the `200` status
  - removed the required property `domain_id` from the response with the `200` status
  - removed the required property `email` from the response with the `200` status
  - removed the required property `id` from the response with the `200` status
  - …13 more

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/domains/:domain_id/order/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
