Skip to main content
POST
Create deposit expectation
Use this endpoint to register a deposit expectation when the user sends a bank transfer. When the transfer arrives, Wealthyhood matches it against pending expectations by reference and amount, then automatically reconciles it as a completed deposit.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-user-id
string
required

The external user identifier of the acting customer.

Example:

"bank-user-12345"

Body

application/json
bankAccountId
string
required

MongoDB ObjectId of the bank account to credit

Pattern: ^[a-f0-9]{24}$
Example:

"64f0c51e7fb3fc001234abcd"

reference
string
required

Payment reference the user will include in their bank transfer. Leading and trailing whitespace are trimmed; the value is stored and matched in lowercase (ASCII) so it aligns with the bank statement reference field.

Minimum string length: 1
Example:

"wallet-topup-5f91ce"

consideration
object
required

Response

Deposit expectation created successfully