POST api/v1/9psb/token

Request Information

URI Parameters

None.

Body Parameters

Finance_9PSBPaymentRequestVM
NameDescriptionTypeAdditional information
code

string

None.

message

string

None.

transaction

Transaction

None.

order

Order

None.

customer

Customer

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "message": "sample string 2",
  "transaction": {
    "reference": "sample string 1"
  },
  "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"
    }
  }
}

application/xml, text/xml

Sample:
<Finance_9PSBPaymentRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.TransferObject.Finance">
  <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>
  <transaction>
    <reference>sample string 1</reference>
  </transaction>
</Finance_9PSBPaymentRequestVM>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.