Accounts — Increase

Skip to main content

Increase home

Docs

Guides API Reference Changelog Search

Status Dashboard

Accounts

Guides\ \ Explanatory and how-to content API Reference\ \ Technical documentation Changelog\ \ Release notes Dashboard\ \ Manage your account Status\ \ Service status

API Reference

Overview

API Reference

Overview Authorization and Testing OpenAPI SDKs OAuth Requests and Responses Object Lists Errors Idempotency Sandbox Simulations

Accounts

Accounts

Overview The Account object List Accounts Create an Account Retrieve an Account Update an Account Retrieve an Account Balance Close an Account Sandbox: Create an account revenue payment Sandbox: Create an interest payment

Account Numbers

Overview The Account Number object List Account Numbers Create an Account Number Retrieve an Account Number Update an Account Number

Account Transfers

Overview The Account Transfer object List Account Transfers Create an Account Transfer Retrieve an Account Transfer Approve an Account Transfer Cancel an Account Transfer

Transactions

Transactions

Overview The Transaction object List Transactions Retrieve a Transaction

Pending Transactions

Overview The Pending Transaction object List Pending Transactions Create a Pending Transaction Retrieve a Pending Transaction Release a user-initiated Pending Transaction Sandbox: Release an Inbound Funds Hold

Declined Transactions

Overview The Declined Transaction object List Declined Transactions Retrieve a Declined Transaction

Ach Transfers

ACH Transfers

Overview The ACH Transfer object List ACH Transfers Create an ACH Transfer Retrieve an ACH Transfer Approve an ACH Transfer Cancel a pending ACH Transfer Sandbox: Acknowledge an ACH Transfer Sandbox: Create a Notification of Change for an ACH Transfer Sandbox: Return an ACH Transfer Sandbox: Settle an ACH Transfer Sandbox: Submit an ACH Transfer

Inbound ACH Transfers

Overview The Inbound ACH Transfer object List Inbound ACH Transfers Retrieve an Inbound ACH Transfer Create a notification of change for an Inbound ACH Transfer Decline an Inbound ACH Transfer Return an Inbound ACH Transfer Sandbox: Create an Inbound ACH Transfer

ACH Prenotifications

Overview The ACH Prenotification object List ACH Prenotifications Create an ACH Prenotification Retrieve an ACH Prenotification

Check Transfers

Check Transfers

Overview The Check Transfer object List Check Transfers Create a Check Transfer Retrieve a Check Transfer Approve a Check Transfer Cancel a pending Check Transfer Stop payment on a Check Transfer Sandbox: Mail a Check Transfer

Inbound Check Deposits

Overview The Inbound Check Deposit object List Inbound Check Deposits Retrieve an Inbound Check Deposit Decline an Inbound Check Deposit Return an Inbound Check Deposit Sandbox: Create an Inbound Check Deposit Sandbox: Accept an Inbound Check Deposit Sandbox: Create an Inbound Check Deposit Adjustment

Physical Check Batches

Overview The Physical Check Batch object Create a Physical Check Batch Cancel a Physical Check Batch Complete a Physical Check Batch

Real Time Payments Transfers

Real-Time Payments Transfers

Overview The Real-Time Payments Transfer object List Real-Time Payments Transfers Create a Real-Time Payments Transfer Retrieve a Real-Time Payments Transfer Approve a Real-Time Payments Transfer Cancel a pending Real-Time Payments Transfer Sandbox: Complete a Real-Time Payments Transfer

Inbound Real-Time Payments Transfers

Overview The Inbound Real-Time Payments Transfer object List Inbound Real-Time Payments Transfers Retrieve an Inbound Real-Time Payments Transfer Sandbox: Create an Inbound Real-Time Payments Transfer

Real-Time Payments Requests for Payment

Overview The Real-Time Payments Request for Payment object List Real-Time Payments Requests for Payment Create a Real-Time Payments Request for Payment Retrieve a Real-Time Payments Request for Payment

Inbound Real-Time Payments Requests for Payment

Overview The Inbound Real-Time Payments Request for Payment object List Inbound Real-Time Payments Requests for Payment Retrieve an Inbound Real-Time Payments Request for Payment

Fednow Transfers

FedNow Transfers

Overview The FedNow Transfer object List FedNow Transfers Create a FedNow Transfer Retrieve a FedNow Transfer Approve a FedNow Transfer Cancel a pending FedNow Transfer Sandbox: Complete a FedNow Transfer

Inbound FedNow Transfers

Overview The Inbound FedNow Transfer object List Inbound FedNow Transfers Retrieve an Inbound FedNow Transfer Sandbox: Create an Inbound FedNow Transfer

Swift Transfers

Swift Transfers

Overview The Swift Transfer object List Swift Transfers Create a Swift Transfer Retrieve a Swift Transfer Approve a Swift Transfer Cancel a pending Swift Transfer

Wire Transfers

Wire Transfers

Overview The Wire Transfer object List Wire Transfers Create a Wire Transfer Retrieve a Wire Transfer Approve a Wire Transfer Cancel a pending Wire Transfer Sandbox: Reverse a Wire Transfer Sandbox: Submit a Wire Transfer

Inbound Wire Transfers

Overview The Inbound Wire Transfer object List Inbound Wire Transfers Retrieve an Inbound Wire Transfer Reverse an Inbound Wire Transfer Sandbox: Create an Inbound Wire Transfer

Wire Drawdown Requests

Overview The Wire Drawdown Request object List Wire Drawdown Requests Create a Wire Drawdown Request Retrieve a Wire Drawdown Request Sandbox: Refuse a Wire Drawdown Request Sandbox: Submit a Wire Drawdown Request

Inbound Wire Drawdown Requests

Overview The Inbound Wire Drawdown Request object List Inbound Wire Drawdown Requests Retrieve an Inbound Wire Drawdown Request Sandbox: Create an Inbound Wire Drawdown request

Card Transfers

Card Tokens

Overview The Card Token object List Card Tokens Retrieve a Card Token Retrieve the capabilities of a Card Token Sandbox: Create a Card Token

Card Push Transfers

Overview The Card Push Transfer object List Card Push Transfers Create a Card Push Transfer Retrieve a Card Push Transfer Approve a Card Push Transfer Cancel a pending Card Push Transfer

Card Validations

Overview The Card Validation object List Card Validations Create a Card Validation Retrieve a Card Validation

Check Deposits

Check Deposits

Overview The Check Deposit object List Check Deposits Create a Check Deposit Retrieve a Check Deposit Sandbox: Adjust a Check Deposit Sandbox: Reject a Check Deposit Sandbox: Return a Check Deposit Sandbox: Submit a Check Deposit

Lockbox Addresses

Overview The Lockbox Address object List Lockbox Addresses Create a Lockbox Address Retrieve a Lockbox Address Update a Lockbox Address

Lockbox Recipients

Overview The Lockbox Recipient object List Lockbox Recipients Create a Lockbox Recipient Retrieve a Lockbox Recipient Update a Lockbox Recipient

Inbound Mail Items

