> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dintero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update settings

> Update the wallets settings for the account. Only the properties
included in the request are changed.

Supported properties:
- `default_card_expires_in_days`

The request can include properties that the client is not allowed to
change, for example a value returned by
[Get settings](/wallets-api/settings/aid_wallets_settings_get), as long
as the value is unchanged. Changing such a property returns `403`.

scopes:
- admin:wallets
- write:wallets




## OpenAPI

````yaml /mintlify-docs/openapi/spec-wallets.yaml patch /accounts/{aid}/wallets/settings
openapi: 3.0.0
info:
  title: Wallet / Cards API
  description: >
    API for managing virtual cards, digital gift cards and transactions


    # Changelog


    All notable changes to the API.


    ## 2026-11-30


    > **fix**: Use a separate schema for the create card request. Remove

    > properties the endpoint does not support from the request: `status`,

    > `id`, `created_at`, `created_by` and the balance amounts. A card created

    > with this endpoint always has status `unused`.

    >

    > **new**: Support `originated_by` when creating a card, the same as when

    > activating a card

    >

    > - [POST
    /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_post)


    > **new**: Add settings endpoints with `default_card_expires_in_days`, the

    > default expiry for cards created or activated without `expires_at`

    >

    > - [GET
    /v1/accounts/{aid}/wallets/settings](/wallets-api/settings/aid_wallets_settings_get)

    > - [PATCH
    /v1/accounts/{aid}/wallets/settings](/wallets-api/settings/aid_wallets_settings_patch)

    > - [POST
    /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_post)

    > - [POST
    /v1/accounts/{aid}/wallets/cards/{card_id}/activate](/wallets-api/cards/aid_cards_cardid_activate_post)


    > **new**: Add support for providing card type when activating a card.

    > Make it possible to change the type of the card when activating it

    >

    > - [POST
    /v1/accounts/{aid}/wallets/cards/{card_id}/activate](/wallets-api/cards/aid_cards_cardid_activate_post)


    > **new**: Add optional query parameter `token` to find cards by active
    token.

    > Document that `search` is extended to support match on active `token`

    >

    > - [GET /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_get)


    ## 2026-06-06


    > **new**: Add support for batch create cards that can be activated.
    Intended

    > for use case where physical cards will be issued from the Wallet cards.
    The

    > cards created will all have status `created` and needs to be activated
    before

    > use

    >

    > - [POST
    /v1/accounts/{aid}/wallets/cards/batch](/wallets-api/cards/aid_cards_batch_post)

    > - [POST
    /v1/accounts/{aid}/wallets/cards/{card_id}/activate](/wallets-api/cards/aid_cards_cardid_activate_post)


    ## 2025-02-06


    > **new**: Add optional query parameter `includes` and extend card details
    with pin and token format

    > - [GET
    /v1/accounts/{aid}/wallets/cards/{card_id}](/wallets-api/cards/aid_cards_cardid_get)


    ## 2025-01-30


    > **new**: Add endpoint for rotating or generating pin for card

    > - [POST
    /v1/accounts/{aid}/wallets/cards/{card_id}/rotate-pin](/wallets-api/cards/aid_cards_cardid_rotate_pin_post)


    ## 2024-12-16


    > **new**: Add `amount_reserved` on card balance, add `status` to card
    properties

    >

    > - [GET /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_get)

    > - [GET
    /v1/accounts/{aid}/wallets/cards/{card_id}](/wallets-api/cards/aid_cards_cardid_get)


    ## 2024-12-11


    > **new**: Add `amount_available` query param filter on getting cards

    >

    > - [GET /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_get)


    ## 2024-12-05


    > **new**: Add `amount_funds`, `amount_drawdown`, `amount_pending` on card
    balance

    > 

    >

    > - [GET /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_get)

    > - [GET
    /v1/accounts/{aid}/wallets/cards/{card_id}](/wallets-api/cards/aid_cards_cardid_get)


    ## 2024-11-28


    > **update**: Revert adding deletion properties to cards

    >

    > **new**: Add `originated_by` to card and transaction properties

    >

    > - [GET /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_get)

    > - [GET
    /v1/accounts/{aid}/wallets/cards/{card_id}](/wallets-api/cards/aid_cards_cardid_get)

    > - [GET
    /v1/accounts/{aid}/wallets/cards/{card_id}/transactions](/wallets-api/transactions/aid_cards_cardid_transactions_tid_get)

    > - [POST
    /v1/accounts/{aid}/wallets/transactions](/wallets-api/transactions/aid_cards_transactions_post)

    > - [POST
    /v1/accounts/{aid}/wallets/transactions/{transaction_id}/capture](/wallets-api/transactions/aid_cards_cardid_transactions_capture_post)

    > - [POST
    /v1/accounts/{aid}/wallets/transactions/{transaction_id}/void](/wallets-api/transactions/aid_cards_cardid_transactions_void_post)


    ## 2024-11-27


    > **new**: Add endpoint for deleting a card

    > 

    > **new**: `include_deleted` query parameter for including deleted cards

    >

    > - [DELETE
    /v1/accounts/{aid}/wallets/cards/{card_id}](#tag/cards/operation/aid_cards_cardid_delete)

    > - [GET /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_get)


    ## 2024-11-13


    > **new**: Add endpoint for getting cards on account

    >

    > **new**: Add support for defining type of card

    >

    > - [GET /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_get)

    > - [POST
    /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_post)


    ## 2024-11-01


    > **update**: Adjust minimum length of PIN when creating a new card from 6
    to 4.

    >

    > - [POST
    /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_post)


    ## 2024-06-10


    > **new**: Allow more currencies: `SEK`, `DKK`, `EUR`, and `USD`.

    >

    > - [POST
    /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_post)

    > - [POST
    /v1/accounts/{aid}/wallets/transactions](/wallets-api/transactions/aid_cards_transactions_post)

    > - [GET
    /v1/accounts/{aid}/wallets/cards/{card_id}](/wallets-api/cards/aid_cards_cardid_get)

    > - [GET
    /v1/accounts/{aid}/wallets/customers/{customer_id}/cards/{card_id}](/wallets-api/customers/aid_customers_cid_card_cid_get)


    ## 2024-02-01


    > **new**: Add option to create card with `pin` and support for

    > including pin when getting card info and when creating new

    > transaction

    >

    > - [POST
    /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_post)

    > - [POST
    /v1/accounts/{aid}/wallets/info](/wallets-api/cards/aid_cards_token_post)

    > - [POST
    /v1/accounts/{aid}/wallets/transactions](/wallets-api/transactions/aid_cards_transactions_post)


    ## 2023-07-07


    > **new**: Add optional `name` field to `Card`.

    >

    > - [POST
    /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_post)

    > - [GET
    /v1/accounts/{aid}/wallets/cards/{card_id}](/wallets-api/cards/aid_cards_cardid_get)

    > - [GET
    /v1/accounts/{aid}/wallets/customers/{customer_id}/cards](/wallets-api/customers/aid_customers_cid_cards_get)

    > - [GET
    /v1/accounts/{aid}/wallets/customers/{customer_id}/cards/{card_id}](/wallets-api/customers/aid_customers_cid_card_cid_get)


    ## 2023-06-12


    > **new**: Get details on customer card using `customer_id` and `card_id`.

    >

    > - [GET
    /v1/accounts/{aid}/wallets/customers/{customer_id}/cards/{card_id}](/wallets-api/customers/aid_customers_cid_card_cid_get)


    ## 2023-06-01


    > **new** Support creating card with `active_from` to control when

    > the created card is activated and allows `drawdown` transactions to be

    > created

    >

    > - [POST
    /v1/accounts/{aid}/wallets/cards](/wallets-api/cards/aid_cards_post)


    > **new** Support creating fund transaction using `type` property.

    >

    > - [POST
    /v1/accounts/{aid}/wallets/transactions](/wallets-api/transactions/aid_cards_transactions_post)


    > **new** Support creating transaction using `card_id`.

    >

    > - [POST
    /v1/accounts/{aid}/wallets/transactions](/wallets-api/transactions/aid_cards_transactions_post)


    > **new**: Support listing cards by customer_id, allow customer with

    > access to `user:wallets` scope to list their cards with balance

    >

    > - [GET
    /v1/accounts/{aid}/wallets/customers/{cid}/cards](/wallets-api/customers/aid_customers_cid_cards_get)
  contact:
    name: API Integration Support
    email: integration@dintero.com
  version: 1.0.0
  license:
    name: UNLICENSED
    url: https://dintero.com
servers:
  - url: https://api.dintero.com/v1
security:
  - JWT: []
paths:
  /accounts/{aid}/wallets/settings:
    patch:
      tags:
        - settings
      summary: aid_wallets_settings_patch
      description: |
        Update the wallets settings for the account. Only the properties
        included in the request are changed.

        Supported properties:
        - `default_card_expires_in_days`

        The request can include properties that the client is not allowed to
        change, for example a value returned by
        [Get settings](/wallets-api/settings/aid_wallets_settings_get), as long
        as the value is unchanged. Changing such a property returns `403`.

        scopes:
        - admin:wallets
        - write:wallets
      operationId: aid_wallets_settings_patch
      parameters:
        - $ref: '#/components/parameters/accountId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WalletsSettings'
        description: The settings to change
        required: true
      responses:
        '200':
          description: Updated wallets settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletsSettings'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/AccessForbidden'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - JWT: []
components:
  parameters:
    accountId:
      name: aid
      description: |
        An id that uniquely identifies the account.
      in: path
      required: true
      schema:
        type: string
        format: ^[PT]{1}\d{8}$
        minLength: 9
        maxLength: 9
  schemas:
    WalletsSettings:
      type: object
      properties:
        default_card_expires_in_days:
          type: integer
          minimum: 0
          example: 365
          description: >
            The number of days until a card expires, used only when the card is

            created or activated without `expires_at`. An `expires_at` in the

            request always takes precedence.


            The expiry is counted from when the card is activated for cards

            created with [batch
            create](/wallets-api/cards/aid_cards_batch_post),

            and from when the card is created for other cards.


            `0` means no default expiry. Cards created or activated without

            `expires_at` do not expire. This is the same as when the setting has

            not been set.
        created_at:
          type: string
          format: date-time
          example: '2026-11-24T12:00:00Z'
          description: |
            The date-time when the settings were first saved
          readOnly: true
        created_by:
          type: string
          example: 1c92f7e1-2897-4d46-bdcc-c127a914fb4e
          description: |
            The ID of the user/client that first saved the settings
          readOnly: true
        updated_at:
          type: string
          format: date-time
          example: '2026-11-24T12:30:00Z'
          description: |
            The date-time when the settings were last updated
          readOnly: true
        updated_by:
          type: string
          example: 3d1e4824-5474-48e7-a369-4f603fa4c5b8
          description: |
            The ID of the user/client that last updated the settings
          readOnly: true
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
          properties:
            code:
              type: string
              description: The code used to identify the error/warning
            errors:
              type: array
              description: The nested error(s) encountered during validation
              items:
                type: object
            message:
              type: string
              description: The human readable description of the error/warning
  responses:
    BadRequest:
      description: Bad / Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    AccessForbidden:
      description: Access forbidden, invalid JWT token was used
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Unexpected Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    JWT:
      type: http
      description: >
        Bearer authentication (token authentication) should be used for
        accessing the API.


        Use [Get Token](/api-reference/authenticate/aid_auths_oauth_token_post)
        to get an access token for client credentials.

        Pass the token in the request header:

            Authorization: Bearer {access_token}

        where the **access_token** is JSON Web Tokens (JWT).
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.