List card groups
Retrieve the list of card groups that the user owns.
Authentication from public API requests
A cursor string to fetch the next page of results
curl --request GET \
--url https://api.joinslash.com/card-group \
--header 'X-API-Key: <api-key>'
{
"items": [
{
"id": "<string>",
"name": "<string>",
"spendingConstraint": {
"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
}
}
}
}
}
],
"metadata": {
"nextCursor": "<string>",
"count": 123
}
}
Authorizations
Authentication from public API requests
Query Parameters
A cursor string to fetch the next page of results
Response
A constraint that can be applied to a CardGroupSpendingRule
allowlist
, blacklist
allowlist
, blacklist
IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used.
Represents a monetary value
The amount in cents
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.
IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used.
Represents a monetary value
The amount in cents
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.
Represents a monetary value
The amount in cents
Represents a monetary value
The amount in cents
Response sent when requesting a list of data
The cursor to use to retrieve the next page of data. If this is not sent, there is no more data to retrieve.
The number of items in the current page of data.
curl --request GET \
--url https://api.joinslash.com/card-group \
--header 'X-API-Key: <api-key>'
{
"items": [
{
"id": "<string>",
"name": "<string>",
"spendingConstraint": {
"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
}
}
}
}
}
],
"metadata": {
"nextCursor": "<string>",
"count": 123
}
}