PUT api/v1/webpay/response

Request Information

URI Parameters

None.

Body Parameters

Finance_9PSBPaymentReponseVM
NameDescriptionTypeAdditional information
code

string

None.

message

string

None.

transaction

Transaction

None.

order

Order

None.

customer

Customer

None.

beneficiarytocredit

BeneficiaryToCredit

None.

token

Token

None.

reference

string

None.

response

Response

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "message": "sample string 2",
  "transaction": {
    "reference": "sample string 1",
    "sessionid": "sample string 2"
  },
  "order": {
    "amount": 1.0,
    "currency": "sample string 2",
    "description": "sample string 3",
    "country": "sample string 4",
    "amounttype": "sample string 5"
  },
  "customer": {
    "account": {
      "name": "sample string 1",
      "type": "sample string 2",
      "expiry": {
        "hours": 1.0
      },
      "number": "sample string 3",
      "bank": "sample string 4"
    }
  },
  "beneficiarytocredit": {
    "accountumber": "sample string 1",
    "bankcode": "sample string 2",
    "feeamount": 3.0
  },
  "token": {
    "status": "sample string 1",
    "code": "sample string 2",
    "access_token": "sample string 3",
    "expires_in": 4
  },
  "reference": "sample string 3",
  "response": {
    "txnref": "sample string 1",
    "resp": "sample string 2",
    "desc": "sample string 3",
    "cardNum": "sample string 4",
    "mac": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<Finance_9PSBPaymentReponseVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.TransferObject.Finance">
  <beneficiarytocredit>
    <accountumber>sample string 1</accountumber>
    <bankcode>sample string 2</bankcode>
    <feeamount>3</feeamount>
  </beneficiarytocredit>
  <code>sample string 1</code>
  <customer>
    <account>
      <bank>sample string 4</bank>
      <expiry>
        <hours>1</hours>
      </expiry>
      <name>sample string 1</name>
      <number>sample string 3</number>
      <type>sample string 2</type>
    </account>
  </customer>
  <message>sample string 2</message>
  <order>
    <amount>1</amount>
    <amounttype>sample string 5</amounttype>
    <country>sample string 4</country>
    <currency>sample string 2</currency>
    <description>sample string 3</description>
  </order>
  <reference>sample string 3</reference>
  <response>
    <cardNum>sample string 4</cardNum>
    <desc>sample string 3</desc>
    <mac>sample string 5</mac>
    <resp>sample string 2</resp>
    <txnref>sample string 1</txnref>
  </response>
  <token>
    <access_token>sample string 3</access_token>
    <code>sample string 2</code>
    <expires_in>4</expires_in>
    <status>sample string 1</status>
  </token>
  <transaction>
    <reference>sample string 1</reference>
    <sessionid>sample string 2</sessionid>
  </transaction>
</Finance_9PSBPaymentReponseVM>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.