General APIs with JWT

Update Auto Top Up

Changed on

Update auto top up configuration for the user.

Session-only: a budgeted key must not set amount_to_top_up. The tick's auto-pay writes api_key_id = NULL, so that charge would never count against the key. GET /users/me/auto-top-up stays on a billing key.

put/users/me/auto-top-up

Request

  • Base URL: https://lium.io/api
  • URL: https://lium.io/api/users/me/auto-top-up
  • Auth: HTTP bearer

Request body

thresholdnumber required
amount_to_top_upnumber required

Response

Successful Response

user_idstring uuid required
thresholdnumber required
amount_to_top_upnumber required
turned_on_by_default_atstring date-time nullable
first_charged_atstring date-time nullable
first_charge_usdnumber nullable
first_charge_notice_dismissed_atstring date-time nullable
declined_payment_method_idstring nullable
consecutive_declinesinteger
last_decline_codestring nullable
last_decline_messagestring nullable
next_retry_atstring date-time nullable
paused_atstring date-time nullable
decline_email_sent_atstring date-time nullable
pending_payment_intent_idstring nullable
pending_charged_atstring date-time nullable
server_error_attemptsinteger nullable
created_atstring date-time
updated_atstring date-time nullable

Changes

    • 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

    • 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

    • info

      added the optional property to the response with the status