Create a SubscriptionPlan
POST
/subscriptionplans/{subscriptionplan}
Register a new subscription plan.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Location
string
Example
http://pay.caspeco.net/v1/subscriptionplans/Host
string
E.g. pay.caspeco.net
Example
pay.caspeco.netDate
string
E.g. Tue, 15 Nov 2014 08:12:31 GMT
Example
Tue, 15 Nov 2014 08:12:31 GMTDigest
string
E.g. SHA-256=7oaYBB1oQVPy1BvP2ndYtxdD5EWNynt9lxCHzOdXb1A=
Example
SHA-256=7oaYBB1oQVPy1BvP2ndYtxdD5EWNynt9lxCHzOdXb1A=Request Body
Section titled “Request Body”Media typeapplication/json
object
SubscriptionPlanId
string
SubscriptionPlanName
string
Amount
decimal
AmountVat
decimal
Currency
string
IntervalType
string
IntervalValue
integer
Merchant
integer
OrderDescription
string
CallbackUrl
string
Example
{ "SubscriptionPlanId": "1da27fd0-3791-4e9d-b27c-48a09e5f7291", "SubscriptionPlanName": "Guldpaketet 2016", "Amount": 10000, "AmountVat": 2500, "Currency": "SEK", "IntervalType": "M", "IntervalValue": 1, "Merchant": 1216, "OrderDescription": "Silverpaketet", "CallbackUrl": "https://www.example-shop.com/"}Responses
Section titled “Responses”Created
Media type*/*
object
SubscriptionPlanId
string
SubscriptionPlanName
string
Amount
number
AmountVat
number
Currency
string
Merchant
number
OrderDescription
string
CallbackUrl
string