# Set card program fee

**PUT** `/issuing/card-programs/{card_program_id}/fees/{fee_type}`

Set how a card program calculates one of its fees, replacing its current configuration. The new configuration applies to fees charged from then on; fees already charged keep how they were calculated. Column must enable card fees on the card program first.

### Path Parameters

- `card_program_id` `string` _(required)_ — Unique identifier for the card program.
- `fee_type` `string` _(required)_ — Unique identifier for the fee type.

### Body Parameters

- `bps` `number` — The basis points of the transaction amount charged, between `0` and `500` (5%) for `fx` fees. The default is `0`
- `currency_code` `string` _(required)_ — The currency of the fee, which must be the card program's currency
- `enabled` `boolean` — Whether the card program charges the fee. The default is `true`
- `fixed_amount` `number` — The fixed amount charged on each transaction. The default is `0`
- `max_amount` `number` — The most the fee charges. Omit for no maximum
- `min_amount` `number` — The least the fee charges. Omit for no minimum
- `refund_on_merchant_refund` `boolean` — Whether a merchant refund linked to the original purchase also gives back the purchase's fee. The default is `false`

**Request**

```shell
curl 'https://api.column.com/issuing/card-programs/<card_program_id>/fees/<fee_type>' \
  -XPUT \
  -u :<YOUR API KEY> \
  -H 'Content-Type: application/json' \
  -d '{
  "currency_code": "USD",
  "bps": 300,
  "fixed_amount": 0,
  "max_amount": 2500,
  "min_amount": 50,
  "enabled": true,
  "refund_on_merchant_refund": true
}'
```

**Response 200**

```json
{
  "bps": 300,
  "created_at": "2024-01-15T09:30:00Z",
  "currency_code": "USD",
  "enabled": true,
  "fee_type": "fx",
  "fixed_amount": 0,
  "max_amount": 2500,
  "min_amount": 50,
  "refund_on_merchant_refund": true,
  "updated_at": "2024-01-15T09:30:00Z"
}
```
