Update a card group

Changed on
patch/v2/card-groups/{cardGroupId}

Request

  • Base URL
    https://api.slash.com
  • URL
    https://api.slash.com/v2/card-groups/{cardGroupId}
  • Auth
    API key in header X-API-Key

Path parameters

cardGroupIdstring required

Card group id with the card_group_ prefix.

Request body

namestring

Example request

{
  "controls": {
    "limit": {
      "amount": {
        "amount": 500000,
        "currency": "USD"
      },
      "period": "monthly"
    },
    "transactionLimit": {
      "amount": 250000,
      "currency": "USD"
    },
    "merchantCategoryCodes": {
      "mode": "block",
      "values": [
        "7995"
      ]
    }
  }
}

Response

The updated card group.

idstring required

Card group id with the card_group_ prefix.

namestring required
status'active' | 'archived' required
createdAtstring date-time required

Example response

{
  "id": "card_group_2rj4l7hmrrrcv",
  "name": "Marketing",
  "controls": {
    "limit": {
      "amount": {
        "amount": 500000,
        "currency": "USD"
      },
      "period": "monthly"
    },
    "transactionLimit": {
      "amount": 250000,
      "currency": "USD"
    },
    "merchantCategoryCodes": {
      "mode": "block",
      "values": [
        "7995"
      ]
    }
  }
}

Changes