POST api/Nymcard/CreateFee

Request Information

URI Parameters

None.

Body Parameters

FeeInput
NameDescriptionTypeAdditional information
description

string

None.

type

string

None.

currency

string

None.

transaction_type

string

None.

id

string

None.

percentage

decimal number

None.

range

Collection of Range

None.

transaction_origin

string

None.

source_channel

string

None.

Request Formats

application/json, text/json

Sample:
{
  "description": "sample string 1",
  "type": "sample string 2",
  "currency": "sample string 3",
  "transaction_type": "sample string 4",
  "id": "sample string 5",
  "percentage": 6.1,
  "range": [
    {
      "greater_than": 1.1,
      "less_than_equal_to": 2.1,
      "amount": 3.1,
      "percentage": 4.1
    },
    {
      "greater_than": 1.1,
      "less_than_equal_to": 2.1,
      "amount": 3.1,
      "percentage": 4.1
    }
  ],
  "transaction_origin": "sample string 7",
  "source_channel": "sample string 8"
}

application/xml, text/xml

Sample:
<FeeInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bankiom.Integrations.NYMCARD">
  <currency>sample string 3</currency>
  <description>sample string 1</description>
  <id>sample string 5</id>
  <percentage>6.1</percentage>
  <range>
    <Range>
      <amount>3.1</amount>
      <greater_than>1.1</greater_than>
      <less_than_equal_to>2.1</less_than_equal_to>
      <percentage>4.1</percentage>
    </Range>
    <Range>
      <amount>3.1</amount>
      <greater_than>1.1</greater_than>
      <less_than_equal_to>2.1</less_than_equal_to>
      <percentage>4.1</percentage>
    </Range>
  </range>
  <source_channel>sample string 8</source_channel>
  <transaction_origin>sample string 7</transaction_origin>
  <transaction_type>sample string 4</transaction_type>
  <type>sample string 2</type>
</FeeInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'FeeInput'.

Response Information

Resource Description

Fee
NameDescriptionTypeAdditional information
id

string

None.

description

string

None.

active

boolean

None.

type

string

None.

currency

string

None.

range

Collection of Range

None.

transaction_type

string

None.

transaction_origin

string

None.

created

date

None.

modified

date

None.

amount

integer

None.

percentage

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "description": "sample string 2",
  "active": true,
  "type": "sample string 4",
  "currency": "sample string 5",
  "range": [
    {
      "greater_than": 1.1,
      "less_than_equal_to": 2.1,
      "amount": 3.1,
      "percentage": 4.1
    },
    {
      "greater_than": 1.1,
      "less_than_equal_to": 2.1,
      "amount": 3.1,
      "percentage": 4.1
    }
  ],
  "transaction_type": "sample string 6",
  "transaction_origin": "sample string 7",
  "created": "2024-10-02T22:43:08.6361591+00:00",
  "modified": "2024-10-02T22:43:08.6361591+00:00",
  "amount": 10,
  "percentage": 11.1
}

application/xml, text/xml

Sample:
<Fee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bankiom.Integrations.NYMCARD">
  <active>true</active>
  <amount>10</amount>
  <created>2024-10-02T22:43:08.6361591+00:00</created>
  <currency>sample string 5</currency>
  <description>sample string 2</description>
  <id>sample string 1</id>
  <modified>2024-10-02T22:43:08.6361591+00:00</modified>
  <percentage>11.1</percentage>
  <range>
    <Range>
      <amount>3.1</amount>
      <greater_than>1.1</greater_than>
      <less_than_equal_to>2.1</less_than_equal_to>
      <percentage>4.1</percentage>
    </Range>
    <Range>
      <amount>3.1</amount>
      <greater_than>1.1</greater_than>
      <less_than_equal_to>2.1</less_than_equal_to>
      <percentage>4.1</percentage>
    </Range>
  </range>
  <transaction_origin>sample string 7</transaction_origin>
  <transaction_type>sample string 6</transaction_type>
  <type>sample string 4</type>
</Fee>