UpdateSubscriptionRequest
amountintegerrequired
The subscription charge amount in minor units (e.g., 1095 = 10.95 DKK). This is displayed in-app for payment methods such as Vipps MobilePay.
Possible values: >= 1
Example:
9900typestringrequired
The type of the subscription
Possible values: [SCHEDULED, UNSCHEDULED]
Example:
SCHEDULEDexpiryDatedatenullablerequired
The expiry date of the subscription. Do note that ePay does not enforce this expiration date, but it is used during processing of transactions.
Example:
2035-07-23interval objectnullable
An optional subscription schedule for SCHEDULED type subscriptions. Must be omitted for UNSCHEDULED type subscriptions. Is required by some payment methods such as Vipps Mobilepay.
periodstringrequired
Possible values: [DAY, WEEK, MONTH, YEAR]
Example:
MONTHfrequencyintegerrequired
Possible values: >= 1 and <= 31
Example:
1UpdateSubscriptionRequest
{
"amount": 9900,
"type": "SCHEDULED",
"expiryDate": "2035-07-23",
"interval": {
"period": "MONTH",
"frequency": 1
}
}