Accounts

The Accounts API allows you to create and manage accounts. Use this API to create new accounts, update account information, and manage account status.

API Endpoints Overview

The Accounts API provides endpoints for managing accounts and portfolios. Below is a complete list of available endpoints organized by functional area.

Account Management

EndpointMethodDescription
/v1/accounts
POSTCreate a new account
/v1/accounts/:accountId
GETGet account details
/v1/accounts/:accountId
PUTUpdate account information
/v1/accounts/:accountId/freeze
PUTFreeze an account

Create an Account

Create a new account.

Request Body Parameters

ParameterTypeDescriptionRequired
accountId
StringUnique ID for the account (UUID v4)Yes
accountType
StringAccount type: INDIVIDUAL, IRA, or ROTH_IRAYes
portfolioType
StringPortfolio type: CASH or MARGINYes
firstName
StringAccount holder first nameNo
lastName
StringAccount holder last nameNo

Request

POST
/v1/accounts
curl -X POST https://api.paperinvest.io/v1/accounts \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "550e8400-e29b-41d4-a716-446655440000",
    "accountType": "INDIVIDUAL",
    "portfolioType": "MARGIN",
    "firstName": "John",
    "lastName": "Doe"
  }'

Response

201 Created
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "accountType": "INDIVIDUAL",
  "portfolioType": "MARGIN",
  "firstName": "John",
  "lastName": "Doe",
  "createdAt": "2025-01-01T12:00:00Z",
  "updatedAt": "2025-01-01T12:00:00Z"
}

Get Account

Retrieve details for a specific account.

Path Parameters

ParameterTypeDescriptionRequired
accountId
StringThe account ID (UUID)Yes

Request

GET
/v1/accounts/:accountId
curl -X GET https://api.paperinvest.io/v1/accounts/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Response

200 OK
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "accountType": "INDIVIDUAL",
  "portfolioType": "MARGIN",
  "firstName": "John",
  "lastName": "Doe",
  "stripeCustomerId": "cus_123456789",
  "subscriptionStatus": "active",
  "subscriptionTier": "premium",
  "createdAt": "2025-01-01T12:00:00Z",
  "updatedAt": "2025-01-01T12:00:00Z"
}