# Book a trade

## Goal

Book a trade done in another system.

You can then take advantage of Integral's advanced analytics, reporting, and credit management.

## Prerequisites

- Your REST API app.
- Integral API login with trading permission.
- A trade done in another system.


## Steps


```mermaid
flowchart TD
  LOGIN(Step 1: Login) --> BOOK(Step 2: Book trade)
  click LOGIN "#step-1-login"
  click BOOK "#step-2-book-a-trade"
```

### Step 1: Login

Use the [Login and get token](/openapi/integral-api-reference/rest/authentication-api/login) endpoint.

See the related [Login](/developer-portal/tutorials/tutorialauth/) tutorial.

Your access token is in `SSO_TOKEN` of the response header. Your token is valid for limited time.

Pass the `SSO_TOKEN` cookie value with all of your subsequent API requests.

### Step 2: Book a trade

Use the [Book a trade](/openapi/integral-api-reference/rest/trades/booktrade) endpoint.