NAV Navigation
Documentation
API Reference Data Warehouse Make.com Integration

Introduction

This is a JSON HTTP API. It is not a RESTful API.

In contrast to REST, which is focused on the transfer of state between server and client, this API is oriented around actions that can be performed on system entities. Errors are reported via standard HTTP status codes with a structured JSON body — see Errors.

Responses can get new fields at any time, without a new API version. The Changelog lists each addition. Clients must ignore the fields that they do not recognize.

IDs

Example Entity IDs

cust_FiUtBj8JkF
lease_jOi8joH3Hu
org_Ji9JKfKkhuR
quote_IJf03jNjKuf

Entity IDs in Cubby are generally in the form of <prefix>_<alpha> where the type of the object referred to is defined by the prefix.

Money

We represent money as an integer, representing the number of cents. There are problems both in the use of integers and in the use of floats to represent money. We believe use of integers results in more predictable and obvious behavior for users of our API, and forces anyone that sends us money to confront a possible loss of precision before sending us numbers.

Billing Cycles

Converting a facility-cycle amount

amount × cyclesPerYear(from) / cyclesPerYear(to)

monthlyRentalAmount 27692 at a DAYS_28 facility, lease on MONTHLY:
  27692 × 13 / 12 = 30000        ($300.00 per month)

standardRate 33700 at a DAYS_28 facility, shown as a weekly rate:
  33700 × 13 / 52 = 8425         ($84.25 per week)

Every facility bills on a cycle, MONTHLY or DAYS_28 (every 28 days), returned as billingCycle on Facilities Search. The recurring amounts set up at a facility are expressed per one facility cycle: pricing group rates, coverage level premiums, and a lease's rent and scheduled rent change. At a DAYS_28 facility a standardRate of 33700 is $337.00 per 28 days.

Each lease also has a billingCycle on Leases Search: WEEKLY, BI_WEEKLY, DAYS_28, MONTHLY, QUARTERLY, BI_ANNUAL or ANNUAL. It is the cycle the customer is charged on. Most leases are on their facility's cycle. A lease can be on another one when it was imported from a previous system, or when the customer chose a different cycle at move-in at a facility whose billingOption is FLEXIBLE. QUARTERLY, BI_ANNUAL and ANNUAL are lease cycles only: no facility bills on them, a lease can be put on one only at a facility where Cubby has turned them on and where its pricing group allows it, and discounts don't apply to them.

To express a facility-cycle amount in another cycle, multiply by the cycles per year of the cycle it is in, divide by those of the cycle you want, and round half up to the cent:

Cycle Cycles per year
ANNUAL 1
BI_ANNUAL 2
QUARTERLY 4
MONTHLY 12
DAYS_28 13
BI_WEEKLY 26
WEEKLY 52

Cubby applies the same conversion when it charges a lease, so converting a lease's monthlyRentalAmount to its billingCycle gives the rent the customer is charged per period, before discounts, proration and tax.

Date and Time

We represent dates and times as ISO-8601 strings. Date-only fields (for example moveInDate, accruesOn, dueDate) use the form yyyy-MM-dd and carry no time component. Date-time fields fall into one of two categories:

Where search endpoints accept date or time range filters, the parameter name signals the bound semantics:

API Response Structure

Successful responses return an HTTP 200. The body is always wrapped in a small envelope:

{
  "status": 200,
  "data": {
    /* Endpoint-specific payload. See each endpoint's documentation. */
  }
}

Example: POST /v1/facilities/search

{
  "status": 200,
  "data": {
    "facilities": [
      /* ... facility objects ... */
    ],
    "organizations": [
      /* ... organization objects ... */
    ]
  }
}

Errors

Failed requests return a standard non-2xx HTTP status code (400, 401, 403, 404, 500, etc.) with the following body:

Error Response

{
  "code": 404,
  "errors": [
    "Facility not found"
  ]
}

Expansions

APIs strive to return comprehensive information in the target entity. Entities in the Cubby system tend to be connected to other entities (for example a lease and a customer), and it may be desirable to retrieve both a subject entity as well as related entities in a single HTTP request.

To accommodate this, some endpoints offer expansions, which are effectively instruction on which related entities should be retrieved in addition to the base entity returned by the endpoint.

Expansions are not expanded in-line, but are provided as auxiliary arrays which can easily be combined by using the embedded entity IDs.

Authentication

API credentials conceptually attach to the Organization concept, and has access to all resources (managers, facilities, customers, leases) visible to the Organization.

Authentication is done via an API key, which is passed in the Authorization header. Example via curl:

curl -X ‘POST’ https://api.cubbystorage.com/v1/organizations/search -H ‘accept: */*’ -H ‘Authorization: Bearer b73c7e4d-81f2-49e3-bbca-9a6fbd321d56’ -H "Content-Type: application/json" -d ‘{"where": {}}’

In order to obtain an API key, please contact support@cubbystorage.com.

Treat your API key like a password - because that’s what it is!

Access to PII

Access to Personally Identifiable Information (PII) is restricted to authorized users only. If your API key does not have access to PII, all PII fields will be skipped in API responses. PII fields include:

Roles

API keys are issued with a specific role that determines which endpoints and operations are accessible. The following roles are available:

Manager

The most comprehensive role, intended for integrations that need full operational control. Grants read and write access to nearly all resources, including managing leases, customers, leads, payments, units, coverage, auctions, delinquency exemptions, notes, tasks, pricing groups, and reports. Also provides read access to access codes, discounts, facilities, facility groups, ledgers, organizations, payment methods, and products.

Endpoints:

Resource Endpoints
Access Codes search, check
Auctions search, create, start-lien, cancel-lien, settle, complete
Coverage search, enroll, unenroll, add-private-policy, remove-private-policy, download-private-policy
Coverage Levels search
Customers search, update
Delinquency Exemptions search, create, update, cancel
Discounts search
Facilities search
Facility Groups search
Leads search, create, update, get-checkout-link
Leases search, create, checkout, cancel-lease, schedule-move-out, update-scheduled-move-out, preview-charges, get-move-in-charges, get-upsells, make-payment, get-payment-link, enable-auto-pay, disable-auto-pay, update-alternative-contacts, get-rent-change-schedules, change-rents, cancel-rent-changes, get-compliances
Ledgers search
Notes search, create
Organizations search
Payment Methods search, create
Payments search
Pricing Groups search, change-rates, update-discount-strategies, find-unit-for-tier
Products search
Reports general-ledger/cash, general-ledger/accrual, aged-receivables, rent-roll, merchant-services-disbursements
Tasks search, create, update
Units search, set-rentability
Value Pricing Strategies search

A read-only role for integrations that need to query data without making changes. Provides access to search endpoints across most resources.

Endpoints:

Resource Endpoints
Auctions search
Coverage search, download-private-policy
Coverage Levels search
Customers search
Delinquency Exemptions search
Discounts search
Facilities search
Facility Groups search
Leads search
Leases search, preview-charges
Ledgers search
Notes search
Organizations search
Payment Methods search
Payments search
Pricing Groups search, find-unit-for-tier
Products search
Tasks search
Units search
Value Pricing Strategies search

Storefront

A narrow role for storefront and website integrations. Provides access to storefront-specific facility and pricing group data, along with organization info.

Endpoints:

Resource Endpoints
Organizations search
Storefront Facilities search
Storefront Pricing Groups search

Report

Intended for reporting and analytics integrations. Provides access to financial reports and facility data.

Endpoints:

Resource Endpoints
Facilities search
Facility Groups search
Organizations search
Reports general-ledger/cash, general-ledger/accrual, aged-receivables, rent-roll, merchant-services-disbursements

Coverages

Designed for insurance and coverage provider integrations. Grants full coverage management along with read access to the related resources needed to look up customers, leases, and units.

Endpoints:

Resource Endpoints
Coverage search, enroll, unenroll, add-private-policy, remove-private-policy, download-private-policy
Coverage Levels search
Customers search
Facilities search
Facility Groups search
Leases search, preview-charges
Ledgers search
Organizations search
Pricing Groups search, find-unit-for-tier
Units search
Value Pricing Strategies search

Access Codes

A minimal role for gate access integrations. Provides the ability to look up and verify access codes.

Endpoints:

Resource Endpoints
Access Codes search, check

Communication

Allows sending SMS and email messages on behalf of the organization.

Endpoints:

Resource Endpoints
Messages sms/send, email/send

Locks

For smart lock integrations. Grants the ability to manage locks — register, attach, disable, return, and transfer.

Endpoints:

Resource Endpoints
Locks search, register, disable, attach, return, transfer

Credits and Waives

Allows waiving charges, issuing credits, writing off balances and issuing refunds, for operators that approve these in their own systems first. Waives and credits are applied without an approval step in Cubby. Write-offs and refunds are applied at once or sent to Cubby's approval queue, as each request's bypassApproval chooses. None of the roles above includes it, so it must be granted to an API key on purpose; only a key holding all API permissions has it already. Combine it with a role that can search ledgers, leases and payments, such as Manager or Search, to read the amounts these endpoints check.

Endpoints:

Resource Endpoints
Leases waive-charge, issue-credit, write-off-balance, refund-balance
Payments refund

Upcoming Changes

Notable changes that are planned but not yet released. When a change ships, it moves to the Changelog.

Changelog

November 2026

October 2026

September 2026

August 2026

July 2026

June 2026

May 2026

April 2026

March 2026

February 2026

January 2026

December 2025

November 2025

October 2025

September 2025

December 2024

Operator API

Access Codes

POST /v1/access-codes/search

Request Body — access-codes/search

{
  "where": {
    "facilityId": "fac_<ID>",
    "customerId": "cust_<ID>"
  }
}

Response Body — access-codes/search

{
  "status": 200,
  "data": {
    "accessCodes": [
      {
        "code": "1575",
        "enabled": true,
        "customerId": "cust_K2kybwxRz9L"
      },
      {/* ... */}
    ]
  }
}

Search for access codes by facility or customer

Required Properties

Check Access Code

POST /v1/access-codes/check

Request Body — access-codes/check

{
  "facilityId": "fac_<ID>",
  "code": "1575"
}

Response Body — access-codes/check

{
  "status": 200,
  "data": {
    "accessAllowed": true,
    "message": "Access allowed"
  }
}

Check if an access code is valid for a facility

Required Properties

Response Parameters

Locks

Lock Identifiers

A lock is identified by its lockId. Lock Register returns the lockId of the lock it created and Lock Search returns one for every lock it finds; Lock Disable, Lock Attach, Lock Return and Lock Transfer each take a lockId. A lock can therefore be carried from one of these endpoints to the next without renaming the field.

Register and Search also return that same value as id, the name they used before lockId existed. id is deprecated but still supported: it continues to be returned and there is no plan to remove it, so existing integrations need not change. New integrations should read lockId. Any change to this will be announced in the Changelog.

Lock Register

POST /v1/locks/register

Request Body — locks/register

{
  "serial": "M9U2FK",
  "combo": "2934",
  "location": "fac|org_<ID>",
  "actor": "user_<ID>",
}

Response Body — locks/register

{
  "status": 200,
  "data": {
    "lockId": "lock_<ID>",
    "id": "lock_<ID>"                      // Deprecated. Use lockId
  }
}

Adds a new lock to the system. The lock is initially in an "available" state. Available locks can be associated with a location until they are attached to a unit.

Required Properties

Error Conditions

Response Parameters

Parameter Description
lockId The ID of the newly registered lock
id Deprecated. Use lockId — see Lock Identifiers

POST /v1/locks/search

Request Body — locks/search

{
  "where": {
    "organizationId": "org_<ID>"
  }
}

Response Body — locks/search

{
  "status": 200,
  "data": {
    "locks": [
      {
        "lockId": "lock_<ID>",
        "id": "lock_<ID>",                 // Deprecated. Use lockId
        "facilityId": "fac_C7bSZyPT6fp",
        "organizationId": "org_4a2da7d271a",
        "serial": "M9U2FK",
        "combo": "2934",
        "status": "AVAILABLE | OPERATOR_USE | TENANT_USE | DISABLED",
        "attachedTo": "unit_<ID>",
        "disabledReason": "DAMAGED | MISSING"
      },
      {/* ... */}
    ]
  }
}

Search for locks by organization, or for the locks attached to a single lease

Required Properties

Exactly one scope must be supplied. Supplying none, or more than one, is rejected with a 403.

This endpoint also accepts the two scopes at the top level of the body, without the where wrapper — {"organizationId": "org_<ID>"} — the shape it took before the wrapper was supported. That form is deprecated but still supported: it continues to work and there is no plan to remove it, so existing integrations need not change. New integrations should send the where wrapper shown above, which is the shape every other search endpoint takes. When both are present the wrapper wins. Any change to this will be announced in the Changelog.

Response Parameters

Parameter Description
lockId The ID of the lock — see Lock Identifiers
id Deprecated. Use lockId
facilityId The facility where the lock is physically present
organizationId The organization where the lock is physically present
serial The serial number of the lock
combo The current combination for unlocking the lock
status The current status of the lock.
attachedTo The unit to which the lock is attached (only when status is either OPERATOR_USE or TENANT_USE)
disabledReason The reason the lock is disabled (only when status is DISABLED)

Lock Disable

POST /v1/locks/disable

Request Body — locks/disable

{
  "lockId": "lock_<ID>",
  "reason": "DAMAGED | MISSING",
  "actor": "user_<ID>"
}

Marks the lock as disabled, detaching it from any units it may be attached to.

Required Properties

Optional Properties

Lock Attach

POST /v1/locks/attach

Request Body — locks/attach

{
  "lockId": "lock_<ID>",
  "attachTo": "space_<ID>",
  "lockUse": "TENANT_USE | OPERATOR_USE",
  "actor": "user_<ID>"
}

Attaches a lock to a unit either by renting it to a tenant or by restricting access to the unit.

Required Properties

Optional Properties

Error Conditions

Lock Return

POST /v1/locks/return

Request Body — locks/return

{
  "lockId": "lock_<ID>",
  "actor": "user_<ID>"
}

Puts the lock back into inventory, detaching it from any unit it may be currently attached to and marking it available for re-use.

Required Properties

Optional Properties

Lock Transfer

POST /v1/locks/transfer

Request Body — locks/transfer

{
  "lockId": "lock_<ID>",
  "facilityId": "fac_<ID>"
}

Transfers the lock to a different facility, which must belong to the same organization as the lock's current facility. The lock must not be attached to a unit.

Required Properties

Organizations

POST /v1/organizations/search

Request Body — organizations/search

{
  "where": {
    "organizationId": "org_4a2da7d271a"
  }
}

Response Body — organizations/search

{
  "status": 200,
  "data": {
    "organizations": [
      {
        "organizationId": "org_4a2da7d271a",
        "name": "Anisha Estates"
      },
      {/* ... */}
    ]
  }
}

Returns metadata for co-managed organization(s)

Optional Properties

Managers

POST /v1/managers/search

Request Body — managers/search

{
  "where": {
    "facilityId": "fac_C7bSZyPT6fp",
    "organizationId": "org_4a2da7d271a",
    "phone": "555-555-5555",
    "email": "manager@example.com",
    "name": "Jane",
    "includePermissions": true
  }
}

Response Body — managers/search

{
  "status": 200,
  "data": {
    "managers": [
      {
        "managerId": "user_4a2da7d271a",
        "name": "Jane Smith",
        "email": "manager@example.com",
        "phone": "+15555555555",
        "organizationId": "org_4a2da7d271a",
        "organizationPermissions": {
          "organizationId": "org_4a2da7d271a",
          "name": "Anisha Estates",
          "permissions": {
            "read": ["Task"],
            "manage": ["Task", "Note"]
          }
        },
        "facilitiesPermissions": [
          {
            "facilityId": "fac_C7bSZyPT6fp",
            "name": "315 Anisha Estates",
            "permissions": {
              "read": ["Task"],
              "manage": ["Task", "Note"]
            }
          },
          {/* ... */}
        ]
      },
      {/* ... */}
    ]
  }
}

Search for managers by facility, organization, or contact information

Required Properties

Optional Properties

Facilities

POST /v1/facilities/search

Request Body — facilities/search

{
  "where": {
    "facilityId": "fac_C7bSZyPT6fp", 
    "organizationId": "org_4a2da7d271a",
    "facilityGroupId": "fg_4a2da7d271a"
  },
  "expansions": [
    "organization",
    "schedules",
    "facilityGroups"
  ]
}

Response Body — facilities/search

{
  "status": 200,
  "data": {
    "facilities": [
      {
        "facilityId": "fac_C7bSZyPT6fp",
        "name": "315 Anisha Estates",
        "internalName": "Anisha",
        "enabled": true,
        "contact": {
          "address": "315 Anisha Estates",
          "address2": "",
          "city": "Thompsonview",
          "state": "Alaska",
          "country": "USA",
          "zip": "98748",
          "email": "",
          "phone": ""
        },
        "organizationId": "org_4a2da7d271a",
        "longitude": "-122.419418",
        "latitude": "37.774929",
        "timeZone": "America/New_York",
        "paymentServiceProvider": "STRIPE | PAYABLI",
        "billingOption": "FIXED | FLEXIBLE",
        "billingCycle": "MONTHLY | DAYS_28",
        "leaseAnniversary": "START_DATE | FIRST_OF_MONTH",
        "jumpDay": 10,
        "schedules": [
          {
            "name": "Office Hours",
            "schedule": [
              null,
              {"from": "09:00:00", "to": "17:00:00"},
              {"from": "09:00:00", "to": "17:00:00"},
              {"from": "09:00:00", "to": "17:00:00"},
              {"from": "09:00:00", "to": "17:00:00"},
              {"from": "09:00:00", "to": "17:00:00"},
              null
            ],
            "category": "SYSTEM | CUSTOM",
            "systemTypes": ["PHONE_SUPPORT", "OFFICE_HOURS"]
          },
          {/* ... */}
        ],
        "facilityGroupIds": ["fg_4a2da7d271a"]
      },
      {/* ... */}
    ],
    "organizations": [
      {
        "organizationId": "org_4a2da7d271a",
        "name": "Anisha Estates"
      },
      {/* ... */}
    ],
    "facilityGroups": [
      {
        "facilityGroupId": "fg_4a2da7d271a",
        "name": "Main Street Campus",
        "organizationId": "org_4a2da7d271a"
      },
      {/* ... */}
    ]
  }
}

Returns metadata for all co-managed facilities

Each facility object includes a paymentServiceProvider field indicating which payment gateway the facility is configured to use — either STRIPE or PAYABLI. Use this to determine which token-generation flow to follow when collecting payment details (see Generating a Payment Token).

