POST api/payment/token

Request Information

URI Parameters

None.

Body Parameters

TokenRequest
NameDescriptionTypeAdditional information
Id

integer

None.

Amount

integer

None.

OrderId

integer

None.

CallBackUrl

string

None.

Description

string

None.

UserId

string

None.

PaymentGatewayType

GatewayType

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Amount": 2,
  "OrderId": 3,
  "CallBackUrl": "sample string 4",
  "Description": "sample string 5",
  "UserId": "sample string 6",
  "PaymentGatewayType": 1
}

application/xml, text/xml

Sample:
<TokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PaymentGateway.StartPoint.Dtos">
  <Amount>2</Amount>
  <CallBackUrl>sample string 4</CallBackUrl>
  <Description>sample string 5</Description>
  <Id>1</Id>
  <OrderId>3</OrderId>
  <PaymentGatewayType>Zibal</PaymentGatewayType>
  <UserId>sample string 6</UserId>
</TokenRequest>

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.