Queries the current open batch totals at a semi-integrated terminal. Returns a summary for all cards combined as well as totals by card type amounts accumulated since the last batch close. Used for end-of-day reconciliation before calling /v1/closeBatch. No batch is closed and no transaction is processed.
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 Total Batch 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}. This endpoint does not require card data, amounts, or invoice numbers.
Semi-Integrated Terminal Only
This endpoint targets a specific semi-integrated terminal via MerchantTerminalNumber. It is not applicable to E-Commerce or MOTO transactions. The terminal must not be processing another transaction when this request is sent.
Read-Only Operation
This endpoint queries batch totals only. No batch is closed and no transaction is processed. To close and settle the current batch, use /v1/closeBatch.
All parameters are passed inside the Base64-encoded payload form field. Raw body format: auth-api-key=<key>&payload=<base64>. This endpoint does not require card data, amounts, or invoice numbers.
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 β Batch totals
Returned when returnCode is 00. These fields summarize the transactions accumulated in the current open batch since the last /v1/closeBatch call. All amount fields are left (0) padded to 11 digits.
The following codes are most relevant to this endpoint. For the complete catalogue see the Return Code Index.