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

# Create transaction

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

## Request

- Base URL: `https://www.polaraccesslink.com`
- URL: `https://www.polaraccesslink.com/v3/users/{user-id}/exercise-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/exercise-transactions/post.ts> (a function with typed inputs; its response is checked against the schema)

Check for new training data 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 training session 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 training session data available.
- `403`: User has not accepted all mandatory consents.

## Changes

- **2026-02-07** `f197848bba31`: 2 info
  - api tag `Exercises (deprecated)` added
  - api tag `Training data` 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/exercise-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)
