---
title: "Update site country pricing"
type: reference
method: POST
path: /rest-api/sites/{siteId}/pricing/{countryCode}.do
tag: "Sites"
---

# Update site country pricing

`POST https://YOUR-NETWORK-DOMAIN/rest-api/sites/{siteId}/pricing/{countryCode}.do`

Creates or updates a country-specific price override for the given site's fixed pricing model. The site must already have fixed pricing configured. The country code must be a valid 2-letter ISO 3166 code; it is case-insensitive (us and US are the same row), and Great Britain is stored and read back as UK, GB being accepted for it. price must be between 0 and 1000000, or the call is a 400 naming it and nothing is written. Optionally specify an actionId for per-action pricing; it must name a live action the caller can see in the console's action list. Requires ENABLED level on SITE_PAYMENT_MODEL permission.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `siteId` | integer | yes | `5001` | Unique numeric ID of the site |
| `countryCode` | string | yes | `US` | 2-letter ISO 3166 country code (e.g. US, GB, DE) |

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `price` | number | yes | `2.50` | Price value as a decimal number |
| `actionId` | integer | no | `42` | ID of the action for per-action pricing, or null for default pricing |

## Responses

- `200` — Country pricing updated successfully
- `400` — Invalid request parameters or site/country not found
- `401` — Authentication error
- `403` — Insufficient permissions
- `404` — actionId names no action the caller can see

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/sites/5001/pricing/US.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'price=2.50' \
  --data-urlencode 'actionId=42'
```

Source: https://epom.com/ad-server/docs/api/sites/post-sites-pricing-by-site-id