Funds flow
Payscribe integrations should model money movement as a reconciled lifecycle, not a single HTTP response.
Engineering flowBuild, verify, then reconcile
Test this flow in sandbox - 01InitiateCreate one requested payment or money movement with a stable ref.
- 02ProcessPayscribe and its provider process the operation asynchronously.
- 03ConfirmVerify the signed event or status for the original reference.
- 04ReconcileUpdate wallet, ledger, and business state exactly once.
Use a dashboard-issued sandbox API key on your server. Do not enter credentials into this documentation site.
Engineering flow
Request or inbound payment → provider processing → signed event → transaction/wallet reconciliation → business-state update
| Flow | Start | Final confirmation |
|---|---|---|
| Collection | Customer pays a virtual account, invoice, or link | Verified payment event and wallet/transaction record |
| Payout | Your server creates a transfer with ref | Verification endpoint and signed event |
| Card action | Create, fund, withdraw, or control a card | Confirmed provider/card state and event |
| FX | Create quote then execute before expiry | Conversion record and destination wallet state |
Build the reconciliation loop
- Generate and persist a unique
refbefore making a write request. - Keep the returned identifier and the original request state; a successful HTTP response is not always the final money state.
- Verify signed webhook events, deduplicate their event IDs, and update your business record exactly once.
- When an outcome is uncertain, query the relevant transaction or account history endpoint before retrying.
For a fresh Sandbox business, /my-account/balances can return 404 until wallets are provisioned. Treat that as a setup state, never as a wallet with a zero balance. See Wallet Funding and My Account for the exact response shapes.
Was this page helpful?