POST api/InitiateTransaction

Request Information

URI Parameters

None.

Body Parameters

Jsonparams
NameDescriptionTypeAdditional information
jsonstring

string

None.

Request Formats

application/json, text/json

Sample:
{
  "jsonstring": "sample string 1"
}

application/xml, text/xml

Sample:
<Jsonparams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EthopianBankDirect.Models">
  <jsonstring>sample string 1</jsonstring>
</Jsonparams>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

InitiateTransactionResponse
NameDescriptionTypeAdditional information
response

string

None.

responseDescription

string

None.

results

Results

None.

error

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "response": "sample string 1",
  "responseDescription": "sample string 2",
  "results": {
    "transactionRef": "sample string 1",
    "remittanceTxId": 2,
    "responseDescription": "sample string 3",
    "totalSendingAmount": 4.0,
    "totalReceivingAmount": 5.0,
    "exchangeRate": 6.0
  },
  "error": {}
}

application/xml, text/xml

Sample:
<InitiateTransactionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EthopianBankDirect.Models">
  <error />
  <response>sample string 1</response>
  <responseDescription>sample string 2</responseDescription>
  <results>
    <exchangeRate>6</exchangeRate>
    <remittanceTxId>2</remittanceTxId>
    <responseDescription>sample string 3</responseDescription>
    <totalReceivingAmount>5</totalReceivingAmount>
    <totalSendingAmount>4</totalSendingAmount>
    <transactionRef>sample string 1</transactionRef>
  </results>
</InitiateTransactionResponse>