POST api/AskFriend/UpdateTopupRequest

Request Information

URI Parameters

None.

Body Parameters

TopupRequestModel
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

UserID

globally unique identifier

None.

BankCardTopupID

globally unique identifier

None.

SourcePaymentID

integer

None.

Message

string

None.

DateCreated

date

None.

DateUpdated

date

None.

IPAddress

string

None.

Status

integer

None.

RequestLink

string

None.

BankCardTopup

BankCardTopupViewModel

None.

CheckoutLink

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "9669469b-adf6-46de-8e9f-03ca7e67dd0d",
  "UserID": "47496032-b5e4-4e44-bc2e-bdc10e2a8fb2",
  "BankCardTopupID": "d8e93ecc-5333-44bd-bbb2-6842ce313a3a",
  "SourcePaymentID": 4,
  "Message": "sample string 5",
  "DateCreated": "2024-07-15T12:28:31.4492801+00:00",
  "DateUpdated": "2024-07-15T12:28:31.4492801+00:00",
  "IPAddress": "sample string 7",
  "Status": 1,
  "RequestLink": "sample string 8",
  "BankCardTopup": {
    "BankCardProcessID": "c53cd9c5-3fb6-4fb9-a78d-0be5fb3fd6ad",
    "CheckoutToken": "sample string 2",
    "CurrencyCountryID": "sample string 3",
    "UnloadFeeTransactionId": "c111ead9-5bf3-494b-905a-5ed0c159b583",
    "ID": "f9c06aa8-c26b-48dd-aa26-fe3bcca4588f",
    "UserID": "4f8287cb-7661-4052-9d60-1c3e36668133",
    "Amount": 6.1,
    "AdditionalAmount": 7.1,
    "DateProcessed": "2024-07-15T12:28:31.4492801+00:00",
    "SourcePaymentID": 8,
    "Description": "sample string 9",
    "TransactionID": "sample string 10",
    "DateCreated": "2024-07-15T12:28:31.4492801+00:00",
    "LoadAmount": 12.1,
    "LoadAdditionalAmount": 13.1,
    "LoadCurrencyCountryID": "sample string 14",
    "LoadTransactionID": "sample string 15",
    "ConversionRate": 16.1,
    "LoadPercentage": 17.1,
    "BankCardTopupID": "faabb957-1616-42bd-a2a6-e30fbeaa42f7",
    "BankCardID": "150627f9-c2da-4f4c-a108-4d45960bc3bb",
    "isFirst": true,
    "SponsorProductId": "e62b3f20-d675-46b8-8bbc-e88d4327483e",
    "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-15T12:28:31.4492801+00:00"
    },
    "OrderId": "sample string 26",
    "Platform": "sample string 27",
    "TopupStatusTypeID": 28,
    "AskAFriendPaymentLink": "sample string 29",
    "FeeTypeCode": "sample string 30",
    "FeeId": "60ce2b85-cedc-4f40-9d7c-3dee88517c15",
    "FeeCalculationType": 0,
    "LoadedInCard": 1.1,
    "LoadedInCardAED": 1.1
  },
  "CheckoutLink": "sample string 9"
}

application/xml, text/xml

