Overview
Entities
Legal Entity
Virtual Account
Transaction
Card
Card Group
Replace a card group's spending constraint
Fully replace a card group’s spending constraint.
curl --request PUT \
--url https://api.joinslash.com/card-group/{cardGroupId}/spending-constraint \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"merchantCategoryRule": {
"merchantCategories": [
"<string>"
],
"restriction": "allowlist"
},
"merchantRule": {
"merchants": [
"<string>"
],
"restriction": "allowlist"
},
"spendingRule": {
"utilizationLimit": {
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
},
"utilizationLimitV2": [
{
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
}
],
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
},
"countryRule": {
"countries": [
"<string>"
],
"restriction": "allowlist"
},
"merchantCategoryCodeRule": {
"merchantCategoryCodes": [
"<string>"
],
"restriction": "allowlist"
}
}'
{
"merchantCategoryRule": {
"merchantCategories": [
"<string>"
],
"restriction": "allowlist"
},
"merchantRule": {
"merchants": [
"<string>"
],
"restriction": "allowlist"
},
"spendingRule": {
"utilizationLimit": {
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
},
"utilizationLimitV2": [
{
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
}
],
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
},
"countryRule": {
"countries": [
"<string>"
],
"restriction": "allowlist"
},
"merchantCategoryCodeRule": {
"merchantCategoryCodes": [
"<string>"
],
"restriction": "allowlist"
}
}
Authorizations
Authentication from public API requests
Path Parameters
Body
A constraint that can be applied to a CardGroupSpendingRule
Represents a monetary value
The amount in cents
daily
, weekly
, monthly
, yearly
, collective
IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used.
Format ISO-8601. A day that equals today or the past. This is optional.If the preset
is "daily", this value is ignored. If the preset
is "weekly", "monthly" or "yearly", then the this value is used to compute when the limit should start limit.
Represents a monetary value
The amount in cents
daily
, weekly
, monthly
, yearly
, collective
IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used.
Format ISO-8601. A day that equals today or the past. This is optional.If the preset
is "daily", this value is ignored. If the preset
is "weekly", "monthly" or "yearly", then the this value is used to compute when the limit should start limit.
Represents a monetary value
The amount in cents
Response
A constraint that can be applied to a CardGroupSpendingRule
Represents a monetary value
The amount in cents
daily
, weekly
, monthly
, yearly
, collective
IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used.
Format ISO-8601. A day that equals today or the past. This is optional.If the preset
is "daily", this value is ignored. If the preset
is "weekly", "monthly" or "yearly", then the this value is used to compute when the limit should start limit.
Represents a monetary value
The amount in cents
daily
, weekly
, monthly
, yearly
, collective
IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used.
Format ISO-8601. A day that equals today or the past. This is optional.If the preset
is "daily", this value is ignored. If the preset
is "weekly", "monthly" or "yearly", then the this value is used to compute when the limit should start limit.
Represents a monetary value
The amount in cents
curl --request PUT \
--url https://api.joinslash.com/card-group/{cardGroupId}/spending-constraint \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"merchantCategoryRule": {
"merchantCategories": [
"<string>"
],
"restriction": "allowlist"
},
"merchantRule": {
"merchants": [
"<string>"
],
"restriction": "allowlist"
},
"spendingRule": {
"utilizationLimit": {
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
},
"utilizationLimitV2": [
{
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
}
],
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
},
"countryRule": {
"countries": [
"<string>"
],
"restriction": "allowlist"
},
"merchantCategoryCodeRule": {
"merchantCategoryCodes": [
"<string>"
],
"restriction": "allowlist"
}
}'
{
"merchantCategoryRule": {
"merchantCategories": [
"<string>"
],
"restriction": "allowlist"
},
"merchantRule": {
"merchants": [
"<string>"
],
"restriction": "allowlist"
},
"spendingRule": {
"utilizationLimit": {
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
},
"utilizationLimitV2": [
{
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
}
],
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
},
"countryRule": {
"countries": [
"<string>"
],
"restriction": "allowlist"
},
"merchantCategoryCodeRule": {
"merchantCategoryCodes": [
"<string>"
],
"restriction": "allowlist"
}
}