Create Spend Rule

Creates a spend rule that restricts spending by velocity or merchant.
For further description and examples, refer to the Spend Rules section of the docs.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum
Allowed:
string
required

Plain-english description of what the spend rule restricts. Business-internal; not shown to cardholders.

string

Optional longer supporting text surfaced to cardholders. Max 500 chars after trim; empty/whitespace-only is treated as unset.

string

Optional short label surfaced to cardholders in their portal. Max 80 chars after trim; empty/whitespace-only is treated as unset.

metadata
array of objects
metadata
string
required
string

Pass in a Program ID to make the spend rule within a program. Only cards within the program can have this spend rule applied.

restrictions
array of objects
restrictions
string
enum
required

velocity SpendRuleTypeVelocity
merchant_allow SpendRuleTypeMerchantAllow
merchant_block SpendRuleTypeMerchantBlock

Allowed:
string
enum
Allowed:
string
enum

Velocity type defaults to 'currency_amount' if not provided
currency_amount VelocityTypeCurrencyAmount Velocity type defaults to 'currency_amount' if not provided
authorization_count VelocityTypeAuthorizationCount

Allowed:
string
Headers
string
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
*/*