POST api/Payment/IntiatePayment

Request Information

URI Parameters

None.

Body Parameters

PaymentRequestModel
NameDescriptionTypeAdditional information
SubscriptionPlanId

integer

None.

Amount

decimal number

None.

DiscountAmount

decimal number

None.

VAT

decimal number

None.

TotalAmount

decimal number

None.

CouponCodeId

integer

None.

LoggedInUserId

integer

None.

DeviceId

string

None.

DeviceOS

string

None.

UserId

integer

None.

Model

string

None.

Brand

string

None.

FCMToken

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SubscriptionPlanId": 1,
  "Amount": 2.0,
  "DiscountAmount": 3.0,
  "VAT": 4.0,
  "TotalAmount": 5.0,
  "CouponCodeId": 6,
  "LoggedInUserId": 7,
  "DeviceId": "sample string 8",
  "DeviceOS": "sample string 9",
  "UserId": 10,
  "Model": "sample string 11",
  "Brand": "sample string 12",
  "FCMToken": "sample string 13"
}

application/xml, text/xml

Sample:
<PaymentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InfinitSol.Product.DigiCard.DTO">
  <Brand>sample string 12</Brand>
  <DeviceId>sample string 8</DeviceId>
  <DeviceOS>sample string 9</DeviceOS>
  <FCMToken>sample string 13</FCMToken>
  <Model>sample string 11</Model>
  <UserId>10</UserId>
  <LoggedInUserId>7</LoggedInUserId>
  <Amount>2</Amount>
  <CouponCodeId>6</CouponCodeId>
  <DiscountAmount>3</DiscountAmount>
  <SubscriptionPlanId>1</SubscriptionPlanId>
  <TotalAmount>5</TotalAmount>
  <VAT>4</VAT>
</PaymentRequestModel>

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.