---
title: "Create a waiver for a Decision Engine Tree"
method: POST
path: "/pws/pws_create_decision_tree_waiver"
tags: ["Tree Waivers"]
---

# Create a waiver for a Decision Engine Tree

`POST /pws/pws_create_decision_tree_waiver`

## Request

- Base URL: `https://api.uat.paymentology.com/ppws/api`
- URL: `https://api.uat.paymentology.com/ppws/api/pws/pws_create_decision_tree_waiver`
- Auth: none declared

This web service allows to create a waiver for a Decision Engine Tree.

## Request body

- PwsCreateDecisionTreeWaiverModel: This web service allows the creation of a decision tree waiver. A decision tree waiver is used to bypass a decision tree for a specific transaction.
  - `api_call_unique_identifier` string, required: Unique number that must be passed at each API request. Identifier to make each API request unique
  - `client_id` integer, required: Unique identifier for the client which Paymentology will provide at outset
  - `scope` 'ACCOUNT' | 'ACCOUNT_GROUP' | 'PRODUCT' | 'CLIENT' | 'TOKEN' | 'ACCOUNT' | 'ACCOUNT_GROUP' | 'PRODUCT' | 'CLIENT' | 'TOKEN', required: The scope of the entity that will be waived. It must be one of the enum values
  - `scope_id` string, required: The ID of the entity that will be waived.
  - `tree_id` integer, required: The id of the decision tree
  - `user_id` string: User Id of the Customer who triggered the API request.
  - `remarks` string: Remarks for API request
  - `expiry_date` string: The date and time when the waiver expires, formatted in ISO 8601 style yyyy-MM-dd'T'HH:mm:ss[.SSS]. If not provided, the waiver will not expire.

## Response `200`

Successful Response

- PwsCreateDecisionTreeWaiverResponse
  - `header` DecisionEnginePwsResponseHeader
    - `error_id` integer: Error Id
    - `error_desc` string: Error Message
  - `body` DecisionTreeWaiverCreationResponse
    - `waiver` DecisionTreeWaiver
      - `id` integer
      - `clientId` integer
      - `target` DecisionTreeWaiverTarget
        - `id` string
        - `scope` string
        - `expiryDate` string

## Other responses

- `404`: Webservices does not exist
- `500`: Internal Server 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)