Overview The Inbound Mail Item object List Inbound Mail Items Retrieve an Inbound Mail Item Action an Inbound Mail Item Sandbox: Create an Inbound Mail Item

Cards

Cards

Overview The Card object List Cards Create a Card Retrieve a Card Update a Card Create a Card details iframe Retrieve sensitive details for a Card Update a Card's PIN

Card Payments

Overview The Card Payment object List Card Payments Retrieve a Card Payment Sandbox: Create a Card Authentication attempt Sandbox: Create a Card Authentication Challenge attempt Sandbox: Create an initial Card Authentication Challenge Sandbox: Expire a Card Authorization Sandbox: Create a Card Authorization Sandbox: Create a Card Balance Inquiry Sandbox: Confirm the fuel pump amount for a Card Authorization Sandbox: Increment a Card Authorization Sandbox: Refund a card transaction Sandbox: Reverse a Card Authorization Sandbox: Settle a Card Authorization

Card Purchase Supplements

Overview The Card Purchase Supplement object List Card Purchase Supplements Retrieve a Card Purchase Supplement Sandbox: Create a Card Purchase Supplement

Card Disputes

Overview The Card Dispute object List Card Disputes Create a Card Dispute Retrieve a Card Dispute Submit a User Submission for a Card Dispute Withdraw a Card Dispute Sandbox: Advance the state of a Card Dispute

Physical Cards

Overview The Physical Card object List Physical Cards Create a Physical Card Retrieve a Physical Card Update a Physical Card Sandbox: Advance the shipment status of a Physical Card Sandbox: Create a Physical Card Shipment Tracking Update

Digital Card Profiles

Overview The Digital Card Profile object List Card Profiles Create a Digital Card Profile Retrieve a Digital Card Profile Archive a Digital Card Profile Clones a Digital Card Profile

Physical Card Profiles

Overview The Physical Card Profile object List Physical Card Profiles Create a Physical Card Profile Retrieve a Card Profile Archive a Physical Card Profile Clone a Physical Card Profile

Digital Wallet Tokens

Overview The Digital Wallet Token object List Digital Wallet Tokens Retrieve a Digital Wallet Token Sandbox: Create a digital wallet token request

Compliance

Entities

Overview The Entity object List Entities Create an Entity Retrieve an Entity Update an Entity Archive an Entity Sandbox: Simulate validation of an Entity

Beneficial Owners

Overview The Beneficial Owner object List Beneficial Owners Create a Beneficial Owner Retrieve a Beneficial Owner Update a Beneficial Owner Archive a Beneficial Owner

Supplemental Documents

Overview The Supplemental Document object List Entity Supplemental Document Submissions Create a supplemental document for an Entity

Entity Onboarding Sessions

Overview The Entity Onboarding Session object List Entity Onboarding Session Create an Entity Onboarding Session Retrieve an Entity Onboarding Session Expire an Entity Onboarding Session Sandbox: Submit an Entity Onboarding Session

Programs

Overview The Program object List Programs Retrieve a Program Sandbox: Create a Program

Events and Webhooks

Events

Overview The Event object List Events Retrieve an Event

Event Subscriptions

Overview The Event Subscription object List Event Subscriptions Create an Event Subscription Retrieve an Event Subscription Update an Event Subscription

Real-Time Decisions

Overview The Real-Time Decision object Retrieve a Real-Time Decision Action a Real-Time Decision

External Accounts

Routing Numbers

Overview The Routing Number object List Routing Numbers

External Accounts

Overview The External Account object List External Accounts Create an External Account Retrieve an External Account Update an External Account

Files and Exports

Account Statements

Overview The Account Statement object List Account Statements Retrieve an Account Statement Sandbox: Create an Account Statement

Files

Overview The File object List Files Create a File Retrieve a File Get File Contents

File Links

Overview The File Link object Create a File Link

Exports

Overview The Export object List Exports Create an Export Retrieve an Export Sandbox: Generate a Tax Form Export

OAuth

Groups

Overview The Group object Retrieve Group details

OAuth Applications

Overview The OAuth Application object List OAuth Applications Retrieve an OAuth Application

OAuth Connections

Overview The OAuth Connection object List OAuth Connections Retrieve an OAuth Connection

OAuth Tokens

Overview The OAuth Token object Create an OAuth Token

Intrafi

IntraFi Account Enrollments

Overview The IntraFi Account Enrollment object List IntraFi Account Enrollments Enroll an account in the IntraFi deposit sweep network Get an IntraFi Account Enrollment Unenroll an account from IntraFi

IntraFi Balances

Overview The IntraFi Balance object Get IntraFi balance

IntraFi Exclusions

Overview The IntraFi Exclusion object List IntraFi Exclusions Create an IntraFi Exclusion Get an IntraFi Exclusion Archive an IntraFi Exclusion

Accounts

Copy for LLM

Accounts are your bank accounts with Increase. They store money, receive transfers, and send payments. They earn interest and have depository insurance.

Events

Your application can listen to webhooks about this resource. The events about Accounts will have the categories "account.created" or "account.updated" .

The Account object

Deposit account Loan account

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

{
  "account_revenue_rate": null,
  "bank": "increase_bank",
  "closed_at": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "entity_id": "entity_n8y8tnk2p9339ti393yi",
  "funding": "deposits",
  "id": "account_in71c4amph0vgo2qllky",
  "idempotency_key": null,
  "informational_entity_id": null,
  "interest_rate": "0.055",
  "loan": null,
  "name": "My first account!",
  "program_id": "program_i2v2os4mwza1oetokh9i",
  "status": "open",
  "type": "account"
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

{
  "account_revenue_rate": null,
  "bank": "increase_bank",
  "closed_at": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "entity_id": "entity_n8y8tnk2p9339ti393yi",
  "funding": "loan",
  "id": "account_in71c4amph0vgo2qllky",
  "idempotency_key": null,
  "informational_entity_id": null,
  "interest_rate": "0.055",
  "loan": {
    "credit_limit": 1000000,
    "grace_period_days": 21,
    "maturity_date": "2020-01-31",
    "statement_day_of_month": 1,
    "statement_payment_type": "balance"
  },
  "name": "My first account!",
  "program_id": "program_i2v2os4mwza1oetokh9i",
  "status": "open",
  "type": "account"
}

Attributes

account_revenue_rate

string

Nullable

The account revenue rate currently being earned on the account, as a string containing a decimal number. For example, a 1% account revenue rate would be represented as “0.01”. Account revenue is a type of non-interest income accrued on the account.

bank

enum

The bank the Account is with.

Possible values

closed_at

string

Nullable

The ISO 8601 time at which the Account was closed.

created_at

string

The ISO 8601 time at which the Account was created.

currency

enum

The ISO 4217 code for the Account currency.

Possible values

entity_id

string

The identifier for the Entity the Account belongs to.

More about Entities.

funding

enum

Whether the Account is funded by a loan or by deposits.

Possible values

id

string

The Account identifier.

idempotency_key

string

Nullable

The idempotency key you chose for this object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about idempotency.

informational_entity_id

string

Nullable

The identifier of an Entity that, while not owning the Account, is associated with its activity.

More about Entities.

interest_rate

string

The interest rate currently being earned on the account, as a string containing a decimal number. For example, a 1% interest rate would be represented as “0.01”.

loan

dictionary

Nullable

The Account’s loan-related information, if the Account is a loan account.

Child attributes

name

string

The name you choose for the Account.

program_id

string

The identifier of the Program determining the compliance and commercial terms of this Account.

More about Programs.

status

enum

The status of the Account.

Possible values

type

string

A constant representing the object’s type. For this resource it will always be account.

List Accounts

cURL TypeScript Python Ruby Go Java Kotlin PHP C#

1

2

3

curl \
  --url "${INCREASE_URL}/accounts?entity_id=entity_n8y8tnk2p9339ti393yi" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}"

