---
raw: true
search:
  tags:
    - Domains
    - GET
seo:
  description: >-
    Returns the registration or transfer state of an apex domain… Reference for
    the GET /v1/domains/{domainId}/registration endpoint in the Spacefast
    Partner API.
sidebar:
  label: Get a domain's registration
  badge: GET
title: Get a domain's registration
type: openapi-operation
---
Returns the registration or transfer state of an apex domain by id or hostname, or an unregistered record when Spacefast holds no registration for it. Pass `teamId` to restrict live registrations and retained failed purchases to that team. Pass `includeCheckout=true` to get the open Stripe payment link in `purchase.checkout`. You get the link only when you may purchase the domain and, when the checkout was opened with billing authority over the paying team, hold that authority too; otherwise `purchase.checkout` is null. A payment-link lookup failure sets `purchase.checkoutUnavailable` without hiding registration status. This read never opens another checkout. After payment a purchase moves `pending_payment` → `pending_registration` → `active`; a `failed` one carries `failureReason` and its refund in `purchase`, and stays readable after the failed purchase releases its domain.

`GET /v1/domains/{domainId}/registration`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "domainId": "string",
    "hostname": "string",
    "provider": "dsapi",
    "status": "string",
    "expiresAt": "2019-08-24T14:15:22Z",
    "redemptionEndsAt": "2019-08-24T14:15:22Z",
    "autoRenew": true,
    "transferLock": true,
    "privacySetting": "enable_privacy_service",
    "contactId": "string",
    "failureReason": "string",
    "purchase": {
      "intentId": "string",
      "lineStatus": "awaiting_payment",
      "checkout": {
        "id": "string",
        "url": "http://example.com",
        "expiresAt": "2019-08-24T14:15:22Z"
      },
      "checkoutUnavailable": true,
      "quotedFeeAmountCents": -9007199254740991,
      "paidAmountCents": -9007199254740991,
      "refund": {
        "reference": "string",
        "amountCents": -9007199254740991,
        "refundedAt": "2019-08-24T14:15:22Z"
      }
    },
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
```
