Section 14: Action: Cancel subscription

This will allow you to cancel a subscription inside Kartra. You can pass either the Kartra Transaction ID or the Kartra Subscription ID.

Type Parameters Values
POST cmd* cancel_transaction
POST transaction_id** integer
POST transaction_subscription_id** string

* Required: the CMD parameter must be included in the API call.
** Either the transaction_id or the transaction_subscription_id are required in order for a subscription to be correctly identified and canceled.

Here is an example:

'actions' => [
    '0' => [
        'cmd' => 'cancel_transaction',
        'transaction_id' => 1

© 2020 Kartra All Rights Reserved