1

2

3

4

5

6

7

8

9

10

import Increase from 'increase';

const client = new Increase({
  apiKey: process.env['INCREASE_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const account of client.accounts.list()) {
  console.log(account.id);
}

1

2

3

4

5

6

7

8

9

import os
from increase import Increase

client = Increase(
    api_key=os.environ.get("INCREASE_API_KEY"),  # This is the default and can be omitted
)
page = client.accounts.list()
page = page.data[0]
print(page.id)

1

2

3

4

5

6

7

8

9

require "increase"

increase = Increase::Client.new(
  api_key: ENV["INCREASE_API_KEY"] # This is the default and can be omitted
)

page = increase.accounts.list

puts(page)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

package main

import (
    "context"
    "fmt"
    "os"

"github.com/Increase/increase-go"
    "github.com/Increase/increase-go/option"
)

func main() {
    client := increase.NewClient(
        option.WithAPIKey(os.Getenv("INCREASE_API_KEY")), // This is the default and can be omitted
    )
    page, err := client.Accounts.List(context.TODO(), increase.AccountListParams{})
    if err != nil {
        panic(err.Error())
    }
    fmt.Printf("%+v\n", page)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

package com.increase.api.example;

import com.increase.api.client.IncreaseClient;
import com.increase.api.client.okhttp.IncreaseOkHttpClient;
import com.increase.api.models.accounts.AccountListPage;
import com.increase.api.models.accounts.AccountListParams;

public final class Main {
    private Main() {}

public static void main(String[] args) {
        IncreaseClient client = IncreaseOkHttpClient.fromEnv();

AccountListPage page = client.accounts().list();
    }
}

1

2

3

4

5

6

7

8

9

10

11

12

package com.increase.api.example

import com.increase.api.client.IncreaseClient
import com.increase.api.client.okhttp.IncreaseOkHttpClient
import com.increase.api.models.accounts.AccountListPage
import com.increase.api.models.accounts.AccountListParams

fun main() {
    val client: IncreaseClient = IncreaseOkHttpClient.fromEnv()

val page: AccountListPage = client.accounts().list()
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Increase\Client;
use Increase\Core\Exceptions\APIException;

$client = new Client(apiKey: getenv('INCREASE_API_KEY'));

try {
  $page = $client->accounts->list(
    createdAt: [\
      'after' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),\
      'before' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),\
      'onOrAfter' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),\
      'onOrBefore' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),\
    ],
    cursor: 'cursor',
    entityID: 'entity_id',
    idempotencyKey: 'x',
    informationalEntityID: 'informational_entity_id',
    limit: 1,
    programID: 'program_id',
    status: ['in' => ['closed']],
  );

var_dump($page);
} catch (APIException $e) {
  echo $e->getMessage();
}

1

2

3

4

5

6

7

8

9

10

11

12

13

using System;
using Increase.Api;
using Increase.Api.Models.Accounts;

IncreaseClient client = new();

AccountListParams parameters = new();

var page = await client.Accounts.List(parameters);
await foreach (var item in page.Paginate())
{
    Console.WriteLine(item);
}

Returns a list response :

1

2

3

4

5

6

7

8

{
  "data": [\
    { /* Account object */ },\
    { /* Account object */ }\
    /* ... */\
  ],
  "next_cursor": "v57w5d",
}

Parameters

entity_id

string

Filter Accounts for those belonging to the specified Entity.

More about Entities.

informational_entity_id

string

Filter Accounts for those belonging to the specified Entity as informational.

More about Entities.

program_id

string

Filter Accounts for those in a specific Program.

More about Programs.

status.in

array of strings

Filter Accounts for those with the specified status. For GET requests, this should be encoded as a comma-delimited string, such as ?in=one,two,three.

Possible values

idempotency_key

string

Filter records to the one with the specified idempotency_key you chose for that object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about idempotency.

Between 1 and 200 characters

More parameters

Expand all

cursor

string

limit

integer

created_at.after

string

created_at.before

string

created_at.on_or_after

string

created_at.on_or_before

string

Create an Account

cURL TypeScript Python Ruby Go Java Kotlin PHP C#

1

2

3

4

5

6

7

8

9

curl -X "POST" \
  --url "${INCREASE_URL}/accounts" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d $'{
    "entity_id": "entity_n8y8tnk2p9339ti393yi",
    "name": "New Account!",
    "program_id": "program_i2v2os4mwza1oetokh9i"
  }'

1

2

3

4

5

6

7

8

9

import Increase from 'increase';

const client = new Increase({
  apiKey: process.env['INCREASE_API_KEY'], // This is the default and can be omitted
});

const account = await client.accounts.create({ name: 'New Account!' });

console.log(account.id);

1

2

3

4

5

6

7

8

9

10

import os
from increase import Increase

client = Increase(
    api_key=os.environ.get("INCREASE_API_KEY"),  # This is the default and can be omitted
)
account = client.accounts.create(
    name="New Account!",
)
print(account.id)

1

2

3

4

5

6

7

8

9

require "increase"

increase = Increase::Client.new(
  api_key: ENV["INCREASE_API_KEY"] # This is the default and can be omitted
)

account = increase.accounts.create(name: "New Account!")

puts(account)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

package main

import (
    "context"
    "fmt"
    "os"

"github.com/Increase/increase-go"
    "github.com/Increase/increase-go/option"
)