Sample:
<TopupRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bankiom.DataLayer.Common">
  <BankCardTopup>
    <AdditionalAmount>7.1</AdditionalAmount>
    <Amount>6.1</Amount>
    <AskAFriendPaymentLink>sample string 29</AskAFriendPaymentLink>
    <BankCardID>150627f9-c2da-4f4c-a108-4d45960bc3bb</BankCardID>
    <BankCardProcessID>c53cd9c5-3fb6-4fb9-a78d-0be5fb3fd6ad</BankCardProcessID>
    <BankCardTopupID>faabb957-1616-42bd-a2a6-e30fbeaa42f7</BankCardTopupID>
    <BankiomAccount>sample string 25</BankiomAccount>
    <CheckoutToken>sample string 2</CheckoutToken>
    <ConversionRate>16.1</ConversionRate>
    <CurrencyCountryID>sample string 3</CurrencyCountryID>
    <DateCreated>2024-07-15T12:28:31.4492801+00:00</DateCreated>
    <DateProcessed>2024-07-15T12:28:31.4492801+00:00</DateProcessed>
    <Description>sample string 9</Description>
    <FeeCalculationType>Default</FeeCalculationType>
    <FeeId>60ce2b85-cedc-4f40-9d7c-3dee88517c15</FeeId>
    <FeeTypeCode>sample string 30</FeeTypeCode>
    <ID>f9c06aa8-c26b-48dd-aa26-fe3bcca4588f</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-15T12:28:31.4492801+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>e62b3f20-d675-46b8-8bbc-e88d4327483e</SponsorProductId>
    <TopupStatusTypeID>28</TopupStatusTypeID>
    <TransactionID>sample string 10</TransactionID>
    <UnloadFeeTransactionId>c111ead9-5bf3-494b-905a-5ed0c159b583</UnloadFeeTransactionId>
    <UserID>4f8287cb-7661-4052-9d60-1c3e36668133</UserID>
    <isFirst>true</isFirst>
  </BankCardTopup>
  <BankCardTopupID>d8e93ecc-5333-44bd-bbb2-6842ce313a3a</BankCardTopupID>
  <CheckoutLink>sample string 9</CheckoutLink>
  <DateCreated>2024-07-15T12:28:31.4492801+00:00</DateCreated>
  <DateUpdated>2024-07-15T12:28:31.4492801+00:00</DateUpdated>
  <ID>9669469b-adf6-46de-8e9f-03ca7e67dd0d</ID>
  <IPAddress>sample string 7</IPAddress>
  <Message>sample string 5</Message>
  <RequestLink>sample string 8</RequestLink>
  <SourcePaymentID>4</SourcePaymentID>
  <Status>1</Status>
  <UserID>47496032-b5e4-4e44-bc2e-bdc10e2a8fb2</UserID>
</TopupRequestModel>

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

Response Information

Resource Description

OperationStatusOfTopupRequestModel
NameDescriptionTypeAdditional information
Result

TopupRequestModel

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": {
    "ID": "06b468a1-48d5-4294-b472-e2f570825c7d",
    "UserID": "6d6e1759-e70e-406a-962c-eeede6aac4a5",
    "BankCardTopupID": "226cae4d-6b81-4b86-b21e-3071e555eb5f",
    "SourcePaymentID": 4,
    "Message": "sample string 5",
    "DateCreated": "2024-07-15T12:28:31.4492801+00:00",
    "DateUpdated": "2024-07-15T12:28:31.4492801+00:00",
    "IPAddress": "sample string 7",
    "Status": 1,
    "RequestLink": "sample string 8",
    "BankCardTopup": {
      "BankCardProcessID": "8556de93-05bd-4c14-91aa-cf369fb08679",
      "CheckoutToken": "sample string 2",
      "CurrencyCountryID": "sample string 3",
      "UnloadFeeTransactionId": "406bdf3f-df54-4766-b2bf-10a7083bf2a6",
      "ID": "5849b49a-ab4c-42c7-8ed7-f3c7f1c70123",
      "UserID": "c313a80c-bf8a-47fc-b7e1-616c0e2546dd",
      "Amount": 6.1,
      "AdditionalAmount": 7.1,
      "DateProcessed": "2024-07-15T12:28:31.4492801+00:00",
      "SourcePaymentID": 8,
      "Description": "sample string 9",
      "TransactionID": "sample string 10",
      "DateCreated": "2024-07-15T12:28:31.4492801+00:00",
      "LoadAmount": 12.1,
      "LoadAdditionalAmount": 13.1,
      "LoadCurrencyCountryID": "sample string 14",
      "LoadTransactionID": "sample string 15",
      "ConversionRate": 16.1,
      "LoadPercentage": 17.1,
      "BankCardTopupID": "56f3e760-a733-42cc-8c0f-e3f5e533bfc5",
      "BankCardID": "0516b0c1-01c6-430a-9a55-8a412d39e874",
      "isFirst": true,
      "SponsorProductId": "4f2dbb80-586c-4c82-8bf1-3ffd0e038c04",
      "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-15T12:28:31.4492801+00:00"
      },
      "OrderId": "sample string 26",
      "Platform": "sample string 27",
      "TopupStatusTypeID": 28,
      "AskAFriendPaymentLink": "sample string 29",
      "FeeTypeCode": "sample string 30",
      "FeeId": "5f4d98a2-9cd5-47e4-aba8-b6e7661e74dc",
      "FeeCalculationType": 0,
      "LoadedInCard": 1.1,
      "LoadedInCardAED": 1.1
    },
    "CheckoutLink": "sample string 9"
  },
  "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:
