User settings

Update user settings

Updates the authenticated user's notification toggles and low-balance alert threshold. The threshold is provided as low_balance_threshold_amount (a whole-currency amount) plus low_balance_threshold_currency; the server converts it to cents. An unknown currency returns 422.

patch/v1/user_settings

Request

  • Base URL
    https://api.cardda.com
  • URL
    https://api.cardda.com/v1/user_settings
  • Auth
    HTTP bearer

Parameters

#/paths/~1v1~1users/get/parameters/0 (unresolved $ref)

Request body

approved_transaction_notifyboolean
declined_transaction_notifyboolean
banking_transaction_notifyboolean
pending_transaction_notifyboolean
low_balance_notifyboolean
low_balance_threshold_amountinteger
low_balance_threshold_currencystring

Example request

{
  "low_balance_threshold_currency": "CLP"
}

Response

The updated user settings.

idstring uuid required
user_idstring required
approved_transaction_notifyboolean
declined_transaction_notifyboolean
banking_transaction_notifyboolean
pending_transaction_notifyboolean
low_balance_notifyboolean
low_balance_threshold_amountinteger

Low-balance alert threshold as a whole-currency amount (computed from cents).

low_balance_threshold_currencystring
created_atstring date-time
updated_atstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.