---
title: "Change the pricing type or the network's plan"
type: reference
method: POST
path: /rest-api/ad-server-fees.do
tag: "Ad Server Fees"
---

# Change the pricing type or the network's plan

`POST https://YOUR-NETWORK-DOMAIN/rest-api/ad-server-fees.do`

Changes only what the call names and leaves the rest as it is. pricingType decides how impressions are charged on every plan, so changing it changes what the network pays; activePlanId moves the network onto another plan, which takes the plan it was on off. A plan's own rates are changed with ad-server-fees/plans.do. This does not create or settle an invoice: the month's charges are recomputed from the plan the network is on when the figures are next refreshed, which is done on the Ad Server Fees page. Requires the Ad Server Fees Management console permission.

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `pricingType` | string | no | `SPLIT` | How impressions are charged: SPLIT (desktop, mobile and video rates), GLOBAL (one rate) or LEGACY |
| `activePlanId` | integer | no | `3` | The plan the network is to run on; it replaces the one it is on now |

## Responses

- `200` — {success, changed:[...], pricingType, activePlanId, activePlanName}
- `400` — No field named, or a plan id that is not a plan of this network
- `401` — Authentication error
- `403` — The caller does not hold AD_SERVER_FEES_MANAGEMENT

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/ad-server-fees.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'pricingType=SPLIT' \
  --data-urlencode 'activePlanId=3'
```

Source: https://epom.com/ad-server/docs/api/ad-server-fees/post-ad-server-fees