Permanently deletes an active subscription from the PayFacto recurring billing module. Once deleted, all associated invoices will cease to be processed and the subscription cannot be restored.
Version: v1.0 | Last updated: 2026-05-25 | Author: Annick Lachapelle
Deletion is permanent
Deleting a subscription is irreversible. All future invoices associated with the subscription will be cancelled and will not be processed. If you only need to temporarily pause billing, use Recurring — Modify Invoice to set the invoice status to Suspended (06) instead.
API Key
Generate your API key from the Payments Manager: Administrator Client → API Key → Add New Key. Pass it as auth-api-key in every request.
Company & Merchant Numbers
Your CompanyNumber (5-digit) and MerchantNumber (8-digit) are issued by PayFacto during onboarding. Both are required on every Delete Subscription request.
Environment Base URL
Test: https://test.api.payfacto.cloud/v1 | Production: Provided by the PayFacto Integration team upon certification.
Request Format — Base64-Encoded Payload
Requests use HTTP POST with an application/x-www-form-urlencoded body. Assemble all parameters as a cleartext query string, Base64-encode it, then send: auth-api-key={key}&payload={base64}.
Subscription ID & Token
You must have stored both the subscription ID and the subscriber Token from prior recurring API responses. Use Recurring — Info Subscription to retrieve these values if needed before proceeding.
All parameters are passed inside the Base64-encoded payload form field. Raw body format: auth-api-key=<key>&payload=<base64>. Both the Token and the ID are required to uniquely identify and authorize deletion of the subscription.
Required fields
The example below uses the test endpoint and a sandbox API key. Replace credentials and base URL before going live.
Always returned
Conditionally returned
The following codes are specific to this endpoint. For the complete catalogue see the Return Code Index.