POST api/payment/package/GetPackagePrice

Request Information

URI Parameters

None.

Body Parameters

PackagePaymentDataModel
NameDescriptionTypeAdditional information
PackageId

integer

None.

DiscountCode

string

None.

Courses

Collection of integer

None.

Link

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PackageId": 1,
  "DiscountCode": "sample string 2",
  "Courses": [
    1,
    2
  ],
  "Link": "sample string 3"
}

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

Response Information

Resource Description

PackagePriceModel
NameDescriptionTypeAdditional information
UserProfit

integer

None.

Id

integer

None.

Name

string

None.

Price

integer

None.

DiscountValue

integer

None.

DiscountedPrice

integer

None.

CodeStatus

DiscountCodeStatus

None.

DailySubscriptionPrice

integer

None.

GroupId

integer

None.

GroupName

string

None.

Success

boolean

None.

RefId

string

None.

BankUrl

string

None.

RedirectUrl

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "UserProfit": 1,
  "Id": 2,
  "Name": "sample string 3",
  "Price": 4,
  "DiscountValue": 5,
  "DiscountedPrice": 6,
  "CodeStatus": 0,
  "DailySubscriptionPrice": 1,
  "GroupId": 1,
  "GroupName": "sample string 7",
  "Success": true,
  "RefId": "sample string 9",
  "BankUrl": "sample string 10",
  "RedirectUrl": "sample string 11",
  "Message": "sample string 12"
}