> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hostrox.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Change Domain

> Change the registered domain on a software order

This action changes the domain registered on a software order.

## Method / Endpoint

```text theme={null}
POST {{API_URL}}/order/transaction
```

For Hostrox, the full URL is:

```text theme={null}
POST https://client.hostrox.net/api/reseller/order/transaction
```

## Request parameters

| Name     | Required | Description                                      |
| -------- | -------- | ------------------------------------------------ |
| `key`    | Yes      | API Key                                          |
| `id`     | Yes      | Order ID number                                  |
| `action` | Yes      | The transaction to perform: `change-domain`      |
| `domain` | Yes      | The new domain to assign. Example: `example.com` |

## Example cURL request

```bash theme={null}
curl --location 'https://client.hostrox.net/api/reseller/order/transaction' \
  --header 'Content-Type: application/json' \
  --data '{
    "key": "UzZBSlBWeWk0UEcrVWxlU0RjS1B1dz09",
    "id": 2,
    "action": "change-domain",
    "domain": "newexample.com"
  }'
```

## Example JSON response

```json theme={null}
{
  "status": "successful"
}
```
