Function: refundrule

Result: the list of elements

Refund policy

Access level: admin

  • id — Id
  • name — Name

Rule properties

Function: refundrule.edit

Access level: admin

The function is simultaneously used to view object's parameters, to change an object, and create new one.

View object's parameters:

  • Parameters:
    • elid — unique identifier (id element of refundrule function)
  • Result: object parameters list

Create an object:

  • Parameters:
    • sok — the parameter must not be empty, generally "ok".
    • additional query parameters ...
  • Result: successful operation or error message

Change an object:

  • Parameters:
    • sok — the parameter must not be empty, generally "ok".
    • elid — unique identifier (id element of refundrule function)
    • additional query parameters ...
  • Result: successful operation or error message

The list object's parameters or additional query parameters (see above):

  • name — Name. Enter the name for the rule
  • fixedsum — Fee amount. Enter the fixed amount. The amount is fixed in currency of the account from which funds will be withdrawn. The amount of fee when using a fixed amount and percentage will differ depending on the refund rules
  • percent — % from refund. Enter the percent of the refund amount that will be deducted from the client's account as a fee
  • calcorder — Calculate amount of refund. Commission can be calculated as follows: % + amount — percent of the amount will be calculated first and summed up with fixed amount; amount + % — fixed amount will be deducted from the total sum, and percent will be calculated from the remaining amount
  • expensename — Expense name. Enter the name of the expense that will be specified when deducting a fee

Delete

Function: refundrule.delete

Delete

Access level: admin

Parameters:

  • elid — one or more object's unique identifiers comma-delimited with space ", ". The unique identifiers is the id element of refundrule function.

Result: successful operation or error message