---
title: "Purchase privacy for a specified domain"
method: POST
path: "/v1/domains/{domain}/privacy/purchase"
tags: ["v1"]
---

# Purchase privacy for a specified domain

`POST /v1/domains/{domain}/privacy/purchase`

## Request

- Base URL: `https://api.ote-godaddy.com`
- URL: `https://api.ote-godaddy.com/v1/domains/{domain}/privacy/purchase`
- Auth: none declared

## Path parameters

- `domain` string, required

## Headers

- `X-Shopper-Id` string

## Request body

- PrivacyPurchase
  - `consent` Consent, required
    - `agreedAt` string, iso-datetime, required: Timestamp indicating when the end-user consented to these legal agreements
    - `agreedBy` string, required: Originating client IP address of the end-user's computer when they consented to these legal agreements
    - `agreementKeys` string[], required: Unique identifiers of the legal agreements to which the end-user has agreed, as returned from the/domains/agreements endpoint

## Response `200`

Request was successful

- DomainPurchaseResponse
  - `currency` string, iso-currency-code: Currency in which the `total` is listed
  - `itemCount` integer, required: Number items included in the order
  - `orderId` integer, required: Unique identifier of the order processed to purchase the domain
  - `total` integer, required: Total cost of the domain and any selected add-ons

## Other responses

- `400`: Request was malformed
- `401`: Authentication info not sent or invalid
- `403`: Authenticated user is not allowed access
- `404`: Resource not found
- `409`: The domain status does not allow performing the operation
- `422`: End-user must read and consent to all of the following legal agreements<br>`domain` must match `sld.tld`
- `429`: Too many requests received within interval
- `500`: Internal server error

---

[API](https://skmtc.dev/godaddy/apis/domains-api.md) - [All operations](https://skmtc.dev/godaddy/apis/domains-api/llms.txt) - [OpenAPI document](https://skmtc.dev/godaddy/apis/domains-api/revisions/475bd0561c3c?raw)
