GET api/admin/products/{productid}/plans

Request Information

URI Parameters

NameDescriptionTypeAdditional information
productid

decimal number

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ProductPlanModel
NameDescriptionTypeAdditional information
id

integer

None.

plan_id

string

None.

product_type

ProductType

None.

amount

decimal number

None.

description

string

None.

name

string

None.

enabled

boolean

None.

interval

PlanInterval

None.

interval_Count

integer

None.

trial_period_days

integer

None.

isSubscription

boolean

None.

isMonthly

boolean

None.

isQuarterly

boolean

None.

isSemiannual

boolean

None.

isAnnual

boolean

None.

fee

decimal number

None.

feeDescription

string

None.

productPlanTypeId

byte

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "plan_id": "sample string 2",
    "product_type": 0,
    "amount": 3.0,
    "description": "sample string 4",
    "name": "sample string 5",
    "enabled": true,
    "interval": 0,
    "interval_Count": 1,
    "trial_period_days": 1,
    "isSubscription": true,
    "isMonthly": false,
    "isQuarterly": false,
    "isSemiannual": false,
    "isAnnual": false,
    "fee": 1.0,
    "feeDescription": "sample string 8",
    "productPlanTypeId": 64
  },
  {
    "id": 1,
    "plan_id": "sample string 2",
    "product_type": 0,
    "amount": 3.0,
    "description": "sample string 4",
    "name": "sample string 5",
    "enabled": true,
    "interval": 0,
    "interval_Count": 1,
    "trial_period_days": 1,
    "isSubscription": true,
    "isMonthly": false,
    "isQuarterly": false,
    "isSemiannual": false,
    "isAnnual": false,
    "fee": 1.0,
    "feeDescription": "sample string 8",
    "productPlanTypeId": 64
  }
]

text/html

Sample:
[{"id":1,"plan_id":"sample string 2","product_type":0,"amount":3.0,"description":"sample string 4","name":"sample string 5","enabled":true,"interval":0,"interval_Count":1,"trial_period_days":1,"isSubscription":true,"isMonthly":false,"isQuarterly":false,"isSemiannual":false,"isAnnual":false,"fee":1.0,"feeDescription":"sample string 8","productPlanTypeId":64},{"id":1,"plan_id":"sample string 2","product_type":0,"amount":3.0,"description":"sample string 4","name":"sample string 5","enabled":true,"interval":0,"interval_Count":1,"trial_period_days":1,"isSubscription":true,"isMonthly":false,"isQuarterly":false,"isSemiannual":false,"isAnnual":false,"fee":1.0,"feeDescription":"sample string 8","productPlanTypeId":64}]

application/xml, text/xml

Sample:
<ArrayOfProductPlanModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <ProductPlanModel>
    <Amount>3</Amount>
    <Description>sample string 4</Description>
    <Enabled>true</Enabled>
    <Fee>1</Fee>
    <FeeDescription>sample string 8</FeeDescription>
    <Id>1</Id>
    <Interval>Week</Interval>
    <IntervalCount>1</IntervalCount>
    <Name>sample string 5</Name>
    <PlanId>sample string 2</PlanId>
    <ProductPlanTypeId>64</ProductPlanTypeId>
    <ProductType>Legacy</ProductType>
    <Subscription>true</Subscription>
    <TrialPeriodDays>1</TrialPeriodDays>
  </ProductPlanModel>
  <ProductPlanModel>
    <Amount>3</Amount>
    <Description>sample string 4</Description>
    <Enabled>true</Enabled>
    <Fee>1</Fee>
    <FeeDescription>sample string 8</FeeDescription>
    <Id>1</Id>
    <Interval>Week</Interval>
    <IntervalCount>1</IntervalCount>
    <Name>sample string 5</Name>
    <PlanId>sample string 2</PlanId>
    <ProductPlanTypeId>64</ProductPlanTypeId>
    <ProductType>Legacy</ProductType>
    <Subscription>true</Subscription>
    <TrialPeriodDays>1</TrialPeriodDays>
  </ProductPlanModel>
</ArrayOfProductPlanModel>