PATCH
/
card
/
{cardId}
/
spending-constraint
curl --request PATCH \
  --url https://api.joinslash.com/card/{cardId}/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

X-API-Key
string
header
required

Authentication from public API requests

Path Parameters

cardId
string
required

Body

application/json

A partial spending constraint update that can be applied to a CardGroupSpendingRule

merchantCategoryRule
object | null
merchantRule
object | null
spendingRule
object | null
countryRule
object | null
merchantCategoryCodeRule
object | null

Response

200
application/json
OK

A constraint that can be applied to a CardGroupSpendingRule

merchantCategoryRule
object | null
merchantRule
object | null
spendingRule
object | null
countryRule
object | null
merchantCategoryCodeRule
object | null