Reserves funds on a cardholder's account using a previously stored card token, without capturing the charge. The reservation must be finalized with a Completion transaction or released with a $0 Completion.
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 Pre-Authorization with Token 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}.
Card Token
A Token is a security token linked to a client's credit card, used in place of raw card data. Tokens are returned by the PayFacto platform when tokenization is enabled on a prior transaction. The token must be active, have a valid non-expired card on file.
Pre-Authorization / Completion Flow
A Pre-Authorization reserves funds but does not capture them. To finalize the charge, follow up with a Completion (/v1/completion) using the authorizationNumber, transactionNumber, and invoiceNumber returned in this response. The Completion amount must not exceed the pre-authorized amount. To release the reservation without charging, use Void (/v1/void). Only one Completion per Pre-Authorization is allowed.
All parameters are passed inside the Base64-encoded payload form field. Raw body format: auth-api-key=<key>&payload=<base64>. For terminal transactions (InputType=N), send MerchantTerminalNumber as the assigned terminal number; for E-Commerce, send 5 blank spaces.
Required fields
Optional 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 most relevant to this endpoint. For the complete catalogue see the Return Code Index.