Wallets

Set organization and channel usage budgets

Changed on

Set organization and channel usage budgets in USD for your Leadping organization. Use null to remove a limit or zero to stop new paid usage.

put/wallets/me/spend-limits

Request

  • Base URL
    https://api.leadping.ai
  • Auth
    HTTP bearer

Request body

SpendLimitsRequest required

Organization usage budgets in USD. Null removes a limit; zero stops new paid usage.

textingLimit, number double nullable

Optional texting budget in USD.

textingPeriod, 'day' | 'week' | 'month'

Calendar period for an organization channel budget, in UTC.

callingLimit, number double nullable

Optional calling budget in USD.

callingPeriod, 'day' | 'week' | 'month'

Calendar period for an organization channel budget, in UTC.

dailyLimit, number double nullable

Daily usage budget in USD for the UTC calendar day. Null removes the limit; zero stops new paid usage.

monthlyLimit, number double nullable

Monthly usage budget in USD for the UTC calendar month. Null removes the limit; zero stops new paid usage.

Response

Returns the updated usage limits and progress.

SpendLimitsResponse required

UTC calendar usage budgets, settled spend, and pending usage reservations in USD.

textingLimit, number double nullable

Optional texting budget in USD.

textingPeriod, 'day' | 'week' | 'month'

Calendar period for an organization channel budget, in UTC.

callingLimit, number double nullable

Optional calling budget in USD.

callingPeriod, 'day' | 'week' | 'month'

Calendar period for an organization channel budget, in UTC.

textingUsed, number double

Settled texting charges this period plus pending texting reservations.

callingUsed, number double

Settled calling charges this period plus pending calling reservations.

dailyLimit, number double nullable

Daily usage budget in USD. Null means no daily limit; zero stops new paid usage.

monthlyLimit, number double nullable

Monthly usage budget in USD. Null means no monthly limit; zero stops new paid usage.

dailySpent, number double

Settled usage spending in USD for the current UTC calendar day.

monthlySpent, number double

Settled usage spending in USD for the current UTC calendar month.

reserved, number double

Pending usage reservations in USD.

dailyResetsAt, string date-time

UTC timestamp when the next calendar day begins and daily spending resets.

monthlyResetsAt, string date-time

UTC timestamp when the next calendar month begins and monthly spending resets.

Changes

    • info

      added the new optional request property allOf[#/components/schemas/SpendLimitsRequest]/callingLimit (media type: application/json)

    • info

      added the new optional request property allOf[#/components/schemas/SpendLimitsRequest]/callingLimit (media type: application/*+json)

    • info

      added the new optional request property allOf[#/components/schemas/SpendLimitsRequest]/callingPeriod (media type: application/json)

    11 more changes in this revision