POST modules/{serial}/credit

Credits a few months of subscription to the given module

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serial

the module to credit

string

Required

Body Parameters

the number of months to credit

Flipr.Web.Api.Controllers.JsonWrappers.SingleValueOfSystem.UInt32
NameDescriptionTypeAdditional information
Value

unsigned integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Value": 1
}

text/html

Sample:
{"Value":1}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

the subscription details

Flipr.Data.SQL.Users.DeviceSubscription
NameDescriptionTypeAdditional 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.

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.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IsTest": true,
  "SubscriptionName": "sample string 3",
  "User": {
    "Birthday": "2019-08-20T19:30:22.9037974+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": "2019-08-20T19:30:22.9234026+00:00",
    "SocietyId": 1,
    "IsDesactivated": true,
    "ActualRights": []
  },
  "Media": 0,
  "Date": "2019-08-20T19:30:22.9234026+00:00",
  "ValidUntil": "2019-08-20T19:30:22.9234026+00:00",
  "IsRenewable": true,
  "PurchaseKey": "sample string 7",
  "JsonInvoice": "sample string 8",
  "IsCancelled": true,
  "CancelReason": "sample string 10",
  "CancelDate": "2019-08-20T19:30:22.9234026+00:00",
  "IsOutDated": true
}

text/html

Sample:
{"Id":1,"IsTest":true,"SubscriptionName":"sample string 3","User":{"Birthday":"2019-08-20T19:30:22.9037974+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":"2019-08-20T19:30:22.9234026+00:00","SocietyId":1,"IsDesactivated":true,"ActualRights":[]},"Media":0,"Date":"2019-08-20T19:30:22.9234026+00:00","ValidUntil":"2019-08-20T19:30:22.9234026+00:00","IsRenewable":true,"PurchaseKey":"sample string 7","JsonInvoice":"sample string 8","IsCancelled":true,"CancelReason":"sample string 10","CancelDate":"2019-08-20T19:30:22.9234026+00:00","IsOutDated":true}