Each facility object always includes a facilityGroupIds array — the ext ids of the facility groups it belongs to (empty when the facility is in no group). This is the lightweight membership signal and requires no expansion.

Each facility object includes an enabled boolean saying whether the facility is live in Cubby. A facility is disabled while it is being set up and enabled when it goes live, so during a phased migration enabled distinguishes the facilities Cubby is already managing from those still running on a previous system. Disabled facilities are returned like any other — the flag reports their state rather than hiding them. The same field appears on every facility object returned by an expansion: the facility / facilities expansions of POST /v1/leases/search, POST /v1/units/search, POST /v1/tasks/search, POST /v1/leads/search, POST /v1/pricing-groups/search and POST /v1/facility-groups/search.

Each facility object carries the facility's billing settings. Like enabled, they appear on every facility object returned by an expansion as well:

Required Properties

Exactly one of the following must be provided:

Optional Properties

When the facilityGroups expansion is requested, the response additionally includes a top-level facilityGroups array (sibling to facilities) containing the de-duplicated set of facility groups that the returned facilities belong to. Each entry has facilityGroupId, name, and organizationId. Match them to facilities via each facility's facilityGroupIds. Without the expansion, only the per-facility facilityGroupIds (above) is returned. See Facility Groups for the full facility-group resource.

When the schedules expansion is requested, each facility object includes a schedules array describing the facility's configured schedules (office hours, phone support, etc.). Each schedule has the following fields:

Facility Groups

Facility groups are named, organization-level collections of facilities. A facility can belong to multiple groups at once. They are commonly used to present several nearby facilities as a single location to customers.

POST /v1/facility-groups/search

Request Body

{
  "where": {
    "facilityGroupId": "fg_4a2da7d271a",
    "organizationId": "org_4a2da7d271a"
  },
  "expansions": [
    "facilities"
  ]
}

Response Body

{
  "status": 200,
  "data": {
    "facilityGroups": [
      {
        "facilityGroupId": "fg_4a2da7d271a",
        "name": "Main Street Campus",
        "organizationId": "org_4a2da7d271a",
        "facilityIds": ["fac_C7bSZyPT6fp", "fac_D8cTZyQU7gq"]
      },
      {/* ... */}
    ],
    "facilities": [
      {
        "facilityId": "fac_C7bSZyPT6fp",
        "name": "315 Anisha Estates",
        "organizationId": "org_4a2da7d271a",
        "/* ... same shape as Facilities Search ... */": ""
      },
      {/* ... */}
    ]
  }
}

Each facility group always includes a facilityIds array — the ext ids of its member facilities (empty when the group has none). This requires no expansion.

Required Properties

Exactly one of the following must be provided:

Optional Properties

When the facilities expansion is requested, the response additionally includes a top-level facilities array (sibling to facilityGroups) containing the de-duplicated full facility objects (same shape as Facilities Search) for all member facilities of the returned groups. Match them to groups via each group's facilityIds. Without the expansion, only the per-group facilityIds is returned.

Units

POST /v1/units/search

Request Body — units/search

{
  "where": {
    "unitId": "unit_GfNkzV4itfk",
    "pricingGroupId": "pg_4a2da7d271a",
    "facilityId": "fac_C7bSZyPT6fp"
  },
  "expansions": [ ... ]
}

Response Body — units/search

{
  "status": 200,
  "data": {
    "units": [
      {
        "unitId": "unit_GfNkzV4itfk",
        "name": "M001",
        "width": 20,
        "depth": 30,
        "height": null,
        "area": 600,
        "volume": null,
        "overlocked": false,
        "rentability": {
          "rentable": true,
          "unrentableReason": "ACTIVE_LEASE | REPAIRS_REQUIRED | CLEANING_REQUIRED | UNDER_RENOVATION | USED_BY_FACILITY | OTHER",
          "unrentableReasonNote": "Note why the unit is unavailable"
         },
        "insurable": true,
        "floorName": "1",
        "facilityId": "fac_C7bSZyPT6fp",
        "leaseId": "lease_V4w64pjUwVK",
        "free": false,
        "reserved": false,
        "pricingGroupId": "pg_4a2da7d271a",
        "accessInstructions": "Your unit is located on the first floor, down the hall to the left.",
        "walkthroughOrder": 1,
        "legacyId": "19455",
        "valuePricingTier": "MEDIUM"
      },
      {/* ... */}
    ]
  }
}

Returns metadata for spaces at co-managed facilities

Required Properties

Optional Properties

Unit Set Rentability

POST /v1/units/set-rentability

Request Body — units/set-rentability

{
  "unitId": "unit_GfNkzV4itfk",
  "rentable": false,
  "unrentableReason": "REPAIRS_REQUIRED | CLEANING_REQUIRED | UNDER_RENOVATION | USED_BY_FACILITY | OTHER",
  "unrentableReasonNote": "Note why the unit is unavailable"
}

Sets the rentability of a unit.

Required Properties

Pricing Groups

POST /v1/pricing-groups/search

Request Body — pricing-groups/search

{
  "where": {
    "facilityId": "fac_4a2da7d271a",
    "pricingGroupId": "pg_4a2da7d271a"
  },
  "expansions": [ ... ]
}

Response Body — pricing-groups/search

{
  "status": 200,
  "data": {
    "pricingGroups": [
      {
        "pricingGroupId": "pg_4a2da7d271a",
        "facilityId": "fac_C7bSZyPT6fp",
        "leaseConfigurationId": "leaseconfig_4a2da7d271a",
        "name": "Standard",
        "width": 20,
        "depth": 30,
        "height": null,
        "area": 600,
        "vehicleStorage": false,
        "parking": false,
        "standardRate": 22000,
        "walkInRate": 20000,
        "webRate": 18000,
        "strikethroughRate": 16000,
        "features": [
          "Climate controlled",
          "Ground floor",
          "Drive-up"
        ],
        "discounts": [
          "discount_JgNkzV4itfk",
          "discount_ji43jNjKuf"
        ],
        "availableDiscounts": [
          "discount_JgNkzV4itfk"
        ],
        "availableUnits": 14,
        "reservationsCount": 2,
        "allowOverbooking": false,
        "rentableUnits": 12,
        "valuePricingStrategyId": "vps_4a2da7d271a",
        "valuePricingStatus": "APPROVED",
        "availableTiers": [ "LOWEST", "MEDIUM", "HIGHEST" ],
        "rentableTiers": [ "LOWEST", "MEDIUM", "HIGHEST" ],
        "tierWebRates": [ 18000, 20000, 22000 ]
      },
      {/* ... */}
    ]
  }
}

Search for pricing groups by facilityId or pricingGroupId.

Required Properties

Optional Properties

Response Parameters

Pricing Groups Change Rates

POST /v1/pricing-groups/change-rates

Request Body — pricing-groups/change-rates

{
  "pricingGroups": [
    {
      "pricingGroupId": "pg_4a2da7d271a",
      "standardRate": 23000,
      "webRate": 21000,
      "walkInRate": 22000,
      "strikethroughRate": 25000
    }
  ]
}

Changes rates for pricing groups. Only the rates that are to be updated need to be included in the request.

Required Properties

Optional Properties

Pricing Groups Update Discount Strategies

POST /v1/pricing-groups/update-discount-strategies

Request Body — pricing-groups/update-discount-strategies

{
  "pricingGroups": [
    {
      "pricingGroupId": "pg_4a2da7d271a",
      "assign": [
        {
          "discountStrategyId": "dstrat_4a2da7d271a",
          "visibility": "ALL | CUBBY_ONLY | CALL_CENTER_ONLY"
        }
      ],
      "unassign": [
        "dstrat_Jf8kLm3PqRt"
      ]
    }
  ]
}

Response Body — pricing-groups/update-discount-strategies

{
  "status": 200
}

Assigns discount strategies to pricing groups, changes the visibility of an assignment, and unassigns strategies. Use Discount Strategies Search to get the discountStrategyId of a strategy and the pricing groups that it is assigned to. After the request, Discount Strategies Search shows the change, and so does Discounts Search for a strategy that holds discounts; a strategy with an empty discounts list has no discounts to show there.

The request changes only the strategies that it names. A strategy that is assigned to the pricing group and that the request does not name stays assigned, with the same visibility.

The whole request is one transaction. When the API rejects one entry, nothing changes in any pricing group of the request.

To assign a strategy, add it to assign with a visibility. When the strategy is already assigned to the pricing group, the request changes the visibility of the assignment. To unassign a strategy, add its ID to unassign. Unassigning a strategy that is not assigned to the pricing group does nothing, so you can send the same request again safely.

The request gets a 400, and changes nothing, when:

The request gets a 403 when the API key cannot access a pricing group or a strategy of the request, or when an ID is not known. The request also gets a 403 when its strategies belong to more than one organization. A request whose entries assign and unassign no strategies needs access to the pricing groups only, and changes nothing.

The API checks a request in this order, and the first failure decides the response: the shape of the request (400), then access (403), then the rules on strategies (400). For example, a key without access that sends an assign entry without visibility gets a 400, and a request with a duplicate entry and an unknown strategy ID gets a 403.

Required Properties

Optional Properties

Pricing Groups Find Unit For Tier

POST /v1/pricing-groups/find-unit-for-tier

Request Body — pricing-groups/find-unit-for-tier

{
  "pricingGroupId": "pg_4a2da7d271a",
  "tier": "LOWEST | MEDIUM | HIGHEST"
}

Response Body — pricing-groups/find-unit-for-tier

{
  "status": 200,
  "data": {
    "unitId": "unit_4a2da7d271a"
  }
}

Response Body — pricing-groups/find-unit-for-tier, no unit to rent

{
  "status": 200,
  "data": {
    "unavailableReason": "RESERVED_OUT"
  }
}

Resolves a value-pricing tier to the concrete unit a renter would be assigned, using the same ranking the storefront applies: HIGHEST maps to the best-ranked available unit, LOWEST to the lowest-ranked, and MEDIUM to the unit closest to the middle of the ranking. A unit that a reservation names is skipped for the next one in the tier, unless the facility allows overbooking. Call Pricing Group Search first and offer only the tiers listed in rentableTiers.

Required Properties

Response Parameters

POST /v1/discounts/search

Request Body — discounts/search

{
  "where": {
    "pricingGroupId": "pg_4a2da7d271a",
    "discountId": "discount_JgNkzV4itfk",
    "organizationId": "org_<ID>"
  }
}

Response Body — discounts/search

{
  "status": 200,
  "data": {
    "discounts": [
      {
        "discountId": "discount_JgNkzV4itfk",
        "discountStrategyId": "dstrat_4a2da7d271a",
        "name": "First Month Free",
        "type": "PERPETUAL | PERIODIC | PAID_UPFRONT | ONE_TIME",
        "status": "PUBLISHED | ARCHIVED",
        "startAfterMonths": 1,
        "discountedMonths": 1
        
        // Upfront discount fields
        "upfrontPaidMonths": 1,
        "upfrontFreeMonths": 1,
        
        // Periodic / perpetual discount fields.
        "applicationMethod": "PERCENT_DEDUCTED | AMOUNT_DEDUCTED | AMOUNT_FIXED",
        "applicationAmount": 1000,        // AMOUNT_DEDUCTED / AMOUNT_FIXED: value in cents. PERCENT_DEDUCTED: percentage x100 (10% -> 1000), DEPRECATED (see Changelog)
        "applicationPercentage": 10,      // PERCENT_DEDUCTED only, a percentage (0-100)
        
        // every pricing group the discount applies to, with its channel visibility
        "pricingGroups": [
          {
            "pricingGroupId": "pg_4a2da7d271a",
            "name": "Standard",
            "visibility": "ALL | CUBBY_ONLY | CALL_CENTER_ONLY"
          }
        ]
      },
      {/* ... */}
    ]
  }
}

Search for discounts by pricing group or discount id

A discount expresses its value through applicationAmount and/or applicationPercentage, depending on applicationMethod:

Each discount carries discountStrategyId, the ID of the discount strategy that holds the discount. A discount strategy groups discounts, and an operator assigns the strategy, not the discount, to pricing groups. Use Discount Strategies Search to get the strategy.

Each discount also carries a pricingGroups array listing every pricing group it applies to. Each entry has the pricing group's pricingGroupId and name, plus the visibility (ALL, CUBBY_ONLY or CALL_CENTER_ONLY) configured for that discount in that pricing group — visibility is per discount-and-pricing-group pairing, so the same pricing group may show a different value on a different discount.

Required Properties

POST /v1/discount-strategies/search

Request Body — discount-strategies/search

{
  "where": {
    // exactly one of:
    "organizationId": "org_<ID>"
    // "pricingGroupId": "pg_4a2da7d271a"
    // "discountStrategyId": "dstrat_4a2da7d271a"
  }
}

Response Body — discount-strategies/search

{
  "status": 200,
  "data": {
    "discountStrategies": [
      {
        "discountStrategyId": "dstrat_4a2da7d271a",
        "name": "Spring Promotions",
        "active": true,
        "discounts": [
          "discount_JgNkzV4itfk",
          "discount_ji43jNjKuf"
        ],
        // the pricing groups the strategy is assigned to, at the facilities your API key can access
        "pricingGroups": [
          {
            "pricingGroupId": "pg_4a2da7d271a",
            "name": "Standard",
            "visibility": "ALL | CUBBY_ONLY | CALL_CENTER_ONLY"
          }
        ]
      },
      {/* ... */}
    ]
  }
}

Search for discount strategies by organization, pricing group or discount strategy ID. Send exactly one where field. A request with none, or with more than one, gets a 403. A request without a where object gets a 400.

A discount strategy groups discounts. An operator assigns the strategy, not each discount, to pricing groups. Each assignment has a channel visibility, ALL, CUBBY_ONLY or CALL_CENTER_ONLY, which is the visibility that Discounts Search shows for each discount of the strategy in that pricing group. A strategy belongs to one organization.

Each strategy carries:

pricingGroups lists only pricing groups at the facilities your API key can access. An API key with access to the organization sees every assignment. An API key with access to some facilities sees only the assignments at those facilities. A strategy with no assignment that the key can see is still returned, with an empty pricingGroups list. An unassigned strategy also has an empty list.

With pricingGroupId, the search returns the strategies assigned to that pricing group. Each strategy lists all its assignments that the key can see, not only that pricing group.

Required Properties

POST /v1/value-pricing-strategies/search

Request Body — value-pricing-strategies/search

{
  "where": {
    "valuePricingStrategyId": "vps_4a2da7d271a"
  }
}

Response Body — value-pricing-strategies/search

{
  "status": 200,
  "data": {
    "valuePricingStrategies": [
      {
        "valuePricingStrategyId": "vps_4a2da7d271a",
        "name": "Unit Type Value Pricing",
        "tiers": [
          {
            "tier": "LOWEST",
            "name": "Standard",
            "benefits": [
              "Furthest from the entrance",
              "Best when you rarely visit your unit"
            ]
          },
          {
            "tier": "MEDIUM",
            "name": "Premium",
            "increaseType": "AMOUNT",
            "increaseAmount": 400,
            "benefits": [
              "Convenient Location",
              "Save money and steps"
            ]
          },
          {
            "tier": "HIGHEST",
            "name": "VIP",
            "increaseType": "PERCENTAGE",
            "increasePercentage": 15.00,
            "benefits": [
              "Best Location",
              "Closest to entrance, elevator, or stairs"
            ]
          }
        ]
      }
    ]
  }
}

Search for value-pricing strategies by strategy id, facility id, or organization id. Exactly one where field must be specified.

A value-pricing strategy defines tier increases (good / better / best) relative to a base rate, but does not itself store one. Per-tier effective rates are computed client-side from each pricing group's webRate and the tier's increaseType plus its type-specific amount:

The effective rate of a non-LOWEST tier is then rounded to the nearest 100 cents (a whole dollar), and 50 cents rounds up. Round once, on the exact result. The LOWEST tier rate is webRate, not rounded.

After rounding, each tier rate is at least 100 cents above the tier below it:

For example, at a webRate of 1600 with increases of 10% and 15%, both tiers round to 1800, so MEDIUM is 1800 and HIGHEST is 1900.

tierWebRates on Pricing Group Search returns these rates, so you do not have to calculate them.

Each non-LOWEST tier carries exactly one of increaseAmount or increasePercentage, matching its increaseType. The LOWEST tier never carries increaseType, increaseAmount, or increasePercentage — by definition it has no increase.

Required Properties

Customers

POST /v1/customers/search

Request Body — customers/search

{
  "where": {
    "customerId": "cust_BqaN6zApXCH",
    "facilityId": "fac_C7bSZyPT6fp",
    "organizationId": "org_4a2da7d271a",
    "name": "Bebe Flatley",
    "phone": "+15943590263",
    "email": "bebe.flatley@example.com",
    "lease": "ACTIVE | ANY", 
    "lead": "ACTIVE | ANY"
  },
  "expansions": [ 
    "leads" 
  ]
}

Response Body — customers/search

{
  "status": 200,
  "data": {
    "customers": [
      {
        "customerId": "cust_BqaN6zApXCH",
        "createdAt": "2024-03-01T12:00:00.000000Z",
        "updatedAt": "2024-03-01T12:00:00.000000Z",
        "name": "Bebe Flatley",
        "firstName": "Bebe",
        "lastName": "Flatley",
        "companyName": "Cubby",
        "dateOfBirth": "1990-01-01",
        "military": false,
        "contact": {
          "address": "2055 Earnest Mountain",
          "address2": "Apt. 805",
          "city": "Johnston",
          "state": "Minnesota",
          "country": "USA",
          "zip": "15219",
          "email": "",
          "phone": "+15943590263",
        },
        "idType": "DRIVER_LICENSE | PASSPORT | STATE_ID | MILITARY_ID",
        "idNumber": "123456789",
        "communicationPreferences": {
          "sms": {
            "marketing": false,
            "suppressed": true,
            "suppressionReason": "OPTED_OUT | UNDELIVERABLE"   // null when suppressed is false
          },
          "email": {
            "marketing": true,
            "suppressed": false,
            "suppressionReason": null
          }
        },
        "leases": [
          "lease_V4w64pjUwVK"
        ],
        "unitNames": [
          "A117"
        ],
        "leads": [
          "lead_4a2da7d271a"
        ]
      }
    ],
    "leads": [
      {
        "leadId": "lead_4a2da7d271a",
        "createdAt": "2024-03-01T12:00:00.000000Z",
        "updatedAt": "2024-03-01T12:00:00.000000Z",
        "source": "WALK_IN",
        "status": "NEW",
        "pricingGroupId": "pg_4a2da7d271a",
        "message": "I'm interested in a 10x10 unit",
        "targetMoveInDate": "2024-03-01"
      }    
    ]
  }
}
       

