POST api/UserMasters/SaveSubscriptionInformation
Request Information
URI Parameters
None.
Body Parameters
PaymentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Username | string |
None. |
|
| SelectedId | integer |
None. |
|
| IsMonthly | boolean |
None. |
|
| IsCollectionId | boolean |
None. |
|
| CartItems | Collection of CartItemModel |
None. |
|
| payerID | string |
None. |
|
| orderID | string |
None. |
|
| paymentID | string |
None. |
|
| paymentToken | string |
None. |
|
| amount | string |
None. |
|
| currency | string |
None. |
|
| description | string |
None. |
|
| phoneNumber | string |
None. |
|
| string |
None. |
||
| firstname | string |
None. |
|
| lastname | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Username": "sample string 1",
"SelectedId": 2,
"IsMonthly": true,
"IsCollectionId": true,
"CartItems": [
{
"PackId": 1,
"Price": 2.0,
"IsCollection": true,
"Type": true,
"Quantity": 5
},
{
"PackId": 1,
"Price": 2.0,
"IsCollection": true,
"Type": true,
"Quantity": 5
}
],
"payerID": "sample string 5",
"orderID": "sample string 6",
"paymentID": "sample string 7",
"paymentToken": "sample string 8",
"amount": "sample string 9",
"currency": "sample string 10",
"description": "sample string 11",
"phoneNumber": "sample string 12",
"email": "sample string 13",
"firstname": "sample string 14",
"lastname": "sample string 15"
}
application/xml, text/xml
Sample:
<PaymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpellingAPI.Models">
<CartItems>
<CartItemModel>
<IsCollection>true</IsCollection>
<PackId>1</PackId>
<Price>2</Price>
<Quantity>5</Quantity>
<Type>true</Type>
</CartItemModel>
<CartItemModel>
<IsCollection>true</IsCollection>
<PackId>1</PackId>
<Price>2</Price>
<Quantity>5</Quantity>
<Type>true</Type>
</CartItemModel>
</CartItems>
<IsCollectionId>true</IsCollectionId>
<IsMonthly>true</IsMonthly>
<SelectedId>2</SelectedId>
<Username>sample string 1</Username>
<amount>sample string 9</amount>
<currency>sample string 10</currency>
<description>sample string 11</description>
<email>sample string 13</email>
<firstname>sample string 14</firstname>
<lastname>sample string 15</lastname>
<orderID>sample string 6</orderID>
<payerID>sample string 5</payerID>
<paymentID>sample string 7</paymentID>
<paymentToken>sample string 8</paymentToken>
<phoneNumber>sample string 12</phoneNumber>
</PaymentModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>