curl --request PATCH \
--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": {
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"timezone": "<string>",
"startDate": "<string>"
},
"utilizationLimitV2": [
{
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"timezone": "<string>",
"startDate": "<string>"
}
],
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
},
"countryRule": {
"countries": [
"<string>"
],
"restriction": "allowlist"
},
"merchantCategoryCodeRule": {
"merchantCategoryCodes": [
"<string>"
],
"restriction": "allowlist"
}
}Apply a partial update to a card group’s spending constraint while preserving current properties applied. Properties set to “null” will be removed from the spending constraint.
curl --request PATCH \
--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": {
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"timezone": "<string>",
"startDate": "<string>"
},
"utilizationLimitV2": [
{
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"timezone": "<string>",
"startDate": "<string>"
}
],
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
},
"countryRule": {
"countries": [
"<string>"
],
"restriction": "allowlist"
},
"merchantCategoryCodeRule": {
"merchantCategoryCodes": [
"<string>"
],
"restriction": "allowlist"
}
}Authentication from public API requests
A partial spending constraint update that can be applied to a CardGroupSpendingRule
Show child attributes
Show child attributes
IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used.
daily, weekly, monthly, yearly, collective 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.
Show child attributes
IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used.
daily, weekly, monthly, yearly, collective 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.
Show child attributes
OK
A constraint that can be applied to a CardGroupSpendingRule
Show child attributes
Show child attributes
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.
Show child attributes
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.
Show child attributes