---
title: "Create transaction"
method: POST
path: "/v3/users/{user-id}/activity-transactions"
tags: ["Daily activity (deprecated)"]
---

# Create transaction

`POST /v3/users/{user-id}/activity-transactions`

## Request

- Base URL: `https://www.polaraccesslink.com`
- URL: `https://www.polaraccesslink.com/v3/users/{user-id}/activity-transactions`
- Auth: OAuth 2
  - Authorization code: `https://flow.polar.com/oauth2/authorization`
  - Token URL: `https://polarremote.com/v2/oauth2/token` scopes: `accesslink.read_all`
- TypeScript: <https://skmtc.dev/polar-com/apis/polar-accesslink-api/docs/v3/users/:user-id/activity-transactions/post.ts> (a function with typed inputs; its response is checked against the schema)

Initiate activity transaction.
Check for new activity summaries and create a new transaction if found.
Only data uploaded to Flow in the last 30 days will be available.
Only data that has been uploaded to Flow after the user is registered with your client will be available.

## Path parameters

- `user-id` integer, required

## Response `201`

Return link to created transaction containing new activity data.

- TransactionLocation: Contains absolute link to the created transaction.
  - `transaction-id` integer: Id of the created transaction
  - `resource-uri` string, uri: Absolute links to the created transaction

## Other responses

- `204`: No content when there is no new activity data available.
- `403`: User has not accepted all mandatory consents.

## Changes

- **2026-02-07** `f197848bba31`: 2 info
  - api tag `Daily activity (deprecated)` added
  - api tag `Daily activity` removed
- **2025-06-04** `5ef2cea678a2`: 1 info
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/polar-com/apis/polar-accesslink-api/changes/v3/users/:user-id/activity-transactions/post.md)

---

[API](https://skmtc.dev/polar-com/apis/polar-accesslink-api.md) - [All operations](https://skmtc.dev/polar-com/apis/polar-accesslink-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polar-com/apis/polar-accesslink-api/revisions/18ce96365320?raw)
