support
Back to documentation
Search
Categories
Tags
main parametersexpand all
subscriptionId
required
paymentMethodToken
required
terminationDate
Try me
Documentation

Subscription/Cancel Web Service

Calling Web Services requires HTTP Basic Authentication . More information: " Authentication Phase ".

POSThttps://api.lyra.com/api-payment/V4/Subscription/Cancel

The Subscription/Cancel REST web service allows you to cancel a subscription.

The Subscription/Cancel web service does not cancel transactions that have already been created and are being processed.

Use the Web ServiceOrder/Getto find out if payments are being processed (status: RUNNING) (Transaction lifecycle).
To cancel them, use the Web ServiceTransaction/Cancel.

Input parameters

paymentMethodToken

Token associated with a payment method.

Format

subscriptionId

Recurring payment identifier.

Format

terminationDate

Recurring payment termination date.

Format

Response reference

The web service returns the following object:

Response Context
Common/ResponseCodeAnswer Object containing the return code of the web service.

The responseCode attribute may take one of the values below:

Code label
0 Recurring payment successfully terminated
30 Token not found
32 Subscription not found
99 Undefined error