Skip to main content

Recipe 5: PayWise Pay Cashout

Required​

Complete Recipe 0: Account preflight + encryption first.

Session Token Context​

For cashout, run account status/minting against the PW wallet user sending funds out. The session_token_enc must map to the debit_party PW user. This is a TTD-to-TTD wallet movement, so no quote step is required.

Flow​

  1. Build the transaction payload with transaction_type: "cashout"
  2. Submit POST /institution/transaction
  3. Poll transaction state with transaction_id_enc

POST /institution/transaction body​

{
"session_token_enc": "<encrypted_base64>",
"transaction_id": "TXN-CASHOUT-20260213-0001",
"transaction_date": "2026-02-13T18:40:00.000Z",
"amount": "80.00",
"sender_currency": "TTD",
"sender_amount": "80.00",
"description": "Wallet cashout",
"transaction_type": "cashout",
"fees": [
{ "fee_type": "service_fee", "fee_amount": "1.00", "fee_currency": "TTD" }
],
"debit_party": [
{ "key": "msisdn", "value": "15550001011" }
],
"credit_party": [
{ "key": "bank_account", "value": "0000001234" }
],
"sender_kyc": {
"full_name": "Casey Example",
"country": "TT"
},
"recipient_kyc": {
"full_name": "Casey Example",
"country": "TT"
}
}

GET /institution/transaction request params​

{
"version": "2024-10-01",
"institution_name": "DemoBank",
"transaction_id_enc": "<encrypted_base64>"
}