Search for customers

Required Properties

Optional Properties

The leases expansion returns two fields on each customer: leases, the ids of every lease the customer has ever held, and unitNames, the names of the units they currently occupy — the units of their active leases only. A customer with no active lease comes back with an empty unitNames. Unit names are unique within a facility but not across a portfolio, so a customer renting unit A117 at two facilities has A117 twice.

Communication Preferences

Every customer object carries a communicationPreferences object recording, per channel, the contact preference Cubby holds for that customer. It requires no expansion — a customer who has never expressed a preference is treated as opted in to everything. It is PII, so it is skipped for API keys without PII access (see Access to PII).

It contains one object per channel — sms and email — each with the same three fields:

marketing and suppressed are independent, and together express three states:

marketing suppressed The customer's recorded preference for that channel
true false Everything, including promotions. This is the default.
false false Transactional messages only — receipts, payment and account notices, lien and collections notices. No promotions.
false true No automated messages.

marketing: true with suppressed: true is contradictory and is never returned.

These fields report what the customer has asked for. Cubby's own automated messaging honours them, with three exceptions:

So use these fields to decide what you send, and to segment out customers who have asked to be left alone; do not read them as a guarantee that a customer has received nothing. Nothing enforces them on your behalf: POST /v1/messages/sms/send and POST /v1/messages/email/send deliver to a suppressed channel without complaint, and facility staff can contact a customer manually from the Cubby app on a suppressed channel — the app warns them that the customer has opted out, but does not stop them.

suppressionReason is null whenever a channel is not suppressed. When it is suppressed, exactly one reason applies:

Read both fields together. suppressed: true on its own is not an opt-out — permanently suppressing a customer whose phone number simply contains a typo loses a contactable customer — but UNDELIVERABLE on its own is not consent either. Where it reflects contact details Cubby cannot reach, correcting them is the right response; where it reflects a spam complaint or a later opt-out, there is nothing to correct. Resuming marketing on the strength of UNDELIVERABLE alone is never right.

A carrier-level SMS opt-out is recorded when Cubby's next send to that customer is rejected, so sms.suppressed can lag a customer's STOP by one message.

Suppression and its reason are read-only. POST /v1/customers/update sets the marketing flags through its own flat communicationPreferences object (smsMarketing / emailMarketing); note that writing either flag for a customer whose channel is currently suppressed lifts that suppression, and the channel receives transactional messages again.

Customer Update

POST /v1/customers/update

Request Body — customers/update

{
  "customerId": "cust_BqaN6zApXCH",
  "name": "Bebe Flatley",
  "contact": {
    "address": "2055 Earnest Mountain",
    "address2": "Apt. 805",
    "city": "Johnston",
    "zip": "15219"
  },
  "communicationPreferences": {
    "smsMarketing": true,
    "emailMarketing": false
  }
}

Updates customer information. Only the fields that are to be updated need to be included in the request.

Required Properties

Optional Properties

Writing either flag also lifts an existing suppression on that channel: a customer whose channel is suppressed (see Communication Preferences) starts receiving transactional messages again. Read the customer's current state from POST /v1/customers/search first if that matters to you.

Leads

POST /v1/leads/search

Request Body — leads/search

{
  "where": {
    "facilityId": "fac_C7bSZyPT6fp"
  },
  "expansions": [ ... ]
}

Response Body — leads/search

{
  "status": 200,
  "data": {
    "leads": [
      {
        "leadId": "lead_4a2da7d271a",
        "createdAt": "2024-03-01T12:00:00.000000Z",
        "updatedAt": "2024-03-05T09:30:00.000000Z",
        "source": "WALK_IN",
        "origin": "MANAGER",
        "status": "RESERVATION",
        "facilityId": "fac_C7bSZyPT6fp",
        "pricingGroupId": "pg_4a2da7d271a",
        "unitId": "unit_GfNkzV4itfk",
        "message": "I'm interested in a 10x10 unit",
        "targetMoveInDate": "2024-03-01",
        "customerId": "cust_BqaN6zApXCH",
        "coverageType": "ORGANISATION",
        "coverageLevelId": "covlevel_4a2da7d271a",
        "discounts": [ "discount_4a2da7d271a" ],
        "rateType": "CUSTOM_RATE",
        "customRate": 14900,
        "reservedAt": "2024-03-03T15:42:00.000000Z",
        "convertedAt": null,
        "unqualifiedAt": null,
        "leaseMoveInDate": null
      }
    ]
  }
}

Search for leads by facility

Required Properties

One of the following must be provided:

Optional Properties

Response Parameters

The coverage, discount, and rate assignments above are returned regardless of whether they were set through the API or by staff in the Cubby app.

Leads Create

POST /v1/leads/create

Request Body — leads/create

{
  "organizationId": "org_4a2da7d271a",
  "customerId": "cust_BqaN6zApXCH",
  "source": "WALK_IN"
  "customSource": "Google Ads",
  "pricingGroupId": "pg_4a2da7d271a",
  "unitId": "unit_GfNkzV4itfk",
  "facilityId": "fac_C7bSZyPT6fp",
  "message": "I'm interested in a 10x10 unit",
  "targetMoveInDate": "2024-03-01",
  "reservation": false,
  "coverageLevelId": "covlevel_4a2da7d271a",
  "discounts": [ "discount_4a2da7d271a" ],
  "rateType": "CUSTOM_RATE",
  "customRate": 14900,
  "customer": {
      "name": "Bebe Flatley",
      "dateOfBirth": "1990-01-01",
      "military": false,
      "contact": {
        "address": "2055 Earnest Mountain",
        "address2": "Apt. 805",
        "city": "Johnston",
        "state": "Minnesota",
        "country": "USA",
        "zip": "15219",
        "email": "",
        "phone": "+15943590263"
      },
      "communicationPreferences": {
        "smsMarketing": true,
        "emailMarketing": false
      }
    }
}

Response Body — leads/create

{
  "status": 200,
  "data": {
    "leadId": "lead_4a2da7d271a",
    "customerId": "cust_BqaN6zApXCH"
  }
}

Creates a new lead. If customerId is not provided, a new customer will be created. A customerId must belong to a customer of the organization in organizationId; a customer of another organization is rejected with a 400.

The response returns the new lead's leadId and the customerId of the customer it belongs to. Keep the leadId if you intend to follow the lead up: it is the id Leads Update takes, and the one Create Lease and Checkout accept as leadId to convert this specific lead. customerId echoes the request when one was supplied, and is the id of the newly created customer when the lead was created from a customer object — keep it to reuse that customer on a later call instead of re-finding them with Customers Search.

Required Properties

If source is OTHER, customSource must be provided.

Optional Properties

Leads Update

POST /v1/leads/update

Request Body — leads/update

{
  "leadId": "lead_4a2da7d271a",
  "unitId": "unit_GfNkzV4itfk",
  "pricingGroupId": "pg_4a2da7d271a",
  "status": "IN_PROGRESS_HOT",
  "targetMoveInDate": "2024-03-01",
  "coverageLevelId": "covlevel_4a2da7d271a",
  "discounts": [ "discount_4a2da7d271a" ],
  "rateType": "CUSTOM_RATE",
  "customRate": 14900
}

Updates an existing lead. Only the fields to change need to be included: an omitted field is left unchanged, while an explicit null clears the value (where the field is clearable). The same validation rules as leads/create apply to the resulting lead.

A lead that is already a reservation can be updated here, and its fields follow the same rules staff see in the Cubby app: a reservation keeps requiring a pricingGroupId and a targetMoveInDate, so neither can be cleared, and changing either keeps its rate quote in step. Moving a reservation to a different unitId or pricingGroupId re-checks availability the same way creating one does, so a unit another reservation already holds, or a fully booked pricing group, is rejected with a 400 unless the facility allows overbooking; restating the unit or group the reservation already holds is not a move and is always accepted.

The endpoint still performs no reservation transitions. On a reservation, status cannot be changed — leaving RESERVATION cancels the hold and records a cancellation reason, which this endpoint has no field for. Sending the status the reservation already has is accepted and does nothing, so writing back a whole lead object is fine. On any lead, status cannot be set to RESERVATION, nor to CONVERTED — a lead becomes converted only when a lease is created for it, which is what Create Lease and Checkout do.

Required Properties

Optional Properties

POST /v1/leads/get-checkout-link

Request Body — leads/get-checkout-link

{
  "leadId": "lead_4a2da7d271a"
}

Response Body — leads/get-checkout-link

{
  "status": 200,
  "data": {
    "checkoutLink": "https://portal.example.com/checkout/1?token=abc123"
  }
}

Generates a link which can be sent to the customer to rent online: they review the quote held on the lead and pay the move-in charges in the tenant portal. This is the link Cubby sends in its reservation confirmation email and text message. Each request generates a new link, which expires after 30 days.

The request is rejected with a 400 when:

Required Properties

Leases

POST /v1/leases/search

Request Body — leases/search

{
  "where": {
    "facilityId": "fac_C7bSZyPT6fp",
    "activeOnOrAfter": "2024-03-01",
    "activeOnOrBefore": "2024-03-31"
  },
  "expansions": [ ... ]
}

Response Body — leases/search

{
  "status": 200,
  "data": {
    "leases": [
      {
        "leaseId": "lease_V4w64pjUwVK",
        "createdAt": "2024-03-01T12:00:00.000000Z",
        "updatedAt": "2024-03-01T12:00:00.000000Z",
        "moveInDate": "2024-03-06",
        "moveOutDate": null,
        "monthlyRentalAmount": 20800,
        "billingCycle": "MONTHLY",
        "paidThroughDate": "2024-03-06",
        "impliedPaidThroughDate": "2024-05-06",
        "prepaidBalance": 45344,
        "nextChargeAmount": 22672,
        "nextChargeDate": "2024-04-06",
        "delinquencyStartDate": null,
        "overlockNeeded": false,
        "alternativeContacts": [
          {
            "name": "Tyrell Maurice",
            "phone": "+122233344455",
            "email": "tyrel@test.test.test"
          }
        ],
        "coverage": {
          "coverageType": "ORGANISATION",
          "startDate": "2024-05-01",
          "coverageLevelId": "covlevel_4a2da7d271a",
          "premiumAmount": 1500,
          "coverageAmount": 100000
        },
        "coverageChange": {
          "coverageType": "ORGANISATION",
          "startDate": "2024-06-01",
          "coverageLevelId": "covlevel_341f3jNjKuf",
          "premiumAmount": 2000,
          "coverageAmount": 150000
        },
        "privatePolicyNumber": null,
        "privatePolicyExpirationDate": null,
        "coverageAutoenrollable": true,
        "unitContents": "Personal vehicle",
        "storingVehicle": true,
        "vehicle": {
          "type": "SEDAN | SUV | TRUCK | RV | TRAILER | BOAT | PLANE | MOTORCYCLE | OTHER",
          "licenseNumber": "ABC123",
          "state": "MN"
        },
        "customerId": "cust_BqaN6zApXCH",
        "unitId": "unit_GfNkzV4itfk",
        "pricingGroupId": "pg_4a2da7d271a",
        "facilityId": "fac_C7bSZyPT6fp",
        "rentChangeScheduledDate": "2024-06-01",
        "rentChangeNewRentAmount": 22000,
        "scheduledMoveOut": {
          "moveOutDate": "2024-07-01",
          "noticeGivenDate": "2024-06-01",
          "moveOutReason": "OTHER",
          "customReason": "Moving to a new city",
          "moveOutTime": "MORNING"
        }
      }
    ],
    "customers": [
      {
        "customerId": "cust_BqaN6zApXCH",
        "createdAt": "2024-03-01T12:00:00.000000Z",
        "updatedAt": "2024-03-01T12:00:00.000000Z",
        "name": "Bebe Flatley",
        "firstName": "Bebe",
        "lastName": "Flatley",
        "contact": {
          "address": "2055 Earnest Mountain",
          "address2": "Apt. 805",
          "city": "Johnston",
          "state": "Minnesota",
          "country": "USA",
          "zip": "15219",
          "email": "bebe.flatley@example.org",
          "phone": "+15943590263"
        }
      }
    ],
    "units": [],
    "pricingGroups": [],
    "facilities": [],
    "ledgers": [],
    "compliances": []
  }
}

Returns metadata for leases at co-managed facilities

Required Properties

Optional Properties

Response Properties

A payment larger than the lease's outstanding balance does not move paidThroughDate or nextChargeDate. The excess is held as prepaidBalance, and Cubby applies it to each charge as that charge posts on its charge date. paidThroughDate therefore only covers charges that have already posted.

impliedPaidThroughDate answers "how far ahead is this customer paid?". It is the date the lease's current prepaidBalance reaches when it is applied to the upcoming recurring charges, one billing period at a time, and it only counts whole periods the balance fully covers. It is the same date the Cubby app shows as the implied paid-through date on the lease, and the one the ${Lease.ImpliedPaidThroughDate} template variable prints.

For example, a lease is charged $226.72 on the 1st of each month and is paid through 2024-03-31. The customer pays $453.44 on 2024-03-15. The lease then reports paidThroughDate 2024-03-31, prepaidBalance 45344 and impliedPaidThroughDate 2024-05-31. When the 2024-04-01 charge posts, the prepaid balance pays it: paidThroughDate becomes 2024-04-30 and prepaidBalance becomes 22672.

Leases Get Compliances

POST /v1/leases/get-compliances

Request Body — leases/get-compliances

{
  "leaseIds": [
    "lease_V4w64pjUwVK"
  ]
}

Response Body — leases/get-compliances

{
  "status": 200,
  "data": {
    "compliances": [
      {
        "leaseId": "lease_V4w64pjUwVK",
        "documents": [
          {
            "type": "LEASE_AGREEMENT | COVERAGE | IDENTITY | VEHICLE",
            "status": "NOT_REQUIRED" | "INCOMPLETE" | "PENDING_APPROVAL" | "SIGNATURE_NEEDED" | "REJECTED" | "APPROVED"
          }
        ],
        "otherDocuments": [
          {
            "name": "Storage Defender Terms",
            "status": "PENDING_APPROVAL" | "SIGNATURE_NEEDED" | "REJECTED" | "APPROVED"
          }
        ]
      },
      {/* ... */}
    ]
  }
}

Returns the compliance status for leases

Required Properties

Response Parameters

Leases Get Rent Change Schedules

POST /v1/leases/get-rent-change-schedules

Request Body — leases/get-rent-change-schedules

{
  "leaseIds": [
    "lease_V4w64pjUwVK"
  ]
}

Response Body — leases/get-rent-change-schedules

{
  "status": 200,
  "data": {
    "rentChangeSchedules": [
      {
        "leaseId": "lease_V4w64pjUwVK",
        "rentChangeDate": "2024-06-01",
        "noticeDate": "2024-05-01",
      },
      {/* ... */}
    ]
  }
}

Returns the next possible rent change schedule for leases

Required Properties

Response Parameters

Leases Change Rents

POST /v1/leases/change-rents

Request Body — leases/change-rents

{
  "leases": [
    {
      "leaseId": "lease_V4w64pjUwVK",
      "newRentAmount": 22000,
      "rentChangeDate": "2024-06-01",
      "noticeDate": "2024-05-01",      
    }
  ]
}

Schedules rent changes for leases, which will take effect on the next possible rent change date for each lease

Required Properties

Optional Properties

Leases Cancel Rent Changes

POST /v1/leases/cancel-rent-changes

Request Body — leases/cancel-rent-changes

{
  "leaseIds": [
    "lease_V4w64pjUwVK"
  ]
}

Cancels scheduled rent changes for leases

Lease Update Alternative Contacts

POST /v1/leases/update-alternative-contacts

Request Body — leases/update-alternative-contacts

{
  "leaseId": "lease_V4w64pjUwVK",
  "alternativeContacts": [
    {
      "name": "Tyrell Maurice",
      "phone": "+122233344455",
      "email": "tyrel@test.test.test"
    }
  ]
}

Updates the alternative contacts for a lease

Required Properties

Get Upsells

POST /v1/leases/get-upsells

Request Body — leases/get-upsells

{
  "unitId": "unit_GfNkzV4itfk",
  "rentAmount": 20800
}

Response Body — leases/get-upsells

{
  "status": 200,
  "data": {
    "upsells": [
      {
        "feeId": "fee_3kLmN2pQrSt",
        "name": "Climate Control Upgrade",
        "description": "Keeps your unit between 55°F and 85°F year-round",
        "amount": 1500
      },
      {
        "feeId": "fee_8XyZab9CdEf",
        "name": "Premium Access Hours",
        "description": "24/7 facility access",
        "amount": 500
      }
    ]
  }
}

Returns the optional upsell (upgrade) recurring fees available for a unit. Each upsell can be opted into at move-in by passing its feeId in the upsellFeeIds array of Get Move-In Charges, Create Lease, or Checkout. Only active fees configured as optional upgrades on the unit's pricing group are returned. The amount is the recurring charge per billing cycle; for percentage-based fees it is computed against the supplied rentAmount (or the pricing group's standard rate when rentAmount is omitted), so the preview matches what the same rentAmount will be billed in Get Move-In Charges and Create Lease.

An upsell can come with terms the customer has to sign. When such an upsell is added to a lease, its document is attached to the lease for signature automatically; no separate call is needed. Its status is reported in otherDocuments of Leases Get Compliances.

Required Properties

Optional Properties

Preview Charges

POST /v1/leases/preview-charges

Request Body — leases/preview-charges

{
  "leaseId": "lease_jOi8joH3Hu",
  "prepayMonths": 3,
  "paymentMethodId": "pm_V4w64pjUwVK"
}

Response Body — leases/preview-charges

{
  "status": 200,
  "data": {
    "subtotal": 16710,
    "tax": 1545,
    "totalBeforePayments": 18255,
    "totalPaid": 0,
    "prepaidBalance": 0,
    "total": 18255,
    "charges": [
      {
        "type": "RENT",
        "displayName": "Rent",
        "description": "$61.00 (monthly rate) x 3 months",
        "accruesOn": "2026-06-01",
        "accruesThrough": "2026-08-31",
        "amount": 12810,
        "undiscountedAmount": 18300,
        "discounts": [ "Summer Special" ]
      },
      {
        "type": "INSURANCE",
        "displayName": "Coverage",
        "description": "",
        "accruesOn": "2026-06-01",
        "accruesThrough": "2026-08-31",
        "amount": 2400,
        "undiscountedAmount": 2400,
        "discounts": []
      },
      {
        "type": "FEES",
        "displayName": "Admin Fee",
        "description": "",
        "amount": 1500,
        "undiscountedAmount": 1500,
        "discounts": []
      }
    ]
  }
}