<OperationStatusOfTopupRequestModels25BU49F 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>
    <BankCardTopup>
      <AdditionalAmount>7.1</AdditionalAmount>
      <Amount>6.1</Amount>
      <AskAFriendPaymentLink>sample string 29</AskAFriendPaymentLink>
      <BankCardID>0516b0c1-01c6-430a-9a55-8a412d39e874</BankCardID>
      <BankCardProcessID>8556de93-05bd-4c14-91aa-cf369fb08679</BankCardProcessID>
      <BankCardTopupID>56f3e760-a733-42cc-8c0f-e3f5e533bfc5</BankCardTopupID>
      <BankiomAccount>sample string 25</BankiomAccount>
      <CheckoutToken>sample string 2</CheckoutToken>
      <ConversionRate>16.1</ConversionRate>
      <CurrencyCountryID>sample string 3</CurrencyCountryID>
      <DateCreated>2024-07-15T12:28:31.4492801+00:00</DateCreated>
      <DateProcessed>2024-07-15T12:28:31.4492801+00:00</DateProcessed>
      <Description>sample string 9</Description>
      <FeeCalculationType>Default</FeeCalculationType>
      <FeeId>5f4d98a2-9cd5-47e4-aba8-b6e7661e74dc</FeeId>
      <FeeTypeCode>sample string 30</FeeTypeCode>
      <ID>5849b49a-ab4c-42c7-8ed7-f3c7f1c70123</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-15T12:28:31.4492801+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>4f2dbb80-586c-4c82-8bf1-3ffd0e038c04</SponsorProductId>
      <TopupStatusTypeID>28</TopupStatusTypeID>
      <TransactionID>sample string 10</TransactionID>
      <UnloadFeeTransactionId>406bdf3f-df54-4766-b2bf-10a7083bf2a6</UnloadFeeTransactionId>
      <UserID>c313a80c-bf8a-47fc-b7e1-616c0e2546dd</UserID>
      <isFirst>true</isFirst>
    </BankCardTopup>
    <BankCardTopupID>226cae4d-6b81-4b86-b21e-3071e555eb5f</BankCardTopupID>
    <CheckoutLink>sample string 9</CheckoutLink>
    <DateCreated>2024-07-15T12:28:31.4492801+00:00</DateCreated>
    <DateUpdated>2024-07-15T12:28:31.4492801+00:00</DateUpdated>
    <ID>06b468a1-48d5-4294-b472-e2f570825c7d</ID>
    <IPAddress>sample string 7</IPAddress>
    <Message>sample string 5</Message>
    <RequestLink>sample string 8</RequestLink>
    <SourcePaymentID>4</SourcePaymentID>
    <Status>1</Status>
    <UserID>6d6e1759-e70e-406a-962c-eeede6aac4a5</UserID>
  </Result>
  <Succeeded>true</Succeeded>
</OperationStatusOfTopupRequestModels25BU49F>