POST api/Topup?userID={userID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userID

globally unique identifier

Required

Body Parameters

BankCardTopupViewModel
NameDescriptionTypeAdditional information
BankCardProcessID

globally unique identifier

None.

CheckoutToken

string

None.

CurrencyCountryID

string

None.

UnloadFeeTransactionId

globally unique identifier

None.

ID

globally unique identifier

None.

UserID

globally unique identifier

None.

Amount

decimal number

None.

AdditionalAmount

decimal number

None.

DateProcessed

date

None.

SourcePaymentID

integer

None.

Description

string

None.

TransactionID

string

None.

DateCreated

date

None.

LoadAmount

decimal number

None.

LoadAdditionalAmount

decimal number

None.

LoadCurrencyCountryID

string

None.

LoadTransactionID

string

None.

ConversionRate

decimal number

None.

LoadPercentage

decimal number

None.

BankCardTopupID

globally unique identifier

None.

BankCardID

globally unique identifier

None.

isFirst

boolean

None.

SponsorProductId

globally unique identifier

None.

PaymentGateway

integer

None.

PaytabResponseCode

string

None.

SelectedAccountNo

string

None.

SelectedAccountId

string

None.

SelectedEntityId

string

None.

BankiomAccount

string

None.

SelectedAccount

LeanPaymentAccount

None.

OrderId

string

None.

Platform

string

None.

TopupStatusTypeID

integer

None.

AskAFriendPaymentLink

string

None.

FeeTypeCode

string

None.

FeeId

globally unique identifier

None.

FeeCalculationType

FeeCalculationType

None.

LoadedInCard

decimal number

None.

LoadedInCardAED

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "BankCardProcessID": "2c4226cc-f9ee-4621-9203-d16668a514c8",
  "CheckoutToken": "sample string 2",
  "CurrencyCountryID": "sample string 3",
  "UnloadFeeTransactionId": "735964c6-a34a-46c0-985b-1cadd1d81334",
  "ID": "912dfeed-ed6c-4f70-855d-7e5220da8528",
  "UserID": "b77ce8b2-f332-4d7a-be60-d0f11d8a1f50",
  "Amount": 6.1,
  "AdditionalAmount": 7.1,
  "DateProcessed": "2024-07-15T10:58:33.4635309+00:00",
  "SourcePaymentID": 8,
  "Description": "sample string 9",
  "TransactionID": "sample string 10",
  "DateCreated": "2024-07-15T10:58:33.4635309+00:00",
  "LoadAmount": 12.1,
  "LoadAdditionalAmount": 13.1,
  "LoadCurrencyCountryID": "sample string 14",
  "LoadTransactionID": "sample string 15",
  "ConversionRate": 16.1,
  "LoadPercentage": 17.1,
  "BankCardTopupID": "ab14fb96-5bfc-4788-b9b3-9702242949bd",
  "BankCardID": "fcc7a89f-ac8e-42e3-ad8c-155088544fa4",
  "isFirst": true,
  "SponsorProductId": "94bedf51-48ed-4047-92d6-544d26df5fb4",
  "PaymentGateway": 20,
  "PaytabResponseCode": "sample string 21",
  "SelectedAccountNo": "sample string 22",
  "SelectedAccountId": "sample string 23",
  "SelectedEntityId": "sample string 24",
  "BankiomAccount": "sample string 25",
  "SelectedAccount": {
    "id": "sample string 1",
    "account_id": "sample string 2",
    "account_name": "sample string 3",
    "account_number": "sample string 4",
    "iban": "sample string 5",
    "balance": 6.1,
    "currency": "sample string 7",
    "balance_last_updated": "2024-07-15T10:58:33.4635309+00:00"
  },
  "OrderId": "sample string 26",
  "Platform": "sample string 27",
  "TopupStatusTypeID": 28,
  "AskAFriendPaymentLink": "sample string 29",
  "FeeTypeCode": "sample string 30",
  "FeeId": "4aaf9f75-113f-4fbd-bce6-bbe9a3a9ebd5",
  "FeeCalculationType": 0,
  "LoadedInCard": 1.1,
  "LoadedInCardAED": 1.1
}

application/xml, text/xml

Sample:
<BankCardTopupViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bankiom.DataLayer.Common">
  <AdditionalAmount>7.1</AdditionalAmount>
  <Amount>6.1</Amount>
  <AskAFriendPaymentLink>sample string 29</AskAFriendPaymentLink>
  <BankCardID>fcc7a89f-ac8e-42e3-ad8c-155088544fa4</BankCardID>
  <BankCardProcessID>2c4226cc-f9ee-4621-9203-d16668a514c8</BankCardProcessID>
  <BankCardTopupID>ab14fb96-5bfc-4788-b9b3-9702242949bd</BankCardTopupID>
  <BankiomAccount>sample string 25</BankiomAccount>
  <CheckoutToken>sample string 2</CheckoutToken>
  <ConversionRate>16.1</ConversionRate>
  <CurrencyCountryID>sample string 3</CurrencyCountryID>
  <DateCreated>2024-07-15T10:58:33.4635309+00:00</DateCreated>
  <DateProcessed>2024-07-15T10:58:33.4635309+00:00</DateProcessed>
  <Description>sample string 9</Description>
  <FeeCalculationType>Default</FeeCalculationType>
  <FeeId>4aaf9f75-113f-4fbd-bce6-bbe9a3a9ebd5</FeeId>
  <FeeTypeCode>sample string 30</FeeTypeCode>
  <ID>912dfeed-ed6c-4f70-855d-7e5220da8528</ID>
  <LoadAdditionalAmount>13.1</LoadAdditionalAmount>
  <LoadAmount>12.1</LoadAmount>
  <LoadCurrencyCountryID>sample string 14</LoadCurrencyCountryID>
  <LoadPercentage>17.1</LoadPercentage>
  <LoadTransactionID>sample string 15</LoadTransactionID>
  <LoadedInCard>1.1</LoadedInCard>
  <LoadedInCardAED>1.1</LoadedInCardAED>
  <OrderId>sample string 26</OrderId>
  <PaymentGateway>20</PaymentGateway>
  <PaytabResponseCode>sample string 21</PaytabResponseCode>
  <Platform>sample string 27</Platform>
  <SelectedAccount>
    <account_id>sample string 2</account_id>
    <account_name>sample string 3</account_name>
    <account_number>sample string 4</account_number>
    <balance>6.1</balance>
    <balance_last_updated>2024-07-15T10:58:33.4635309+00:00</balance_last_updated>
    <currency>sample string 7</currency>
    <iban>sample string 5</iban>
    <id>sample string 1</id>
  </SelectedAccount>
  <SelectedAccountId>sample string 23</SelectedAccountId>
  <SelectedAccountNo>sample string 22</SelectedAccountNo>
  <SelectedEntityId>sample string 24</SelectedEntityId>
  <SourcePaymentID>8</SourcePaymentID>
  <SponsorProductId>94bedf51-48ed-4047-92d6-544d26df5fb4</SponsorProductId>
  <TopupStatusTypeID>28</TopupStatusTypeID>
  <TransactionID>sample string 10</TransactionID>
  <UnloadFeeTransactionId>735964c6-a34a-46c0-985b-1cadd1d81334</UnloadFeeTransactionId>
  <UserID>b77ce8b2-f332-4d7a-be60-d0f11d8a1f50</UserID>
  <isFirst>true</isFirst>
</BankCardTopupViewModel>

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 'BankCardTopupViewModel'.

Response Information

Resource Description

None.