---
title: "Record an affiliate click (public)"
method: POST
path: "/api/v1/visa/affiliate/track-click"
tags: ["Affiliate program"]
---

# Record an affiliate click (public)

`POST /api/v1/visa/affiliate/track-click`

## Request

- Base URL: `https://visa.orizn.app`
- URL: `https://visa.orizn.app/api/v1/visa/affiliate/track-click`
- Auth: none required
- TypeScript: <https://skmtc.dev/orizn/apis/orizn-visa-api/docs/api/v1/visa/affiliate/track-click/post.ts> (a function with typed inputs; its response is checked against the schema)

Increment the click counter. Fire-and-forget.

## Request body

- object
  - `affiliate_id` string, required

## Response `200`

Click recorded.

- object
  - `ok` boolean

## Other responses

- `400`: Missing or malformed parameter.
- `404`: No data for the requested resource.

---

[API](https://skmtc.dev/orizn/apis/orizn-visa-api.md) - [All operations](https://skmtc.dev/orizn/apis/orizn-visa-api/llms.txt) - [OpenAPI document](https://skmtc.dev/orizn/apis/orizn-visa-api/revisions/7d2f2bc68d08?raw)
