Creates a new recurring billing subscription on a credit card. The first charge is processed immediately; subsequent charges are automatically billed at the defined frequency until the end date. A subscriptionId and a token are returned on approval.
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 Add 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}. E-Commerce transactions send 5 blank spaces for MerchantTerminalNumber.
Credit Card Only
Recurring subscriptions are supported for credit card transactions only. Interac debit (IAP) is not supported for this endpoint.
Immediate First Charge β Automatic Subsequent Billing
The first billing is processed immediately as part of this request. Subsequent charges are automatically triggered by the PayFacto platform at the defined Frequency between StartDate and EndDate. No further API calls are needed for recurring charges.
Store the Subscription ID and Token
On approval, persist both the subscriptionId and the token returned in the response. The subscriptionId is required to manage or cancel the subscription later. The token can be used for additional token-based transactions against the same card.
All parameters are passed inside the Base64-encoded payload form field. Raw body format: auth-api-key=<key>&payload=<base64>. E-Commerce transactions send 5 blank spaces for MerchantTerminalNumber.
Required fields
Optional fields
The example below uses the test endpoint and a sandbox API key, and shows an E-Commerce (InputType=I) monthly subscription. Replace credentials and base URL before going live. Store the subscriptionId and token from the response.
Always returned
Conditionally returned
The following codes are most relevant to this endpoint. For the complete catalogue see the Return Code Index.