POST
/
api
/
platform
/
wallet
/
fund-wallet
/
{user_id}
Fund Wallet
curl --request POST \
  --url https://api.sandbox.paywint.com/api/platform/wallet/fund-wallet/{user_id} \
  --header 'Content-Type: application/json' \
  --header 'X-Platform-ID: <x-platform-id>' \
  --header 'X-Signature: <x-signature>' \
  --data '{
  "amount": 123,
  "bank_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "success": true,
  "message": "Operation completed.",
  "data": {
    "is_first_payment": true,
    "payment": {
      "payment_id": "f47ac10b-****-****-****-0e02b2c3d479",
      "payer_id": "f47ac10b-****-****-****-0e02b2c3d479",
      "payee_id": "f47ac10b-****-****-****-0e02b2c3d479",
      "amount": 100,
      "processing_fee": 1.5,
      "delivery_fee": 0.5,
      "invoice_no": "INV-2024-001234",
      "currency": "USD",
      "description": "June invoice for services",
      "payment_method": "WALLET",
      "receiving_method": "WALLET",
      "created_at": "2025-06-16T10:04:51.739761Z",
      "payment_date": "2025-06-16T10:13:16.749655Z",
      "status": "success",
      "card_id": "f47ac10b-****-****-****-0e02b2c3d479",
      "bank_id": "f47ac10b-****-****-****-0e02b2c3d479",
      "payee_card_id": "f47ac10b-****-****-****-0e02b2c3d479",
      "payee_bank_id": "f47ac10b-****-****-****-0e02b2c3d479",
      "failure_reason": "Insufficient wallet balance"
    }
  },
  "queryGeneratedTime": 1718006400
}

Headers

X-Platform-ID
string<uuid>
required

Unique platform identifier (UUID). You receive this during onboarding. Must be sent with every API request.

X-Signature
string
required

HMAC-SHA256 request signature for authentication. Use your platform secret key to compute it as: METHOD + PATH + QUERY + BODY_HASH.

Path Parameters

user_id
string<uuid>
required

Unique identifier (UUID) of the user whose wallet will be funded.

Body

application/json
amount
number
required

Amount to fund into the wallet

bank_id
string<uuid> | null
required

UUID of the bank account used for funding (if applicable)

Response

Successful Response

success
boolean
default:true

Indicates whether the request was processed successfully.

Example:

true

message
string
default:Success

A short, human-readable message describing the result of the request.

Example:

"Operation completed."

data
object | null

The main response payload, if applicable

queryGeneratedTime
number | null
default:1756883312.350897

The Unix timestamp (in seconds) indicating when the response was generated.

Example:

1718006400