Service Our Products Developer docs Enterprise rollout Pricing Company Help Center Check Contact Us
our fees start a rollout business api rollout guide

Approve payments and actions

Withdrawals, transfers, bank detail changes, admin actions: anything that should never happen without the account holder. The user sees the exact amount and target on their phone and approves it there.

1. Start the approval (server)

POST /payment/approval/start

  • client_key_id: your workspace key. Required.
  • device_ref: the user's TapSign device. Required.
  • operation: what is happening, for example withdraw, transfer or change_bank.
  • amount_minor: the amount in minor units, for example 1250 for 12.50.
  • currency: ISO code, for example USD, EUR or GBP.
  • target_ref: who or what receives it, for example the payee account id.
  • merchant_reference: your own reference for this request.
  • channel: web, mobile_app, desktop or extension.
  • risk_level: low, normal, high or critical.

Returns session_id, challenge, expires_at and push_delivery_status.

const start = await tapsign.post('/payment/approval/start', { client_key_id: process.env.TAPSIGN_CLIENT_KEY_ID, device_ref: user.tapsignDeviceRef, operation: 'withdraw', amount_minor: 1250, currency: 'USD', target_ref: payout.accountId, merchant_reference: payout.id, channel: 'mobile_app', risk_level: 'high', });

2. Wait for the phone

GET /payment/approval/status?client_key_id=...&session_id=...

Poll from your server. Status is pending, approved, denied or expired. If push_delivery_status is not sent, tell the user to open the app on their phone.

3. Confirm and act (server)

POST /payment/approval/consume

Send the same operation, amount_minor, currency and target_ref you started with. TapSign refuses the approval if any of them differ.

Move the money only when this returns HTTP 200, and inside the same database transaction if you can.

await tapsign.post('/payment/approval/consume', { client_key_id: process.env.TAPSIGN_CLIENT_KEY_ID, session_id: req.body.sessionId, operation: 'withdraw', amount_minor: payout.amountMinor, currency: payout.currency, target_ref: payout.accountId, }); await ledger.releasePayout(payout.id); // only after HTTP 200

Approving inside your own app

When the user is already in your app on the enrolled phone, return session_id and challenge to the app and approve there with the SDK. One fingerprint, no switching apps. See Mobile apps.

Your approval device is one download away.

Join the teams already protecting login, admin actions and deployments with TapSign.

Get it on Google Play Download on the App Store