func main() {
    client := increase.NewClient(
        option.WithAPIKey(os.Getenv("INCREASE_API_KEY")), // This is the default and can be omitted
    )
    account, err := client.Accounts.New(context.TODO(), increase.AccountNewParams{
        Name: increase.F("New Account!"),
    })
    if err != nil {
        panic(err.Error())
    }
    fmt.Printf("%+v\n", account.ID)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

package com.increase.api.example;

import com.increase.api.client.IncreaseClient;
import com.increase.api.client.okhttp.IncreaseOkHttpClient;
import com.increase.api.models.accounts.Account;
import com.increase.api.models.accounts.AccountCreateParams;

public final class Main {
    private Main() {}

public static void main(String[] args) {
        IncreaseClient client = IncreaseOkHttpClient.fromEnv();

AccountCreateParams params = AccountCreateParams.builder()
            .name("New Account!")
            .build();
        Account account = client.accounts().create(params);
    }
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

package com.increase.api.example

import com.increase.api.client.IncreaseClient
import com.increase.api.client.okhttp.IncreaseOkHttpClient
import com.increase.api.models.accounts.Account
import com.increase.api.models.accounts.AccountCreateParams

fun main() {
    val client: IncreaseClient = IncreaseOkHttpClient.fromEnv()

val params: AccountCreateParams = AccountCreateParams.builder()
        .name("New Account!")
        .build()
    val account: Account = client.accounts().create(params)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Increase\Client;
use Increase\Core\Exceptions\APIException;

$client = new Client(apiKey: getenv('INCREASE_API_KEY'));

try {
  $account = $client->accounts->create(
    name: 'New Account!',
    entityID: 'entity_n8y8tnk2p9339ti393yi',
    funding: 'loan',
    informationalEntityID: 'informational_entity_id',
    loan: [\
      'creditLimit' => 0,\
      'gracePeriodDays' => 0,\
      'maturityDate' => '2019-12-27',\
      'statementDayOfMonth' => 1,\
      'statementPaymentType' => 'balance',\
    ],
    programID: 'program_i2v2os4mwza1oetokh9i',
  );

var_dump($account);
} catch (APIException $e) {
  echo $e->getMessage();
}

1

2

3

4

5

6

7

8

9

10

11

using System;
using Increase.Api;
using Increase.Api.Models.Accounts;

IncreaseClient client = new();

AccountCreateParams parameters = new() { Name = "New Account!" };

var account = await client.Accounts.Create(parameters);

Console.WriteLine(account);

Parameters

entity_id

string

The identifier for the Entity that will own the Account.

More about Entities.

funding

enum

Whether the Account is funded by a loan or by deposits.

Possible values

informational_entity_id

string

The identifier of an Entity that, while not owning the Account, is associated with its activity. This is generally the beneficiary of the funds.

More about Entities.

loan

dictionary

The loan details for the account.

Child attributes

name

string

Required

The name you choose for the Account.

Between 1 and 200 characters

program_id

string

The identifier for the Program that this Account falls under. Required if your Group operates more than one Program. List your Programs to find their identifiers.

More about Programs.

Retrieve an Account

cURL TypeScript Python Ruby Go Java Kotlin PHP C#

1

2

3

curl \
  --url "${INCREASE_URL}/accounts/account_in71c4amph0vgo2qllky" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}"

1

2

3

4

5

6

7

8

9

import Increase from 'increase';

const client = new Increase({
  apiKey: process.env['INCREASE_API_KEY'], // This is the default and can be omitted
});

const account = await client.accounts.retrieve('account_in71c4amph0vgo2qllky');

console.log(account.id);

1

2

3

4

5

6

7

8

9

10

import os
from increase import Increase

client = Increase(
    api_key=os.environ.get("INCREASE_API_KEY"),  # This is the default and can be omitted
)
account = client.accounts.retrieve(
    "account_in71c4amph0vgo2qllky",
)
print(account.id)

1

2

3

4

5

6

7

8

9

require "increase"

increase = Increase::Client.new(
  api_key: ENV["INCREASE_API_KEY"] # This is the default and can be omitted
)

account = increase.accounts.retrieve("account_in71c4amph0vgo2qllky")

puts(account)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

package main

import (
    "context"
    "fmt"
    "os"

"github.com/Increase/increase-go"
    "github.com/Increase/increase-go/option"
)

func main() {
    client := increase.NewClient(
        option.WithAPIKey(os.Getenv("INCREASE_API_KEY")), // This is the default and can be omitted
    )
    account, err := client.Accounts.Get(context.TODO(), "account_in71c4amph0vgo2qllky")
    if err != nil {
        panic(err.Error())
    }
    fmt.Printf("%+v\n", account.ID)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

package com.increase.api.example;

import com.increase.api.client.IncreaseClient;
import com.increase.api.client.okhttp.IncreaseOkHttpClient;
import com.increase.api.models.accounts.Account;
import com.increase.api.models.accounts.AccountRetrieveParams;

public final class Main {
    private Main() {}

public static void main(String[] args) {
        IncreaseClient client = IncreaseOkHttpClient.fromEnv();

Account account = client.accounts().retrieve("account_in71c4amph0vgo2qllky");
    }
}

1

2

3

4

5

6

7

8

9

10

11

12

package com.increase.api.example

import com.increase.api.client.IncreaseClient
import com.increase.api.client.okhttp.IncreaseOkHttpClient
import com.increase.api.models.accounts.Account
import com.increase.api.models.accounts.AccountRetrieveParams

fun main() {
    val client: IncreaseClient = IncreaseOkHttpClient.fromEnv()

val account: Account = client.accounts().retrieve("account_in71c4amph0vgo2qllky")
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Increase\Client;
use Increase\Core\Exceptions\APIException;

$client = new Client(apiKey: getenv('INCREASE_API_KEY'));

try {
  $account = $client->accounts->retrieve('account_in71c4amph0vgo2qllky');

var_dump($account);
} catch (APIException $e) {
  echo $e->getMessage();
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

using System;
using Increase.Api;
using Increase.Api.Models.Accounts;

IncreaseClient client = new();

AccountRetrieveParams parameters = new()
{
    AccountID = "account_in71c4amph0vgo2qllky"
};

var account = await client.Accounts.Retrieve(parameters);

Console.WriteLine(account);

Parameters

account_id

string

Required

The identifier of the Account to retrieve.

More about Accounts.

Update an Account

cURL TypeScript Python Ruby Go Java Kotlin PHP C#

1

2

3

4

5

6

7

curl -X "PATCH" \
  --url "${INCREASE_URL}/accounts/account_in71c4amph0vgo2qllky" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d $'{
    "name": "My renamed account"
  }'

1

2

3

4

5

6

7

8

9

import Increase from 'increase';

const client = new Increase({
  apiKey: process.env['INCREASE_API_KEY'], // This is the default and can be omitted
});

const account = await client.accounts.update('account_in71c4amph0vgo2qllky');

console.log(account.id);

1

2

3

4

5

6

7

8

9

10

import os
from increase import Increase

client = Increase(
    api_key=os.environ.get("INCREASE_API_KEY"),  # This is the default and can be omitted
)
account = client.accounts.update(
    account_id="account_in71c4amph0vgo2qllky",
)
print(account.id)

1

2

3

4

5

6

7

8

9

require "increase"

increase = Increase::Client.new(
  api_key: ENV["INCREASE_API_KEY"] # This is the default and can be omitted
)

account = increase.accounts.update("account_in71c4amph0vgo2qllky")

puts(account)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

package main

import (
    "context"
    "fmt"
    "os"

"github.com/Increase/increase-go"
    "github.com/Increase/increase-go/option"
)

func main() {
    client := increase.NewClient(
        option.WithAPIKey(os.Getenv("INCREASE_API_KEY")), // This is the default and can be omitted
    )
    account, err := client.Accounts.Update(
        context.TODO(),
        "account_in71c4amph0vgo2qllky",
        increase.AccountUpdateParams{},
    )
    if err != nil {
        panic(err.Error())
    }
    fmt.Printf("%+v\n", account.ID)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

package com.increase.api.example;

import com.increase.api.client.IncreaseClient;
import com.increase.api.client.okhttp.IncreaseOkHttpClient;
import com.increase.api.models.accounts.Account;
import com.increase.api.models.accounts.AccountUpdateParams;

public final class Main {
    private Main() {}

public static void main(String[] args) {
        IncreaseClient client = IncreaseOkHttpClient.fromEnv();

Account account = client.accounts().update("account_in71c4amph0vgo2qllky");
    }
}

1

2

3

4

5

6

7

8

9

10

11

12

package com.increase.api.example

import com.increase.api.client.IncreaseClient
import com.increase.api.client.okhttp.IncreaseOkHttpClient
import com.increase.api.models.accounts.Account
import com.increase.api.models.accounts.AccountUpdateParams

fun main() {
    val client: IncreaseClient = IncreaseOkHttpClient.fromEnv()

val account: Account = client.accounts().update("account_in71c4amph0vgo2qllky")
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Increase\Client;
use Increase\Core\Exceptions\APIException;

$client = new Client(apiKey: getenv('INCREASE_API_KEY'));

try {
  $account = $client->accounts->update(
    'account_in71c4amph0vgo2qllky',
    loan: ['creditLimit' => 0],
    name: 'My renamed account',
  );

var_dump($account);
} catch (APIException $e) {
  echo $e->getMessage();
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

using System;
using Increase.Api;
using Increase.Api.Models.Accounts;

IncreaseClient client = new();

AccountUpdateParams parameters = new()
{
    AccountID = "account_in71c4amph0vgo2qllky"
};

var account = await client.Accounts.Update(parameters);

Console.WriteLine(account);

Parameters

account_id

string

Required

The identifier of the Account to update.

More about Accounts.

loan

dictionary

The loan details for the account.

Child attributes

name

string

The new name of the Account.

Between 1 and 200 characters

Retrieve an Account Balance

Retrieve the current and available balances for an account in minor units of the account’s currency. Learn more about account balances.

cURL TypeScript Python Ruby Go Java Kotlin PHP C#

1

2

3

curl \
  --url "${INCREASE_URL}/accounts/account_in71c4amph0vgo2qllky/balance" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}"

1

2

3

4

5

6

7

8

9

import Increase from 'increase';

const client = new Increase({
  apiKey: process.env['INCREASE_API_KEY'], // This is the default and can be omitted
});

const balanceLookup = await client.accounts.balance('account_in71c4amph0vgo2qllky');

console.log(balanceLookup.account_id);

1

2

3

4

5

6

7

8

9

10

import os
from increase import Increase

client = Increase(
    api_key=os.environ.get("INCREASE_API_KEY"),  # This is the default and can be omitted
)
balance_lookup = client.accounts.balance(
    account_id="account_in71c4amph0vgo2qllky",
)
print(balance_lookup.account_id)

1

2

3

4

5

6

7

8

9

require "increase"

increase = Increase::Client.new(
  api_key: ENV["INCREASE_API_KEY"] # This is the default and can be omitted
)

balance_lookup = increase.accounts.balance("account_in71c4amph0vgo2qllky")

puts(balance_lookup)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

package main

import (
    "context"
    "fmt"
    "os"

"github.com/Increase/increase-go"
    "github.com/Increase/increase-go/option"
)

func main() {
    client := increase.NewClient(
        option.WithAPIKey(os.Getenv("INCREASE_API_KEY")), // This is the default and can be omitted
    )
    balanceLookup, err := client.Accounts.Balance(
        context.TODO(),
        "account_in71c4amph0vgo2qllky",
        increase.AccountBalanceParams{},
    )
    if err != nil {
        panic(err.Error())
    }
    fmt.Printf("%+v\n", balanceLookup.AccountID)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

package com.increase.api.example;

import com.increase.api.client.IncreaseClient;
import com.increase.api.client.okhttp.IncreaseOkHttpClient;
import com.increase.api.models.accounts.AccountBalanceParams;
import com.increase.api.models.accounts.BalanceLookup;

public final class Main {
    private Main() {}

public static void main(String[] args) {
        IncreaseClient client = IncreaseOkHttpClient.fromEnv();

BalanceLookup balanceLookup = client.accounts().balance("account_in71c4amph0vgo2qllky");
    }
}

1

2

3

4

5

6

7

8

9

10

11

12

package com.increase.api.example

import com.increase.api.client.IncreaseClient
import com.increase.api.client.okhttp.IncreaseOkHttpClient
import com.increase.api.models.accounts.AccountBalanceParams
import com.increase.api.models.accounts.BalanceLookup

fun main() {
    val client: IncreaseClient = IncreaseOkHttpClient.fromEnv()

val balanceLookup: BalanceLookup = client.accounts().balance("account_in71c4amph0vgo2qllky")
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Increase\Client;
use Increase\Core\Exceptions\APIException;

$client = new Client(apiKey: getenv('INCREASE_API_KEY'));

try {
  $balanceLookup = $client->accounts->balance(
    'account_in71c4amph0vgo2qllky',
    atTime: new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
  );

var_dump($balanceLookup);
} catch (APIException $e) {
  echo $e->getMessage();
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

using System;
using Increase.Api;
using Increase.Api.Models.Accounts;

IncreaseClient client = new();

AccountBalanceParams parameters = new()
{
    AccountID = "account_in71c4amph0vgo2qllky"
};

var balanceLookup = await client.Accounts.Balance(parameters);

Console.WriteLine(balanceLookup);

Returns a Balance Lookup object:

1

2

3

4

5

6

7

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "available_balance": 100,
  "current_balance": 100,
  "loan": null,
  "type": "balance_lookup"
}

Parameters

account_id

string

Required

The identifier of the Account to retrieve.

More about Accounts.

at_time

string

The moment to query the balance at. If not set, returns the current balances.

Close an Account

cURL TypeScript Python Ruby Go Java Kotlin PHP C#

1

2

3

curl -X "POST" \
  --url "${INCREASE_URL}/accounts/account_in71c4amph0vgo2qllky/close" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}"

1

2

3

4

5

6

7

8

9

import Increase from 'increase';

const client = new Increase({
  apiKey: process.env['INCREASE_API_KEY'], // This is the default and can be omitted
});

const account = await client.accounts.close('account_in71c4amph0vgo2qllky');

console.log(account.id);

1

2

3

4

5

6

7

8

9

10

import os
from increase import Increase

client = Increase(
    api_key=os.environ.get("INCREASE_API_KEY"),  # This is the default and can be omitted
)
account = client.accounts.close(
    "account_in71c4amph0vgo2qllky",
)
print(account.id)

1

2

3

4

5

6

7

8

9

require "increase"

increase = Increase::Client.new(
  api_key: ENV["INCREASE_API_KEY"] # This is the default and can be omitted
)

account = increase.accounts.close("account_in71c4amph0vgo2qllky")

puts(account)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

package main

import (
    "context"
    "fmt"
    "os"

"github.com/Increase/increase-go"
    "github.com/Increase/increase-go/option"
)

func main() {
    client := increase.NewClient(
        option.WithAPIKey(os.Getenv("INCREASE_API_KEY")), // This is the default and can be omitted
    )
    account, err := client.Accounts.Close(context.TODO(), "account_in71c4amph0vgo2qllky")
    if err != nil {
        panic(err.Error())
    }
    fmt.Printf("%+v\n", account.ID)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

package com.increase.api.example;

import com.increase.api.client.IncreaseClient;
import com.increase.api.client.okhttp.IncreaseOkHttpClient;
import com.increase.api.models.accounts.Account;
import com.increase.api.models.accounts.AccountCloseParams;

public final class Main {
    private Main() {}

public static void main(String[] args) {
        IncreaseClient client = IncreaseOkHttpClient.fromEnv();

Account account = client.accounts().close("account_in71c4amph0vgo2qllky");
    }
}

1

2

3

4

5

6

7

8

9

10

11

12

package com.increase.api.example

import com.increase.api.client.IncreaseClient
import com.increase.api.client.okhttp.IncreaseOkHttpClient
import com.increase.api.models.accounts.Account
import com.increase.api.models.accounts.AccountCloseParams

fun main() {
    val client: IncreaseClient = IncreaseOkHttpClient.fromEnv()

val account: Account = client.accounts().close("account_in71c4amph0vgo2qllky")
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Increase\Client;
use Increase\Core\Exceptions\APIException;

$client = new Client(apiKey: getenv('INCREASE_API_KEY'));

try {
  $account = $client->accounts->close('account_in71c4amph0vgo2qllky');

var_dump($account);
} catch (APIException $e) {
  echo $e->getMessage();
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

using System;
using Increase.Api;
using Increase.Api.Models.Accounts;

IncreaseClient client = new();

AccountCloseParams parameters = new()
{
    AccountID = "account_in71c4amph0vgo2qllky"
};

var account = await client.Accounts.Close(parameters);

Console.WriteLine(account);

Parameters

account_id

string

Required

The identifier of the Account to close. The account must have a zero balance.

More about Accounts.

Sandbox: Create an account revenue payment

Simulates an account revenue payment to your account. In production, this happens automatically on the first of each month.

cURL TypeScript Python Ruby Go Java Kotlin PHP C#

1

2

3

4

5

6

7

8

curl -X "POST" \
  --url "${INCREASE_URL}/simulations/account_revenue_payments" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d $'{
    "account_id": "account_in71c4amph0vgo2qllky",
    "amount": 1000
  }'

1

2

3

4

5

6

7

8

9

10

11

12

import Increase from 'increase';

const client = new Increase({
  apiKey: process.env['INCREASE_API_KEY'], // This is the default and can be omitted
});

const transaction = await client.simulations.accountRevenuePayments.create({
  account_id: 'account_in71c4amph0vgo2qllky',
  amount: 1000,
});

console.log(transaction.id);

1

2

3

4

5

6

7

8

9

10

11

import os
from increase import Increase

client = Increase(
    api_key=os.environ.get("INCREASE_API_KEY"),  # This is the default and can be omitted
)
transaction = client.simulations.account_revenue_payments.create(
    account_id="account_in71c4amph0vgo2qllky",
    amount=1000,
)
print(transaction.id)

1

2

3

4

5

6

7

8

9

10

11

12

require "increase"

increase = Increase::Client.new(
  api_key: ENV["INCREASE_API_KEY"] # This is the default and can be omitted
)

transaction = increase.simulations.account_revenue_payments.create(
  account_id: "account_in71c4amph0vgo2qllky",
  amount: 1000
)

puts(transaction)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

package main

import (
    "context"
    "fmt"
    "os"

"github.com/Increase/increase-go"
    "github.com/Increase/increase-go/option"
)

func main() {
    client := increase.NewClient(
        option.WithAPIKey(os.Getenv("INCREASE_API_KEY")), // This is the default and can be omitted
    )
    transaction, err := client.Simulations.AccountRevenuePayments.New(context.TODO(), increase.SimulationAccountRevenuePaymentNewParams{
        AccountID: increase.F("account_in71c4amph0vgo2qllky"),
        Amount:    increase.F(int64(1000)),
    })
    if err != nil {
        panic(err.Error())
    }
    fmt.Printf("%+v\n", transaction.ID)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

package com.increase.api.example;

import com.increase.api.client.IncreaseClient;
import com.increase.api.client.okhttp.IncreaseOkHttpClient;
import com.increase.api.models.simulations.accountrevenuepayments.AccountRevenuePaymentCreateParams;
import com.increase.api.models.transactions.Transaction;

public final class Main {
    private Main() {}

public static void main(String[] args) {
        IncreaseClient client = IncreaseOkHttpClient.fromEnv();

AccountRevenuePaymentCreateParams params = AccountRevenuePaymentCreateParams.builder()
            .accountId("account_in71c4amph0vgo2qllky")
            .amount(1000L)
            .build();
        Transaction transaction = client.simulations().accountRevenuePayments().create(params);
    }
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

package com.increase.api.example

import com.increase.api.client.IncreaseClient
import com.increase.api.client.okhttp.IncreaseOkHttpClient
import com.increase.api.models.simulations.accountrevenuepayments.AccountRevenuePaymentCreateParams
import com.increase.api.models.transactions.Transaction

fun main() {
    val client: IncreaseClient = IncreaseOkHttpClient.fromEnv()

val params: AccountRevenuePaymentCreateParams = AccountRevenuePaymentCreateParams.builder()
        .accountId("account_in71c4amph0vgo2qllky")
        .amount(1000L)
        .build()
    val transaction: Transaction = client.simulations().accountRevenuePayments().create(params)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Increase\Client;
use Increase\Core\Exceptions\APIException;

$client = new Client(apiKey: getenv('INCREASE_API_KEY'));

try {
  $transaction = $client->simulations->accountRevenuePayments->create(
    accountID: 'account_in71c4amph0vgo2qllky',
    amount: 1000,
    accruedOnAccountID: 'accrued_on_account_id',
    periodEnd: new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
    periodStart: new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
  );

var_dump($transaction);
} catch (APIException $e) {
  echo $e->getMessage();
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

using System;
using Increase.Api;
using Increase.Api.Models.Simulations.AccountRevenuePayments;

IncreaseClient client = new();

AccountRevenuePaymentCreateParams parameters = new()
{
    AccountID = "account_in71c4amph0vgo2qllky",
    Amount = 1000,
};

var transaction = await client.Simulations.AccountRevenuePayments.Create(parameters);

Console.WriteLine(transaction);

Returns a Transaction object:

Inbound ACH transfer Outbound ACH transfer Returned outbound ACH transfer Inbound wire transfer Outbound wire transfer Card purchase Card refund Check deposit Interest payment Fee payment

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "INVOICE 2468",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": "account_number_v18nkfqm6afpsrvy82b2",
  "route_type": "account_number",
  "source": {
    "category": "inbound_ach_transfer",
    "inbound_ach_transfer": {
      "addenda": null,
      "amount": 100,
      "originator_company_descriptive_date": null,
      "originator_company_discretionary_data": null,
      "originator_company_entry_description": "RESERVE",
      "originator_company_id": "0987654321",
      "originator_company_name": "BIG BANK",
      "receiver_id_number": "12345678900",
      "receiver_name": "IAN CREASE",
      "trace_number": "021000038461022",
      "transfer_id": "inbound_ach_transfer_tdrwqr3fq9gnnq49odev"
    }
  },
  "type": "transaction"
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": -100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "INVOICE 2468",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": null,
  "route_type": null,
  "source": {
    "ach_transfer_intention": {
      "account_number": "987654321",
      "amount": 100,
      "routing_number": "101050001",
      "statement_descriptor": "INVOICE 2468",
      "transfer_id": "account_transfer_7k9qe1ysdgqztnt63l7n"
    },
    "category": "ach_transfer_intention"
  },
  "type": "transaction"
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "INVOICE 2468",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": null,
  "route_type": null,
  "source": {
    "ach_transfer_return": {
      "addenda_information": null,
      "created_at": "2020-01-31T23:59:59Z",
      "raw_return_reason_code": "R01",
      "return_reason_code": "insufficient_fund",
      "trace_number": "111122223292834",
      "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "transfer_id": "ach_transfer_uoxatyh3lt5evrsdvo7q"
    },
    "category": "ach_transfer_return"
  },
  "type": "transaction"
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "INVOICE 2468",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": "account_number_v18nkfqm6afpsrvy82b2",
  "route_type": "account_number",
  "source": {
    "category": "inbound_wire_transfer",
    "inbound_wire_transfer": {
      "amount": 100,
      "creditor_address_line1": null,
      "creditor_address_line2": null,
      "creditor_address_line3": null,
      "creditor_name": null,
      "debtor_address_line1": null,
      "debtor_address_line2": null,
      "debtor_address_line3": null,
      "debtor_name": null,
      "description": "Inbound wire transfer",
      "end_to_end_identification": null,
      "input_message_accountability_data": null,
      "instructing_agent_routing_number": null,
      "instruction_identification": null,
      "purpose": null,
      "transfer_id": "inbound_wire_transfer_f228m6bmhtcxjco9pwp0",
      "unique_end_to_end_transaction_reference": null,
      "unstructured_remittance_information": null
    }
  },
  "type": "transaction"
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": -100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "INVOICE 2468",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": null,
  "route_type": null,
  "source": {
    "category": "wire_transfer_intention",
    "wire_transfer_intention": {
      "account_number": "987654321",
      "amount": 100,
      "message_to_recipient": "HELLO",
      "routing_number": "101050001",
      "transfer_id": "wire_transfer_5akynk7dqsq25qwk9q2u"
    }
  },
  "type": "transaction"
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": -100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "INVOICE 2468",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": "card_oubs0hwk5rn6knuecxg2",
  "route_type": "card",
  "source": {
    "card_settlement": {
      "amount": 100,
      "card_authorization": null,
      "card_payment_id": "card_payment_nd3k2kacrqjli8482ave",
      "cashback": null,
      "currency": "USD",
      "id": "card_settlement_khv5kfeu0vndj291omg6",
      "interchange": {
        "amount": "0.137465",
        "code": "271",
        "currency": "USD"
      },
      "merchant_acceptor_id": "5665270011000168",
      "merchant_category_code": "5734",
      "merchant_city": "New York",
      "merchant_country": "US",
      "merchant_name": "AMAZON.COM",
      "merchant_postal_code": "10045",
      "merchant_state": "NY",
      "network": "visa",
      "network_identifiers": {
        "acquirer_business_id": "69650702",
        "acquirer_reference_number": "83163715445437604865089",
        "authorization_identification_response": "ABC123",
        "transaction_id": "627199945183184"
      },
      "pending_transaction_id": null,
      "presentment_amount": 100,
      "presentment_currency": "USD",
      "purchase_details": {
        "car_rental": null,
        "customer_reference_identifier": "51201",
        "local_tax_amount": null,
        "local_tax_currency": "usd",
        "lodging": {
          "check_in_date": "2023-07-20",
          "daily_room_rate_amount": 1000,
          "daily_room_rate_currency": "usd",
          "extra_charges": "restaurant",
          "folio_cash_advances_amount": 0,
          "folio_cash_advances_currency": "usd",
          "food_beverage_charges_amount": 0,
          "food_beverage_charges_currency": "usd",
          "no_show_indicator": "no_show",
          "prepaid_expenses_amount": 0,
          "prepaid_expenses_currency": "usd",
          "room_nights": 1,
          "total_room_tax_amount": 100,
          "total_room_tax_currency": "usd",
          "total_tax_amount": 100,
          "total_tax_currency": "usd"
        },
        "national_tax_amount": null,
        "national_tax_currency": "usd",
        "purchase_identifier": "10203",
        "purchase_identifier_format": "order_number",
        "travel": null
      },
      "scheme_fees": [\
        {\
          "amount": "0.137465",\
          "created_at": "2020-01-31T23:59:59Z",\
          "currency": "USD",\
          "fee_type": "visa_corporate_acceptance_fee",\
          "fixed_component": null,\
          "variable_rate": "0.0002"\
        }\
      ],
      "surcharge": null,
      "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "type": "card_settlement"
    },
    "category": "card_settlement"
  },
  "type": "transaction"
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "INVOICE 2468",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": "card_oubs0hwk5rn6knuecxg2",
  "route_type": "card",
  "source": {
    "card_refund": {
      "amount": 100,
      "card_payment_id": "card_payment_nd3k2kacrqjli8482ave",
      "cashback": null,
      "currency": "USD",
      "id": "card_refund_imgc2xwplh6t4r3gn16e",
      "interchange": {
        "amount": "0.137465",
        "code": "271",
        "currency": "USD"
      },
      "merchant_acceptor_id": "5665270011000168",
      "merchant_category_code": "5734",
      "merchant_city": "New York",
      "merchant_country": "US",
      "merchant_name": "AMAZON.COM",
      "merchant_postal_code": "10045",
      "merchant_state": "NY",
      "network_identifiers": {
        "acquirer_business_id": "69650702",
        "acquirer_reference_number": "83163715445437604865089",
        "authorization_identification_response": "ABC123",
        "transaction_id": "627199945183184"
      },
      "presentment_amount": 100,
      "presentment_currency": "USD",
      "purchase_details": {
        "car_rental": null,
        "customer_reference_identifier": "51201",
        "local_tax_amount": null,
        "local_tax_currency": "usd",
        "lodging": {
          "check_in_date": "2023-07-20",
          "daily_room_rate_amount": 1000,
          "daily_room_rate_currency": "usd",
          "extra_charges": "restaurant",
          "folio_cash_advances_amount": 0,
          "folio_cash_advances_currency": "usd",
          "food_beverage_charges_amount": 0,
          "food_beverage_charges_currency": "usd",
          "no_show_indicator": "no_show",
          "prepaid_expenses_amount": 0,
          "prepaid_expenses_currency": "usd",
          "room_nights": 1,
          "total_room_tax_amount": 100,
          "total_room_tax_currency": "usd",
          "total_tax_amount": 100,
          "total_tax_currency": "usd"
        },
        "national_tax_amount": null,
        "national_tax_currency": "usd",
        "purchase_identifier": "10203",
        "purchase_identifier_format": "order_number",
        "travel": null
      },
      "scheme_fees": [\
        {\
          "amount": "0.137465",\
          "created_at": "2020-01-31T23:59:59Z",\
          "currency": "USD",\
          "fee_type": "visa_corporate_acceptance_fee",\
          "fixed_component": null,\
          "variable_rate": "0.0002"\
        }\
      ],
      "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "type": "card_refund"
    },
    "category": "card_refund"
  },
  "type": "transaction"
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 1000,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "INVOICE 2468",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": null,
  "route_type": null,
  "source": {
    "category": "check_deposit_acceptance",
    "check_deposit_acceptance": {
      "account_number": "987654321",
      "amount": 1000,
      "auxiliary_on_us": "101",
      "check_deposit_id": "check_deposit_f06n9gpg7sxn8t19lfc1",
      "currency": "USD",
      "routing_number": "101050001",
      "serial_number": null
    }
  },
  "type": "transaction"
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Interest payment for 2025-06",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": null,
  "route_type": null,
  "source": {
    "category": "interest_payment",
    "interest_payment": {
      "accrued_on_account_id": "account_in71c4amph0vgo2qllky",
      "amount": 100,
      "currency": "USD",
      "period_end": "2025-06-30T23:59:59+00:00",
      "period_start": "2025-06-01T00:00:00+00:00"
    }
  },
  "type": "transaction"
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": -100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "INVOICE 2468",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": null,
  "route_type": null,
  "source": {
    "category": "fee_payment",
    "fee_payment": {
      "amount": 100,
      "currency": "USD",
      "fee_period_start": "2023-05-01",
      "program_id": "program_i2v2os4mwza1oetokh9i"
    }
  },
  "type": "transaction"
}

Parameters

account_id

string

Required

The identifier of the Account the Account Revenue Payment should be paid to.

More about Accounts.

accrued_on_account_id

string

The identifier of the Account the account revenue accrued on. Defaults to account_id.

More about Accounts.

amount

integer

Required

The account revenue amount in cents. Must be positive.

period_end

string

The end of the account revenue period. If not provided, defaults to the current time.

period_start

string

The start of the account revenue period. If not provided, defaults to the current time.

Sandbox: Create an interest payment

Simulates an interest payment to your account. In production, this happens automatically on the first of each month.

cURL TypeScript Python Ruby Go Java Kotlin PHP C#

1

2

3

4

5

6

7

8

curl -X "POST" \
  --url "${INCREASE_URL}/simulations/interest_payments" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d $'{
    "account_id": "account_in71c4amph0vgo2qllky",
    "amount": 1000
  }'

1

2

3

4

5

6

7

8

9

10

11

12

import Increase from 'increase';

const client = new Increase({
  apiKey: process.env['INCREASE_API_KEY'], // This is the default and can be omitted
});

const transaction = await client.simulations.interestPayments.create({
  account_id: 'account_in71c4amph0vgo2qllky',
  amount: 1000,
});

console.log(transaction.id);

1

2

3

4

5

6

7

8

9

10

11

import os
from increase import Increase

client = Increase(
    api_key=os.environ.get("INCREASE_API_KEY"),  # This is the default and can be omitted
)
transaction = client.simulations.interest_payments.create(
    account_id="account_in71c4amph0vgo2qllky",
    amount=1000,
)
print(transaction.id)

1

2

3

4

5

6

7

8

9

require "increase"

increase = Increase::Client.new(
  api_key: ENV["INCREASE_API_KEY"] # This is the default and can be omitted
)

transaction = increase.simulations.interest_payments.create(account_id: "account_in71c4amph0vgo2qllky", amount: 1000)

puts(transaction)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

package main

import (
    "context"
    "fmt"
    "os"

"github.com/Increase/increase-go"
    "github.com/Increase/increase-go/option"
)

func main() {
    client := increase.NewClient(
        option.WithAPIKey(os.Getenv("INCREASE_API_KEY")), // This is the default and can be omitted
    )
    transaction, err := client.Simulations.InterestPayments.New(context.TODO(), increase.SimulationInterestPaymentNewParams{
        AccountID: increase.F("account_in71c4amph0vgo2qllky"),
        Amount:    increase.F(int64(1000)),
    })
    if err != nil {
        panic(err.Error())
    }
    fmt.Printf("%+v\n", transaction.ID)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

package com.increase.api.example;

import com.increase.api.client.IncreaseClient;
import com.increase.api.client.okhttp.IncreaseOkHttpClient;
import com.increase.api.models.simulations.interestpayments.InterestPaymentCreateParams;
import com.increase.api.models.transactions.Transaction;

public final class Main {
    private Main() {}

public static void main(String[] args) {
        IncreaseClient client = IncreaseOkHttpClient.fromEnv();

InterestPaymentCreateParams params = InterestPaymentCreateParams.builder()
            .accountId("account_in71c4amph0vgo2qllky")
            .amount(1000L)
            .build();
        Transaction transaction = client.simulations().interestPayments().create(params);
    }
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

package com.increase.api.example

import com.increase.api.client.IncreaseClient
import com.increase.api.client.okhttp.IncreaseOkHttpClient
import com.increase.api.models.simulations.interestpayments.InterestPaymentCreateParams
import com.increase.api.models.transactions.Transaction

fun main() {
    val client: IncreaseClient = IncreaseOkHttpClient.fromEnv()

val params: InterestPaymentCreateParams = InterestPaymentCreateParams.builder()
        .accountId("account_in71c4amph0vgo2qllky")
        .amount(1000L)
        .build()
    val transaction: Transaction = client.simulations().interestPayments().create(params)
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Increase\Client;
use Increase\Core\Exceptions\APIException;

$client = new Client(apiKey: getenv('INCREASE_API_KEY'));

try {
  $transaction = $client->simulations->interestPayments->create(
    accountID: 'account_in71c4amph0vgo2qllky',
    amount: 1000,
    accruedOnAccountID: 'accrued_on_account_id',
    periodEnd: new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
    periodStart: new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
  );

var_dump($transaction);
} catch (APIException $e) {
  echo $e->getMessage();
}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

using System;
using Increase.Api;
using Increase.Api.Models.Simulations.InterestPayments;

IncreaseClient client = new();

InterestPaymentCreateParams parameters = new()
{
    AccountID = "account_in71c4amph0vgo2qllky",
    Amount = 1000,
};

var transaction = await client.Simulations.InterestPayments.Create(parameters);

Console.WriteLine(transaction);

Returns a Transaction object:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

Parameters

account_id

string

Required

The identifier of the Account the Interest Payment should be paid to is for.

More about Accounts.

accrued_on_account_id

string

The identifier of the Account the Interest accrued on. Defaults to account_id.

More about Accounts.

amount

integer

Required

The interest amount in cents. Must be positive.

period_end

string

The end of the interest period. If not provided, defaults to the current time.

period_start

string

The start of the interest period. If not provided, defaults to the current time.