Update Subscription
Test this endpoint live
Open the same request directly in API Explorer.
Server URL
Updates the meta data of an ACTIVE subscription. This can be used to update the price or interval of in-app payment methods such as Vipps MobilePay.
Authorization
BearerAuth In: header
Path Parameters
The id of the subscription to update.
uuidHeader Parameters
Ensures that a request can be safely retried without causing duplicate operations. Typically used for actions like payment creation and operations such as refund and void to prevent accidental double processing. - If a response is replayed due to using the same key, the response will include the header `Idempotent-Replayed: true`. - Idempotency keys are scoped by **[Key, Endpoint, HTTP Verb]**; the same key on a different endpoint or method will not replay the original response. - Responses are cached for **24 hours**. After that, the cache is cleared, so idempotency is only guaranteed within 24 hours of the initial request.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
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.
1 <= value9900The type of the subscription
"SCHEDULED""UNSCHEDULED""SCHEDULED"The expiry date of the subscription. Do note that ePay does not enforce this expiration date, but it is used during processing of transactions.
date"2035-07-23"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.
"DAY""WEEK""MONTH""YEAR""MONTH"1 <= value <= 311Response Body
application/json
application/json
application/json
application/json