POST api/Account/AddBankCardTopup

Request Information

URI Parameters

None.

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": "20b45ee6-3784-4d5f-9631-85d71fe7a619",
  "CheckoutToken": "sample string 2",
  "CurrencyCountryID": "sample string 3",
  "UnloadFeeTransactionId": "dcfa471d-1033-40a4-905c-4fe3dba7ec4c",
  "ID": "77f87f63-065e-4f19-bf8e-7e2724ebae18",
  "UserID": "02c5b696-9029-4898-9176-c7b5c6a0941c",
  "Amount": 6.1,
  "AdditionalAmount": 7.1,
  "DateProcessed": "2024-07-13T04:50:59.4043854+00:00",
  "SourcePaymentID": 8,
  "Description": "sample string 9",
  "TransactionID": "sample string 10",
  "DateCreated": "2024-07-13T04:50:59.4043854+00:00",
  "LoadAmount": 12.1,
  "LoadAdditionalAmount": 13.1,
  "LoadCurrencyCountryID": "sample string 14",
  "LoadTransactionID": "sample string 15",
  "ConversionRate": 16.1,
  "LoadPercentage": 17.1,
  "BankCardTopupID": "6fd07505-ac04-4da4-a88a-84e08f8c0489",
  "BankCardID": "b52dfbfa-b780-4c70-ae66-e8ff66a3db27",
  "isFirst": true,
  "SponsorProductId": "6e6dbb19-8527-411f-93b1-58ea932c2931",
  "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-13T04:50:59.4043854+00:00"
  },
  "OrderId": "sample string 26",
  "Platform": "sample string 27",
  "TopupStatusTypeID": 28,
  "AskAFriendPaymentLink": "sample string 29",
  "FeeTypeCode": "sample string 30",
  "FeeId": "02db49c1-c38d-4a49-94d6-b5196128fd6e",
  "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>b52dfbfa-b780-4c70-ae66-e8ff66a3db27</BankCardID>
  <BankCardProcessID>20b45ee6-3784-4d5f-9631-85d71fe7a619</BankCardProcessID>
  <BankCardTopupID>6fd07505-ac04-4da4-a88a-84e08f8c0489</BankCardTopupID>
  <BankiomAccount>sample string 25</BankiomAccount>
  <CheckoutToken>sample string 2</CheckoutToken>
  <ConversionRate>16.1</ConversionRate>
  <CurrencyCountryID>sample string 3</CurrencyCountryID>
  <DateCreated>2024-07-13T04:50:59.4043854+00:00</DateCreated>
  <DateProcessed>2024-07-13T04:50:59.4043854+00:00</DateProcessed>
  <Description>sample string 9</Description>
  <FeeCalculationType>Default</FeeCalculationType>
  <FeeId>02db49c1-c38d-4a49-94d6-b5196128fd6e</FeeId>
  <FeeTypeCode>sample string 30</FeeTypeCode>
  <ID>77f87f63-065e-4f19-bf8e-7e2724ebae18</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-13T04:50:59.4043854+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>6e6dbb19-8527-411f-93b1-58ea932c2931</SponsorProductId>
  <TopupStatusTypeID>28</TopupStatusTypeID>
  <TransactionID>sample string 10</TransactionID>
  <UnloadFeeTransactionId>dcfa471d-1033-40a4-905c-4fe3dba7ec4c</UnloadFeeTransactionId>
  <UserID>02c5b696-9029-4898-9176-c7b5c6a0941c</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

OperationStatusOfBankCardTopupViewModel
NameDescriptionTypeAdditional information
Result

BankCardTopupViewModel

None.

HasNoData

boolean

None.

ErrorMsg

string

None.

Succeeded

boolean

None.

AlreadyExists

boolean

None.

NotFound

boolean

None.

Error