Returns a charges breakdown for an existing lease. With no prepayMonths, it returns the lease's current outstanding charges. When prepayMonths is provided, the response also includes the projected charges for prepaying that many billing periods, so total reflects the full cost to bring the lease current and prepay ahead. Any amount already paid toward the outstanding charges (totalPaid) and the lease's prepaid credit balance (prepaidBalance) are deducted from totalBeforePayments to produce total, so total is the amount that would actually be collected. Projected charges account for discounts applied to the specific months they cover (not averaged across the period), coverage premiums, recurring fees, and taxes. All monetary values are in cents.

When paymentMethodId is supplied and resolves to a credit-card method at a facility with credit-card processing fees configured, the fee is added to the breakdown (as a FEES charge) and included in subtotal, tax, totalBeforePayments, and total, so total equals the amount to send to Make Payment with that method to fully settle the charges. Omit paymentMethodId (or supply a non-credit method, or a facility with no fee configured) to get the fee-free charges.

Required Properties

Optional Properties

Response Parameters

Parameter Description
subtotal Subtotal in cents before tax
tax Tax amount in cents
totalBeforePayments Charges in cents before deducting payments and prepaid balance (subtotal + tax)
totalPaid Amount in cents already paid toward the outstanding charges
prepaidBalance The lease's prepaid (credit) balance in cents, applied to offset the charges
total Amount in cents still owed, after deducting totalPaid and prepaidBalance (floored at zero)
charges[].type Charge category. One of RENT, INSURANCE, FEES, DEPOSIT. Taxes are summed into tax and discounts are folded into the parent charge's discounts, so they are not returned as separate charges
charges[].displayName Human-readable name of the charge
charges[].description Charge description, may be empty. A prepaid charge on a monthly lease reads "$61.00 (monthly rate) x 3 months"; on a weekly, bi-weekly or 28-day lease it reads "$61.00 (period rate) x 3 periods"
charges[].accruesOn Charge period start date (ISO-8601), omitted for point charges
charges[].accruesThrough Charge period end date (ISO-8601), omitted for point charges
charges[].amount Charge amount in cents, after discounts
charges[].undiscountedAmount Charge amount in cents, before discounts
charges[].discounts Names of the discount programs applied to the charge

Error Conditions

Get Move-In Charges

POST /v1/leases/get-move-in-charges

Request Body — leases/get-move-in-charges

{
  "unitId": "unit_GfNkzV4itfk",
  "moveInDate": "2024-03-06",
  "rentAmount": 20800,
  "coverageLevelId": "covlevel_4a2da7d271a",
  "chargeDeposit": true,
  "chargeMoveInFee": true,
  "taxExempt": false,
  "storingVehicle": true,
  "discounts": [ "discount_JgNkzV4itfk" ],
  "upsellFeeIds": [ "fee_3kLmN2pQrSt" ],
  "products": [ { "productId": "prod_8XyZab9CdEf", "quantity": 1 } ]
}

Response Body — leases/get-move-in-charges

{
  "status": 200,
  "data": {
    "subtotal": 35676,
    "tax": 3018,
    "total": 38694,
    "charges": [
      {
        "accruesOn": "2024-10-21",
        "accruesThrough": "2024-11-20",
        "type": "RENT",
        "displayName": "Rent",
        "description": "",
        "amount": 21000,
        "undiscountedAmount": 21000,
        "discounts": []
      },
      {
        "type": "COVERAGE",
        "displayName": "Coverage",
        "description": "",
        "accruesOn": "2024-10-21",
        "accruesThrough": "2024-11-20",
        "amount": 800,
        "undiscountedAmount": 800,
        "discounts": []
      },
      {
        "type": "FEES",
        "displayName": "Move-in Fee",
        "description": "",
        "amount": 2500,
        "undiscountedAmount": 2500,
        "discounts": []
      },
      {
        "type": "DEPOSIT",
        "displayName": "Security Deposit",
        "description": "",
        "amount": 10000,
        "undiscountedAmount": 10000,
        "discounts": []
      },
      {
        "type": "RETAIL_SALES",
        "displayName": "Disc Lock 70mm",
        "description": "",
        "productId": "prod_8XyZab9CdEf",
        "quantity": 1,
        "unitPrice": 1376,
        "amount": 1376,
        "undiscountedAmount": 1376,
        "discounts": []
      }
    ]
  }
}

Returns the charges for a lease move-in.

Merchandise can be added to the move-in with products. Each product appears as its own entry in charges with type RETAIL_SALES, the product name as displayName, and productId, quantity, unitPrice and the line amount (unitPrice × quantity, before tax). Sales tax on merchandise is included in tax, so total is the full amount a Checkout with the same products will charge. Merchandise is taxed under the facility's retail tax rules regardless of taxExempt, which applies to the lease charges only. Prices come from Products Search at the time of the call and are not reserved; if a price changes before checkout, the checkout total will differ and the checkout is rejected.

Required Properties

Optional Properties

Error Conditions

Create Lease

POST /v1/leases/create

Creates a new lease without collecting payment. Use this endpoint when payment is handled separately or is not required at move-in time. To create a lease and collect payment in a single step, use the Checkout endpoint instead.

Merchandise cannot be sold without a payment, so this endpoint does not accept products; sending a non-empty products array returns a 400 error. Use Checkout to sell merchandise with the lease.

At a facility that does not allow overbooking, a rental is rejected with a 400 and the error Pricing group is fully booked. when the pricing group's reservations already claim every free unit. The message does not change, so a client can match on it to recognise this rejection. A customer converting their own reservation is never rejected for it. rentableUnits on Pricing Group Search already accounts for reservations, so offer a group only while it is above 0.

Request Body — leases/create

{
  "unitId": "unit_GfNkzV4itfk",
  "moveInDate": "2024-03-06",
  "rentAmount": 20800,
  "leadId": "lead_7pQvR2xTmWs",
  "coverageLevelId": "covlevel_4a2da7d271a",
  "chargeDeposit": true,
  "chargeMoveInFee": true,
  "taxExempt": false,
  "storingVehicle": true,
  "discounts": [ "discount_JgNkzV4itfk" ],
  "upsellFeeIds": [ "fee_3kLmN2pQrSt" ],
  "customerId": "cust_BqaN6zApXCH",
  "customer": {
      "name": "Bebe Flatley",
      "contact": {
        "address": "2055 Earnest Mountain",
        "address2": "Apt. 805",
        "city": "Johnston",
        "state": "Minnesota",
        "country": "USA",
        "zip": "15219",
        "email": "bebe.flatley@example.org",
        "phone": "+15943590263"
      },
      "communicationPreferences": {
        "smsMarketing": true,
        "emailMarketing": false
      }
   },
   "source": "WEBSITE",
   "customSource": null
}

Response Body — leases/create

{
  "status": 200,
  "data": {
    "leaseId": "lease_V4w64pjUwVK"
  }
}

Required Properties

Optional Properties

Checkout

POST /v1/leases/checkout

Creates a new lease and collects payment for the move-in charges in a single step. Accepts all the same fields as Create Lease, plus a required payment object.

A lead is created first, then the lease is created and the move-in charges are charged. If the payment is declined, the lease is rolled back but the lead survives. The same applies when the rental is rejected with Pricing group is fully booked. because it would take reserved inventory, as described under Create Lease: the rejection is returned before the payment step, so nothing is charged. If the payment succeeds, the response includes the leaseId, paymentTransactionId, and paymentSuccess: true. If the payment is declined, leaseId is null, paymentSuccess is false, and paymentFailureInfo contains the reason.

The move-in charges can be paid with a credit card or by direct debit — ACH at USD facilities, ACSS at Stripe-backed CAD facilities. A methodType the facility's setup does not allow is rejected with a 400 error. Direct-debit payments settle asynchronously: paymentSuccess: true means the debit was accepted by the payment gateway, but it can still be returned later (e.g. insufficient funds), in which case the amount is charged back to the lease.

When enableAutoPay is true, the payment method supplied in payment is also saved to the customer as a reusable payment method and the new lease is enrolled in AutoPay using it. Saving never affects the charge: if it fails the payment still stands, and the paymentMethodId and autoPayEnabled response fields report the outcome of each. A card is saved only after the charge succeeds; an ACH or ACSS bank account is saved before the debit, because Stripe cannot save it afterwards. The saved method is only retained when the payment succeeds — a declined payment rolls it back together with the lease. When enableAutoPay is omitted or false, the payment method is charged but not saved — paymentMethodId is null and autoPayEnabled is false.

The payment.amount must match the total from Get Move-In Charges exactly, otherwise a 400 error is returned.

Merchandise can be sold with the lease by passing products, the same array accepted by Get Move-In Charges. The move-in charges and the merchandise are charged as one payment, so payment.amount must equal the get-move-in-charges total for the same products. A checkout that includes merchandise produces a payment in the Lease/Merch category (a checkout without merchandise stays in the Lease category). Merchandise is a sale, not a charge on the lease: it is not part of the lease balance, it does not appear in Ledger Search, and it is reported under retail sales and inventory in Cubby. Until item-level merchandise refunds ship, a Lease/Merch payment can only be refunded in full, from the Cubby app.

Request Body — leases/checkout

{
  "unitId": "unit_GfNkzV4itfk",
  "moveInDate": "2024-03-06",
  "rentAmount": 20800,
  "leadId": "lead_7pQvR2xTmWs",
  "coverageLevelId": "covlevel_4a2da7d271a",
  "chargeDeposit": true,
  "chargeMoveInFee": true,
  "taxExempt": false,
  "storingVehicle": true,
  "discounts": [ "discount_JgNkzV4itfk" ],
  "upsellFeeIds": [ "fee_3kLmN2pQrSt" ],
  "products": [ { "productId": "prod_8XyZab9CdEf", "quantity": 1 } ],
  "customerId": "cust_BqaN6zApXCH",
  "customer": {
      "name": "Bebe Flatley",
      "contact": {
        "address": "2055 Earnest Mountain",
        "address2": "Apt. 805",
        "city": "Johnston",
        "state": "Minnesota",
        "country": "USA",
        "zip": "15219",
        "email": "bebe.flatley@example.org",
        "phone": "+15943590263"
      }
   },
   "source": "WEBSITE",
   "customSource": null,
   "enableAutoPay": true,
   "payment": {
      "amount": 38694,
      "address": {
          "address": "2055 Earnest Mountain",
          "address2": "Apt. 805",
          "city": "Johnston",
          "state": "Minnesota",
          "country": "USA",
          "zip": "15219",
          "email": "bebe.flatley@example.com",
          "phone": "+15943590263"
      },
      "methodType": "CREDIT_CARD",
      "token": "pm_card_visa",
      "cardBrand": "VISA",
      "cardExpiration": "03/24",
      "cardLastFour": "1234",
      "cardHolder": "Bebe Flatley"
   }
}

Payment object — ACH direct debit variant

{
   "payment": {
      "amount": 37198,
      "methodType": "ACH",
      "token": "pm_usBankAccount_success",
      "achAccountType": "CHECKING",
      "achAccountHolder": "Bebe Flatley",
      "achAccountLastFour": "6789"
   }
}

Payment object — ACSS direct debit variant

{
   "payment": {
      "amount": 37198,
      "methodType": "ACSS",
      "token": "pm_acssDebit_success",
      "acssHolderType": "PERSONAL",
      "acssAccountHolder": "Bebe Flatley",
      "acssAccountLastFour": "6789"
   }
}

Response Body (success) — leases/checkout

{
  "status": 200,
  "data": {
    "leaseId": "lease_V4w64pjUwVK",
    "paymentTransactionId": "payment_8kLmN2pQrSt",
    "paymentSuccess": true,
    "paymentMethodId": "pm_V4w64pjUwVK",
    "autoPayEnabled": true
  }
}

Response Body (declined) — leases/checkout

{
  "status": 200,
  "data": {
    "leaseId": null,
    "paymentTransactionId": "payment_8kLmN2pQrSt",
    "paymentSuccess": false,
    "paymentFailureInfo": {
      "reason": "Insufficient funds",
      "explanation": "The account did not have sufficient funds to cover the transaction amount."
    },
    "paymentMethodId": null,
    "autoPayEnabled": false
  }
}

Required Properties

All properties from Create Lease, plus:

Optional Properties

All optional properties from Create Lease also apply, plus:

Response Parameters

Cancel Lease

POST /v1/leases/cancel-lease

Request Body — leases/cancel-lease

{
  "leaseId": "lease_V4w64pjUwVK"
}

Cancels a lease which has not yet started (i.e. the move-in date is in the future)

Required Properties

Schedule Move Out

POST /v1/leases/schedule-move-out

Request Body — leases/schedule-move-out

{
  "leaseId": "lease_V4w64pjUwVK",
  "moveOutDate": "2026-04-01",
  "noticeGivenDate": "2026-02-24",
  "moveOutReason": "NO_NEED",
  "customReason": null,
  "moveOutTime": "MORNING",
  "disableAutoPay": true
}

Schedules a move-out for a lease

Required Properties

Optional Properties

A lease can have only one scheduled move-out. Scheduling another one is rejected with a 400; change the existing one with Update Scheduled Move Out.

Update Scheduled Move Out

POST /v1/leases/update-scheduled-move-out

Request Body — leases/update-scheduled-move-out

{
  "leaseId": "lease_V4w64pjUwVK",
  "moveOutDate": "2026-05-01",
  "moveOutTime": "AFTERNOON"
}

Changes the scheduled move-out of a lease.

Every property except leaseId is optional and independent: a property you omit is left as it is, so sending a whole move-out back unchanged is safe, and so is sending only the one field you mean to change. moveOutDate, noticeGivenDate, moveOutReason and moveOutTime cannot be cleared, because a scheduled move-out cannot exist without them — an explicit null for any of them is rejected with a 400.

Required Properties

Optional Properties

POST /v1/leases/get-payment-link

Request Body — leases/get-payment-link

{
  "leaseIds": ["lease_V4w64pjUwVK", "lease_GfNkzV4itfk"]
}

Response Body — leases/get-payment-link

{
  "status": 200,
  "data": {
    "paymentLink": "https://pay.example.com/1?token=abc123"
  }
}

Generates a payment link which can be sent to the tenant to make a payment for one or more leases

Required Properties

POST /v1/leases/get-documents-link

Request Body — leases/get-documents-link

{
  "leaseId": "lease_V4w64pjUwVK"
}

Response Body — leases/get-documents-link

{
  "status": 200,
  "data": {
    "documentsLink": "https://portal.example.com/leases/lease_1/documents?token=abc123"
  }
}

Generates a link which can be sent to the tenant to view, manage, and sign documents for a lease.

Required Properties

Make Payment

POST /v1/leases/make-payment

Request Body — leases/make-payment

{
  "leaseId": "lease_V4w64pjUwVK",
  "paymentMethodId": "pm_V4w64pjUwVK",
  "amount": 1500
}

Response Body — leases/make-payment

{
  "status": 200,
  "data": {
    "payment": {
      "paymentId": "payment_V4w64pjUwVK",
      "createdAt": "2024-03-01T12:00:00",
      "amount": 1500,
      "customerId": "cust_BqaN6zApXCH",
      "methodType": "CREDIT_CARD",
      "status": "SUCCEEDED",
      "reason": "Approved",
      "explanation": null
    }
  }
}

Makes a payment for a lease using a saved payment method. If the amount paid is more than the amount due, the overpayment will be transferred to the prepaid balance of the lease.

When the payment method is a credit card and the facility has credit-card processing fees configured in its payment settings, the fee is deducted from amount — the card is charged exactly amount, and the remainder is applied to the lease. To fully settle a balance in this case, charge the fee-inclusive total returned by Preview Charges for the same paymentMethodId. Facilities without credit-card fees configured are unaffected.

Required Properties

Optional Properties

Response Parameters

The response wraps a single payment object:

A declined payment is still a 200

A decline is a completed request, not a failed one: the response is a 200 carrying a payment object like any other. Read status, not the HTTP code — SUCCEEDED means the money moved, DECLINED or FAILED means it did not, with reason and explanation describing why.

PENDING is neither. The gateway gave no usable answer, typically a timeout, and the outcome is not yet known. Cubby may already have applied the payment to the lease, so do not retry it — that risks charging the customer twice — and do not show it as a decline. Re-check with Payments Search until it resolves.

A non-2xx response is different again: the request itself was rejected and no payment was attempted. An unknown leaseId or paymentMethodId, a payment method belonging to a different customer, and a non-positive amount are all rejected this way.

Waive Charge

POST /v1/leases/waive-charge

Request Body — leases/waive-charge

{
  "leaseId": "lease_V4w64pjUwVK",
  "bookEntryId": "be_JfNkzV4itfk",
  "expectedWaivableAmount": 10000,
  "amount": 2500,
  "reason": "Service recovery: gate out of order"
}

Response Body — leases/waive-charge

{
  "status": 200,
  "data": {
    "waivedAmount": 2500,
    "waivedTax": 225,
    "totalWaived": 2725,
    "totalDue": 8175
  }
}

Waives all or part of one charge on a lease. The waive is applied immediately: there is no approval step in Cubby, because holding the Credits and Waives role is the approval. Cubby still records the waive as an approved request, with your reason, where staff review waives.

A waive is booked against the charge's own period and category and reduces what the customer owes now. If the lease was paid up, so that the waive leaves it owing less than nothing, the excess moves to its prepaid balance. RENT, FEE, DAMAGE, COVERAGE and DEPOSIT charges can be waived, and their tax is waived in proportion. Taxes and waives cannot be waived directly; a charge that cannot be waived has a waivableAmount of 0.

To waive a charge:

  1. Call Ledger Search with the lease's leaseId and the waivableAmounts expansion. Each charge carries a waivableAmount: how much of it, before tax, can still be waived.
  2. Send that waivableAmount back as expectedWaivableAmount, with the charge's bookEntryId.

If the charge has been waived since you read it, by you or anyone else, the request is rejected with error code 8101 and nothing is waived. This makes a retry safe: if a request timed out but was applied, the retry carries the old waivableAmount and is refused, so the charge is not waived twice. After an 8101, search the ledger again and decide whether a waive is still needed.

Required Properties

Optional Properties

Response Parameters

Error Conditions

Issue Credit

POST /v1/leases/issue-credit

Request Body — leases/issue-credit

{
  "leaseId": "lease_V4w64pjUwVK",
  "amount": 1500,
  "expectedCreditBalance": 0,
  "reason": "Retention offer"
}

Response Body — leases/issue-credit

{
  "status": 200,
  "data": {
    "creditBalance": 1500
  }
}

