---
title: "Create Fee"
method: POST
path: "/pws/pws_create_fee/"
tags: ["Fees"]
---

# Create Fee

`POST /pws/pws_create_fee/`

## Request

- Base URL: `https://api.uat.paymentology.com/ppws/api`
- URL: `https://api.uat.paymentology.com/ppws/api/pws/pws_create_fee/`
- Auth: none declared

This web service creates a new credit fee. The fee will still need to be applied to a context using Activate Fee

## Request body

- PwsCreateFeeTemplateModel
  - `amount_referenced` string, required: <p>The amout percentage is counted from</br> possible options are: <ul><li>N/A: Amount is irrelevant</li> <li>TXN: transaction</li> <li>OWD: Amount owed</li> <li>ATA: Aggregated amount of all transactions during the day, billing cycle, or annual (depending on the value of applied_to)</li> <li>ATD: Aggregated amount of debit transactions during the day, billing cycle, or annual (depending on the value of applied_to)</li> <li>ATC: Aggregated amount of credit transactions during the day, billing cycle, or annual (depending on the value of applied_to)</li><li>BAL: Statement Balance</li><li>DUE:Minimum Due</li> <li>OLA: Over Limit Amount</li><li>SET: Settlement Currency Amount</li><li>BIL: Billing Currency Amount</li></ul></p>. <p>Table with the possible fee_type with amount_referenced and applied_to:</p><table > <tbody> <tr> <th ><strong>fee_type</strong></th> <th ><strong>applied_to</strong></th> <th ><strong>amount_referenced</strong></th> </tr> <tr> <td >AUT</td> <td >TXN</td> <td> TXN,BIL,SET</td> </tr> <tr> <td >PER</td> <td >ANN, BLC, DAY</td> <td>N/A, TXN, OWD, ATA, ATD, ATC</td> </tr> <tr> <td >ADH</td> <td >MAN</td> <td>N/A, TXN, OWD, ATA, ATD, ATC </td> </tr> <tr> <td >MSC</td> <td >MAN</td> <td>N/A</td> </tr> <tr> <td >FLP/FSC</td> <td >SPE</td> <td>BAL,DUE</td> </tr> <tr> <td >FOL</td> <td >SPE</td> <td>OLA</td> </tr> <tr> </tbody> </table>
  - `api_call_unique_identifier` string, required: Unique number that must be passed at each API request. Identifier to make each API request unique
  - `applied_to` 'TXN,BLC,ANN,DAY,MAN,SPE', required: <p>Fee that is applied to.</br>possible options are:</p><ul><li>TXN: transaction</li> <li>BLC: Billing Cycle (Period)</li> <li>ANN: Annually</li> <li>DAY: Daily (Computed during the overnight computational cycle)</li> <li>MAN: Api Charge Fee</li><li>SPE: Special Event</li></ul>
  - `client_id` integer, required: Unique identifier for the client which Paymentology will provide at outset
  - `effective_date` string, required: Effective Date
  - `fee_descr` string, required: Fee Description
  - `fee_title` string, required: Fee Title
  - `fee_type` 'AUT,PER,ADH,MSC,FLP,FRB,FOL,FCC,DOR', required: <p>Fee Type that is to be applied.</br>Possible Options are:</p><table > <tbody> <tr> <th ><strong>fee_type</strong></th> <th ><strong>fee_type_name</strong></th> <th ><strong>fee_type_description</strong></th> <th ><strong>fee_condition_usage</strong></th> </tr> <tr> <td >AUT</td> <td >Transaction Authorization Fee</td> <td>The fee is charged at transaction level during the Authorization Process. It is used in the Fraud Rules Engine</td> <td>1</td> </tr> <tr> <td >PER</td> <td >Periodic Fee</td> <td>Fee applied based on a predefined frequency</td> <td>2</td> </tr> <tr> <td >ADH</td> <td >Ad-Hoc Fee</td> <td>The fee is charged sporadically.</td> <td>0</td> </tr> <tr> <td >MSC</td> <td >Miscellaneous Fee</td> <td>Catch-All Fee triggered over API. Allows custom amount over an API call or a Billing Descriptor</td> <td>0</td> </tr> <tr> <td >FLP</td> <td >Late Payment Fee</td> <td>The fee is charged at the end of the Billing Cycle in case of a late payment or missed payment on account.</td> <td>0</td> </tr> <tr> <td >FRB</td> <td >Fee Rebate</td> <td>The fee rebate resulted by a reversal, etc.</td> <td>0</td> </tr> <tr> <td >FOL</td> <td >Over-the-Limit-Fee</td> <td>The fee is charged when the Credit Limit was exceeded and overdraft was applied</td> <td>2</td> </tr> <tr> <td >FCC</td> <td >Currency Conversion Fee</td> <td>The fee is charged when the currency conversion process took place.</td> <td>2</td> </tr> <tr> <td >DOR</td> <td >Dormancy Fee</td> <td>The fee is charged when the account is dormant during certain period of time determined by the Condition Function</td> <td>1</td> </tr> </tbody> </table>
  - `user_id` string: User Id of the Customer who triggered the API request.
  - `remarks` string: Remarks for API request
  - `external_fee_reference_id` string: External Fee Reference Id
  - `external_fee_reference_descr` string: External Fee Reference Descr
  - `condition_function_call` string: <p>Condition Function Call (to determine if the fee should be applied or not.</br>Empty string means that the fee can be applied unconditionally</p>)
  - `concurrency` boolean: If set to TRUE, then the fee will possibly be concurrent with other fees in the same Fee Priority Section
  - `fee_priority_section` integer: <p>Fee Priority Section (to decide about how to apply concurrent fees belonging to the same Fee Priority Section).</br>If concurrency = FALSE, this parameter must be NULL</p>
  - `fee_sectional_priority` integer: Priority of the current fee in presence of multiple fees from the same Fee Priority Section (0 is the highest prioority)
  - `special_actions` string: Function call for a function making special actions
  - `rule_id` integer: Rule Id
  - `fee_basis` integer: This parameter regulates in which case to apply the fee (of course, provided the rule is triggered): <ul><li>1: Apply only if the transaction is approved</li> <li>2: Apply only if the transaction is declined</li> <li>3: Apply only mo matter the transaction is approved or declined</li> <li>0: Irrelevant: The rule is not a subject for a fee (fee_id IS NULL)</li></ul>
  - `is_fee_rebate` boolean: This field indicate if the fee template include rebate fee or not
  - `taxable` boolean: Taxable Fee. If this field is true then for the calculation tax_fee_percent will be taken from product level

## Response `200`

Successful Response

- CreateFeeResponse
  - `header` CreateFeeHeader
    - `error_id` integer: error id
    - `error_desc` string: error message
  - `body` CreateFeeBody
    - `fee_id` integer: Fee Id

## Other responses

- `404`: Webservices does not exist
- `500`: Internal Server error

## Changes

- **2026-11-03** `73c2771493b1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/paymentology/apis/payapi-docs/changes/pws/pws_create_fee/post.md)

---

[API](https://skmtc.dev/paymentology/apis/payapi-docs.md) - [All operations](https://skmtc.dev/paymentology/apis/payapi-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/paymentology/apis/payapi-docs/revisions/73c2771493b1?raw)
