> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Cashback Rules API

> 캐시백 규칙(Cashback Rule)은 플랫폼이 자금을 부담하여 플랫폼의 직속 하위 계정에 카드 지출의 일부를 돌려주는 규칙입니다.

각 규칙은 비율, 적용 기간, 선택적 가맹점 필터를 설정하며, 하나의 하위 계정으로 제한할 수 있습니다.

Cashback Rules API를 사용하여 플랫폼이 자금을 부담하는 규칙을 생성, 업데이트, 조회하고, 사용 가능한 USD 잔액에서 필요할 때 캐시백을 지급할 수 있습니다.

## 엔드포인트

| 엔드포인트 | 요청 |
| - | - |
| [캐시백 규칙 목록 조회](https://docs.whop.com/ko/api-reference/cashback-rules/list-cashback-rules.md) | GET `/cashback_rules` |
| [캐시백 규칙 생성](https://docs.whop.com/ko/api-reference/cashback-rules/create-cashback-rule.md) | POST `/cashback_rule` |
| [캐시백 지급](https://docs.whop.com/ko/api-reference/cashback-rules/pay-out-cashback.md) | POST `/cashback_rules/payout` |
| [캐시백 규칙 업데이트](https://docs.whop.com/ko/api-reference/cashback-rules/update-cashback-rule.md) | PATCH `/cashback_rules/{id}` |

## 캐시백 지급

지급 가능한 모든 캐시백을 분배하려면 `POST /cashback_rules/payout`에 빈 객체를 보내세요. 하나의 규칙만 분배하려면 `cashback_rule_id`를, 하나의 하위 계정에 지급하려면 `account_id`를, 하나의 카드 거래에 지급하려면 `transaction_id`를 설정하세요. 여러 필터를 지정하면 모두 일치해야 합니다.

```json theme={null}
{
	"cashback_rule_id": "cicbr_7kR2m9Qx4L",
	"account_id": "biz_connectedDemo",
	"transaction_id": "citx_8jF6w3Nv2B"
}
```

지급을 요청할 때는 `Idempotency-Key` 헤더를 사용하세요. `status: "processing"`이 포함된 `202` 응답은 처리가 대기열에 추가되었음을 확인하며 제공된 필터를 그대로 반환합니다. `status: "failed"`가 포함된 `200` 응답은 대기열이 요청을 거부했음을 의미합니다. 이 상태는 지급 완료가 아니라 예약 상태를 나타냅니다. 거래 작업은 실패 시 자동으로 재시도됩니다. 자금 지갑의 잔액이 부족하면 USD를 추가하세요. 반복 요청은 이미 기록된 지급을 건너뛰며, 원장 멱등성이 중복 입금을 방지합니다.

응답:

```json theme={null}
{
	"status": "processing",
	"cashback_rule_id": "cicbr_7kR2m9Qx4L",
	"account_id": "biz_connectedDemo",
	"transaction_id": "citx_8jF6w3Nv2B"
}
```

## 속성

**id** `string` *required*

캐시백 규칙 ID이며, 접두사는 `cicbr_`입니다.

**created\_at** `string` *required*

규칙이 생성된 시점으로, ISO 8601 타임스탬프입니다.

**description** `string | null` *required*

캐시백 규칙에 대한 선택적 설명입니다.

**discarded\_at** `string | null` *required*

규칙이 폐기된 시점으로, ISO 8601 타임스탬프입니다. Null이면 폐기되지 않았음을 의미합니다.

**expires\_at** `string | null` *required*

적용 기간의 종료 시점(해당 시점 미포함)으로, ISO 8601 타임스탬프입니다. Null이면 만료되지 않음을 의미합니다.

**funding\_account\_id** `string` *required*

캐시백 자금을 부담하도록 지정된 플랫폼 계정으로, 접두사는 `biz_`입니다. 인증된 자격 증명에서 파생됩니다.

**merchant\_category\_code** `string | null` *required*

네 자리 가맹점 업종 코드입니다. Null이면 모든 MCC와 일치합니다. 두 가맹점 필터가 모두 null이면 scoped\_account\_id가 필수입니다.

**merchant\_name** `string | null` *required*

카드 제공업체가 보고한 원래 가맹점 이름입니다. Null이면 모든 가맹점 이름과 일치합니다. 설정하면 MCC 필터와 함께 일치 여부를 판단하며, 부분 문자열이나 보강된 표시 이름으로 일치시키지 않습니다.

**rate\_bps** `integer` *required*

베이시스 포인트 단위의 캐시백 비율입니다. 100은 1%, 10000은 100%를 의미합니다.

**scoped\_account\_id** `string | null` *required*

하위 계정 ID이며, 접두사는 `biz_`입니다. Null이면 자금 제공 플랫폼의 모든 직속 하위 계정을 지정합니다.

**starts\_at** `string` *required*

규칙 적용 기간의 시작 시점(해당 시점 포함)으로, ISO 8601 타임스탬프입니다.

**updated\_at** `string` *required*

규칙이 마지막으로 업데이트된 시점으로, ISO 8601 타임스탬프입니다.

```json CashbackRule theme={null}
{
	"id": "cicbr_a1B2c3D4e5F6g",
	"merchant_name": "ACME SOFTWARE",
	"merchant_category_code": "5734",
	"rate_bps": 500,
	"description": "Software cashback",
	"funding_account_id": "biz_a1B2c3D4e5F6g",
	"scoped_account_id": "biz_h7I8j9K0l1M2n",
	"starts_at": "2026-10-01T00:00:00.000Z",
	"expires_at": "2026-11-01T00:00:00.000Z",
	"discarded_at": null,
	"created_at": "2026-09-10T08:00:00.000Z",
	"updated_at": "2026-09-10T08:00:00.000Z"
}
```
