POST modules/{serial}/credit
Credits a few months of subscription to the given module
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
serial |
the module to credit |
string |
Required |
Body Parameters
the number of months to credit
Flipr.Web.Api.Controllers.JsonWrappers.SingleValueOfSystem.UInt32Name | Description | Type | Additional information |
---|---|---|---|
Value | unsigned integer |
None. |
Request Formats
application/json, text/json
{ "Value": 1 }
text/html
{"Value":1}
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
the subscription details
Flipr.Data.SQL.Users.DeviceSubscriptionName | Description | Type | Additional information |
---|---|---|---|
Id |
Gets or sets the id |
integer |
None. |
IsTest |
Gets or sets a value indicating whether or not this subscribtion must be done in a test environement |
boolean |
None. |
SubscriptionName |
Gets or sets the subscription name |
string |
None. |
User |
gets or sets the user |
Flipr.Data.SQL.Users.User |
None. |
User_Id | integer |
Required |
|
Media |
Gets or sets th media used to perform the subscription |
Flipr.Data.SQL.Users.SubscriptionMedia |
None. |
Date |
Gets or sets the bill's date |
date |
None. |
ValidUntil |
Gets or sets the validity's end date |
date |
None. |
IsRenewable |
Gets or sets a value indicating whether or not the subscribtion is renewable |
boolean |
None. |
PurchaseKey |
Gets or sets the subscribtion's purchase id |
string |
None. |
JsonInvoice |
Gets or sets the invoice under Json format |
string |
None. |
IsCancelled |
Has the subscription been cancelled |
boolean |
None. |
CancelReason |
Gets or sets the cancel reason |
string |
None. |
CancelDate |
Gets or sets the cancel date |
date |
None. |
IsOutDated |
Gets or sets a value which indicated whether the subscription is the latest one and can be checked, or not. |
boolean |
None. |
IsHub |
Gets or sets a value which indicated whether the subscription is a subscription for a hub or not |
boolean |
None. |
Response Formats
application/json, text/json
{ "Id": 1, "IsTest": true, "SubscriptionName": "sample string 3", "User": { "IsOkToShareData": true, "Birthday": "2023-01-27T12:55:48.1810438+00:00", "Email": "sample string 4", "FirstName": "sample string 5", "LastName": "sample string 6", "PhoneNumber": "sample string 7", "IsActivated": true, "Lang": "sample string 10", "NotifyFiltrationDuration": true, "NotifyProbeIssues": true, "NotifyStock": true, "NotifyPoolsHealth": true, "SystemPauseNotifications": true, "IsSocietyCreator": true, "JoinedSocietyDate": "2023-01-27T12:55:48.1966739+00:00", "SocietyId": 1, "IsDesactivated": true, "IsNewsletter": true, "ActualRights": [] }, "User_Id": 4, "Media": 0, "Date": "2023-01-27T12:55:48.1966739+00:00", "ValidUntil": "2023-01-27T12:55:48.1966739+00:00", "IsRenewable": true, "PurchaseKey": "sample string 8", "JsonInvoice": "sample string 9", "IsCancelled": true, "CancelReason": "sample string 11", "CancelDate": "2023-01-27T12:55:48.1966739+00:00", "IsOutDated": true, "IsHub": true }
text/html
{"Id":1,"IsTest":true,"SubscriptionName":"sample string 3","User":{"IsOkToShareData":true,"Birthday":"2023-01-27T12:55:48.1810438+00:00","Email":"sample string 4","FirstName":"sample string 5","LastName":"sample string 6","PhoneNumber":"sample string 7","IsActivated":true,"Lang":"sample string 10","NotifyFiltrationDuration":true,"NotifyProbeIssues":true,"NotifyStock":true,"NotifyPoolsHealth":true,"SystemPauseNotifications":true,"IsSocietyCreator":true,"JoinedSocietyDate":"2023-01-27T12:55:48.1966739+00:00","SocietyId":1,"IsDesactivated":true,"IsNewsletter":true,"ActualRights":[]},"User_Id":4,"Media":0,"Date":"2023-01-27T12:55:48.1966739+00:00","ValidUntil":"2023-01-27T12:55:48.1966739+00:00","IsRenewable":true,"PurchaseKey":"sample string 8","JsonInvoice":"sample string 9","IsCancelled":true,"CancelReason":"sample string 11","CancelDate":"2023-01-27T12:55:48.1966739+00:00","IsOutDated":true,"IsHub":true}