---
title: "Update banner CPA action pricing"
type: reference
method: POST
path: /rest-api/banner/{bannerId}/bannerPricing/actionPricing.do
tag: "Banners"
---

# Update banner CPA action pricing

`POST https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/bannerPricing/actionPricing.do`

Creates or updates the CPA action pricing for the specified banner. Identifies the action by either actionKey or actionName (key takes precedence). If no CPA pricing record exists, one is created automatically. price is required and must be between 0 and 1000000; a missing or out-of-range price is answered with a 400 naming it and nothing is written. Only an action the caller can see in the console's action list can be priced; any other is answered as an unknown one. Requires UPDATE permission on the banner's advertiser and MANAGE_PRICING permission, and CPA_PRICING_TYPE when the banner has no pricing yet.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `bannerId` | integer | yes | `3001` | ID of the banner |

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `price` | number | yes | `1.5` | Action price value, 0 to 1000000 |
| `actionName` | string | no | `registration` | Name of the action to price |
| `actionKey` | string | no | `reg_complete` | Key of the action to price (takes precedence over actionName) |

## Responses

- `200` — Action pricing updated
- `400` — Invalid request, banner not found, or pricing type is not CPA
- `401` — Authentication error
- `403` — Not enough permissions
- `404` — No action the caller can see matches actionKey/actionName

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/banner/3001/bannerPricing/actionPricing.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'price=1.5' \
  --data-urlencode 'actionName=registration' \
  --data-urlencode 'actionKey=reg_complete'
```

Source: https://epom.com/ad-server/docs/api/banners/post-banner-bannerpricing-actionpricing