PATCH
/
card-group
/
{cardGroupId}
cURL
curl --request PATCH \
  --url https://api.joinslash.com/card-group/{cardGroupId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "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
        }
      }
    },
    "countryRule": {
      "countries": [
        "<string>"
      ],
      "restriction": "allowlist"
    },
    "merchantCategoryCodeRule": {
      "merchantCategoryCodes": [
        "<string>"
      ],
      "restriction": "allowlist"
    }
  }
}'
{
  "id": "<string>",
  "name": "<string>",
  "virtualAccountId": "<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
        }
      }
    },
    "countryRule": {
      "countries": [
        "<string>"
      ],
      "restriction": "allowlist"
    },
    "merchantCategoryCodeRule": {
      "merchantCategoryCodes": [
        "<string>"
      ],
      "restriction": "allowlist"
    }
  }
}

Authorizations

X-API-Key
string
header
required

Authentication from public API requests

Path Parameters

cardGroupId
string
required

Body

application/json
name
string
spendingConstraint
object

Explicitly set this value to null to remove all card group level spending constraints.

Response

OK

id
string
required
name
string
required
virtualAccountId
string

The ID of the virtual account that the card group is associated with

spendingConstraint
object

A constraint that can be applied to a CardGroupSpendingRule