POST api/initonlinepayment

Request Information

URI Parameters

None.

Body Parameters

PaymentInitModel
NameDescriptionTypeAdditional information
UserID

string

None.

ProgramID

integer

None.

OrderID

integer

None.

PaySystem

string

None.

PaymentAmount

decimal number

None.

Currency

string

None.

TransactionNo

string

None.

FirstName

string

None.

LastName

string

None.

Email

string

None.

Phone

string

None.

City

string

None.

Country

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": "sample string 1",
  "ProgramID": 1,
  "OrderID": 1,
  "PaySystem": "sample string 2",
  "PaymentAmount": 3.0,
  "Currency": "sample string 4",
  "TransactionNo": "sample string 5",
  "FirstName": "sample string 6",
  "LastName": "sample string 7",
  "Email": "sample string 8",
  "Phone": "sample string 9",
  "City": "sample string 10",
  "Country": "sample string 11"
}

application/xml, text/xml

Sample:
<PaymentInitModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <City>sample string 10</City>
  <Country>sample string 11</Country>
  <Currency>sample string 4</Currency>
  <Email>sample string 8</Email>
  <FirstName>sample string 6</FirstName>
  <LastName>sample string 7</LastName>
  <OrderID>1</OrderID>
  <PaySystem>sample string 2</PaySystem>
  <PaymentAmount>3</PaymentAmount>
  <Phone>sample string 9</Phone>
  <ProgramID>1</ProgramID>
  <TransactionNo>sample string 5</TransactionNo>
  <UserID>sample string 1</UserID>
</PaymentInitModel>

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

Response Information

Resource Description

PaymentInitResult
NameDescriptionTypeAdditional information
success

boolean

None.

UserMessage

string

None.

LogMessage

string

None.

PaymentID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "UserMessage": "sample string 2",
  "LogMessage": "sample string 3",
  "PaymentID": 4
}

application/xml, text/xml

Sample:
<PaymentInitResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <LogMessage>sample string 3</LogMessage>
  <PaymentID>4</PaymentID>
  <UserMessage>sample string 2</UserMessage>
  <success>true</success>
</PaymentInitResult>