Exception

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "BankCardProcessID": "7c81b44c-4df2-4dd7-9249-513e58436757",
    "CheckoutToken": "sample string 2",
    "CurrencyCountryID": "sample string 3",
    "UnloadFeeTransactionId": "f6a6f985-16c2-44ff-a8e3-f468d1631dc7",
    "ID": "aa66a9c2-ed6c-425b-9dff-b7aee816bde6",
    "UserID": "8259a29a-f004-4e4d-ba4c-b19d108ab8b3",
    "Amount": 6.1,
    "AdditionalAmount": 7.1,
    "DateProcessed": "2024-07-13T04:50:59.4043854+00:00",
    "SourcePaymentID": 8,
    "Description": "sample string 9",
    "TransactionID": "sample string 10",
    "DateCreated": "2024-07-13T04:50:59.4043854+00:00",
    "LoadAmount": 12.1,
    "LoadAdditionalAmount": 13.1,
    "LoadCurrencyCountryID": "sample string 14",
    "LoadTransactionID": "sample string 15",
    "ConversionRate": 16.1,
    "LoadPercentage": 17.1,
    "BankCardTopupID": "0cb3ac3f-a5ef-4f14-8c7d-e026a54b1a1b",
    "BankCardID": "62a77bc7-a3d1-4402-8c86-4f96f0f03d3e",
    "isFirst": true,
    "SponsorProductId": "853de708-3bf2-4dcd-89fd-a9278878768b",
    "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-13T04:50:59.4043854+00:00"
    },
    "OrderId": "sample string 26",
    "Platform": "sample string 27",
    "TopupStatusTypeID": 28,
    "AskAFriendPaymentLink": "sample string 29",
    "FeeTypeCode": "sample string 30",
    "FeeId": "6f7db57e-da27-4a01-a416-5b7be0623fa0",
    "FeeCalculationType": 0,
    "LoadedInCard": 1.1,
    "LoadedInCardAED": 1.1
  },
  "HasNoData": true,
  "ErrorMsg": "sample string 2",
  "Succeeded": true,
  "AlreadyExists": true,
  "NotFound": true,
  "Error": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  }
}

application/xml, text/xml

Sample:
<OperationStatusOfBankCardTopupViewModels25BU49F xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bankiom.DataLayer.Common">
  <AlreadyExists>true</AlreadyExists>
  <Error xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </Error>
  <ErrorMsg>sample string 2</ErrorMsg>
  <HasNoData>true</HasNoData>
  <NotFound>true</NotFound>
  <Result>
    <AdditionalAmount>7.1</AdditionalAmount>
    <Amount>6.1</Amount>
    <AskAFriendPaymentLink>sample string 29</AskAFriendPaymentLink>
    <BankCardID>62a77bc7-a3d1-4402-8c86-4f96f0f03d3e</BankCardID>
    <BankCardProcessID>7c81b44c-4df2-4dd7-9249-513e58436757</BankCardProcessID>
    <BankCardTopupID>0cb3ac3f-a5ef-4f14-8c7d-e026a54b1a1b</BankCardTopupID>
    <BankiomAccount>sample string 25</BankiomAccount>
    <CheckoutToken>sample string 2</CheckoutToken>
    <ConversionRate>16.1</ConversionRate>
    <CurrencyCountryID>sample string 3</CurrencyCountryID>
    <DateCreated>2024-07-13T04:50:59.4043854+00:00</DateCreated>
    <DateProcessed>2024-07-13T04:50:59.4043854+00:00</DateProcessed>
    <Description>sample string 9</Description>
    <FeeCalculationType>Default</FeeCalculationType>
    <FeeId>6f7db57e-da27-4a01-a416-5b7be0623fa0</FeeId>
    <FeeTypeCode>sample string 30</FeeTypeCode>
    <ID>aa66a9c2-ed6c-425b-9dff-b7aee816bde6</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-13T04:50:59.4043854+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>853de708-3bf2-4dcd-89fd-a9278878768b</SponsorProductId>
    <TopupStatusTypeID>28</TopupStatusTypeID>
    <TransactionID>sample string 10</TransactionID>
    <UnloadFeeTransactionId>f6a6f985-16c2-44ff-a8e3-f468d1631dc7</UnloadFeeTransactionId>
    <UserID>8259a29a-f004-4e4d-ba4c-b19d108ab8b3</UserID>
    <isFirst>true</isFirst>
  </Result>
  <Succeeded>true</Succeeded>
</OperationStatusOfBankCardTopupViewModels25BU49F>