NetPOS supports cash-out services, allowing merchants to provide cash withdrawal services to customers. This feature enables merchants to act as agent banking points where customers can withdraw cash using their debit cards.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/netplusTeam/NetPOS/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Cash-out services transform the POS terminal into an ATM-like service point where customers can withdraw cash from their bank accounts using their debit cards.Cash-out transactions require EMV card reading capabilities and proper merchant authorization as an agent banking provider.
Cash-Out Flow
Transaction Response Model
Cash-out transactions use theCashOutResponse model:
CashOutResponse.kt
Response Fields
| Field | Type | Description |
|---|---|---|
description | String | Transaction description/status message |
field39 | String | Response code (e.g., “00” for approved, “A3” for default) |
authId | String | Authorization ID from the bank |
amountAuthorized | Long | Authorized withdrawal amount in minor units |
AmountOther | Long | Additional amount (e.g., fees) |
atc | String | Application Transaction Counter |
iad | String | Issuer Application Data |
rc | Int | Response code |
referenceNumber | String | Unique transaction reference number |
transactionChannelName | String | Channel used for transaction |
wasReceived | Boolean | Indicates if response was received |
wasSent | Boolean | Indicates if request was sent |
Transaction Response Conversion
TheCashOutResponse is converted to TransactionResponse for storage:
TransactionResponse Fields
Card Information
- maskedPan - Card number with middle digits masked (e.g., 5399xxxxxx1234)
- cardExpiry - Card expiration date from EMV chip
- cardLabel - Card scheme label (Visa, Mastercard, etc.)
Transaction Metadata
- transactionTimeInMillis - Transaction timestamp in milliseconds
- transmissionDateTime - Formatted datetime (MMddhhmmss)
- localTime_12 - Time in hhmmss format
- localDate_13 - Date in MMdd format
Transaction Identifiers
- STAN - System Trace Audit Number (unique transaction ID)
- RRN - Retrieval Reference Number
- authCode - Authorization code from issuing bank
Card Data Processing
Cash-out transactions require reading card data from the EMV chip:- Card Reading
- PAN Masking
ISW Parameters
Interswitch parameters required for cash-out:Parameter Sources
| Parameter | Description | Source |
|---|---|---|
terminalId | POS terminal ID | User configuration |
merchantId | Merchant identifier | User configuration |
merchantCategoryCode | MCC code for agent banking | Configuration |
merchantNameAndLocation | Merchant details | User profile |
remark | Transaction remark | System generated |
Transaction Types
Cash-out is processed as a PURCHASE transaction:Available Transaction Types
- PURCHASE - Standard purchase/cash-out
- REFUND - Refund transaction
- CASH_ADVANCE - Cash advance on credit cards
- PRE_AUTHORIZATION - Pre-auth hold
Account Types
Supported Account Types
- DEFAULT_UNSPECIFIED - Default account type
- SAVINGS - Savings account
- CURRENT - Current/checking account
- CREDIT - Credit card account
POS Mode
Response Codes
- Success Codes
- Decline Codes
- Error Codes
- 00 - Approved/successful
- 10 - Partial approval (amount less than requested)
Transaction Storage
Completed transactions are stored with:Receipt Information
Cash-out receipts include:Transaction Details
- Transaction type (Cash Withdrawal)
- Amount
- Date and time
- Reference number (RRN)
Card Information
- Masked PAN
- Card type
- Authorization code
- Response message
Merchant Details
- Merchant name
- Terminal ID
- Merchant ID
- Location
Status
- Approval status
- Response code
- STAN
- Receipt number
Security Considerations
Best Practices
Error Handling
Insufficient Funds (51)
Insufficient Funds (51)
Error: Customer account has insufficient balanceAction: Inform customer and offer to retry with lower amount
Incorrect PIN (55)
Incorrect PIN (55)
Error: Customer entered wrong PINAction: Allow customer to retry (max 3 attempts before card lock)
Timeout/No Response
Timeout/No Response
Error: No response from payment gatewayAction: DO NOT dispense cash. Perform transaction reversal or inquiry
Partial Approval (10)
Partial Approval (10)
Error: Bank approved less than requested amountAction: Dispense approved amount or cancel and retry
Compliance Requirements
Merchants providing cash-out services must:
- Be registered as authorized agent banking providers
- Maintain adequate cash float for daily operations
- Implement daily cash-out limits per customer
- Keep detailed transaction records for regulatory compliance
- Report suspicious transactions as per AML/CFT regulations
Related Resources
Transaction History
View and manage cash-out transaction records
Card Payments
Learn about card payment processing