Carteira

Configurar recarga automática

Changed on

Ativar exige cartão cadastrado (409 CONFLICT sem ele). Se o saldo já estiver no limite ao ativar, a cobrança acontece na hora. Permissão: ADMIN.

patch/v1/wallet/auto-recharge

Request

Request body

enabledboolean nullable
thresholdnumber nullable
amountnumber nullable

Response

Configuração atualizada

enabledboolean required
thresholdnumber required

Saldo (R$) que aciona a recarga.

amountnumber required

Valor da recarga (R$).

lastAttemptAtstring date-time nullable
lastFailureReasonstring nullable

Changes

    • info

      api tag Carteira added

    • info

      api tag wallet removed

    • info

      added the non-success response with the status

    • breaking

      the response property became optional for the status

    • breaking

      the response's property format changed from float to no format for status

    • breaking

      the response's property type changed from object to string for status

    • breaking

      the response's property format changed from float to no format for status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      the request property format was generalized from float to no format

    • info

      the request property format was generalized from float to no format

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status