Adds a credit to a lease. The credit is applied immediately: there is no approval step in Cubby, because holding the Credits and Waives role is the approval.

A credit does not reduce what the customer owes now. It is held on the lease, as credit in the Ledger Search balances, and Cubby uses it to pay the lease's next recurring charges as they post: rent first, then coverage, then automated fees such as late fees. A charge a manager adds by hand does not use it. To reduce a charge the customer already owes, use Waive Charge instead. A credit belongs to one lease: a customer with several leases is credited lease by lease, and each credit is used on its own lease's charge dates.

To issue a credit:

  1. Call Ledger Search with the lease's leaseId and read balances.credit.
  2. Send that value back as expectedCreditBalance, with the amount to add.

If the lease's credit balance has changed since you read it, the request is rejected with error code 8101 and no credit is issued. This catches most retries of a request that timed out but was applied: the retry carries the old balance and is refused. It cannot catch one case. If a charge posts and uses up the credit before you retry, the balance can be back to the value you read, and the retry is applied as a second credit. Before retrying a request whose outcome you don't know, check Ledger Search for charges posted since you read the balance, since one of them may have used your credit. After an 8101, search the ledger again and decide whether a credit is still needed.

The facility must have credits enabled, as new facilities do.

Required Properties

Response Parameters

Error Conditions

Write Off Balance

POST /v1/leases/write-off-balance

Request Body — leases/write-off-balance

{
  "leaseId": "lease_V4w64pjUwVK",
  "amount": 12345,
  "reason": "Bad debt, sent to collections",
  "bypassApproval": true
}

Response Body — leases/write-off-balance

{
  "status": 200,
  "data": {
    "status": "APPLIED",
    "amount": 12345
  }
}

Writes off the whole outstanding balance of a moved-out lease. A lease that is still active cannot be written off, and only the whole balance can be written off, never part of it.

With bypassApproval true, the balance is written off at once and Cubby records an approved write-off request with your reason, where staff review write-offs. With false, the request waits in Cubby's approval queue and nothing is written off until staff approve it in Cubby. The API does not report what happens to it after that; read the lease's balance from Ledger Search to see whether it was written off.

To write off a balance:

  1. Call Ledger Search with the lease's leaseId and read balances.totalDue.
  2. Send that value as amount.

If the balance has changed since you read it, the request is rejected with error code 8101 and nothing is written off. If a write-off of the lease is already waiting for approval, the request is rejected with error code 8102. A retry of a request that timed out is therefore safe: if the first request was applied, the balance is now 0 and the retry gets 8101; if it was queued, the retry gets 8102.

Required Properties

Response Parameters

Error Conditions

Refund Balance

POST /v1/leases/refund-balance

Request Body — leases/refund-balance

{
  "leaseId": "lease_V4w64pjUwVK",
  "amount": 4000,
  "reason": "Overpaid at move-out",
  "bypassApproval": true,
  "checkNumber": "10234",
  "address": {
    "address": "100 Main Street",
    "city": "New York",
    "state": "NY",
    "zip": "10025",
    "country": "US"
  }
}

Response Body — leases/refund-balance

{
  "status": 200,
  "data": {
    "status": "APPLIED",
    "amount": 4000
  }
}

Refunds the whole prepaid balance of a moved-out lease by check: money the customer paid that no charge has used. A lease that is still active cannot be refunded this way, and only the whole prepaid balance can be refunded.

With bypassApproval true, you have already issued the check: send its checkNumber, and Cubby takes the amount off the lease at once and records an approved balance refund request with your reason and the check number. With false, the request waits in Cubby's approval queue, and staff enter the check number when they approve it.

To refund a balance:

  1. Call Leases Search with the lease's leaseId and read prepaidBalance.
  2. Send that value as amount.

If the prepaid balance has changed since you read it, the request is rejected with error code 8101 and nothing is refunded. If a balance refund of the lease is already waiting for approval, the request is rejected with error code 8102.

Required Properties

Optional Properties

Response Parameters

Error Conditions

Enable AutoPay

POST /v1/leases/enable-auto-pay

Request Body — leases/enable-auto-pay

{
  "leaseId": "lease_V4w64pjUwVK",
  "paymentMethodId": "pm_V4w64pjUwVK"
}

Enables AutoPay for a lease using a saved payment method. With AutoPay enabled, the tenant will be automatically charged for the amount due on the next charge date of the lease, and on subsequent charge dates until AutoPay is disabled.

Required Properties

Disable AutoPay

POST /v1/leases/disable-auto-pay

Request Body — leases/disable-auto-pay

{
  "leaseId": "lease_V4w64pjUwVK"
}

Disables AutoPay for a lease.

Payment Methods

POST /v1/payment-methods/search

Request Body — payment-methods/search

{
  "where": {
    "customerId": "cust_BqaN6zApXCH"
  }
}

Response Body — payment-methods/search

{
  "status": 200,
  "data": {
    "paymentMethods": [
      {
        "paymentMethodId": "pm_V4w64pjUwVK",
        "type": "CREDIT_CARD | ACH | ACSS",
        "paymentServiceProvider": "STRIPE | PAYABLI | DEMO",
        "cardBrand": "VISA | MASTERCARD | AMERICAN_EXPRESS | DISCOVER | DINERS_CLUB | JCB | MAESTRO | UNIONPAY | MIR | ELO | HIPER | HIPERCARD | FORBRUGSFORENINGEN | VISA_ELECTRON | UNKNOWN",
        "cardLastFour": "1234",
        "cardExpiration": "03/24",
        "achAccountLastFour": "1234",
        "achAccountType": "CHECKING | SAVINGS",
        "achAccountHolder": "Bebe Flatley",
        "acssAccountHolderType": "PERSONAL | BUSINESS",
        "acssAccountHolder": "Bebe Flatley",
        "acssAccountLastFour": "0001"
      }
    ]
  }
}

Search for saved payment methods by customer. Every saved method is returned, including methods held at a payment provider the customer's facilities no longer use — read paymentServiceProvider to tell them apart, and only charge a method at a facility running on the same provider.

Required Properties

Response Properties

Generating a Payment Token

Before creating a payment method in Cubby, you must first generate a single-use token through your organization's payment gateway. The token is then passed to the Create Payment Method endpoint below as the token property, or to Checkout as payment.token.

Cubby supports two payment gateways — Stripe and Payabli — configured per facility. A given facility uses exactly one of them. To determine which gateway a facility uses, call the Facilities Search endpoint and read the paymentServiceProvider field (STRIPE or PAYABLI) on the facility. Cubby provides the corresponding publishable key. Follow the flow for that facility's gateway below; the resulting token is sent to the Cubby API in exactly the same way regardless of gateway.

Each gateway tokenizes credit cards and bank accounts differently, so follow the flow below that matches both the facility's gateway and the methodType you are collecting.

Stripe

Use this flow for facilities whose paymentServiceProvider is STRIPE. Your Stripe publishable key (STRIPE_PK) will be provided by Cubby.

Begin by loading the Stripe.js library on the page where you collect card details.

Step 1a: Load Stripe.js

<script src="https://js.stripe.com/clover/stripe.js"></script>

With the library loaded, create a Stripe instance with your publishable key and an Elements group in setup mode with manual payment-method creation. This renders the card input fields your customer will fill in.

Step 1b: Initialize Stripe Elements

const stripe = Stripe(STRIPE_PK);
const stripeElements = stripe.elements({
    loader: 'auto',
    mode: 'setup',
    currency: 'usd',
    payment_method_types: ['card'],
    paymentMethodCreation: 'manual',
});

Once the customer has entered their card details, submit the Elements form and create a payment method, supplying the cardholder's billing details. The resulting paymentMethod.id is the token you will pass to the Cubby API.

Step 2: Create a Stripe payment method

await stripeElements.submit();
const { paymentMethod, error } = await stripe.createPaymentMethod({
    elements: stripeElements,
    params: {
        billing_details: {
            name: 'Bebe Flatley',
            email: 'bebe.flatley@example.com',
            phone: '+15943590263',
            address: {
                country: 'US',
                postal_code: '15219',
                state: null,
                city: null,
                line1: null,
                line2: null,
            },
        },
    },
});
Bank accounts (ACH)

For a US bank account, initialize Elements exactly as above but with payment_method_types: ['us_bank_account'], and render the bank-account input instead of the card input. Collect the account holder's name alongside it.

Step 2 (ACH): Create a Stripe payment method from a bank account

await stripeElements.submit();
const { paymentMethod, error } = await stripe.createPaymentMethod({
    elements: stripeElements,
    params: {
        billing_details: {
            name: 'Bebe Flatley',
        },
    },
});

The resulting paymentMethod.id is the token. Read the last four digits from paymentMethod.us_bank_account.last4 for the achAccountLastFour property.

Bank accounts (ACSS)

Canadian pre-authorized debit does not use Elements. Collect the account, transit and institution numbers yourself and pass them directly to createPaymentMethod. An email address is required by Stripe for the pre-authorized debit agreement.

Step 2 (ACSS): Create a Stripe payment method from a Canadian bank account

const { paymentMethod, error } = await stripe.createPaymentMethod({
    type: 'acss_debit',
    billing_details: {
        name: 'Bebe Flatley',
        email: 'bebe.flatley@example.com',
    },
    acss_debit: {
        account_number: '000123456789',
        transit_number: '11000',
        institution_number: '000',
    },
});

The resulting paymentMethod.id is the token.

Payabli

Use this flow for facilities whose paymentServiceProvider is PAYABLI. Payabli card capture is powered by Basis Theory web elements; install the @basis-theory/web-elements package to begin.

First, add a container element to your page. Basis Theory will mount its secure card input into this element.

Step 1a: Add a mount point

<div id="card-element"></div>

Initialize Basis Theory with the publishable key (BT_PK) and environment (test or production) provided by Cubby, then create a card element and mount it into the container you just added.

Step 1b: Initialize Basis Theory

import { basistheory } from '@basis-theory/web-elements';

const bt = await basistheory(BT_PK, { environment: 'test' });
const cardElement = bt.createElement('card', {
    autoComplete: {
        number: 'on',
        expirationDate: 'on',
        csc: 'on',
    },
});
cardElement.mount('#card-element');

Once the customer has entered their card details, create a token from the card element. The resulting token.id is the token you will pass to the Cubby API. Do not use bt.tokenIntents.create — token intents are not accepted by the Cubby API and will fail when the payment is processed.

Step 2: Create a Basis Theory token

const token = await bt.tokens.create({
    type: 'card',
    data: cardElement,
});
Bank accounts (ACH)

For a US bank account, create two text elements — one for the routing number and one for the account number — and mount them the same way as the card element. Tokenize both together as a bank token.

Step 2 (ACH): Create a Basis Theory bank token

const token = await bt.tokens.create({
    type: 'bank',
    data: {
        routing_number: routingNumberElement,
        account_number: accountNumberElement,
    },
});

The resulting token.id is the token. As with cards, do not use bt.tokenIntents.create.

ACSS is not available on Payabli facilities — Canadian pre-authorized debit requires a Stripe-backed facility, and a request for it is rejected with a 400 error.

Send the token to Cubby

Use the token produced by your gateway — Stripe's paymentMethod.id or Basis Theory's token.id — as the token value in the Create Payment Method endpoint below, or as payment.token when paying move-in charges through Checkout.

Create Payment Method

POST /v1/payment-methods/create

Request Body — payment-methods/create

{
    "token": "pm_card_visa",
    "methodType": "CREDIT_CARD",
    "cardBrand": "VISA",
    "cardExpiration": "03/24",
    "cardLastFour": "1234",
    "cardHolder": "Bebe Flatley",
    "customerId": "cust_BqaN6zApXCH",
    "contact": {
        "address": "2055 Earnest Mountain",
        "address2": "Apt. 805",
        "city": "Johnston",
        "state": "Minnesota",
        "country": "USA",
        "zip": "15219",
        "email": "bebe.flatley@example.com",
        "phone": "+15943590263"
    }
}

Response Body — payment-methods/create

{
  "status": 200,
  "data": {
    "paymentMethodId": "pm_V4w64pjUwVK"
  }
}

Creates a new payment method for a customer using a token generated by the payment gateway.

The caller must ensure the payment method has been successfully validated and authorized by the payment gateway before submission. Unvalidated payment methods may be rejected by the payment gateway when used for a transaction.

Required Properties

Products

POST /v1/products/search

Request Body — products/search

{
  "where": {
    "facilityId": "fac_C7bSZyPT6fp"
  }
}

Response Body — products/search

{
  "status": 200,
  "data": {
    "products": [
      {
        "productId": "prod_8XyZab9CdEf",
        "name": "Disc Lock 70mm",
        "category": "Locks",
        "unitPrice": 1376,
        "tracked": true,
        "quantity": 12
      },
      {
        "productId": "prod_3kLmN2pQrSt",
        "name": "Box - 1.5 Cube (16x12x12)",
        "category": "Boxes",
        "unitPrice": 449,
        "tracked": false,
        "quantity": null
      }
    ]
  }
}

Returns the merchandise a facility sells: every active product assigned to the facility with a price above zero, with the price the facility charges for it. A product priced at zero is not listed, because it cannot be sold through checkout. Use the productId values in the products property of Get Move-In Charges and Checkout to sell merchandise with a lease.

unitPrice is the facility's own retail price for the product when one is configured, otherwise the product's default price, in cents and before tax. It is the price at the time of the call and is not reserved.

quantity is informational. For a product whose stock the facility tracks it is the current stock on hand and may be zero or negative, because Cubby accepts sales regardless of stock. Products that do not track stock return null. The API neither hides nor blocks out-of-stock products; whether to offer them is the integrator's decision.

Required Properties

Response Parameters

Ledgers

POST /v1/ledgers/search

Request Body — ledgers/search

{
  "where": {
    "leaseId": "lease_V4w64pjUwVK",
    "facilityId": "fac_C7bSZyPT6fp"
  }
}

Response Body — ledgers/search

{
  "status": 200,
  "data": {
    "ledgers": [
      {
        "leaseId": "lease_NpZ1BGBoWrS",
        "balances": {
          "totalDue": 1500,
          "deposit": 20000,
          "prepaid": 0,
          "credit": 0
        },
        "bookEntries": [
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "CHARGE",
            "entryTime": "2024-08-26T07:30:50.689691",
            "amount": 2500,
            "amountPaid": 2500,
            "paymentTime": "2024-08-26T07:30:50.826992",
            "details": {
              "category": "FEE",
              "description": "Move-in Fee",
              "waive": false
            }
          },
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "CHARGE",
            "entryTime": "2024-08-26T07:30:50.689691",
            "amount": 20000,
            "amountPaid": 20000,
            "paymentTime": "2024-08-26T07:30:50.826992",
            "details": {
              "category": "DEPOSIT",
              "waive": false
            }
          },
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "CHARGE",
            "entryTime": "2024-08-26T07:30:50.689691",
            "amount": 10000,
            "amountPaid": 10000,
            "paymentTime": "2024-08-26T07:30:50.826992",
            "details": {
              "category": "RENT",
              "accruesOn": "2024-01-01"
              "accruesThrough": "2024-01-31",
              "waive": false
            }
          },
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "CHARGE",
            "entryTime": "2024-08-26T07:30:50.689691",
            "amount": 450,
            "amountPaid": 450,
            "paymentTime": "2024-08-26T07:30:50.826992",
            "details": {
              "category": "TAX_STATE",
              "accruesOn": "2024-01-01",
              "accruesThrough": "2024-01-31",
              "description": "4.5%",
              "waive": false
            }
          },
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "CHARGE",
            "entryTime": "2024-08-26T07:30:50.689691",
            "amount": 50,
            "amountPaid": 50,
            "paymentTime": "2024-08-26T07:30:50.826992",
            "details": {
              "category": "TAX_LOCAL",
              "accruesOn": "2024-01-01",
              "accruesThrough": "2024-01-31",
              "description": "0.5%",
              "waive": false
            }
          },
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "PAYMENT",
            "entryTime": "2024-08-26T07:30:50.826992",
            "amount": -33000,
            "details": {
              "method": "CASH"
            }
          },
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "CHARGE",
            "entryTime": "2024-08-26T07:30:51.983019",
            "amount": 30000,
            "amountPaid": 30000,
            "paymentTime": "2024-08-26T07:30:51.983019",
            "details": {
              "category": "PREPAID",
              "waive": false
            }
          },
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "PAYMENT",
            "entryTime": "2024-08-26T07:30:51.983019",
            "amount": -30000,
            "details": {
              "method": "CASH"
            }
          },
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "CHARGE",
            "entryTime": "2024-08-26T07:30:52.327646",
            "amount": 1500,
            "amountPaid": 0,
            "details": {
              "category": "FEE",
              "description": "Manual Fee",
              "waive": false
            }
          },
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "PAYMENT",
            "entryTime": "2024-08-26T07:30:52.431402",
            "amount": 30000,
            "details": {
              "method": "CASH"
            }
          },
          {
            "bookEntryId": "be_JfNkzV4itfk",
            "type": "PAYMENT",
            "entryTime": "2024-08-26T07:30:52.43866",
            "amount": -30000,
            "details": {
              "method": "PREPAID"
            }
          },
          {
            "bookEntryId": "be_RMhnGWgFSnp",
            "type": "CHARGE",
            "entryTime": "2024-08-26T07:30:53.063417",
            "amount": 5000,
            "amountPaid": 0,
            "details": {
              "category": "FEE",
              "description": "Test fee",
              "waive": false
            }
          },
          {
            "bookEntryId": "be_K7egMpsjeEs",
            "type": "CHARGE",
            "entryTime": "2024-08-26T07:30:54.70939",
            "amount": -5000,
            "amountPaid": 0,
            "details": {
              "category": "FEE",
              "description": "Test fee",
              "waive": true
            }
          }    
        ]
      }
    ]
  }
}

Loads all Account Receivable activity for ledger linked to a lease.

Required Properties

Expansions

Balances

Book entry structure

Coverage

Add private policy info

POST /v1/coverage/add-private-policy

Request Body — coverage/add-private-policy

{
  "leaseId": "lease_<ID>",
  "policyNumber": "123456",
  "expirationDate": "2024-06-19",
}

Adds the private coverage policy number and expiration date for a lease.

Required Properties

Error Conditions

Remove private policy info

POST /v1/coverage/remove-private-policy

Request Body — coverage/remove-private-policy

{
  "leaseId": "lease_<ID>"
}

Removes the private coverage policy number and expiration date for a lease.

Download Private Policy

POST /v1/coverage/download-private-policy

Request Body — coverage/download-private-policy

{
  "leaseId": "lease_<ID>"
}

Response Headers

