Remove a subscription

**DELETE**https://api.okepay.info/v1.0/Subscription/id

PHP
<?php
$instanceName = %instanceName%;
$secret = %secret%;
$okepay = new \Okepay\Okepay($instanceName, $secret);
$subscription = new \Okepay\Models\Request\Subscription();
$subscription->setId(1);
try {
    $response = $okepay->cancel($subscription);
} catch (\Okepay\OkepayException $e) {
    die($e->getMessage());
}
PATH PARAMS
id
int32
REQUIRED
The id of the subscription to delete
QUERY PARAMS
instance
string
REQUIRED
Your OkePay instance name

Experimental documentation state

This functionality is already in productional use, but the documentation might contain some errors. Please contact us if you are interested in handling Subscriptions though your own application