latestOpenAPI 3.0.12026-08-08175166.0 KB

e93b1cd07aaf

Spend Limits (v1)

Create Spend Limit

Creates a Spend Limit

post/v1/budgets

Headers

Idempotency-Keystring required

Request body

namestring required

Name for the Spend Limit.

descriptionstring required

Description of what the Spend Limit is used for.

parent_budget_idstring required

ID of parent Budget.

owner_user_idsstring[] nullable

User IDs of the owners of the Spend Limit.

member_user_idsstring[] nullable

User IDs of the members of the Spend Limit.

period_type'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY' | 'ONE_TIME' required

Period type of the Spend Limit e.g. MONTHLY.

limit_type'HARD' | 'SOFT' required

Whether the Spend Limit's limit blocks spend.

spend_type'BUDGET_PROVISIONED_CARDS_ONLY' | 'NON_BUDGET_PROVISIONED_CARDS_ALLOWED' required

Whether this Spend Limit only can be spent from by cards provisioned by this Spend Limit.

start_datestring date nullable

The UTC date when the Spend Limit should start counting.

end_datestring date nullable

The UTC date when the Spend Limit should stop counting.

limit_visibility'SHARED' | 'PRIVATE' required

Determines if Spend Limit members are allowed to view the Spend Limit's limit.

policy_idstring nullable
entity_idstring nullable

Example request

{
  "limit": {
    "amount": 700,
    "currency": "USD"
  }
}

Response

The Spend Limit that was created

budget_idstring required

Unique ID for the Spend Limit.

account_idstring required

The Brex account this Spend Limit belongs to.

creator_user_idstring nullable

The ID of the user who originally created this Spend Limit.

namestring required

Name for the Spend Limit.

descriptionstring nullable

Description of what the Spend Limit is used for.

parent_budget_idstring nullable

ID of parent Budget.

owner_user_idsstring[] required

User IDs of the owners of the Spend Limit.

member_user_idsstring[] required

User IDs of the members of the Spend Limit.

period_type'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY' | 'ONE_TIME' required

Period type of the Spend Limit e.g. MONTHLY.

start_datestring date nullable

The UTC date when the Spend Limit should start counting.

end_datestring date nullable

The UTC date when the Spend Limit should stop counting.

budget_status'APPROVED' | 'EXPIRED' | 'TERMINATED' | 'DELETED' required

Status of the Spend Limit e.g. APPROVED.

limit_type'HARD' | 'SOFT'

Whether the Spend Limit's limit blocks spend.

spend_type'BUDGET_PROVISIONED_CARDS_ONLY' | 'NON_BUDGET_PROVISIONED_CARDS_ALLOWED' required

Whether this Spend Limit only can be spent from by cards provisioned by this Spend Limit.

limit_visibility'SHARED' | 'PRIVATE' required

Determines if Spend Limit members are allowed to view the Spend Limit's limit.

templateIdstring nullable
budget_type'BUDGET' | 'SPEND_LIMIT' required

Whether this is a Budget or a Spend Limit for post-bifurcation entities.

Example response

{
  "limit": {
    "amount": 700,
    "currency": "USD"
  },
  "current_period_balance": {
    "balance": {
      "amount": 700,
      "currency": "USD"
    }
  }
}