Content-Type: application/pdf
Content-Disposition: attachment; filename="private_policy.pdf"

Response Body — coverage/download-private-policy

The response body contains the requested private policy file as a binary stream

Required Properties

Error Conditions

Coverage plans

POST /v1/coverage-levels/search

Request Body — coverage-levels/search

{
  "where": {
    "facilityId": "fac_C7bSZyPT6fp", // Deprecated. Use pricingGroupId
    "pricingGroupId": "pg_4a2da7d271a"
  },
  "expansions": [ "coverageProgram" ]
}

Response Body — coverage-levels/search

{
  "status": 200,
  "data": {
    "coverageLevels": [
      {
        "coverageLevelId": "covlevel_<ID>",
        "coverageProgramId": "covprogram_<ID>",
        "provider": "SAFELEASE", // Deprecated. Use provider from the coverageProgram expansion
        "policyNumber": "123456",  // Deprecated. Use policyNumber from the coverageProgram expansion 
        "active": true | false,
        "default": true | false,
        "coverageAmount": 100000,
        "premiumAmount": 1500,
        "pricingGroupIds": ["pg_4a2da7d271a", "pg_9f13ab77c22"]
      },
      { /* ... */ }
    ],
    "coveragePrograms": [
      {
        "coverageProgramId": "covprogram_<ID>",
        "provider": "SAFELEASE",
        "policyNumber": "123456",
        "coverageOptions": {
          "allowTenantOwnInsurance": true,
          "hideTenantOwnInsuranceOnStorefront": false,
          "allowWaiveInsurance": true,
          "hideWaiveInsuranceOnStorefront": false
        }
      }
    ]
  }
}

Search for coverage levels by pricing group. Coverage is configured per pricing group, so each coverage level is returned once with pricingGroupIds listing every pricing group it applies to. Filtering by facilityId is deprecated but still supported; it returns the union of coverage levels across all of the facility's pricing groups.

Each coverage level belongs to a coverage program, identified by coverageProgramId. Request the coverageProgram expansion to also receive the program object(s) — returned as the coveragePrograms array — which carry the program-wide coverageOptions.

Required Properties

Exactly one of the following must be provided:

Response Properties

Optional Properties

Response Parameters

Expansions

POST /v1/coverage/search

Request Body — coverage/search

{
  "where": {
    "facilityId": "fac_C7bSZyPT6fp",
    "leaseId": "lease_V4w64pjUwVK",
    "activeOnOrAfter": "2024-03-01",
    "activeOnOrBefore": "2024-10-31"
  }
}

Response Body — coverage/search

{
  "status": 200,
  "data": {
    "coverages": [
      {
        "leaseId": "lease_V4w64pjUwVK",
        "facilityId": "fac_C7bSZyPT6fp",
        "startDate": "2024-05-01",
        "endDate": "2024-07-01",
        "coverageAmount": 100000,
        "premiumAmount": 1500
      },
      {/* ... */}
    ]
  }
}

Required Properties

Optional Properties

Coverage Enroll

POST /v1/coverage/enroll

Request Body — coverage/enroll

{
  "lease": "lease_<ID>", 
  "coverageLevelId": "covlevel_<ID>",
  "immediate": true | false
}

If immediate is true, immediately enrolls a lease at the specified coverage level. Charges to the next rent date are automatically prorated. Any coverage which is already paid for is cancelled, with the unused portion credited to the account.

If immediate is false, changes will take effect on the next rent date.

Error Conditions

Coverage Policy Unenroll

POST /v1/coverage/unenroll

Request Body — coverage/unenroll

{
  "lease": "lease_<ID>",
  "immediate": true | false
}

If immediate is true, immediately unenrolls a lease from coverage. Any coverage which is already paid for is cancelled, with the unused portion credited to the account.

If immediate is false, changes will take effect on the next rent date.

Error Conditions

Payments

POST /v1/payments/search

Request Body — payments/search

{
  "where": {
    // Exactly one of facilityId, customerId, or leaseId
    "facilityId": "fac_C7bSZyPT6fp",
    "customerId": "cust_BqaN6zApXCH",
    "leaseId": "lease_9wKq3vTn2Bd",
    "paymentDateOnOrAfter": "2024-03-01",
    "paymentDateOnOrBefore": "2024-03-31"
  }
}

Response Body — payments/search

{
  "status": 200,
  "data": {
    "payments": [
      {
        "paymentId": "payment_V4w64pjUwVK",
        "createdAt": "2024-03-01T12:00:00",
        "amount": 1500,
        "customerId": "cust_BqaN6zApXCH",
        "methodType": "CREDIT_CARD" | "ACH" | "ACSS" | "CASH" | "CASH_APP" | "CHECK" | "E_TRANSFER" | "MONEY_ORDER" | "OFFLINE_CARD" | "ONLINE_BANKING" | "PAYPAL" | "VENMO" | "ZELLE"
        "status": "SUCCEEDED" | "DECLINED" | "REJECTED" | "FAILED" | "REFUND_INITIATED" | "REFUNDED" | "DISPUTED" | "DIRECT_DEBIT_RETURN" | "PENDING",
        "reason": "Insufficient funds",
        "explanation": "The account did not have sufficient funds to cover the transaction amount."
      },
      {/* ... */}
    ]
  }
}

Search for payments by facility, customer, or lease

paymentId is the same identifier that Checkout returns as paymentTransactionId and that Make Payment returns as paymentId, so a payment taken through either of those endpoints can be looked up here.

Required Properties

Exactly one scope must be supplied. Supplying none, or more than one, is rejected with a 403.

Optional Properties

Both dates are interpreted in the facility's time zone, and how they are applied depends on the scope:

One payment can pay for multiple leases

Not every result settled

A leaseId search returns the lease's attempted payments as well as its successful ones, so check status before treating a result as money received. A payment that did not settle — DECLINED, FAILED, REJECTED, DIRECT_DEBIT_RETURN — still reports the full amount that was attempted and posts nothing to the lease's ledger, so summing amount without filtering on status will overstate what the lease has paid.

Refund Payment

POST /v1/payments/refund

Request Body — payments/refund

{
  "paymentId": "payment_V4w64pjUwVK",
  "amount": 2500,
  "reason": "Charged twice",
  "bypassApproval": true,
  // Required when the payment paid several leases
  "leaseAmounts": [
    { "leaseId": "lease_V4w64pjUwVK", "amount": 1500 },
    { "leaseId": "lease_9wKq3vTn2Bd", "amount": 1000 }
  ]
}

Response Body — payments/refund

{
  "status": 200,
  "data": {
    "status": "APPLIED",
    "paymentStatus": "REFUNDED"
  }
}

Refunds all or part of a lease payment to the way it was paid. The refunded amount is added back to what each lease owes.

With bypassApproval true, the refund is sent to the payment provider at once and Cubby records an approved payment refund request with your reason. With false, the request waits in Cubby's approval queue and nothing is refunded until staff approve it in Cubby.

A payment can be refunded once. Part of it can be refunded, except for a bank (ACH) payment, which must be refunded in full. Only lease payments can be refunded through the API: a payment that includes merchandise, or pays for an auction, can only be refunded from the Cubby app.

A customer renting several units can pay for them in one payment, as described under Payments Search. To refund such a payment, say how much of the refund goes to each lease in leaseAmounts: list every lease the payment paid, with amounts that add up to amount. Each lease's amount cannot exceed what the payment applied to that lease, which Ledger Search shows as a PAYMENT entry. For a payment that paid one lease, leaseAmounts can be omitted.

A card or bank refund that the payment provider does not settle at once is reported with paymentStatus REFUND_INITIATED. It becomes REFUNDED in Payments Search once the provider settles it. If the provider refuses the refund, or the call to it fails, nothing is refunded and the request is rejected with error code 8103. You can retry it.

If the payment has already been refunded, or a refund of it is already waiting for approval, the request is rejected with error code 8102. A retry of a request that timed out is therefore safe.

Required Properties

Optional Properties

Response Parameters

Error Conditions

Auctions

POST /v1/auctions/search

Request Body — auctions/search

{
  "where": {
    "auctionId": "auction_V4w64pjUwVK",
    "facilityId": "fac_C7bSZyPT6fp"
  },
  "expansions": [ "winningBidders", "leases", "units" ]
}

Response Body — auctions/search

{
  "status": 200,
  "data": {
    "auctions": [
      {
        "auctionId": "auction_V4w64pjUwVK",
        "auctionTime": "2024-03-01T12:00:00",
        "advertisementDeadline": "2024-02-01T12:00:00",
        "leaseConfigurationId": "leaseconfig_4a2da7d271a",
        "auctionedLeases": [
          {
            "leaseId": "lease_V4w64pjUwVK",
            "unitId": "unit_GfNkzV4itfk",
            "lienStartDate": "2024-03-01",
            "status": "LISTED" | "NO_BIDS" | "SOLD" | "PAYMENT_RECEIVED" | "COMPLETE" | "CANCELLED",
            "winningBidderId": "cust_BqaN6zApXCH",
            "bidAmount": 10000,
            "remainingBid": 9000,
            "depositAmount": 5000
          }
        ]
      },
      {/* ... */}
    ],
    "winningBidders": [
      {
        "customerId": "cust_BqaN6zApXCH",
        "name": "John Smith",
        "firstName": "John",
        "lastName": "Smith",
        "contact": {
          "address": "2055 Earnest Mountain",
          "address2": "Apt. 805",
          "city": "Johnston",
          "state": "Minnesota",
          "country": "USA",
          "zip": "15219",
          "email": "john.smith@example.org",
          "phone": "+15943590263"
        }
      }
    ],
    "leases": [ ... ],
    "units": [ ... ]
  }
}

Search for auctions by facility or auction ID

Required Properties

Supported expansions:

Response Parameters

Auction Create

POST /v1/auctions/create

Request Body — auctions/create

{
  "facilityId": "fac_C7bSZyPT6fp",
  "auctionTime": "2024-03-01T12:00:00",
  "leaseConfigurationId": "leaseconfig_4a2da7d271a"
}

Response Body — auctions/create

{
  "status": 200,
  "data": {
    "auctionId": "auction_V4w64pjUwVK"
  }
}

Creates a new auction for a facility

Required Properties

Start lien process

POST /v1/auctions/start-lien

Request Body — auctions/start-lien

{
  "leaseId": "lease_V4w64pjUwVK",
  "auctionId": "auction_V4w64pjUwVK",
  "sendEmailAndSms": true | false,
  "sendToAlternativeContacts": true | false
}

Starts the lien process for a lease, which may include sending lien notices to the tenant and alternative contacts

Required Properties

Optional Properties

Cancel lien process

POST /v1/auctions/cancel-lien

Request Body — auctions/cancel-lien

{
  "leaseId": "lease_V4w64pjUwVK"
}

Cancels the lien process for a lease which is in lien process but has not yet been settled and/or paid for

Settle auction

POST /v1/auctions/settle

Request Body — auctions/settle

{
  "leaseId": "lease_V4w64pjUwVK",
  "outcome": "SOLD" | "UNSOLD",
  "winningBidderId": "cust_BqaN6zApXCH",
  "winningBidder": {
    "name": "John Smith",
    "contact": {
      "address": "2055 Earnest Mountain",
      "address2": "Apt. 805",
      "city": "Johnston",
      "state": "Minnesota",
      "country": "USA",
      "zip": "15219",
      "email": "john.smith@example.org",
      "phone": "+15943590263"
    }
  },
  "bidAmount": 40000,
  "remainingBid": 36000,
  "taxExempt": false,
  "deposit": {
    "collect": true
  }
}

Response Body — auctions/settle

{
  "status": 200,
  "data": {
    "auctionedLease": {
      "leaseId": "lease_V4w64pjUwVK",
      "unitId": "unit_GfNkzV4itfk",
      "lienStartDate": "2024-03-01",
      "status": "SOLD",
      "winningBidderId": "cust_BqaN6zApXCH",
      "bidAmount": 40000,
      "remainingBid": 36000,
      "depositAmount": 7500
    },
    "bid": {
      "subtotal": 36000,
      "tax": 2200
    },
    "deposit": {
      "subtotal": 7500,
      "tax": 0
    },
    "subtotal": 43500,
    "balance": 45700
  }
}

Records the outcome of the auction for a lease. UNSOLD records that the unit received no bids and moves the auctioned lease to NO_BIDS. SOLD records the winning bidder and bid, moves the auctioned lease to SOLD, and charges the winning bidder the bid, its sales tax unless taxExempt is true, and the cleaning deposit. The deposit amount is the auction deposit set on the auction's lease configuration. When that amount is zero, no deposit is charged. The response carries the balance the bidder owes.

Settling does not record a payment. The balance is collected in Cubby, which moves the auctioned lease to PAYMENT_RECEIVED. When the balance is zero, the auctioned lease moves to PAYMENT_RECEIVED straight away.

The auction must have taken place. A request made before the day of the auction is rejected with a 400, as is one for a lease that is not in the lien process, whose lien process was cancelled, or whose auction was already settled.

Required Properties

For SOLD:

Exactly one of winningBidderId and winningBidder must be supplied. For UNSOLD, none of the properties below and none of bidAmount, winningBidderId and winningBidder may be supplied.

Optional Properties

Response Parameters

Complete auction

POST /v1/auctions/complete

Request Body — auctions/complete

{
  "leaseId": "lease_V4w64pjUwVK",
  "depositAction": "REFUND" | "RETAIN"
}

Response Body — auctions/complete

{
  "status": 200,
  "data": {
    "auctionedLease": {
      "leaseId": "lease_V4w64pjUwVK",
      "unitId": "unit_GfNkzV4itfk",
      "lienStartDate": "2024-03-01",
      "status": "COMPLETE",
      "winningBidderId": "cust_BqaN6zApXCH",
      "bidAmount": 40000,
      "depositAmount": 7500
    },
    "depositRefund": {
      "paymentId": "payment_6c4fc9f493c",
      "createdAt": "2024-03-08T12:00:00",
      "amount": 7500,
      "customerId": "cust_BqaN6zApXCH",
      "methodType": "CHECK",
      "status": "SUCCEEDED",
      "reason": "Approved",
      "explanation": null
    }
  }
}

Closes a paid sale once the unit has been cleared out, and settles the cleaning deposit: REFUND returns it to the winning bidder, and RETAIN keeps it as facility income. The auctioned lease moves from PAYMENT_RECEIVED to COMPLETE.

The sale must be paid. An auctioned lease in SOLD is rejected with a 403: record the payment in Cubby first. Any other status except PAYMENT_RECEIVED is rejected with a 400.

A refund is returned the way the deposit was paid, and the auction completes in the same call. A card or bank refund that the payment provider does not settle at once returns depositRefund.status PENDING; it settles by itself, and if the payment provider declines it later, the deposit stays held for the winner, not kept as facility income, until it is refunded again from the Cubby app. A refund the payment provider declines at once returns a 400 and leaves the auction in PAYMENT_RECEIVED.

While a refund of the bid or the deposit made outside this endpoint is pending, a call is rejected with a 400, whether it asks to refund or to retain.

Required Properties

Response Parameters

Delinquency Exemptions

A delinquency exemption pauses some or all of the automated delinquency actions on a lease until an end date. It is the same exemption staff manage from the dashboard. A lease has at most one active exemption at a time. An exemption ends automatically after its end date. When it ends, the lease returns to the normal delinquency flow from the next daily run.

An exemption does not undo actions that were applied before it, such as fees already charged or a lien already started. The exception is pauseOverlock, which lifts an overlock or gate lockout that is already in place.

POST /v1/delinquency-exemptions/search

Request Body — delinquency-exemptions/search

{
  "where": {
    "leaseId": "lease_V4w64pjUwVK",
    "customerId": "cust_BqaN6zApXCH",
    "facilityId": "fac_C7bSZyPT6fp"
  }
}

Response Body — delinquency-exemptions/search

{
  "status": 200,
  "data": {
    "delinquencyExemptions": [
      {
        "leaseId": "lease_V4w64pjUwVK",
        "customerId": "cust_BqaN6zApXCH",
        "facilityId": "fac_C7bSZyPT6fp",
        "reason": "OTHER",
        "otherReason": "Stripe Migration",
        "endDate": "2026-10-31",
        "pauseDelinquencyFees": true,
        "pauseOverlock": true,
        "pauseLienEligibility": true,
        "pauseCollectionsMessages": true,
        "createdBy": "user_4a2da7d271a",
        "createdAt": "2026-09-23T12:00:00.000000Z",
        "updatedAt": "2026-09-23T12:00:00.000000Z"
      },
      {/* ... */}
    ]
  }
}

Returns the active delinquency exemptions for a lease, a customer, or a facility. Only active exemptions are returned. An exemption that has ended or has been removed is not returned.

Required Properties

Exactly one of the following:

Response Properties

Delinquency Exemptions Create

POST /v1/delinquency-exemptions/create

Request Body — delinquency-exemptions/create

{
  "leaseId": "lease_V4w64pjUwVK",
  "reason": "OTHER",
  "otherReason": "Stripe Migration",
  "endDate": "2026-10-31",
  "pauseDelinquencyFees": true,
  "pauseOverlock": true,
  "pauseLienEligibility": true,
  "pauseCollectionsMessages": true,
  "note": "Paused for the Stripe migration"
}

Response Body — delinquency-exemptions/create

{
  "status": 200,
  "data": {
    "delinquencyExemption": {
      "leaseId": "lease_V4w64pjUwVK",
      /* ... the same object Delinquency Exemptions Search returns ... */
    }
  }
}

Creates a delinquency exemption on a lease and returns it. The exemption is recorded in the lease's activity log as created by your API key's user.

A lease can hold only one active exemption. A create for a lease that already has one is rejected with a 400 and does not replace it. To change an exemption, use Delinquency Exemptions Update, which reads back the note as well.

Required Properties

Optional Properties

Delinquency Exemptions Update

POST /v1/delinquency-exemptions/update

Request Body — delinquency-exemptions/update

{
  "leaseId": "lease_V4w64pjUwVK",
  "endDate": "2026-11-30",
  "pauseLienEligibility": false
}

Response Body — delinquency-exemptions/update

{
  "status": 200,
  "data": {
    "delinquencyExemption": {
      "leaseId": "lease_V4w64pjUwVK",
      /* ... the same object Delinquency Exemptions Search returns ... */
    }
  }
}

Changes the active delinquency exemption of a lease and returns it. The change is recorded in the lease's activity log as edited by your API key's user.

Every property except leaseId is optional and independent: a property you omit is left as it is, so sending a whole exemption back unchanged is safe, and so is sending only the one field you mean to change. otherReason and note are cleared by sending them as null. The remaining properties cannot be cleared, because an exemption cannot exist without them — an explicit null for any of them is rejected with a 400.

