at.marque.partner.getOrder

marque.at

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "item": {
      "properties": {
        "domain": {
          "description": "The fully qualified domain name.",
          "maxLength": 253,
          "type": "string"
        },
        "expiresAt": {
          "description": "When the registration expires. Present once the item is active. Write this into the at.marque.domain record.",
          "format": "datetime",
          "type": "string"
        },
        "nameServers": {
          "description": "Authoritative nameservers assigned to the domain. Present once the item is active.",
          "items": {
            "maxLength": 253,
            "type": "string"
          },
          "type": "array"
        },
        "registeredAt": {
          "description": "When the domain was registered upstream. Present once the item is active.",
          "format": "datetime",
          "type": "string"
        },
        "status": {
          "description": "Per-domain provisioning status. pending: not yet registered. active: registered successfully. failed: registration failed for this domain.",
          "knownValues": [
            "pending",
            "active",
            "failed"
          ],
          "type": "string"
        }
      },
      "required": [
        "domain",
        "status"
      ],
      "type": "object"
    },
    "main": {
      "description": "Poll an order created by createCheckout. Call it proxied through the user's PDS (atproto-proxy: did:web:marque.at:api#marque_registrar) with an at.marque.partnerApi-scoped token; only orders owned by the authenticated user (the JWT iss) are returned. Status flows awaitingPayment (user has not finished paying) -> paid -> provisioning -> provisioned (or failed). Poll every few seconds until provisioned or failed. Once provisioned, each item carries the registeredAt, expiresAt, and nameServers the partner needs to write the at.marque.domain and at.marque.dns records into the user's repository. Individual items can be failed even when the order is provisioned (a partial failure); check each item's status.",
      "errors": [
        {
          "description": "No order with that id is owned by the authenticated user.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "error": {
              "description": "Failure reason when status is failed.",
              "type": "string"
            },
            "items": {
              "description": "One entry per domain in the order, in the order submitted to createCheckout.",
              "items": {
                "ref": "#item",
                "type": "ref"
              },
              "type": "array"
            },
            "orderId": {
              "description": "Echoes the requested order id.",
              "type": "string"
            },
            "status": {
              "description": "Overall order status. awaitingPayment: the user has not completed Stripe checkout. paid: payment captured, registration queued. provisioning: registering with the registry. provisioned: all domains registered (individual items may still be failed). failed: the order could not be provisioned.",
              "knownValues": [
                "awaitingPayment",
                "paid",
                "provisioning",
                "provisioned",
                "failed"
              ],
              "type": "string"
            }
          },
          "required": [
            "orderId",
            "status",
            "items"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "orderId": {
            "description": "The order id returned by createCheckout.",
            "type": "string"
          }
        },
        "required": [
          "orderId"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Get the status of a partner checkout order and the resulting domain details.",
  "id": "at.marque.partner.getOrder",
  "lexicon": 1
}

Validate Record

Validate a record against at.marque.partner.getOrder

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:nckosudltxrtrjkt4zz4jy5y
CID
bafyreihuhu6wg7akoe3ajnuuqpuiq235e2thq3al4z2by5zpwn6ej23nue
Indexed At
2026-06-16 14:55 UTC
AT-URI
at://did:plc:nckosudltxrtrjkt4zz4jy5y/com.atproto.lexicon.schema/at.marque.partner.getOrder

Version History (4 versions)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@