---
title: "Comp calculator"
method: POST
path: "/v1/comp/calculate"
tags: ["Features"]
---

# Comp calculator

`POST /v1/comp/calculate`

## Request

- Base URL: `https://nbhagdwegk.execute-api.us-east-1.amazonaws.com`
- URL: `https://nbhagdwegk.execute-api.us-east-1.amazonaws.com/v1/comp/calculate`
- Auth: HTTP bearer

actions: calculate | analyze_history | get_comp_ratios. Scope: read.

## Headers

- `Idempotency-Key` string, uuid

## Request body

- object
  - `action` string, required

## Response `200`

Result

- object

## Other responses

- `401`: Missing or invalid API key.
- `429`: Rate limit exceeded. Honor Retry-After.
- `500`: Unexpected server error. Retry with exponential backoff.

---

[API](https://skmtc.dev/loyaltyvip/apis/loyaltyvip-api.md) · [All operations](https://skmtc.dev/loyaltyvip/apis/loyaltyvip-api/llms.txt) · [OpenAPI document](https://skmtc.dev/loyaltyvip/apis/loyaltyvip-api/revisions/95a5442b382c?raw)
