---
title: "Get applicable card trees for a card"
method: GET
path: "/pws/cards/{public_token}/applicable-card-trees"
tags: ["Card Rule Assignments"]
---

# Get applicable card trees for a card

`GET /pws/cards/{public_token}/applicable-card-trees`

## Request

- Base URL: `https://api.uat.paymentology.com/ppws/api`
- URL: `https://api.uat.paymentology.com/ppws/api/pws/cards/{public_token}/applicable-card-trees`
- Auth: none declared. Required headers: `Client-Id`, `Api-Call-Unique-Identifier`

Returns Card Rule Scope trees applicable to a card. The method is equivalent to calling /pws/cards/{public_token}/applicable-trees with CARD_RULE scope

## Path parameters

- `public_token` string, required

## Headers

- `Client-Id` integer, required
- `Api-Call-Unique-Identifier` string, required

## Response `200`

Successful Response

- PwsGetApplicableTreesForCardResponse
  - `header` DecisionEnginePwsResponseHeader
    - `error_id` integer: Error Id
    - `error_desc` string: Error Message
  - `body` PwsGetApplicableTreesForCardResponseBody
    - `trees` PwsDecisionTreeSearchDTO[]
      - `id` integer
      - `name` string
      - `description` string
      - `state` 'DISABLED' | 'ENABLED' | 'DRY_RUN'
      - `clientId` integer
      - `accountId` integer
      - `accountGroupId` integer
      - `productId` integer
      - `tokenGroupId` integer
      - `scope` 'CLIENT' | 'ACCOUNT' | 'ACCOUNT_GROUP' | 'TOKEN_GROUP' | 'PRODUCT' | 'CARD_RULE'
      - `ruleIds` integer[]

## Other responses

- `404`: If the token doesn’t exist
- `500`: Internal error

---

[API](https://skmtc.dev/paymentology/apis/decision-engine.md) - [All operations](https://skmtc.dev/paymentology/apis/decision-engine/llms.txt) - [OpenAPI document](https://skmtc.dev/paymentology/apis/decision-engine/revisions/23310170026e?raw)
