---
title: "Get AB Testing Policy"
method: GET
path: "/abtestingadmin/policy/{policyType}"
tags: ["ABTestingAdmin"]
---

# Get AB Testing Policy

`GET /abtestingadmin/policy/{policyType}`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`

Retrieves the AB testing policy for the specified type. The policy type must be a valid value from the ABTestingPolicyType enumeration.

## Path parameters

- `policyType` string, required

## Headers

- `X-GD-RequestId` string, required

## Response `200`

OK

- GetABTestingPolicyResponse: Represents the response returned after retrieving an A/B testing policy. Contains the policy type and detailed policy configuration.
  - `policyType` string, nullable: The type or name of the A/B testing policy (e.g., "PercentageBased", "AmountThreshold").
  - `policy` ABTestingPolicy: Represents an A/B testing policy configuration. Contains switcher, program codes, percentage, amount threshold, expiration date, call mode, and adjustment types. Used to control feature rollout, experiment targeting, and business logic in A/B testing scenarios.
    - `switcher` boolean: Indicates whether the A/B testing policy is enabled (true) or disabled (false).
    - `programCodes` string, nullable: The program codes to which the policy applies, typically as a comma-separated string.
    - `percentage` integer: The percentage of users or transactions affected by the policy (e.g., 50 for 50%).
    - `amountThreshold` number, double: The monetary threshold amount for the policy, used to target specific transaction values.
    - `expirationDate` string, date-time, nullable: The expiration date and time for the policy, after which it is no longer active.
    - `callMode` string, nullable: The call mode or method associated with the policy (e.g., "Online", "Batch", "Manual").
    - `adjustmentTypes` string, nullable: The adjustment types affected by the policy, typically as a comma-separated string.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error
- `503`: Service Unavailable

## Changes

- **2026-11-03** `28aa54bed51e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/greendot/apis/baas-apis/changes/abtestingadmin/policy/:policyType/get.md)

---

[API](https://skmtc.dev/greendot/apis/baas-apis.md) - [All operations](https://skmtc.dev/greendot/apis/baas-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/greendot/apis/baas-apis/revisions/28aa54bed51e?raw)