Changing pauseOverlock takes effect at once. Turning it on releases an overlock and a gate lockout the lease already has; turning it off re-applies both immediately if the lease is still overdue. The other three resume from the next daily run. Changing endDate to a later date extends the exemption; there is no limit on how far.

A file attached to the exemption's note from the dashboard is left untouched, and cannot be added or removed through this API. Clearing a note that carries one is rejected with a 400.

Required Properties

Optional Properties

Delinquency Exemptions Cancel

POST /v1/delinquency-exemptions/cancel

Request Body — delinquency-exemptions/cancel

{
  "leaseId": "lease_V4w64pjUwVK"
}

Cancels the active delinquency exemption of a lease before its end date, and returns the lease to the normal delinquency flow. For example, use this when a tenant re-enrolls in AutoPay before the exemption ends.

The exemption is kept in the lease's history and recorded in its activity log as deleted by your API key's user. It is no longer returned by Delinquency Exemptions Search. If the exemption paused overlock, the lease is checked at once and is overlocked or locked out of the gate again if it is still overdue. Other automated actions resume from the next daily run.

Required Properties

Notes

POST /v1/notes/search

Request Body — notes/search

{
  "where": {
    "leaseId": "lease_V4w64pjUwVK",
    "customerId": "cust_BqaN6zApXCH",
    "leadId": "lead_4a2da7d271a",
    "unitId": "unit_GfNkzV4itfk",
    "pricingGroupId": "pg_4a2da7d271a",
  }
}

Response Body — notes/search

{
  "status": 200,
  "data": {
    "notes": [
      {
        "text": "Customer requested a larger unit",
        "createdAt": "2024-03-01T12:00:00.000000Z",
        "createdBy": "user_4a2da7d271a"
      }
    ]
  }
}

Search for notes related to leases, customers, leads, units, or pricing groups.

Required Properties

Response Properties

Notes Create

POST /v1/notes/create

Request Body — notes/create

{
  "text": "Customer requested a larger unit",
  "leaseId": "lease_V4w64pjUwVK",
  "customerId": "cust_BqaN6zApXCH",
  "leadId": "lead_4a2da7d271a",
  "unitId": "unit_GfNkzV4itfk",
  "pricingGroupId": "pg_4a2da7d271a"
}

Creates a new note related to a lease, customer, lead, unit, or pricing group.

Required Properties

Tasks

POST /v1/tasks/search

Request Body — tasks/search

{
  "where": {
    "taskId": "task_V4w64pjUwVK",
    "facilityId": "fac_C7bSZyPT6fp",
    "organizationId": "org_4a2da7d271a",
    "unitId": "unit_GfNkzV4itfk",
    "customerId": "cust_BqaN6zApXCH",
    "status": "OPEN",
    "due": true,
    "updatedAfter": "2026-03-01T00:00:00Z",
    "updatedBefore": "2026-04-01T00:00:00Z"
  },
  "expansions": ["facility", "unit", "tenant"]
}

Response Body — tasks/search

{
  "status": 200,
  "data": {
    "tasks": [
      {
        "id": "task_V4w64pjUwVK",
        "title": "Inspect unit for damage",
        "description": "Check for water damage after recent storm",
        "dueDate": "2026-03-01",
        "status": "OPEN",
        "facilityId": "fac_C7bSZyPT6fp",
        "customerId": "cust_BqaN6zApXCH",
        "unitId": "unit_GfNkzV4itfk",
        "createdAt": "2026-02-14T09:31:07Z",
        "updatedAt": "2026-02-20T16:04:55Z"
      },
      {/* ... */}
    ],
    "facilities": [
      {/* ... */}
    ],
    "units": [
      {/* ... */}
    ],
    "customers": [
      {/* ... */}
    ]
  }
}

Search for tasks by ID, facility, organization, unit, or customer, optionally narrowed by status, due date, or when the task last changed

Required Properties

Exactly one of the following:

Optional Properties

Tasks Create

POST /v1/tasks/create

Request Body — tasks/create

{
  "facilityId": "fac_C7bSZyPT6fp",
  "title": "Inspect unit for damage",
  "description": "Check for water damage after recent storm",
  "dueDate": "2026-03-01",
  "customerId": "cust_BqaN6zApXCH",
  "unitId": "unit_GfNkzV4itfk"
}

Response Body — tasks/create

{
  "status": 200,
  "data": {
    "taskId": "task_V4w64pjUwVK"
  }
}

Creates a new task at the specified facility and returns its taskId, for use with Tasks Update or the taskId scope on Tasks Search

Required Properties

Optional Properties

Tasks Update

POST /v1/tasks/update

Request Body — tasks/update

{
  "taskId": "task_V4w64pjUwVK",
  "title": "Inspect unit for damage",
  "description": "Check for water damage after recent storm",
  "dueDate": "2026-03-01",
  "customerId": "cust_BqaN6zApXCH",
  "unitId": null,
  "status": "COMPLETED"
}

Updates an existing task

Every property except taskId is optional and independent: a property you omit is left as it is, and a property sent as null is cleared. Sending a whole open task back unchanged is therefore safe. title and status cannot be cleared — an explicit null for either is ignored — and dueDate cannot be cleared on a task that repeats.

A task stays at the facility it was created in. Its assignees, attachments, team assignments and repeat settings are managed in the Cubby app and are preserved by this endpoint.

Required Properties

Optional Properties

Task Status

A task is OPEN when it is created. Only an OPEN task can be completed or archived, so moving one terminal status straight to the other is rejected with a 400; set it back to OPEN first. Sending the status a task already has is accepted and does nothing.

Only an OPEN task can be edited, so a request that carries any property other than taskId and status is rejected with a 400 once a task has been completed or archived — including one that sends those properties back unchanged. A single request may both edit a task and change its status.

Some tasks are set to repeat. Completing one of those opens its next occurrence as a new task, so a search after a completion can return a task the client never created.

Reports

General Ledger Cash Based Report

POST /v1/reports/general-ledger/cash

Request Body — reports/general-ledger/cash

{
  "where": {
    "facilityId": "fac_C7bSZyPT6fp",
    "startDate": "2024-01-01",
    "reportRelativeDuration": "M"
  }
}

Response Body — reports/general-ledger/cash

{
  "status": 200,
  "data": {
    "entries": [
      {
        "id": "je_F7N3jm5F1MU.be_BRGbhSRYecW",
        "journalEntryId": "je_F7N3jm5F1MU",
        "paymentTime": "2025-08-22T04:43:02.56492",
        "entryTime": "2025-08-22T04:45:45.725995",
        "amount": 10000,
        "direction": "CREDIT",
        "account": "PREPAID_RENT",
        "details": {
          "customerId": "cust_FH1Hw36xoLd",
          "customerName": "John Smith",
          "leaseId": "lease_V4w64pjUwVK",
          "unitName": "A-100",
          "pricingGroupId": "pg_LnKY1qJHmc6"
        }
      },
      {
        "id": "je_F7N3jm5F1MU.be_CmkcJ6Gq16a",
        "journalEntryId": "je_F7N3jm5F1MU",
        "paymentTime": "2025-08-22T04:43:02.56492",
        "entryTime": "2025-08-22T04:45:45.715093",
        "amount": 10000,
        "direction": "DEBIT",
        "account": "DEPOSIT",
        "details": {
          "description": "Security Deposit",
          "customerId": "cust_FH1Hw36xoLd",
          "customerName": "John Smith",
          "leaseId": "lease_V4w64pjUwVK",
          "unitName": "A-100",
          "pricingGroupId": "pg_LnKY1qJHmc6"
        }
      },
      {
        "id": "je_F7N3jm5F1MU.be_FAK3KdKWWqw",
        "journalEntryId": "je_F7N3jm5F1MU",
        "paymentTime": "2025-08-22T04:43:02.56492",
        "entryTime": "2025-08-22T04:43:02.588516",
        "amount": 25031,
        "direction": "DEBIT",
        "account": "CREDIT_CARD_PAYMENTS",
        "details": {
          "cardType": "visa",
          "cardLastFour": "1111",
          "customerId": "cust_FH1Hw36xoLd",
          "customerName": "John Smith",
          "leaseId": "lease_V4w64pjUwVK",
          "unitName": "A-100",
          "pricingGroupId": "pg_LnKY1qJHmc6"
        }
      },
      {
        "id": "je_F7N3jm5F1MU.be_LDPdoUPucz8",
        "journalEntryId": "je_F7N3jm5F1MU",
        "paymentTime": "2025-08-22T04:43:02.56492",
        "entryTime": "2025-08-22T04:42:27.975048",
        "amount": 14100,
        "direction": "CREDIT",
        "account": "RENT",
        "details": {
          "customerId": "cust_FH1Hw36xoLd",
          "customerName": "John Smith",
          "leaseId": "lease_V4w64pjUwVK",
          "unitName": "A-100",
          "pricingGroupId": "pg_LnKY1qJHmc6"
        }
      },
      {
        "id": "je_F7N3jm5F1MU.be_VPKcAEmitNk",
        "journalEntryId": "je_F7N3jm5F1MU",
        "paymentTime": "2025-08-22T04:43:02.56492",
        "entryTime": "2025-08-22T04:42:27.975048",
        "amount": 282,
        "direction": "CREDIT",
        "account": "TAX_STATE",
        "details": {
          "description": "2%",
          "customerId": "cust_FH1Hw36xoLd",
          "customerName": "John Smith",
          "leaseId": "lease_V4w64pjUwVK",
          "unitName": "A-100",
          "pricingGroupId": "pg_LnKY1qJHmc6"
        }
      },
      {
        "id": "je_F7N3jm5F1MU.be_WLEM365sWGg",
        "journalEntryId": "je_F7N3jm5F1MU",
        "paymentTime": "2025-08-22T04:43:02.56492",
        "entryTime": "2025-08-22T04:42:27.975048",
        "amount": 649,
        "direction": "CREDIT",
        "account": "TAX_LOCAL",
        "details": {
          "description": "4.6%",
          "customerId": "cust_FH1Hw36xoLd",
          "customerName": "John Smith",
          "leaseId": "lease_V4w64pjUwVK",
          "unitName": "A-100",
          "pricingGroupId": "pg_LnKY1qJHmc6"
        }
      },
      {
        "id": "je_F7N3jm5F1MU.be_NM4tPTmWjcK",
        "journalEntryId": "je_F7N3jm5F1MU",
        "paymentTime": "2025-08-22T04:43:02.56492",
        "entryTime": "2025-08-22T04:42:27.975048",
        "amount": 10000,
        "direction": "CREDIT",
        "account": "DEPOSIT",
        "details": {
          "customerId": "cust_FH1Hw36xoLd",
          "customerName": "John Smith",
          "leaseId": "lease_V4w64pjUwVK",
          "unitName": "A-100",
          "pricingGroupId": "pg_LnKY1qJHmc6"
        }
      }
    ]
  }
}

Generates a cash basis general ledger report for a facility over a specified time period.

Required Properties

Response Parameters

The response contains an array of journal entries, each of which contains the following fields:

General Ledger Accrual Based Report

POST /v1/reports/general-ledger/accrual

Request Body — reports/general-ledger/accrual

{
  "where": {
    "facilityId": "fac_C7bSZyPT6fp",
    "startDate": "2024-01-01",
    "reportRelativeDuration": "M"
  }
}

Response Body — reports/general-ledger/accrual

{
  "status": 200,
  "data": {
    "entries": [
      {
        "id": "be_NBN5vzcHBv5",
        "journalEntryId": "je_Md6kbRese5r",
        "entryTime": "2024-01-01T00:00:00",
        "facilityId": "fac_JPzPkHHhPcP",
        "facilityName": "Test Facility",
        "customerId": "cust_JZQa2bFkpvW",
        "customerName": "John Smith",
        "leaseId": "lease_GfNkzV4itfk",
        "unitId": "unit_G77Ba9sR8Cr",
        "unitName": "IPFN723",
        "account": "FEES",
        "mappedGlAccount": "",
        "mappedGlAccountNumber": "",
        "taxExempt": false,
        "taxCategory": "FEE_NON_TAXABLE",
        "explanation": "Move-In Fee $25.0",
        "debit": 0,
        "credit": 2500
      },
      {
        "id": "be_PSwhQQa9UVC",
        "journalEntryId": "je_Md6kbRese5r",
        "entryTime": "2024-01-01T00:00:00",
        "facilityId": "fac_JPzPkHHhPcP",
        "facilityName": "Test Facility",
        "customerId": "cust_JZQa2bFkpvW",
        "customerName": "John Smith",
        "leaseId": "lease_GfNkzV4itfk",
        "unitId": "unit_G77Ba9sR8Cr",
        "unitName": "IPFN723",
        "account": "ACCOUNT_RECEIVABLE",
        "mappedGlAccount": "",
        "mappedGlAccountNumber": "",
        "taxExempt": false,
        "taxCategory": "FEE_NON_TAXABLE",
        "explanation": "Move-In Fee $25.0",
        "debit": 2500,
        "credit": 0
      },
      {
        "id": "be_Pjn1cAekzuA",
        "journalEntryId": "je_Md6kbRese5r",
        "entryTime": "2024-01-01T00:00:00",
        "facilityId": "fac_JPzPkHHhPcP",
        "facilityName": "Test Facility",
        "customerId": "cust_JZQa2bFkpvW",
        "customerName": "John Smith",
        "leaseId": "lease_GfNkzV4itfk",
        "unitId": "unit_G77Ba9sR8Cr",
        "unitName": "IPFN723",
        "account": "DEPOSIT",
        "mappedGlAccount": "",
        "mappedGlAccountNumber": "",
        "taxExempt": false,
        "taxCategory": "DEPOSIT",
        "explanation": "Security Deposit",
        "debit": 0,
        "credit": 20000
      },
      {
        "id": "be_Rqop5WxWs4L",
        "journalEntryId": "je_Md6kbRese5r",
        "entryTime": "2024-01-01T00:00:00",
        "facilityId": "fac_JPzPkHHhPcP",
        "facilityName": "Test Facility",
        "customerId": "cust_JZQa2bFkpvW",
        "customerName": "John Smith",
        "leaseId": "lease_GfNkzV4itfk",
        "unitId": "unit_G77Ba9sR8Cr",
        "unitName": "IPFN723",
        "account": "ACCOUNT_RECEIVABLE",
        "mappedGlAccount": "",
        "mappedGlAccountNumber": "",
        "taxExempt": false,
        "taxCategory": "DEPOSIT",
        "explanation": "Security Deposit",
        "debit": 20000,
        "credit": 0
      },
      {
        "id": "be_FWuEeHyLSz6",
        "journalEntryId": "je_Md6kbRese5r",
        "entryTime": "2024-01-01T00:00:00",
        "facilityId": "fac_JPzPkHHhPcP",
        "facilityName": "Test Facility",
        "customerId": "cust_JZQa2bFkpvW",
        "customerName": "John Smith",
        "leaseId": "lease_GfNkzV4itfk",
        "unitId": "unit_G77Ba9sR8Cr",
        "unitName": "IPFN723",
        "accruesOn": "2024-01-01",
        "accruesThrough": "2024-01-31",
        "account": "RENT",
        "mappedGlAccount": "",
        "mappedGlAccountNumber": "",
        "taxExempt": false,
        "taxCategory": "RENT_ENCLOSED_STORAGE",
        "explanation": "Rent",
        "debit": 0,
        "credit": 12500
      },
      {
        "id": "be_AkGodRDQcfo",
        "journalEntryId": "je_Md6kbRese5r",
        "entryTime": "2024-01-01T00:00:00",
        "facilityId": "fac_JPzPkHHhPcP",
        "facilityName": "Test Facility",
        "customerId": "cust_JZQa2bFkpvW",
        "customerName": "John Smith",
        "leaseId": "lease_GfNkzV4itfk",
        "unitId": "unit_G77Ba9sR8Cr",
        "unitName": "IPFN723",
        "accruesOn": "2024-01-01",
        "accruesThrough": "2024-01-31",
        "account": "ACCOUNT_RECEIVABLE",
        "mappedGlAccount": "",
        "mappedGlAccountNumber": "",
        "taxExempt": false,
        "taxCategory": "RENT_ENCLOSED_STORAGE",
        "explanation": "Rent",
        "debit": 12500,
        "credit": 0
      },
      {
        "id": "be_GHQvBnczPcK",
        "journalEntryId": "je_Md6kbRese5r",
        "entryTime": "2024-01-01T00:00:00",
        "facilityId": "fac_JPzPkHHhPcP",
        "facilityName": "Test Facility",
        "customerId": "cust_JZQa2bFkpvW",
        "customerName": "John Smith",
        "leaseId": "lease_GfNkzV4itfk",
        "unitId": "unit_G77Ba9sR8Cr",
        "unitName": "IPFN723",
        "accruesOn": "2024-01-01",
        "accruesThrough": "2024-01-31",
        "account": "TAX_STATE",
        "mappedGlAccount": "",
        "mappedGlAccountNumber": "",
        "taxExempt": false,
        "taxCategory": "RENT_ENCLOSED_STORAGE",
        "explanation": "4.5%",
        "debit": 0,
        "credit": 563
      },
      {
        "id": "be_NRD5PG38VXi",
        "journalEntryId": "je_Md6kbRese5r",
        "entryTime": "2024-01-01T00:00:00",
        "facilityId": "fac_JPzPkHHhPcP",
        "facilityName": "Test Facility",
        "customerId": "cust_JZQa2bFkpvW",
        "customerName": "John Smith",
        "leaseId": "lease_GfNkzV4itfk",
        "unitId": "unit_G77Ba9sR8Cr",
        "unitName": "IPFN723",
        "accruesOn": "2024-01-01",
        "accruesThrough": "2024-01-31",
        "account": "ACCOUNT_RECEIVABLE",
        "mappedGlAccount": "",
        "mappedGlAccountNumber": "",
        "taxExempt": false,
        "taxCategory": "RENT_ENCLOSED_STORAGE",
        "explanation": "4.5%",
        "debit": 563,
        "credit": 0
      },
      {
        "id": "be_BZyw4u5k3Qi",
        "journalEntryId": "je_Md6kbRese5r",
        "entryTime": "2024-01-01T00:00:00",
        "facilityId": "fac_JPzPkHHhPcP",
        "facilityName": "Test Facility",
        "customerId": "cust_JZQa2bFkpvW",
        "customerName": "John Smith",
        "leaseId": "lease_GfNkzV4itfk",
        "unitId": "unit_G77Ba9sR8Cr",
        "unitName": "IPFN723",
        "accruesOn": "2024-01-01",
        "accruesThrough": "2024-01-31",
        "account": "TAX_LOCAL",
        "mappedGlAccount": "",
        "mappedGlAccountNumber": "",
        "taxExempt": false,
        "taxCategory": "RENT_ENCLOSED_STORAGE",
        "explanation": "0.5%",
        "debit": 0,
        "credit": 63
      },
      {
        "id": "be_KF1TCs8NTPz",
        "journalEntryId": "je_Md6kbRese5r",
        "entryTime": "2024-01-01T00:00:00",
        "facilityId": "fac_JPzPkHHhPcP",
        "facilityName": "Test Facility",
        "customerId": "cust_JZQa2bFkpvW",
        "customerName": "John Smith",
        "leaseId": "lease_GfNkzV4itfk",
        "unitId": "unit_G77Ba9sR8Cr",
        "unitName": "IPFN723",
        "accruesOn": "2024-01-01",
        "accruesThrough": "2024-01-31",
        "account": "ACCOUNT_RECEIVABLE",
        "mappedGlAccount": "",
        "mappedGlAccountNumber": "",
        "taxExempt": false,
        "taxCategory": "RENT_ENCLOSED_STORAGE",
        "explanation": "0.5%",
        "debit": 63,
        "credit": 0
      }
    ]
  }
}

