Terminal Sessions
Terminal Sessions lets you send charges to a Recurrente POS terminal directly from your system (ERP, custom POS, or any integration). Your system sends a command with the amount, and the terminal automatically displays the payment screen for the customer to pay with their card.
Take an NFC payment from another app on the same Android
Create a Terminal Session Command from your backend, adding delivery_mode: "app_link" and return_url: "myapp://result?state=order-123" to the usual terminal, amount, currency and external ID. The Android must have an active, associated Tap to Pay terminal and an authenticated Recurrente session with permission to operate it. Standby mode is not required.
Open the returned app_url with Android ACTION_VIEW, targeting package com.recurrente.app. It uses recurrente://a/.../terminal_sessions/...; checkout_url is the web checkout, not the NFC entry point. Never put API keys in your app or in a link.
After the NFC flow, Recurrente opens return_url, preserving its parameters and adding terminal_session_command_id, checkout_id, external_id and status. Final statuses are consumed (paid checkout), failed, canceled and superseded. Confirm the result from your backend through GET /api/terminal_session_commands/{random_id} or the webhook: callback parameters are navigation hints, not proof of payment.
Return destinations must be HTTPS or your own app scheme, not HTTP, executable schemes, URLs with credentials or Recurrente links. show_post_payment_screens defaults to and must remain false; print_receipt: true is unsupported. Required tax-ID collection is still enforced before returning. Pending cancellation or an uncertain result does not produce a final callback. If either app closes or the return destination cannot open, reconcile the original command through the API before charging again. Reopening a completed link does not charge again. If the cashier cancels while the reader is preparing, your app receives status=canceled. A pending cancellation is confirmed when the link is reopened three minutes after it was requested, once no card read can still be in progress. Validate launch, return handling and NFC on a real Android with a Recurrente build that handles recurrente:// links.
Use cases
- ERP/POS integration: Your billing or point-of-sale system generates the charge, and the Recurrente terminal processes it.
- Remote charges: Send charges to terminals at different locations from a centralized system.
- Automation: Eliminate the need to manually enter amounts on the terminal.
Prerequisites
- A Recurrente account with API keys
- At least one POS terminal linked to your account
- Your terminal ID (found in POS in your dashboard — click on a terminal to see its ID)
Set up the terminal in standby mode
For the terminal to receive commands from your system, it must be on the standby screen. This screen shows “Listo para cobrar” (Ready to charge) and automatically waits for new commands.
- In your dashboard, go to POS
- Click on the terminal you want to configure
- On the terminal detail page, click Modo espera (top-right corner)
- The terminal will display the waiting screen
When your system sends a command, the terminal automatically displays the payment screen. After a failed payment it returns to standby; after a successful payment it may show the post-payment screens before returning. Send show_post_payment_screens: false to return to standby immediately when the tax configuration allows it.
In standby mode, the terminal operator cannot manually enter amounts. All charges are controlled from your system via the API.
Open the Recurrente app from your own Android app in standby mode
If your POS or Android app starts a delivery_mode: standby sale, open the Recurrente app on the same phone with a verified HTTPS App Link:
The app also accepts the recurrente:// scheme as a fallback:
From Android, trigger it with ACTION_VIEW:
The HTTPS App Link is preferred in production because Android verifies that the domain belongs to Recurrente. The custom scheme is a fallback when your integration already knows the app is installed.
The user must be signed in to the correct account, and the terminal must be linked to that account. Wait until the screen shows Listo para cobrar (Ready to charge) before creating the command; opening the URL by itself does not create a charge.
Do not open checkout_url to start this flow. That field identifies the checkout created by the API. When the terminal is in standby, the app receives the command and navigates internally to the terminal session.
Standby integration flow
1. Create a terminal command
Send a POST to /api/terminal_session_commands with the amount and target terminal.
Response
201 Created— a new command was created200 OK— an active command with the sameexternal_idalready exists (the existing one is returned)
If you receive 200 and the status is dispatched, it means the command was already picked up by the terminal. Use a new external_id to create a fresh command.
For a custom app, use checkout_id to identify the session if you need to open it manually inside the Recurrente app. The session route is:
The same route works with recurrente://. In the normal flow you do not need to open it: the standby screen opens it when it picks up the command.
Parameters
Send amount_in_cents or amount, not both. If you send amount, it is automatically converted to cents.
2. Receive the payment result
Register a webhook endpoint to receive notifications when the payment completes.
Listen for the payment_intent.succeeded event:
Use the metadata.external_id field to match the payment back to the order in your system.
You can also query the command from your server:
Treat the result as final only when final is true. Final statuses are consumed, failed, canceled, and superseded; pending, dispatched, and cancel_requested can still change.
For a delivery_mode: standby command, the Recurrente app does not automatically redirect to your Android app when the payment ends. Use the webhook or this query to reconcile the result, then let the user return with Back or from Recents. show_post_payment_screens: false sends the terminal back to standby after payment, but it does not create a callback to your app. For delivery_mode: app_link, use return_url; Recurrente opens it after the flow as described above.
Command statuses
Printing receipts
After an approved charge the terminal prints the customer copy if you sent print_receipt: true. For the merchant copy — or to reprint an earlier sale — send a separate print command:
The terminal prints without leaving standby, so the next charge still arrives. The checkout_id comes from the charge command’s response.
Printing is best-effort: it reaches a terminal sitting in standby and the result is not exposed over the API. It never affects the payment’s financial state.
Idempotency
The external_id is unique per account. If you send the same external_id twice:
- If the previous command is active (pending or dispatched), the existing command is returned.
- If the previous command was superseded or failed, the existing command is returned without creating a new one.
This lets you safely retry requests without creating duplicate charges.
Superseding (command replacement)
If you send a new command to the same terminal with a different external_id, all previous pending commands for that terminal are marked as superseded. The terminal only processes the most recent command.
This is useful when:
- The customer changes the order amount
- You need to cancel a charge and send a new one
- Your system retries with a new order ID

