POST api/KnetPayment/GetKnetPaymentLink

Request Information

URI Parameters

None.

Body Parameters

KnetGenerate
NameDescriptionTypeAdditional information
MerchantName

string

None.

Amount

string

None.

OrderId

string

None.

SuccessUrl

string

None.

ErrorUrl

string

None.

Language

string

None.

Request Formats

application/json, text/json

Sample:
{
  "MerchantName": "sample string 1",
  "Amount": "sample string 2",
  "OrderId": "sample string 3",
  "SuccessUrl": "sample string 4",
  "ErrorUrl": "sample string 5",
  "Language": "sample string 6"
}

application/xml, text/xml

Sample:
<KnetGenerate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KnetApp.Core">
  <Amount>sample string 2</Amount>
  <ErrorUrl>sample string 5</ErrorUrl>
  <Language>sample string 6</Language>
  <MerchantName>sample string 1</MerchantName>
  <OrderId>sample string 3</OrderId>
  <SuccessUrl>sample string 4</SuccessUrl>
</KnetGenerate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.