Generates an accrual basis general ledger report for a facility over a specified time period.

Required Properties

Response Parameters

The response contains an array of journal entry line items, each of which contains the following fields:

Aged Receivables Report

POST /v1/reports/aged-receivables

throughDate is optional and defaults to the facility's current date. When provided, aging buckets are computed as of the end of that date.

Request Body — reports/aged-receivables

{
  "where": {
    "facilityIds": [
      "fac_C7bSZyPT6fp"
    ],
    "throughDate": "2024-08-31"
  },
  "expansions": [
    "charges"
  ]
}

Response Body — reports/aged-receivables

{
  "status": 200,
  "data": {
    "entries": [
      {
        "facilityId": "fac_Qi19JvKQBgu",
        "facilityName": "Test Facility",
        "leaseId": "lease_XQ1zDzcYdfs",
        "unitId": "unit_GHrAvzbKK7K",
        "unitName": "SZEF563",
        "pricingGroupId": "pg_HtikzP9RB3Y",
        "pricingGroupName": "5x5 with AC",
        "customerId": "cust_P4Cecw1xuQE",
        "customerName": "John Smith",
        "totalAmount": 48752,
        "ranges": [
          {
            "range": "RANGE_0_30",
            "amount": 13126
          },
          {
            "range": "RANGE_30_60",
            "amount": 35626
          },
          {
            "range": "RANGE_60_90",
            "amount": 0
          },
          {
            "range": "RANGE_90_120",
            "amount": 0
          },
          {
            "range": "RANGE_120_PLUS",
            "amount": 0
          },
          {
            "range": "RANGE_UNKNOWN",
            "amount": 0
          }
        ],
        "charges": [
          {
            "id": "be_8kQm2XvTn4R",
            "journalEntryId": "je_Vd3pLs9QwYz",
            "entryTime": "2024-07-15T00:00:00",
            "accruesOn": "2024-07-15",
            "accruesThrough": "2024-08-14",
            "account": "RENT",
            "taxCategory": "RENT_ENCLOSED_STORAGE",
            "amount": 35000,
            "outstandingAmount": 32500,
            "range": "RANGE_30_60"
          },
          {
            "id": "be_Rt6nHc2KpWx",
            "journalEntryId": "je_Vd3pLs9QwYz",
            "entryTime": "2024-07-15T00:00:00",
            "accruesOn": "2024-07-15",
            "accruesThrough": "2024-08-14",
            "account": "TAX_STATE",
            "taxCategory": "RENT_ENCLOSED_STORAGE",
            "amount": 3126,
            "outstandingAmount": 3126,
            "range": "RANGE_30_60"
          },
          {
            "id": "be_Mw4tYb7NcQs",
            "journalEntryId": "je_Hp8xKr2VjLd",
            "entryTime": "2024-08-15T00:00:00",
            "accruesOn": "2024-08-15",
            "accruesThrough": "2024-09-14",
            "account": "RENT",
            "taxCategory": "RENT_ENCLOSED_STORAGE",
            "amount": 12000,
            "outstandingAmount": 12000,
            "range": "RANGE_0_30"
          },
          {
            "id": "be_Zs5qPf3GhTk",
            "journalEntryId": "je_Hp8xKr2VjLd",
            "entryTime": "2024-08-15T00:00:00",
            "accruesOn": "2024-08-15",
            "accruesThrough": "2024-09-14",
            "account": "TAX_STATE",
            "taxCategory": "RENT_ENCLOSED_STORAGE",
            "amount": 1126,
            "outstandingAmount": 1126,
            "range": "RANGE_0_30"
          }
        ]
      }
    ]
  }
}

Generates an aged receivables report for one or more facilities.

Required Properties

Optional Properties

Response Parameters

The response contains an array of aged receivable entries, one for each lease with an outstanding balance, each of which contains the following fields:

When a lease's ledger cannot be broken down into individual charges, its balance is returned as a single charge with only outstandingAmount and range (RANGE_UNKNOWN) set.

Rent Roll Report

POST /v1/reports/rent-roll

Request Body — reports/rent-roll

{
  "where": {
    "facilityIds": [
      "fac_C7bSZyPT6fp"
    ],
    "throughDate": "2024-08-31"
  }
}

Response Body — reports/rent-roll

{
  "status": 200,
  "data": {
    "entries": [
      {
        "facilityId": "fac_Qi19JvKQBgu",
        "facilityName": "Test Facility",
        "status": "RENTED",
        "unitId": "unit_GHrAvzbKK7K",
        "unitName": "SZEF563",
        "pricingGroupId": "pg_HtikzP9RB3Y",
        "pricingGroupName": "5x5 with AC",
        "width": 5.0,
        "depth": 5.0,
        "height": 8.0,
        "standardRate": 5000,
        "customerId": "cust_P4Cecw1xuQE",
        "customerName": "John Smith",
        "companyName": "Acme Corp",
        "contact": {
          "address": "2055 Earnest Mountain",
          "address2": "Apt. 805",
          "city": "Johnston",
          "state": "Minnesota",
          "country": "USA",
          "zip": "15219",
          "email": "john.smith@example.org"
        },
        "totalDue": 7500,
        "deposit": 5000,
        "prepaid": 2000,
        "credit": 0,
        "monthlyRentalAmount": 6000,
        "effectiveRate": 5500,
        "rentVarianceAmount": -1000,
        "lastRentChangeDate": "2024-03-01",
        "rentChangeScheduledDate": "2024-09-01",
        "rentChangeNewRentAmount": 6500,
        "billingCycle": "MONTHLY",
        "moveInDate": "2024-01-15",
        "paidOnDate": "2024-07-15",
        "paidThroughDate": "2024-08-14",
        "billingDayOfMonth": 15,
        "taxExempt": false,
        "paid": true,
        "autoPayEnabled": true,
        "autoPayPaymentMethodId": "pm_1GqIC8HYgolSBA35XqL5a2M",
        "overlockNeeded": false,
        "overlockApplied": false
      }
    ]
  }
}

Generates a rent roll report for one or more facilities.

Required Properties

Response Parameters

The response contains an array of rent roll entries, one for each unit, each of which contains the following fields:

Not applicable fields might be omitted or set to null.

Merchant Services Disbursements Report

POST /v1/reports/merchant-services-disbursements

Request Body — reports/merchant-services-disbursements

{
  "where": {
    "facilityIds": [
      "fac_C7bSZyPT6fp"
    ],
    "startDate": "2024-08-01",
    "reportRelativeDuration": "M"
  }
}

Response Body — reports/merchant-services-disbursements

{
  "status": 200,
  "data": {
    "batches": [
      {
        "facilityId": "fac_C7bSZyPT6fp",
        "facilityName": "Test Facility",
        "paymentProvider": "STRIPE",
        "merchantId": "acct_1234567890",
        "batchDate": "2024-08-15",
        "batchNumber": "po_1ABC2DEF3GHI",
        "batchStatus": "paid",
        "methodType": "card",
        "amount": 1250
      }
    ],
    "transactions": [
      {
        "facilityId": "fac_C7bSZyPT6fp",
        "facilityName": "Test Facility",
        "paymentProvider": "STRIPE",
        "batchNumber": "po_1ABC2DEF3GHI",
        "batchDate": "2024-08-15",
        "paymentId": "payment_Ab3xK9mR2wq",
        "transactionId": "pi_3OxAbCdEfGhIjKlM",
        "date": "2024-08-14",
        "amount": 1250,
        "status": "APPROVED",
        "type": "SALE",
        "customerId": "cust_7dF2kL9pQx",
        "customerName": "John Smith",
        "methodType": "CREDIT_CARD",
        "cardBrand": "VISA",
        "lastFour": "1234"
      }
    ]
  }
}

Generates a merchant services disbursements report for one or more facilities over a specified time period. The report includes batch-level settlement summaries and individual transaction details from configured payment providers (Stripe, Payabli).

Required Properties

Response Parameters

The response contains two arrays: batches and transactions. Fields that are not applicable are omitted from the response.

Batches

Each batch entry represents a settlement batch from a payment provider:

Transactions

Each transaction entry represents an individual payment within a batch:

Rows without Cubby payment details

Rows come from Stripe and Payabli; Cubby's own details are attached by matching the provider's transactionId against the payment Cubby recorded for it. When there is no match, the Cubby-sourced fields drop as a group — paymentId, status, customerId, methodType, cardBrand, lastFour — and the provider-sourced fields are unaffected. Unaffected is not the same as present: each still follows its own rule, and payabliStatus only appears on Payabli rows. A matched row can also omit customerId, when the payment is not linked to a customer.

This is expected rather than a lookup failure. It applies to:

Payments taken outside a gateway — cash, check, and money order — do not appear as rows at all. Use Payments Search to reach those.

Treat a missing paymentId as "not applicable to this row" rather than "payment not found".

Storefront

POST /v1/storefront/facilities/search

Request Body — storefront/facilities/search

{
  "where": {
    "facilityId": "fac_C7bSZyPT6fp",
    "organizationId": "org_4a2da7d271a"
  },
  "expansions": ["organization", "schedules"]
}

Response Body — storefront/facilities/search

{
  "status": 200,
  "data": {
    "facilities": [
      {
        "facilityId": "fac_C7bSZyPT6fp",
        "organizationId": "org_4a2da7d271a",
        "name": "315 Anisha Estates",
        "description": "Climate-controlled self storage in downtown.",
        "slug": "anisha-estates",
        "apiKey": "b73c7e4d-81f2-49e3-bbca-9a6fbd321d56",
        "contact": {
          "address": "315 Anisha Estates",
          "address2": "",
          "city": "Thompsonview",
          "state": "Alaska",
          "country": "USA",
          "zip": "98748",
          "email": "",
          "phone": ""
        },
        "latitude": "37.774929",
        "longitude": "-122.419418",
        "schedules": [{/* ... */}]
      },
      {/* ... */}
    ],
    "organizations": [
      {
        "organizationId": "org_4a2da7d271a",
        "name": "Anisha Estates"
      },
      {/* ... */}
    ]
  }
}

Search for storefront-visible facilities by facility or organization

Required Properties

Optional Properties

POST /v1/storefront/pricing-groups/search

Request Body — storefront/pricing-groups/search

{
  "where": {
    "pricingGroupId": "pg_4a2da7d271a",
    "facilityId": "fac_C7bSZyPT6fp"
  },
  "expansions": ["discounts"]
}

Response Body — storefront/pricing-groups/search

{
  "status": 200,
  "data": {
    "pricingGroups": [
      {
        "pricingGroupId": "pg_4a2da7d271a",
        "name": "Standard",
        "description": "10x20 climate-controlled",
        "priceDescription": "$220/mo",
        "width": 10,
        "depth": 20,
        "height": 8,
        "price": 22000,
        "strikethroughPrice": 25000,
        "images": ["https://example.com/unit.jpg"],
        "features": ["Climate controlled", "Ground floor"],
        "discounts": ["discount_JgNkzV4itfk"],
        "parking": false,
        "vehicleStorage": false,
        "bookingOption": "RENT | RENT_OR_RESERVE | CALL_TO_RENT",
        "rentable": true,
        "displayedUnitsLeft": 2
      },
      {/* ... */}
    ],
    "discounts": [
      {
        "discountId": "discount_JgNkzV4itfk",
        "discountStrategyId": "dstrat_4a2da7d271a",
        "name": "First Month Free",
        "type": "PERPETUAL | PERIODIC | PAID_UPFRONT | ONE_TIME",
        "status": "PUBLISHED | ARCHIVED"
      },
      {/* ... */}
    ]
  }
}

Search for storefront-visible pricing groups by facility or pricing group ID

Booking Options and Pricing

bookingOption describes how a unit type converts on the storefront:

bookingOption describes intent only. It does not change which price fields this endpoint returns: a CALL_TO_RENT unit type still reports its price, strikethroughPrice, priceDescription and discounts, even though the Cubby storefront hides them and shows a phone number instead. Clients that want to mirror the storefront's presentation should suppress the rate themselves when bookingOption is CALL_TO_RENT.

The same holds for sold-out unit types: when the storefront is set to hide their prices, this endpoint still reports them in full.

By default this endpoint returns only unit types a customer can rent now. When the operator turns on Show sold-out pricing groups in the storefront builder, it also returns sold-out unit types, with rentable set to false.

The Cubby storefront offers a waitlist form for a sold-out unit type instead of the rent and reserve buttons. A CALL_TO_RENT unit type keeps its phone number, sold out or not. To record a waitlist sign-up from your own site, create a lead with Leads Create. Send facilityId, the customer (customerId or a customer object), source set to WAITLIST_FORM, pricingGroupId and targetMoveInDate. The lead triggers the same new-lead notification as a storefront sign-up. Leads Search reports its origin as API.

Required Properties

Optional Properties

Response Parameters

Messages

Send SMS

POST /v1/messages/sms/send

Request Body — messages/sms/send

{
  "customerId": "cust_BqaN6zApXCH",
  "facilityId": "fac_C7bSZyPT6fp",
  "body": "Your payment is due tomorrow."
}

Sends an SMS message to a customer

Required Properties

Send Email

POST /v1/messages/email/send

Sends an email message to a customer. Unlike the other endpoints in this API, this one is sent as multipart/form-data so that file attachments can be included alongside the JSON request.

The request must include the following parts:

Part name Content Required
request A JSON object with the fields described under Required Properties below. The part must be sent with Content-Type: application/json. Yes
attachments A file to attach to the email. Repeat the part name for multiple attachments. Maximum of 5 attachments, each up to 5 MB. No

JSON body of the request part

{
  "customerId": "cust_BqaN6zApXCH",
  "facilityId": "fac_C7bSZyPT6fp",
  "subject": "Payment Due Reminder",
  "body": "<p>Your payment is due tomorrow.</p>"
}

Example: send an email with no attachments

curl -X POST 'https://api.cubbystorage.com/v1/messages/email/send' \
  --header 'Authorization: Bearer b73c7e4d-81f2-49e3-bbca-9a6fbd321d56' \
  --form 'request={
      "customerId": "cust_BqaN6zApXCH",
      "facilityId": "fac_C7bSZyPT6fp",
      "subject": "Payment Due Reminder",
      "body": "<p>Your payment is due tomorrow.</p>"
    };type=application/json'

Example: send an email with two attachments

curl -X POST 'https://api.cubbystorage.com/v1/messages/email/send' \
  --header 'Authorization: Bearer b73c7e4d-81f2-49e3-bbca-9a6fbd321d56' \
  --form 'request={
      "customerId": "cust_BqaN6zApXCH",
      "facilityId": "fac_C7bSZyPT6fp",
      "subject": "Payment Due Reminder",
      "body": "<p>Your payment is due tomorrow.</p>"
    };type=application/json' \
  --form 'attachments=@invoice.pdf' \
  --form 'attachments=@receipt.pdf'

Required Properties

The following fields belong inside the JSON request part:

Checkout

Checkout Component

The Cubby Checkout is an embeddable web component that provides a complete checkout flow for your storefront. It can be embedded on any page by including the storefront components script and placing the <cubby-checkout> element in your HTML.

Setup

Include the Script

<script
    type="module"
    src="https://cdn.cubbystorage.com/components/latest"
    data-api-key="your-storefront-api-key">
</script>

Include the storefront components script on your page. The API key is passed via the data-api-key attribute on the script tag. This is the same API key used for the Storefront API endpoints above.

Usage

Basic Checkout

<cubby-checkout
    pricing-groups="pg_4a2da7d271a">
</cubby-checkout>

Pre-populated Customer Data

<cubby-checkout
    pricing-groups="pg_4a2da7d271a"
    customer-name="Jane Smith"
    customer-email="jane@example.com"
    customer-phone="+15551234567">
</cubby-checkout>

Place the <cubby-checkout> element wherever the checkout flow should appear. One of pricing-groups or unit-id is required. pricing-groups accepts a single pricing group ID as returned by the Storefront Pricing Groups Search endpoint. Only one pricing group is supported at this time.

Supplying unit-id rents that exact unit rather than one Cubby picks from the pricing group, which is what a link from a unit-level listing needs. The pricing group is derived from the unit, so unit-id on its own is enough; supplying both is accepted as long as the unit belongs to that group. The unit must still be available when the customer checks out — if it has been rented in the meantime the checkout fails with response code 7503 rather than quietly renting a different unit.

For a pricing group with value pricing approved, a named unit is charged the tier its ranking gives it, so any selectedValueTier sent alongside unit-id is ignored. The supported way to pick a unit-id is POST /v1/pricing-groups/find-unit-for-tier: it returns a unit that is currently rentable and, on a value-priced group, one charged the tier you asked for, so the price you advertise is the price the customer is charged.

A unit's tier depends on which units are available, so it can change as its neighbours are rented or returned. Should it change between the price the customer was shown and their payment, the checkout fails with response code 7501, the same code as an expired quote: fetch a fresh price and let the customer confirm the new total.

Checkout for a Specific Unit

<cubby-checkout unit-id="unit_9f31b6c04e2"></cubby-checkout>

Attributes

Attribute Type Required Description
pricing-groups string Yes* The ID of the pricing group to display
unit-id string Yes* The ID of a specific unit to rent
customer-name string No Pre-populates the customer name field
customer-email string No Pre-populates the customer email field
customer-phone string No Pre-populates the customer phone field

* One of pricing-groups or unit-id must be supplied.