Authorizations
Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.
Headers
Profile ID for authentication
Path Parameters
The unique identifier for the subscription
Body
Request payload for cancelling a subscription.
immediately, end_of_term, specific_date Optional date when the subscription should be cancelled (if not provided, cancels immediately)
invoice, delete none, prorate, full no_action, schedule_payment_collection, write_off no_action, schedule_refund Reason code for canceling the subscription
Response
Subscription cancelled successfully
Response payload returned after successfully cancelling a subscription.
A type for subscription_id that can be used for subscription ids
Possible states of a subscription lifecycle.
Created: Subscription was created but not yet activated.Active: Subscription is currently active.InActive: Subscription is inactive.Pending: Subscription is pending activation.Trial: Subscription is in a trial period.Paused: Subscription is paused.Unpaid: Subscription is unpaid.Onetime: Subscription is a one-time payment.Cancelled: Subscription has been cancelled.Failed: Subscription has failed.
active, created, in_active, pending, trial, paused, unpaid, onetime, cancelled, failed A type for profile_id that can be used for business profile ids
A type for merchant_id that can be used for merchant ids
A type for customer_id that can be used for customer ids
Merchant specific Unique identifier.
Date when the subscription was cancelled