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:
- If the value ends in
Z, the timestamp is in UTC. For example,2024-03-01T12:00:00.000000Zis March 1, 2024 at 12:00:00 UTC. - If the value has no time zone suffix, the timestamp is in the time zone of the facility the value belongs to. For example,
2024-03-01T12:00:00on a record for a facility inAmerica/New_Yorkrepresents 12:00:00 local time at that facility (which is2024-03-01T17:00:00Zin UTC during EST).
Where search endpoints accept date or time range filters, the parameter name signals the bound semantics:
*OnOrAfter/*OnOrBefore— inclusive bounds. Used for date-only filters that describe business state on a calendar day (e.g.activeOnOrAfteron Leases Search asks for leases active on or after a given date).*After/*Before— strict (exclusive) bounds. Used for UTC timestamp filters intended as incremental-sync cursors (e.g.updatedAfterreturns records whoseupdatedAtis strictly later than the supplied timestamp, so passing the timestamp of your previous response excludes the boundary record on the next poll).
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. */
}
}
status— always200on success. Mirrors the HTTP status.data— the endpoint-specific response payload. Omitted for endpoints that have no payload to return (the body is then just{ "status": 200 }).
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"
]
}
code— mirrors the HTTP status code.errors— one or more plain-english strings describing what went wrong.
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:
- Customer names
- Customer addresses
- Customer phone numbers
- Customer email addresses
- Customer date of birth
- Customer ID numbers
- Customer communication preferences
- Alternative contact names
- Alternative contact phone numbers
- Alternative contact email addresses
- Vehicle license numbers
- Vehicle states
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 |
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.
- Customer addresses: country and state codes will be validated — The API will expect
countryas a two-letter ISO 3166-1 code, such asUSorCA, andstateas the code for a state or province of that country, such asTX. Common variants such asUSAorUnited Stateswill be converted to the code for you. Values that can't be recognized will be accepted with a warning for a notice period, and then rejected with a400. The date requests start to be rejected will be announced here first.
Changelog
November 2026
- Storefront Pricing Groups Search: value-pricing prices start from the cheapest tier on offer — For a value-pricing unit type whose tiers show on the storefront,
priceandstrikethroughPriceonPOST /v1/storefront/pricing-groups/searchnow start from the cheapest tier a customer can still rent, as the storefront card does. They used to start from the web rate. The two differ when the lowest tier is sold out, and the price is then higher, because each tier costs at least $1 more than the tier below it. No field is added or removed, and other unit types are unchanged.POST /v1/pricing-groups/searchstill returns the raw rates. See Storefront Pricing Groups Search. - Value pricing: tier prices round to whole dollars, and
tierWebRateson pricing groups — Better and Best (MEDIUMandHIGHEST) tier prices now round to the nearest whole dollar, and 50 cents rounds up. After rounding, each tier price is at least $1 above the tier below it, so a price can go up by more than 50 cents. Good (LOWEST) still equals the base rate. Pricing groups onPOST /v1/pricing-groups/search, and every expanded pricing group, carry a newtierWebRatesfield onAPPROVEDgroups: the 3 rounded tier prices at the web rate, in cents, in Good, Better, Best order, per one facility billing cycle likewebRate. See Pricing Group Search and the tier formula in Value Pricing Strategies Search. - Auctions: complete with a pending deposit refund —
POST /v1/auctions/completewithdepositActionREFUNDnow completes the auction in the same call even when the payment provider does not settle the refund at once: the auctioned lease moves toCOMPLETEanddepositRefund.statusisPENDING. Before, the auctioned lease stayed inPAYMENT_RECEIVEDuntil the refund settled. If the payment provider later declines the refund, the deposit stays held for the winner until it is refunded again from the Cubby app. Completion is now also refused while a refund of the bid is pending, as it already was for a refund of the deposit. See Complete auction. - General Ledger reports:
leaseIdon every line — Line items ofPOST /v1/reports/general-ledger/accrualand thedetailsof line items ofPOST /v1/reports/general-ledger/cashnow carryleaseId, the ID of the lease the entry is booked to. On the cash report each line pairs a payment with the charge it paid, and both always belong to the same lease.leaseIdis omitted for entries not booked to a lease, such as auction and merchandise sale entries, and on the accrual report the payment method account side of a payment. See General Ledger Cash Based Report and General Ledger Accrual Based Report. - Leads: get a checkout link — New endpoint
POST /v1/leads/get-checkout-linkreturnscheckoutLink, the tenant portal link where a customer rents from the quote held on a lead and pays the move-in charges. It is the link Cubby sends in its reservation confirmation, so an integration can now text or read it to the customer itself. The lead must be active and have a pricing group. Available to theManagerrole. See Leads Get Checkout Link. - Pricing Groups Change Rates:
walkInRatefield —POST /v1/pricing-groups/change-ratesnow accepts an optionalwalkInRate, in cents. When you sendnull, the walk-in rate comes from the pricing strategy again, or from the standard rate if the group has no strategy. When you leave it out, the walk-in rate does not change.POST /v1/pricing-groups/searchalready returnswalkInRate. See Pricing Groups Change Rates. - Leases and Payments: write off balances and issue refunds — Three new endpoints let an integration that approves money movements in its own systems record them in Cubby.
POST /v1/leases/write-off-balancewrites off the whole balance of a moved-out lease.POST /v1/leases/refund-balancerefunds the prepaid balance of a moved-out lease by check.POST /v1/payments/refundrefunds all or part of a payment, split across the leases it paid when it paid several. Each takes a requiredbypassApproval:trueapplies the change at once, andfalsesends it to Cubby's approval queue, where staff approve or reject it as they do today. Each requires you to send back the amount you read, and refuses a request that repeats one already applied or pending with error code8102, so a timed-out request can be retried safely. All three need the Credits and Waives role, which now includes them: keys that already hold that role, and keys holding all API permissions, can use these endpoints from this release. See Write Off Balance, Refund Balance and Refund Payment. - Storefront Pricing Groups Search:
featuresmatch the storefront —featuresonPOST /v1/storefront/pricing-groups/searchnow always lists what the operator's storefront shows. A feature added to the pricing group appears without any change on the storefront, and a feature the operator hid on the storefront stays out. Features come in the order the operator set on the storefront, followed by the features the operator has not ordered, alphabetically. Previously, once an operator had edited a unit type's features on the storefront, features added to the pricing group later were left out until the operator showed them, and hiding every feature returned all of them. The response shape is unchanged. See Storefront Pricing Groups Search.
October 2026
- Leases: quarterly, bi-annual and annual billing cycles —
billingCycleon lease objects from Leases Search and on the Rent Roll Report can now also beQUARTERLY,BI_ANNUALorANNUAL, for a lease charged every 3, 6 or 12 months. A lease can be put on one of these cycles at move-in, by a manager or by a customer on the storefront, at a facility where Cubby has turned them on and where its pricing group allows it; a facility's ownbillingCyclestaysMONTHLYorDAYS_28. They convert like the other cycles, at 4, 2 and 1 cycles per year, so amonthlyRentalAmountof10000at aMONTHLYfacility is charged as30000per quarter. At aFIRST_OF_MONTHfacility the move-in period is prorated to the 1st against one month of rent before the first full period starts. Thedescriptionof a prepaid charge fromPOST /v1/leases/preview-chargesreads"$370.00 (period rate) x 2 periods"on these leases, as on weekly ones. Discounts cannot be applied to leases on these cycles. See Billing Cycles. - Checkout: a card is saved for AutoPay only after it is charged — With
enableAutoPay,POST /v1/leases/checkoutsaved the card to the customer before charging it. A card the bank declined while it was being saved could then not be charged, so the whole checkout failed although the documentation says that saving never affects the charge. The card is now charged first and saved afterwards. If the save fails, the move-in still completes, withpaymentMethodIdnullandautoPayEnabledfalse.ACHandACSSbank accounts are still saved before the debit, because Stripe cannot save a bank account after it has been debited. A declined payment still saves nothing. Requests withoutenableAutoPayare unchanged. See Checkout. - Auctions: settle and complete — Two new endpoints set the
NO_BIDS,SOLDandCOMPLETEstatuses thatPOST /v1/auctions/searchreports.POST /v1/auctions/settlerecords the outcome of an auction for a lease. WithoutcomeUNSOLD, the auctioned lease moves toNO_BIDS. WithoutcomeSOLD, it records the winning bidder (an existing customer bywinningBidderId, or a new one fromwinningBidder) andbidAmount, charges the bid and, unlessdeposit.collectisfalse, the cleaning deposit set on the auction's lease configuration, and returns thebalancethe bidder owes with the subtotal and tax of the bid and of the deposit.POST /v1/auctions/completecloses a sale that was paid in Cubby and settles the cleaning deposit bydepositAction:REFUNDreturns it to the bidder, andRETAINkeeps it as facility income. The API does not record auction payments, so completing a sale that is stillSOLDis rejected with a403. Completion is also refused while a refund of the deposit is pending, because the auction completes by itself once the refund settles. Auctioned leases now also carryremainingBidwhen an online auction platform kept part of the bid. Available to theManagerrole. - Discounts:
CALL_CENTER_ONLYvisibility —visibilityonpricingGroups[]ofPOST /v1/discounts/search, and on thediscountsexpansion ofPOST /v1/pricing-groups/search, can now beCALL_CENTER_ONLY. A call center only discount is for customers who rent through a call center. Your API key can apply it like any other discount, with no extra role, andavailableDiscountsonPOST /v1/pricing-groups/searchlists it. If your client does not serve call center customers, for example a website or an aggregator, skip these discounts, as you skipCUBBY_ONLYones. If your client parsesvisibilityas a closed set of values, add the new value. - Pricing Groups: assign discount strategies — New endpoint
POST /v1/pricing-groups/update-discount-strategiesassigns discount strategies to pricing groups, changes thevisibilityof an assignment and unassigns strategies. Each entry names apricingGroupId, the strategies toassign, each with avisibility(ALL,CUBBY_ONLYorCALL_CENTER_ONLY), and the strategies tounassign. Strategies that the request does not name stay as they are. The whole request is one transaction: when one entry is rejected, nothing changes. An inactive strategy, a strategy of another organization than the pricing group, a missingvisibilityand a duplicate entry get a400. Unassigning a strategy that is not assigned does nothing, so you can send a request again. The endpoint needs the Manager role. See Pricing Groups Update Discount Strategies. - Discount strategies: search, and
discountStrategyIdon discounts — New endpointPOST /v1/discount-strategies/searchlists an operator's discount strategies. A discount strategy groups discounts, and the operator assigns the strategy to pricing groups. Search byorganizationId,pricingGroupIdordiscountStrategyId. Each strategy returns its discount IDs (discounts) and thepricingGroupsit is assigned to, with thevisibilityof each assignment.pricingGroupslists only pricing groups at the facilities your API key can access, and a strategy with no assignment that the key can see returns an empty list. Discount objects now carrydiscountStrategyId, the ID of the strategy that holds the discount, onPOST /v1/discounts/search, thediscountsexpansion ofPOST /v1/pricing-groups/searchand thediscountsexpansion ofPOST /v1/storefront/pricing-groups/search. See Discount Strategies Search. - Responses can get new fields — The Introduction now states that responses can get new fields at any time, and that clients must ignore the fields that they do not recognize. This is not a change in behavior.
- Leases: waive charges and issue credits — Two new endpoints let an integration that approves concessions in its own systems apply them in Cubby without a second approval.
POST /v1/leases/waive-chargewaives all or part of one charge, with its tax.POST /v1/leases/issue-creditadds a credit to a lease, which Cubby uses on the lease's next charges. Both require you to send back the balance you read: the charge'swaivableAmountor the lease'screditbalance from Ledger Search. If it has changed, the request is rejected with error code8101and nothing is applied. A timed-out waive can therefore be retried without waiving twice. A timed-out credit can too, unless a charge has used up the credit before the retry; Issue Credit explains that case. Both need the new Credits and Waives role. Keys holding all API permissions already have it; no other existing role includes it. See Waive Charge and Issue Credit. - Ledger Search: credit balance and waivable amounts — Ledger balances now carry
credit, the lease's unused credit balance. This also appears in theledgerexpansion ofPOST /v1/leases/search. The newwaivableAmountsexpansion addswaivableAmountto every charge when the search is scoped byleaseId. - Storefront Pricing Groups:
rentablefield —POST /v1/storefront/pricing-groups/searchnow returnsrentableon each unit type. It isfalsefor a sold-out unit type, which the endpoint returns only when the operator shows sold-out pricing groups on their storefront, andtrueotherwise. It matchesrentableUnitsbeing above0onPOST /v1/pricing-groups/search. Prices are unchanged. To offer a waitlist for a sold-out unit type, create a lead withPOST /v1/leads/createandsourceset toWAITLIST_FORM. - Storefront Pricing Groups Search:
description—POST /v1/storefront/pricing-groups/searchnow returnsdescriptionwhenever the unit type has a storefront description. It was previously omitted for unit types whose description was hidden on the storefront. - Leads:
BUSINESS_DEVELOPMENTlead source —sourceaccepts a new value,BUSINESS_DEVELOPMENT, for leads and rentals that a business development team brings in. Send it onPOST /v1/leads/create,POST /v1/leads/update,POST /v1/leases/createandPOST /v1/leases/checkout.POST /v1/leads/searchand theleadsexpansion ofPOST /v1/customers/searchreturn it like any other source. - Value pricing: tier filling when few units remain — Value pricing with filling enabled offers
LOWESTwhen one unit remains. Fill all tiers offersLOWESTplusMEDIUMwhen two remain. Fill lower tiers never offers a unit above its assigned tier, so twoLOWESTunits still offer onlyLOWEST. These rules apply after reservations reduce capacity.availableTiersandrentableTiersnow return the same tiers after reservation holds. Both lists are empty whenrentableUnitsis0. Unit selection uses the same allocation. Borrowed units sort by permanent tier before rank within that tier. Reservation conversion keeps the booked tier. A replacement must follow the filling setting. If no permitted replacement exists, checkout stops before payment. The facility’s rate-locking setting continues to control the price. - Leases: update a scheduled move-out — New endpoint
POST /v1/leases/update-scheduled-move-outchanges the scheduled move-out of a lease, whichPOST /v1/leases/schedule-move-outcreates but cannot change. OnlyleaseIdis required: the properties you send are changed, and the ones you omit are left as they are. A lease with no scheduled move-out is rejected with a400. See Update Scheduled Move Out. - Preview Charges: prepay description names the billing period — On a weekly, bi-weekly or 28-day lease, the
descriptionof a prepaid charge returned byPOST /v1/leases/preview-chargesnow reads"$61.00 (period rate) x 3 periods"instead of"$61.00 (monthly rate) x 3 months", because each prepaid period is one billing cycle of the lease, not a month. Monthly leases keep the existing text. Amounts are unchanged. See Preview Charges. - Reservations hold units back from rent — At a facility that does not allow overbooking, a reservation now holds a unit back from every other customer on the API, as it already does in the Cubby app and on the storefront. Pricing groups on
POST /v1/pricing-groups/search(and every expanded pricing group) carry new fields. Three of them match what the Cubby app shows:reservationsCount, the reservations held on the group;allowOverbooking, whether the facility rents units its reservations hold; andrentableUnits, the free units left once those reservations are held back, never below0.availableUnitsis unchanged and still counts every free unit, so offer a group only whilerentableUnitsis above0. BothavailableTiersandrentableTierslist the value-pricing tiers a customer without a reservation can rent: a tier drops out when reservations hold its free units, whether they name a unit of the tier or only the tier, and every tier drops out oncerentableUnitsis0.POST /v1/pricing-groups/find-unit-for-tierreturns no unit for a group whoserentableUnitsis0, or for a tier that is not inrentableTiers, and never returns a unit that another reservation names; a newunavailableReasonsays why whenever no unit is returned: a group or tier whose free units reservations hold (RESERVED_OUT), one with no free unit at all (NO_INVENTORY), a requested tier that is not offered (TIER_UNAVAILABLE), or a group whose value pricing is not approved (VALUE_PRICING_INACTIVE).POST /v1/leases/createandPOST /v1/leases/checkoutreject a rental with a400and the errorPricing group is fully booked.when the group's other reservations already claim every free unit; checkout rejects it before charging anything. The customer who holds a reservation can always convert it, whether it is matched automatically or named withleadId. At a facility that allows overbooking nothing changes. - Units Search:
reservedfield — Unit objects now carryreserved, which istruewhen at least one customer holds the unit with a reservation, the same hold the Cubby manager app shows as "Reserved" in its units list. A reservation does not block a lease, sorentabilityis unchanged: a vacant, available unit that is reserved still returnsrentable: true. Usereservedto hide or label held units on a storefront. The field appears on every unit object the API returns, including theunitexpansion ofPOST /v1/leases/search,/v1/leads/searchand/v1/tasks/searchand theunitsexpansion of/v1/auctions/search. See Units Search. - Leads, Leases: turn off Cubby's confirmation and receipt emails per request — An integration that emails customers itself can stop Cubby sending the same email.
POST /v1/leads/createacceptssendConfirmationEmailfor reservations,POST /v1/leases/createandPOST /v1/leases/checkoutacceptsendConfirmationEmailfor the rental confirmation, andPOST /v1/leases/checkoutandPOST /v1/leases/make-paymentacceptsendReceiptEmailfor the payment receipt. Each defaults totrue, which keeps today's behaviour: Cubby sends the email when the facility has it turned on. Sendfalseto suppress that email for that request only;truenever sends an email the facility has turned off. Text messages, and every other message Cubby sends, are unchanged. Requests that omit the fields behave as before. - Customers Search:
unitNameson theleasesexpansion — Customer objects returned with theleasesexpansion now also carryunitNames, the names of the units the customer currently occupies, taken from their active leases. Previously the expansion returned lease ids only, so showing a customer's units meant a second call to Leases Search and then to Units Search. The existingleasesarray is unchanged and still lists every lease, past and present. See Customers Search. - Aged Receivables Report:
chargesexpansion —POST /v1/reports/aged-receivablesnow supports achargesexpansion. When requested, each entry includes achargesarray listing the unpaid charges that make up the lease's balance, with each charge'saccount(RENT,FEES,INSURANCE,TAX_STATE, etc.),entryTime, accrual period, originalamount,outstandingAmountand agingrange. A client can apply its own aging windows or split the balance by charge type, and theoutstandingAmountof a lease's charges adds up to itstotalAmountand to each of itsranges. The bucketed fields are returned unchanged. See Aged Receivables Report. - Customers:
militaryis always a boolean —militaryon customer objects is now alwaystrueorfalse; a customer whose military status was never recorded is returned asfalseinstead ofnullor leaving the field out.POST /v1/customers/updatenow leavesmilitaryunchanged when it is sent asnull, the same as when it is omitted; previously an explicitnullcleared it. To mark a customer as not military, sendfalse.POST /v1/leases/createandPOST /v1/leads/createrecord a new customer sent withoutmilitaryasfalse. - Facilities: billing settings — Facility objects now carry the facility's billing settings:
billingCycle(MONTHLYorDAYS_28),billingOption(FIXEDorFLEXIBLE),leaseAnniversary(START_DATEorFIRST_OF_MONTH) andjumpDay. They tell you which cycle the facility's rates and lease rents are expressed in, whether a customer can choose another cycle at move-in, and how a monthly lease's first period is prorated. The fields appear on every facility object the API returns, including thefacility/facilitiesexpansions ofPOST /v1/leases/search,/v1/units/search,/v1/tasks/search,/v1/leads/search,/v1/pricing-groups/searchand/v1/facility-groups/search. The storefront endpointPOST /v1/storefront/facilities/searchis unchanged. See Facilities Search. - Leases Search:
billingCyclefield — Lease objects now carrybillingCycle, the cycle the customer is charged on:WEEKLY,BI_WEEKLY,DAYS_28orMONTHLY, the same values asbillingCycleon the Rent Roll report. It is usually the facility's cycle, but a lease imported from a previous system, or one where the customer chose another cycle at move-in, can be on a different one. - Documentation: amounts are per facility billing cycle — No values have changed; the documentation now says which cycle each amount is in.
monthlyRentalAmount,rentChangeNewRentAmountand the coveragepremiumAmounton Leases Search, the rates on Pricing Groups Search andpremiumAmounton coverage levels are all per one billing cycle of the facility. For a lease on a different cycle than its facility,monthlyRentalAmountis therefore not the rent the customer pays per period. A customer paying $300.00 a month at a 28-day facility comes back as27692, the 28-day equivalent. The Rent Roll report'smonthlyRentalAmountwas already converted to the lease's cycle and still is, so the two disagree for such leases. Billing Cycles explains how to convert between cycles.
September 2026
- Leases: prepaid balance and implied paid-through date — Lease objects now carry
prepaidBalanceandimpliedPaidThroughDate. A payment made ahead of the lease's charges is held as prepaid balance and does not movepaidThroughDateornextChargeDateuntil the charges it pays post.prepaidBalanceis that held amount, in cents.impliedPaidThroughDateis the date the prepaid balance covers when applied to the lease's upcoming recurring charges, and is the date to show a customer who has paid ahead. It equalspaidThroughDatewhen the lease holds no prepaid balance.prepaidBalanceappears on every lease object the API returns.impliedPaidThroughDateis populated only whenPOST /v1/leases/searchis scoped byleaseIdorcustomerId, likenextChargeAmount, and isnullotherwise. See Paid-through date and prepayments. - Delinquency Exemptions: set, list, change, and cancel through the API — Four new endpoints manage the delinquency exemption staff apply from the dashboard. An exemption pauses any combination of automated delinquency fees, overlock and gate lockout, lien eligibility, and collections messages on a lease until an end date.
POST /v1/delinquency-exemptions/createexempts a lease.POST /v1/delinquency-exemptions/searchlists the active exemptions of a lease, a customer, or a whole facility, so a bulk apply can be checked in one call per facility.POST /v1/delinquency-exemptions/updatechanges an existing exemption; every property butleaseIdis optional, so a property you omit is left as it is. Both endpoints carry the exemption'snote, the free text staff see in the app, andsearchreturns it.POST /v1/delinquency-exemptions/cancelends an exemption early and returns the lease to the normal delinquency flow. A lease holds one active exemption at a time: a create for a lease that already has one is rejected with a400and does not replace it. The endpoints are keyed byleaseId, because a customer can hold several leases. They are available to the Manager role, andsearchalso to the Search role. See Delinquency Exemptions. - Leads:
MOBILE_APPandKIOSKlead sources —sourceaccepts two new values,MOBILE_APPandKIOSK, for leads and rentals that come from a mobile app or an on-site kiosk. Send them onPOST /v1/leads/create,POST /v1/leads/update,POST /v1/leases/createandPOST /v1/leases/checkoutin place ofOTHERwith acustomSource.POST /v1/leads/searchand theleadsexpansion ofPOST /v1/customers/searchreturn them like any other source. Existing leads keep their currentsourceandcustomSource, andOTHERwith acustomSourcestill works. - Products Search — New endpoint
POST /v1/products/search. Returns the merchandise a facility sells: every active product assigned to the facility with a price above zero, withproductId,name,category, the facility'sunitPricein cents, whether stock istracked, and the currentquantityfor tracked products. Quantity is informational — it may be zero or negative, and the API neither hides nor blocks out-of-stock products. Available to theManagerandSearchroles. - Get Move-In Charges: merchandise line items —
POST /v1/leases/get-move-in-chargesaccepts an optionalproductsarray of{ productId, quantity }. Each product is returned as an additional entry inchargeswithtypeRETAIL_SALES, the product'sdisplayName,productId,quantity,unitPriceand lineamount;subtotal,taxandtotalinclude the merchandise and its sales tax. A repeated product, or a cart of more than 2,000 units in total, returns a400; a product that is unknown, archived, priced at zero or not sold at the unit's facility returns a404, naming it. Requests withoutproductsare unchanged. - Checkout: merchandise sold with the lease —
POST /v1/leases/checkoutaccepts the sameproductsarray and charges the lease move-in and the merchandise as one payment;payment.amountmust equal theget-move-in-chargestotal including merchandise. A checkout that includes merchandise produces a payment in the newLease/Merchcategory. Merchandise is a sale, not a charge on the lease: it does not appear inPOST /v1/ledgers/search, and it is reported under retail sales and inventory in Cubby. Until item-level refunds ship, aLease/Merchpayment can only be refunded in full, from the Cubby app.POST /v1/leases/createdoes not acceptproductsand returns a400if it is sent. - Lease Compliance: other documents —
POST /v1/leases/get-compliancesand thecomplianceexpansion onPOST /v1/leases/searchnow return anotherDocumentsarray next todocuments, listing each of the lease's other documents with itsnameandstatus. These are documents outside the four compliance types — the terms paired with an optional upgrade, or a document staff added to the rental — so an integration that sells an upgrade can confirm the customer signed its terms. Archived documents are not listed.documentsis unchanged and still carries exactly the four types. Relatedly, an upsell passed inupsellFeeIdsofPOST /v1/leases/createorPOST /v1/leases/checkoutnow attaches its terms to the lease for signature when the operator has paired a document with it; the lease is created and billed as before whether or not the document is signed. - Tasks: editable through the API —
POST /v1/tasks/updateedits an existing task: its title, description, due date, the customer or unit it is attached to, and whether it is completed or archived. Every property buttaskIdis optional and independent — omit one to leave it as it is, send it asnullto clear it — so a client that writes a whole open task object back is safe. A task stays at the facility it was created in, and its assignees, attachments, team assignments and repeat settings are preserved. A task must pass back throughOPENto move between the two terminal statuses — see Task Status. - Tasks: addressable by ID —
POST /v1/tasks/createnow returns adataobject carryingtaskId, andPOST /v1/tasks/searchacceptstaskIdas a scope returning just that task. Together they let a client create a task and then update or re-read it without searching a facility and matching on title. Thestatusfield of the create response is unchanged, so a client that only reads that is unaffected;taskIdis exclusive with the other search scopes, as they are with each other. - Tasks: incremental sync — Task objects now carry
createdAtandupdatedAt, andPOST /v1/tasks/searchaccepts the strictupdatedAfter/updatedBeforeUTC bounds already available on Leases, Leads and Customers Search. Passing theupdatedAtfrom your previous response asupdatedAfteron the next poll returns only the tasks that changed since, instead of re-reading every task in a facility to find the ones that moved. - Enable AutoPay: the payment method must match the facility's provider —
POST /v1/leases/enable-auto-payaccepted any of the customer's saved payment methods, including one held at a payment provider the lease's facility no longer uses. AutoPay was enrolled and then failed silently on every charge date, because a charge is rejected when the method's provider is not the facility's active one. Such a request is now rejected with a400at enrolment instead. This affects only methods the facility could never have charged; a method saved for the facility's current provider is unchanged. A facility that has moved between providers keeps the old provider's tokens on the customer, so an integration holding apaymentMethodIdfrom before the move should re-read Payment Methods Search and pick a method whose newpaymentServiceProvidermatches the facility. - Payment Methods:
paymentServiceProvideron saved methods — payment methods returned byPOST /v1/payment-methods/searchnow carry apaymentServiceProviderfield (STRIPE,PAYABLIorDEMO), naming the payment gateway that holds the method's token. A method can only be charged at a facility running on the same provider, and a facility that has moved between providers leaves the old provider's tokens on the customer — charging one of those fails with a400. The field is what lets a caller tell them apart; the search itself still returns every saved method, as before. - Leads Search:
reservedAtset on leads created as reservations — a lead created directly as a reservation, throughPOST /v1/leads/create, the Cubby app, the voice agent or an import, returnedreservedAt: nulleven while itsstatusreadRESERVATION. It now reports the moment the hold opened, which is the lead'screatedAt. Leads promoted intoRESERVATIONare unchanged, except that one re-reserved after a downgrade now reports its most recent promotion rather than its creation date.reservedAton theleadsexpansion ofPOST /v1/customers/searchchanges the same way. - Leads Search:
unqualifiedAtset on archived reservations — archiving a lead out ofRESERVATIONrecords a cancellation rather than a plain archive, andunqualifiedAtread only the plain archive unless the lead came from the storefront reservation form. A reservation archived on any other origin — the Cubby app,POST /v1/leads/create, the voice agent — returnednull, as did a storefront-form lead downgraded to a plain lead before being archived. Both now report when the lead was archived. A lead archived more than once, from a reservation on one occasion and from a plain status on another, reports the later of the two rather than whichever its origin selected.unqualifiedAton theleadsexpansion ofPOST /v1/customers/searchchanges the same way. - Pricing Groups Search:
availableTiersnow reads unit assignments —availableTiersonPOST /v1/pricing-groups/searchused to be derived from the number of free units alone: one free unit meantLOWEST, two meantMEDIUMas well, three meant all of them. It now reports the tiers a customer can actually buy, from the tier each unit is assigned to. A tier is offered when it holds a free unit, or when it can borrow one from a neighbouring tier under the fill setting on the group's value pricing strategy. Expect fewer tiers than before for some groups, because a tier with no free unit and no neighbour to borrow from is no longer listed. The field continues to appear only for a group whosevaluePricingStatusisAPPROVED. - Pricing Groups Search:
valuePricingStatusnow reports tier assignment — the status used to read the old per-group unit ranking, soAPPROVEDmeant every active unit was ranked. It now reads the tier each unit is assigned to:REVIEW_REQUIREDmeans at least one active unit has no tier, andAPPROVEDmeans every one of them has. Value pricing runs only on anAPPROVEDgroup, so a single unassigned unit turns tier pricing off for that group and it sells at its single rate until the assignment is finished. - Units Search:
valuePricingTierfield — Unit objects in/v1/units/searchnow carry avaluePricingTierofLOWEST,MEDIUMorHIGHEST, saying which value pricing tier the unit itself belongs to. It isnullfor a unit in a pricing group that does not use value pricing, and for one an operator has not assigned to a tier yet. The field reports what the unit is, not what any past rental was sold as: where a tier had nothing vacant, Cubby can offer a unit from a neighbouring tier at the offered tier's price, and that sale does not change the unit's own tier. - Checkout Component:
unit-idattribute —<cubby-checkout>now accepts aunit-idattribute naming the exact unit to rent, instead of letting Cubby assign one from the pricing group. The pricing group is derived from the unit, sounit-idalone is sufficient; supplying it alongsidepricing-groupsis accepted as long as the unit belongs to that group. A unit that has been rented by the time the customer checks out fails with the new response code7503rather than silently substituting another unit. For a pricing group with value pricing approved, a named unit is charged the tier its ranking gives it, and anyselectedValueTiersent alongsideunit-idis ignored. The supported way to pick aunit-idisPOST /v1/pricing-groups/find-unit-for-tier, so the tier you advertise is the tier charged. A unit's tier can change as its neighbours are rented or returned; if it changes between the price shown and the payment, the checkout fails with7501and the client should re-quote. Omittingunit-idleaves the existing behaviour unchanged. - Lock Search:
wherewrapper accepted —POST /v1/locks/searchnow takes the standardwherewrapper:{"where": {"organizationId": "org_..."}}. It previously read its two scopes only from the top level of the request body, unlike every other search endpoint, and rejected the wrapper with a403— so a caller following this documentation received no results whatever their permissions. The top-level form continues to work — there is no plan to remove it, and when both are present the wrapper wins — but it is now deprecated, and new integrations should send the wrapper.leaseIdis also now documented as the second scope; it was always accepted. Exactly one of the two must be supplied, and supplying none or both is rejected with a403. - Locks:
lockIdsupersedesid—POST /v1/locks/searchandPOST /v1/locks/registernow returnlockId, the name a lock's identifier already carries on the request side of Disable, Attach, Return and Transfer, so a lock can be passed between those endpoints without renaming the field. Both continue to returnidalongside it with the same value;idis now deprecated, with no plan to remove it, and new integrations should readlockId. Lock Identifiers covers which endpoints produce and consume a lock's ID.statusanddisabledReasonare unchanged on the wire. - Facilities:
enabledfield — Facility objects now carry anenabledboolean 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 a client migrating a portfolio in stages can tell which facilities Cubby is already managing from those still running on a previous system, without tracking the cutover schedule out of band. Disabled facilities were already returned by the API and still are — the field reports their state rather than hiding them. The field appears on every facility object the API returns, including thefacility/facilitiesexpansions ofPOST /v1/leases/search,/v1/units/search,/v1/tasks/search,/v1/leads/search,/v1/pricing-groups/searchand/v1/facility-groups/search. The storefront endpointPOST /v1/storefront/facilities/searchis unchanged. - Leases: a customer's reservation is converted by their move-in —
POST /v1/leases/createandPOST /v1/leases/checkoutnow convert the reservation the customer holds for the unit being leased, instead of skipping it and minting a second lead. Previously the reservation was left open with no unit alongside a duplicate converted lead, which inflated the customer's open-lead count, split source attribution, and kept the reservation on its expiry reminder schedule — so a customer who had already moved in could still receive "your reservation expires soon" and then a cancellation notice. No client change is needed. The reservation is matched ahead of any plain open lead, because a customer usually enquires before reserving and the general match takes the earliest record. Only a reservation for the same facility and pricing group as the unit being leased is matched, and only one pinned to that unit or to no unit at all — useleadIdto convert one held against a different unit or group. - Leases: name the lead to convert with
leadId—POST /v1/leases/createandPOST /v1/leases/checkoutaccept an optionalleadId. When supplied it replaces the match-by-shape entirely: that lead is converted even when its pricing group or unit differs from the one being leased, and it is repinned to the leased unit. Any open lead converts, aRESERVATIONincluded. The lead must belong to the same facility, or to no facility yet - divergence is allowed on the pricing group and unit only. Rejected with a400if the lead is already converted, is marked as a duplicate, belongs to a customer other thancustomerId, is pinned to another facility, or is combined with a newcustomerobject. - Leads Update: reservations editable —
POST /v1/leads/updateno longer rejects reservation-backed leads outright. Their fields — coverage, discounts, unit, pricing group, rate, target move-in date — can now be changed, matching what staff can already do in the Cubby app; a reservation keeps requiring a pricing group and a target move-in date, and its rate quote is kept in step. Moving a reservation to a different unit or pricing group re-checks availability the way creating one does, so it cannot be parked on a unit another reservation holds or in a fully booked group unless the facility allows overbooking. Changing a reservation'sstatusthrough this endpoint is still rejected, because leavingRESERVATIONcancels the hold and requires a cancellation reason this endpoint has no field for; sending the status it already has is accepted, so a client that writes back a whole lead object is unaffected. - Customers: communication preferences readable —
POST /v1/customers/searchnow returns acommunicationPreferencesobject on every customer, containing ansmsand anemailobject. Each carriesmarketing(accepts promotions),suppressed(has asked, or been marked, to receive no automated messages), andsuppressionReason(OPTED_OUTorUNDELIVERABLE) explaining why a channel is suppressed. Togethermarketingandsuppressedexpress the customer's full recorded preference on that channel, which Cubby's automated messaging honours apart from required notices and messages a facility sends through its own workflows. No expansion is required, though the object is PII and is skipped for keys without PII access. The same object now also appears on every customer object returned by an expansion: thecustomerexpansions ofPOST /v1/leases/search,POST /v1/leads/searchandPOST /v1/tasks/search, and thewinningBiddersexpansion ofPOST /v1/auctions/search. - Leads Create: response —
POST /v1/leads/createreturnsleadIdandcustomerIdin itsdataobject.leadIdis the id Leads Update takes and the onePOST /v1/leases/createandPOST /v1/leases/checkoutaccept asleadId.customerIdechoes the request when one was supplied; when the lead was created from acustomerobject it is the newly created customer's id.
August 2026
- Documentation: Payabli tokenization fix — The Generating a Payment Token guide previously instructed Payabli integrators to create a Basis Theory token intent (
bt.tokenIntents.create). This was incorrect: the Cubby API only accepts plain Basis Theory tokens, and a token-intent ID fails when the payment is processed. The guide now showsbt.tokens.create. If you followed the previous instructions, switch to plain tokens. - Checkout: ACH / ACSS direct debit — The
paymentobject ofPOST /v1/leases/checkoutnow acceptsmethodTypeACH(USD facilities) andACSS(Stripe-backed CAD facilities) alongside the existingCREDIT_CARD. Direct-debit requests supplyachAccountType,achAccountHolder, andachAccountLastFour(or theacss*equivalents) instead of the card fields — the same fields as Create Payment Method. WithenableAutoPay, the bank account is saved and enrolled in AutoPay just like a card. Direct-debit payments settle asynchronously:paymentSuccess: truemeans the debit was accepted for processing, and it can still be returned later. Existing card integrations are unaffected. - Documentation: bank-account tokenization — Generating a Payment Token previously covered credit cards only. It now also shows how to tokenize a bank account on each gateway:
us_bank_accountandacss_debitpayment methods on Stripe, andbanktokens on Payabli. - Leases: discount eligibility enforced —
POST /v1/leases/create,POST /v1/leases/checkoutandPOST /v1/leases/get-move-in-chargesnow reject adiscountsentry that could not have been offered for the unit: not assigned to the unit's pricing group, or occupancy-percentage or available-units restriction not currently satisfied. The response is a400naming the offending discount. A repeated discount id is applied once rather than stacked. Channel visibility is not part of this check: aCUBBY_ONLYprogram assigned to the unit's pricing group is still accepted, andavailableDiscountsonPOST /v1/pricing-groups/searchstill lists it. Filtering on visibility is left to the client, which can read it per pricing group frompricingGroups[].visibilityonPOST /v1/discounts/searchor on thediscountsexpansion ofPOST /v1/pricing-groups/search. Lead endpoints are unchanged. - Pricing Groups Search: assignment visibility on expanded discounts — Discount objects returned by the
discountsexpansion onPOST /v1/pricing-groups/searchnow carry the samepricingGroupsarray asPOST /v1/discounts/search: every pricing group the discount is assigned to, each with thevisibility(ALLorCUBBY_ONLY) configured for that pairing. A client that honours the "Cubby only" channel can read visibility from the same response that lists a pricing group's discounts, instead of onediscounts/searchcall per pricing group. - Payments Search:
leaseIdfilter —POST /v1/payments/searchnow acceptsleaseIdas a search scope, returning every payment applied to that lease including imported history from a previous management system, alongside the attempts against it that never settled (aDECLINEDorFAILEDcard, for instance). Because a customer renting several units can settle them in one transaction, a payment belongs to every lease it paid: the samepaymentIdcan be returned for more than oneleaseId, andamountremains the full transaction amount rather than the portion applied to the lease searched for. Exactly one offacilityId,customerId, orleaseIdmust be supplied. Unlike afacilityIdsearch, aleaseIdsearch does not fall back to a one-month window when the date bounds are omitted. - Rent Roll Report:
lastRentChangeDatefield — Entries inPOST /v1/reports/rent-rollnow include alastRentChangeDatefield, the date of the tenant's last completed rent change (omitted if the rent has never changed). - Rent Roll Report:
effectiveRatefield — Entries inPOST /v1/reports/rent-rollnow include aneffectiveRatefield, the net rent for the unit in cents (rent less discounts and waived rent) charged for the current billing period. - Managers Search:
phonefilter normalised to E.164 — Thephonefilter onPOST /v1/managers/searchis now normalised to E.164 and matched exactly, so a full number in any common spelling (555-555-5555,(555) 555-5555,+15555555555) matches the same manager. A value that is not a full phone number is now rejected with a400, and partial-number search is not supported on this filter. (customers/searchis unchanged: itsphoneremains a partial match.)
July 2026
- Rent Roll Report:
creditfield — Entries inPOST /v1/reports/rent-rollnow include acreditfield, the tenant's available credit balance for the unit in cents. - Checkout: save card & enable AutoPay —
POST /v1/leases/checkoutaccepts an optionalenableAutoPayflag. When set, a successful payment also saves the card supplied inpaymentto the customer as a reusable payment method and enrols the new lease in AutoPay using that card; when omitted, the card is charged but not saved. The response gainspaymentMethodId(the ID of the saved method,nullwhen AutoPay was not requested or the save did not succeed) and anautoPayEnabledboolean — so integrators can confirm each outcome independently of the payment result;paymentFailureInforemains reserved for payment failures. - Pricing Groups: value-pricing tiers —
POST /v1/pricing-groups/searchnow returnsvaluePricingStatus(NOT_CONFIGURED,REVIEW_REQUIRED, orAPPROVED) on every pricing group, plus anavailableTiersarray on eachAPPROVEDgroup — the subset ofLOWEST,MEDIUM,HIGHESTcurrently offered, based on how many units are available. New endpointPOST /v1/pricing-groups/find-unit-for-tierresolves a selected tier to the concrete unit a renter would be assigned, using the same ranking the storefront applies. - Leads Update — New endpoint
POST /v1/leads/update. Modifies an existing lead's unit, pricing group, coverage, discounts, rate, status, source, and target move-in date: omitted fields are left unchanged and an explicitnullclears the value. Validation matches the staff UI (valid unit/coverage for the facility, discounts available for the pricing group,customRaterequired when settingrateTypetoCUSTOM_RATE). To stay predictable, update does not perform reservation transitions. (Superseded September 2026: reservation-backed leads are now editable; only theirstatusstays off-limits.) - Leads Search:
originand lifecycle timestamps —POST /v1/leads/searchnow returns anoriginfield describing how the lead was created (MANAGER,API,AI_VOICE_AGENT,CONTACT_FORM,WAITLIST_FORM,RESERVATION_FORM,WEBSITE_CHECKOUT,RESERVED_CHECKOUT,ABANDONED_CHECKOUT, orFAILED_CHECKOUT), plus four lifecycle fields:reservedAt,convertedAt, andunqualifiedAt(ISO-8601 UTC timestamps,nulluntil the lead reaches that state) andleaseMoveInDate(YYYY-MM-DD, the start date of the lease created from the lead, ornull). - Leads: coverage / discounts / custom rate —
POST /v1/leads/createnow acceptscoverageLevelId,discounts,rateType, andcustomRate(alongside the existingunitId), andPOST /v1/leads/searchreturnscoverageType,coverageLevelId,discounts,rateType, andcustomRateon every lead — including assignments staff set in the Cubby app. Thediscountsarray is now populated on lead objects wherever they appear — including theleadsexpansion ofPOST /v1/customers/search(previously omitted there). - Communication preferences —
POST /v1/customers/update,POST /v1/leads/create,POST /v1/leases/create, andPOST /v1/leases/checkoutnow accept an optionalcommunicationPreferencesobject with per-channel marketing opt-in flags (smsMarketing,emailMarketing). On the create/checkout endpoints it lives inside thecustomerobject. Each flag is optional —trueopts the channel in to promotions,falserestricts it to transactional messages, and an omitted flag leaves that channel unchanged.
June 2026
- Facility Groups Search — New endpoint
POST /v1/facility-groups/search, searchable byfacilityGroupIdororganizationId. Each group always carries afacilityIdsarray; afacilitiesexpansion adds a top-level array of the full member facility objects.POST /v1/facilities/searchnow also accepts afacilityGroupIdfilter, always returns afacilityGroupIdsarray on each facility, and supports afacilityGroupsexpansion that adds a top-level array of the related facility groups. - Discounts:
pricingGroupsfield — Discount objects inPOST /v1/discounts/searchnow include apricingGroupsarray listing every pricing group the discount applies to, withpricingGroupId,name, andvisibility(ALLorCUBBY_ONLY). Visibility is configured per discount-and-pricing-group pairing. - Discounts:
applicationPercentagefield — Discount objects inPOST /v1/discounts/search(and lease discounts) now includeapplicationPercentageforPERCENT_DEDUCTEDdiscounts, expressing the percentage directly (e.g.10for 10%). For backward compatibility these discounts continue to populateapplicationAmountwith the percentage scaled by 100 (10% →1000). ThatapplicationAmountvalue for percentage discounts is deprecated and scheduled for removal in mid-July 2026 - Get Upsells — New endpoint
POST /v1/leases/get-upsells. Returns the optional upsell (upgrade) recurring fees available for a unit. Opt into an upsell at move-in by passing itsfeeIdin theupsellFeeIdsarray ofPOST /v1/leases/get-move-in-charges,POST /v1/leases/create, orPOST /v1/leases/checkout. - Facilities Search:
schedulesexpansion —POST /v1/facilities/searchnow supports aschedulesexpansion. When requested, each facility object includes aschedulesarray describing the facility's configured schedules (office hours, phone support, etc.). - Facilities Search:
timeZonefield — The facility object inPOST /v1/facilities/searchnow includes atimeZonefield containing the facility's IANA time zone identifier (e.g.America/New_York). - Units Search:
legacyIdfield — Unit objects inPOST /v1/units/searchnow include alegacyIdfield containing the original unit ID from the source management software (e.g. SiteLink), preserved during import so partners can re-map their unit references after a migration.nullfor units not created via import.
May 2026
- Merchant Services Disbursements Report — New endpoint
POST /v1/reports/merchant-services-disbursementsfor retrieving batch settlement and transaction details from configured payment providers. - Value Pricing Strategies Search — New endpoint
POST /v1/value-pricing-strategies/search.POST /v1/pricing-groups/searchnow also returnsvaluePricingStrategyIdon each pricing group with a strategy assigned, plus a top-levelvaluePricingStrategiesarray when thevaluePricingStrategiesexpansion is requested. - Leases, Leads, Customers Search:
createdAt/updatedAttimestamps —createdAtandupdatedAtUTC timestamps are now included on objects returned byPOST /v1/leases/search,POST /v1/leads/search, andPOST /v1/customers/search. - Search endpoints:
updatedAfter/updatedBeforefilters — Strict (exclusive) UTC timestamp filtersupdatedAfterandupdatedBeforeadded to/v1/leases/search,/v1/leads/search, and/v1/customers/search. Designed as incremental-sync cursors: passing theupdatedAtfrom your previous response asupdatedAfteron the next poll excludes the boundary record. - Leases Search:
activeOnOrAfter/activeOnOrBeforefilter fix — These inclusive date filters now apply consistently across all code paths in/v1/leases/search. - Aged Receivables Report: optional
throughDateparameter —POST /v1/reports/aged-receivablesnow accepts an optionalthroughDate. When supplied, aging buckets are computed as of the end of that date, enabling historical snapshots. Defaults to the facility's current date. - Get Documents Link — New endpoint
POST /v1/leases/get-documents-link. Returns adocumentsLinkURL pointing to the tenant portal page where the tenant can view, manage, and sign lease documents. - Documentation: roles and permissions — New section documenting the
Manager,Search, andStorefrontAPI key roles with per-resource access tables.
April 2026
- Checkout — New endpoint
POST /v1/leases/checkout. Creates a lease and collects the first payment atomically. Accepts allCreate Leasefields plus a requiredpaymentobject (amount, billing address,methodType, and gateway token). On payment decline the lease is rolled back; the response includespaymentSuccess,paymentTransactionId, andpaymentFailureInfo. - Auctions:
leaseConfigurationIdfield —leaseConfigurationIdadded to auction-create requests and auction-search responses, linking an auction to the lease configuration (agreement template) assigned to the pricing group.
March 2026
- Leases Search:
scheduledMoveOutfield — Lease objects in/v1/leases/searchnow include ascheduledMoveOutobject when a move-out is scheduled:moveOutDate,noticeGivenDate,moveOutReason,customReason, andmoveOutTime. - Leads Create: facility-level token support —
POST /v1/leads/createnow accepts afacilityIdin place oforganizationIdwhen using a facility-scoped API token.
February 2026
- AutoPay Enable / Disable — New endpoints
POST /v1/leases/enable-auto-payandPOST /v1/leases/disable-auto-pay.enable-auto-payrequiresleaseIdandpaymentMethodId;disable-auto-payrequiresleaseIdonly. Lease objects in/v1/leases/searchnow includeautoPayPaymentMethodId. - Leases Search:
coverageChangefield — Lease objects now include acoverageChangeobject showing the next scheduled coverage change:coverageType,startDate,coverageLevelId,premiumAmount, andcoverageAmount. - Lease Compliance — New endpoints
POST /v1/leases/get-compliancesand acomplianceexpansion on/v1/leases/search. Returns per-lease compliance status for each required document type (LEASE_AGREEMENT,COVERAGE,IDENTITY,VEHICLE) with statusesNOT_REQUIRED,INCOMPLETE,PENDING_APPROVAL,SIGNATURE_NEEDED,REJECTED, orAPPROVED. - Accrual General Ledger Report — New endpoint
POST /v1/reports/general-ledger/accrual. Returns journal entry line items withdebit/creditamounts,account,taxCategory,taxExempt,explanation, and GL mapping fields. RequiresfacilityId,startDate, andreportRelativeDuration. - Ledger Search:
paymentTimefield —paymentTimeUTC timestamp added to charge entries in/v1/ledgers/search, indicating when the charge was fully paid. - Pricing Groups Change Rates:
strikethroughRatefield —strikethroughRateadded as an optional property onPOST /v1/pricing-groups/change-rates. Setting it tonullremoves the strikethrough price; it only displays on the storefront when greater than the web rate. - Facilities Search: additional fields —
internalName,organizationId,longitude,latitude, andpaymentServiceProvider(STRIPEorPAYABLI) added to facility objects in/v1/facilities/search. - Units Search:
walkthroughOrderfield —walkthroughOrderinteger added to unit objects in/v1/units/search.
January 2026
- Leads Search — New endpoint
POST /v1/leads/search. Filters byorganizationId,facilityId,customerId,pricingGroupId,unitId, orleadId. Supportsfacility,unit,pricingGroup, andcustomerexpansions. - Rent Roll Report — New endpoint
POST /v1/reports/rent-roll. Returns a per-unit snapshot includingmonthlyRentalAmount,rentVarianceAmount,totalDue,deposit,prepaid,moveInDate,paidThroughDate,autoPayEnabled, overlock status, scheduled rent-change fields, and customer contact details. RequiresfacilityIdsandthroughDate. - Payment Methods Create — New endpoint
POST /v1/payment-methods/create. Accepts a gatewaytokenandmethodType(CREDIT_CARD,ACH, orACSS) with method-specific fields (card brand, expiration, last four, holder; ACH/ACSS account type, holder, last four). - Units Set Rentability — New endpoint
POST /v1/units/set-rentability. Sets a unit'srentableboolean; whenfalse, requiresunrentableReason(REPAIRS_REQUIRED,CLEANING_REQUIRED,UNDER_RENOVATION,USED_BY_FACILITY,OTHER) and an optionalunrentableReasonNote.
December 2025
- Aged Receivables Report — New endpoint
POST /v1/reports/aged-receivables. Returns per-lease aging buckets (RANGE_0_30,RANGE_30_60,RANGE_60_90,RANGE_90_120,RANGE_120_PLUS) for one or more facilities. - Ledger Search:
waiveflag —waiveboolean added to charge entries in/v1/ledgers/search, indicating whether the charge has been waived. - Pricing Groups Change Rates — New endpoint
POST /v1/pricing-groups/change-rates. Bulk-updatesstandardRateand/orwebRatefor one or more pricing groups bypricingGroupId. - Customers Search:
companyNamefield —companyNameadded to customer objects returned by/v1/customers/searchand other endpoints that embed customer data.
November 2025
- Change Rents — New endpoints for scheduling and applying rent changes on leases.
- Notes Search / Create — New endpoints
POST /v1/notes/searchandPOST /v1/notes/create. - General Ledger Cash Report: GL mapping fields —
mappedGlAccountandmappedGlAccountNumberadded to line items inPOST /v1/reports/general-ledger/cashwhen a GL mapping is configured for the facility.
October 2025
- Leases Search:
pricingGroupexpansion — Theexpansionsarray on/v1/leases/searchnow supportspricingGroup, returning the pricing group object alongside each lease.
September 2025
- Lock Transfer — New endpoint
POST /v1/locks/transfer. Transfers a lock to a different facility within the same organization. The lock must not be currently attached to a unit.
December 2024
- Pricing Groups Search — New endpoint
POST /v1/pricing-groups/search. Returns storefront-visible pricing groups byfacilityIdorpricingGroupId, including standard rate, web rate,strikethroughRate, dimensions, features, and an optionaldiscountsexpansion. - Payments Search — New endpoint
POST /v1/payments/search. Filters byfacilityIdorcustomerId, with optionalpaymentDateOnOrAfter/paymentDateOnOrBeforedate range filters.
Operator API
Access Codes
Access Codes Search
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
facilityId- the ID of the facility to search for access codes
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
facilityId- the ID of the facility to check the access code againstcode- the access code to check
Response Parameters
accessAllowed- a boolean indicating if the access code is validmessage- a message indicating the result of the check; examples include"Access allowed","Code not found", and"Code disabled"
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
serial- the serial number of the lockcombo- the current combination for unlocking the locklocation- thefacilityororganizationwhere the lock is physically present
Error Conditions
- It is an error to add a lock whose serial already exists in the system
Response Parameters
| Parameter | Description |
|---|---|
| lockId | The ID of the newly registered lock |
| id | Deprecated. Use lockId — see Lock Identifiers |
Lock Search
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.
organizationId- limits results to locks held by a particular organization- or
leaseId- limits results to the locks attached to a particular lease
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
lockId- the ID of the lock which will be disabledreason- the reason for disabling the lock, which can beDAMAGEDorMISSING
Optional Properties
actor- the user who performed this action
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
lockId- the ID of the lockattachTo- the ID of the space the lock will be attached tolockUse-TENANT_USElock use means that the lock has been rented-to or loaned-to a tenant; the code will be immediately accessible to the tenant, and it is even possible that the tenant will change the code.OPERATOR_USEmeans the purpose of the lock is to restrict access to the unit
Optional Properties
actor- the user who performed this action
Error Conditions
- Cannot attach a lock to a space which already has a different lock attached to it
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
lockId- the ID of the lock
Optional Properties
actor- the user who performed this action
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
lockId- the ID of the lockfacilityId- the ID of the facility to which the lock will be transferred
Organizations
Organizations Search
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
organizationId- limits results to organizations with a specific ID, otherwise all co-managed organizations are returned
Managers
Managers Search
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
facilityId- limits results to managers at a specific facility- or
organizationId- limits results to managers in a specific organization
Optional Properties
phone- filters managers by phone number. Normalised to E.164 and matched exactly, so a full number in any common spelling (555-555-5555,(555) 555-5555,+15555555555) matches the same manager, and a value that is not a full phone number is rejected with a400. Partial-number search is not supported on this filter. (customers/searchis unchanged: itsphoneremains a partial match.)email- filters managers by email addressname- filters managers by nameincludePermissions- a boolean indicating whether to include permission details in the response (defaults totrue)
Facilities
Facilities Search
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:
billingCycle-MONTHLYorDAYS_28(every 28 days). The cycle the facility's rates, premiums and lease rents are expressed in, and the cycle new leases are created on unless another one is chosen. See Billing Cycles.billingOption-FIXEDorFLEXIBLE. At aFIXEDfacility, new leases are created on the facility'sbillingCycle. At aFLEXIBLEfacility, a customer can choose another cycle at move-in where the pricing group allows it. It does not tell you the cycle of an existing lease: a lease imported from a previous system keeps its original cycle under either option, so readbillingCycleon each lease from Leases Search.leaseAnniversary- when leases on aMONTHLY,QUARTERLY,BI_ANNUALorANNUALcycle are charged.START_DATE: on the day of the month the lease started.FIRST_OF_MONTH: on the 1st, with the first period prorated to the end of the move-in month. AQUARTERLY,BI_ANNUALorANNUALlease prorates that first period against one month of rent too, then is charged every 3, 6 or 12 months from the 1st. Leases on aWEEKLY,BI_WEEKLYorDAYS_28cycle are charged every cycle from their move-in date, whatever this setting.jumpDay- a day of the month, used whenleaseAnniversaryisFIRST_OF_MONTH. A lease that moves in on or after this day pays the prorated rest of the move-in month plus its first full period at move-in. One that moves in before it pays the prorated rest of the month only.32turns this off.
Required Properties
Exactly one of the following must be provided:
facilityId- limits results to a specific facilityorganizationId- limits results to facilities belonging to a specific organizationfacilityGroupId- limits results to the facilities that are members of a specific facility group
Optional Properties
expansions- an array of strings which can be used to include additional data in the response; supported for this endpoint areorganization,schedulesandfacilityGroups
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:
name- the schedule's display nameschedule- the weekly schedule definition: a JSON array of exactly 7 elements, one per day of the week ordered Sunday first (index0= Sunday,6= Saturday). Each element is eithernull(closed that day) or an object{"from": "HH:MM:SS", "to": "HH:MM:SS"}giving the open and close times in the facility's local time zone. The example above is closed on Sunday and Saturday and open 09:00–17:00 Monday through Friday.category-SYSTEMfor Cubby-managed schedules orCUSTOMfor operator-defined schedulessystemTypes- forSYSTEMschedules, the system functions the schedule drives; zero or more ofPHONE_SUPPORT,OFFICE_HOURS
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.
Facility Groups Search
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:
facilityGroupId- returns the single matching facility grouporganizationId- returns all facility groups belonging to a specific organization
Optional Properties
expansions- an array of strings which can be used to include additional data in the response; the only supported value for this endpoint isfacilities
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
Units Search
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
free-truewhen the unit has no active lease.reserved-truewhen at least one customer holds the unit with a reservation. A reservation is a soft hold, so a reserved unit can still berentable: leasing it is not blocked. Use this flag to hide or label held units on a storefront.
Required Properties
unitId- limits results to a specific unit- or
facilityId- limits results to spaces in a particular facility- or
pricingGroupId- limits results to spaces in a particular pricing group
Optional Properties
expansions- an array of strings which can be used to include additional data in the response; supported for this- endpoint are
facility,leaseandpricingGroup
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
unitId- the ID of the unit to updaterentable- boolean indicating if the unit is rentable or not- if
rentableisfalse:unrentableReason- the reason why the unit is not rentable. Can be one of the following:REPAIRS_REQUIREDCLEANING_REQUIREDUNDER_RENOVATIONUSED_BY_FACILITYOTHER
unrentableReasonNote- a note explaining the reason why the unit is not rentable. This field is optional.
- if
rentableistruethese two fields are ignored
Pricing Groups
- Pricing Group Search
- Pricing Groups Change Rates
- Pricing Groups Update Discount Strategies
- Pricing Groups Find Unit For Tier
- Discounts Search
- Discount Strategies Search
- Value Pricing Strategies Search
Pricing Group Search
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
facilityId- limits results to pricing groups in a particular facility- or
pricingGroupId- limits results to a specific pricing group - or
organizationId- limits results to an organization
Optional Properties
expansions- an array of strings which can be used to include additional data in the response; supported for this endpoint arediscounts,facilities,valuePricingStrategies. Expanded discount objects have the same shape as Discounts Search, including thediscountStrategyIdof the strategy that holds the discount and thepricingGroupsarray that carries the channelvisibilityconfigured for each assignment
Response Parameters
standardRate,walkInRate,webRate,strikethroughRate- rates in cents, per one billing cycle of the pricing group's facility (billingCycleon Facilities Search). At aDAYS_28facility they are 28-day rates. To show one as a weekly or monthly rate, convert it as described in Billing Cyclesdiscounts- every active discount program assigned to the pricing groupavailableDiscounts- the subset ofdiscountsthat can currently be applied, after filtering each program's occupancy-percentage and available-units restrictions against the pricing group's current unit countsarea- the floor area of units in the pricing group, in square feet (width×depth)availableUnits- the number of units in the pricing group currently available for rent, before reservations are held backreservationsCount- the number of reservations held on the pricing group, counted whether or not the facility allows overbookingallowOverbooking-truewhen the pricing group's facility allows overbooking: its reservations hold no unit back, so a customer without a reservation can rent every free unit. Set in the facility's reservation settings in the Cubby apprentableUnits- the number of units in the pricing group a customer without a reservation can rent now:availableUnits, less the group's reservations, never below0. At a facility that allows overbooking, reservations hold nothing back andrentableUnitsequalsavailableUnits. Offer a group for rent only whilerentableUnitsis above0valuePricingStatus- the tier-assignment state of the pricing group's value-pricing configuration:NOT_CONFIGURED(no strategy assigned),REVIEW_REQUIRED(a strategy is assigned but one or more active units have no tier), orAPPROVED(a strategy is assigned and every active unit has a tier). Tier pricing is live only whenAPPROVED: one unassigned unit turns it off for the whole group, which then sells at its single rate.availableTiers- the value-pricing tiers a customer without a reservation can rent now. This list always matchesrentableTiers. Both fields appear only on anAPPROVEDgroup. Reservations reduce capacity before tier filling applies. A reservation that names a vacant unit or a tier removes one vacant unit from that tier. A reservation that names neither reduces group capacity. Both lists are empty whenrentableUnitsis0. Overbooking ignores reservation holds. With filling enabled, one rentable unit offersLOWEST. Fill all tiers offers two rentable units asLOWESTandMEDIUM, withHIGHESTsold out. Fill lower tiers never offers a unit above its assigned tier. TwoLOWESTunits therefore offer onlyLOWEST. A unit keeps its assigned tier even when offered at another tier's price. With filling off, units are offered only in their assigned tiers. Offer only the tiers in this list. Resolve a chosen tier to a concrete unit withfind-unit-for-tier.rentableTiers- the same list asavailableTiers, with the same order and reservation rules. Present only on anAPPROVEDgroup.tierWebRates- the 3 value-pricing tier prices at the web rate, in Good, Better, Best (LOWEST,MEDIUM,HIGHEST) order, in cents, per one billing cycle of the facility, likewebRate. They are the prices Cubby charges for an in-app rental at the web rate. Present only on anAPPROVEDgroup. All 3 are always listed, even when a tier cannot be rented now;availableTierssays which tiers can be rented
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
pricingGroupId- the ID of the pricing group to update
Optional Properties
standardRate- the new standard rate for the pricing group. Cannot benullif provided.webRate- the new web rate for the pricing group. Ifnull, the web rate defaults to the configured pricing strategy, or the pricing group's standard rate.walkInRate- the new walk-in rate for the pricing group. Ifnull, the walk-in rate defaults to the configured pricing strategy, or the pricing group's standard rate.strikethroughRate- the strikethrough price to display on the storefront. Ifnull, the strikethrough price is disabled. Even when enabled, the strikethrough price won't display on your storefront when it's less than or equal to the web rate.
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:
- an
assignentry names an inactive strategy (activeisfalse). You can unassign an inactive strategy. - a strategy belongs to another organization than the pricing group, and the API key can access both
organizations. When the key cannot access the strategy's organization, the request gets a
403instead. - an
assignentry has novisibility. assignorunassignisnull. Omit them, or send an empty list, to assign or unassign nothing.- the same
pricingGroupIdis in the request more than once. - the same
discountStrategyIdis more than once in theassignandunassignlists of one pricing group: twice inassign, twice inunassign, or once in each.
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
pricingGroups- the pricing groups to change, with at least one entry. Each entry has:pricingGroupId- the ID of the pricing group
Optional Properties
assign- the strategies to assign to the pricing group, or whosevisibilityto change. Each entry has:discountStrategyId- the ID of the strategyvisibility- required.ALL,CUBBY_ONLYorCALL_CENTER_ONLY, thevisibilitythat Discounts Search shows for each discount of the strategy in the pricing group
unassign- the IDs of the strategies to unassign from the pricing group
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
pricingGroupId- the pricing group to resolve the unit withintier- the selected value-pricing tier, one ofLOWEST,MEDIUM,HIGHEST
Response Parameters
unitId- the ID of the resolved unit. Omitted when no unit is found;unavailableReasonthen says why.unavailableReason- why no unit was found, present wheneverunitIdis omitted:VALUE_PRICING_INACTIVE- the pricing group'svaluePricingStatusis notAPPROVED, so it sells no tierNO_INVENTORY- the group has no free unitRESERVED_OUT- the group has free units, but reservations hold every one of them (itsrentableUnitsis0), or leave no eligible unit for the requestedtierafter tier filling, or name every unit thetieris offered with. At a facility that allows overbooking this is never returnedTIER_UNAVAILABLE- the group has units to rent, but the requestedtieris not currently offered (i.e. not present in the group'savailableTiers)
Discounts Search
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:
AMOUNT_DEDUCTED(a flat sum off the rent) andAMOUNT_FIXED(a fixed replacement rent) carryapplicationAmount, in cents.PERCENT_DEDUCTED(a percentage off the rent) carriesapplicationPercentage, a percentage between 0 and 100. For backward compatibility it currently also populatesapplicationAmountwith the percentage scaled by 100 (10% →1000). ThatapplicationAmountvalue is deprecated and scheduled for removal in mid-July 2026 — migrate toapplicationPercentage.
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
pricingGroupId- limits results to discounts in a particular pricing group
Discount Strategies Search
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:
discountStrategyId- the ID of the strategy. ThediscountStrategyIdof a discount on Discounts Search refers to itname- the name of the strategyactive-truewhen the strategy is activediscounts- the IDs of the discounts in the strategy. Use Discounts Search to get them. An API key with access to the organization can search bydiscountId. An API key with access to some facilities gets a403fordiscountId; it searches by thepricingGroupIdof a pricing group at one of those facilities, which returns the discounts of every strategy assigned to that pricing group. So before a strategy is assigned at one of its facilities, such a key sees the strategy and itsdiscountsbut not the discounts' detailspricingGroups- the pricing groups the strategy is assigned to, each with itspricingGroupId,nameandvisibility
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
organizationId- returns every strategy of the organization, assigned or not. An API key with access to some facilities of the organization can use it- or
pricingGroupId- returns the strategies assigned to the pricing group. The pricing group must be at a facility that the API key can access, or the request gets a403 - or
discountStrategyId- returns the strategy with this ID. An API key with access to some facilities of the strategy's organization can use it
Value Pricing Strategies Search
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:
AMOUNT: effective rate =webRate + increaseAmount(where both are in cents)PERCENTAGE: effective rate =webRate * (1 + increasePercentage / 100)
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:
MEDIUM: if the rounded rate is less thanwebRate + 100rounded up to a whole dollar, the rate iswebRate + 100rounded up to a whole dollar.HIGHEST: if the rounded rate is less than theMEDIUMrate + 100, the rate is theMEDIUMrate + 100. This also applies when the strategy givesHIGHESTa smaller increase thanMEDIUM.
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
valuePricingStrategyId— returns the strategy with this id- or
facilityId— returns the distinct set of strategies assigned to any pricing group in the facility - or
organizationId— returns all strategies belonging to the organization (regardless of assignment)
Customers
Customers Search
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
customerId- limits results to a specific customer- or
organizationId- limits results to customers in a particular organization- or
facilityId- limits results to customers in a particular facility
Optional Properties
name- limits results to customers with a specific namephone- limits results to customers with a specific phone numberemail- limits results to customers with a specific email addresslease- if provided, limits results to either customers with an active lease (ACTIVE) or customers with any lease (ANY)lead- if provided, limits results to customers with a specific lead status (ACTIVEorANY)updatedAfter- limits results to customers whoseupdatedAtis strictly after the given UTC timestamp (ISO-8601, e.g.2024-03-01T12:00:00.000000Z). Use for incremental polling — pass the timestamp of your last sync to skip the boundary record on the next call.updatedBefore- limits results to customers whoseupdatedAtis strictly before the given UTC timestamp.expansions- an array of strings which can be used to include additional data in the response; supported for this endpoint areleasesandleads
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- whether the customer accepts promotional messages on that channelsuppressed- whether the customer has asked, or been marked, to receive no automated messages on that channelsuppressionReason- why the channel is suppressed;nullwhen it is not
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:
- Required notices. A small set of notices a facility is obliged to send goes out on a suppressed channel anyway: lien and pre-lien notices, rent-change notices, and private policy and auto-pay method expiry notices.
- Lead and reservation messages. Rental quotes, and reservation confirmations, cancellations and reminders, follow the customer's own action on a reservation and are sent without consulting either field.
- Facility workflows. A facility can build its own automated messaging in Cubby's workflow builder. Workflow SMS
honours both fields, but only when the facility has turned that option on for the workflow, and workflow email
consults neither. On email in particular, treat
marketingas the customer's stated wish rather than an enforced block.
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:
OPTED_OUT- the customer asked to stop, or someone set the preference on their behalf: a carrier-level SMS opt-out (the customer repliedSTOP), a choice made in the tenant portal, or a preference set by facility staff or through this API. Honour it.UNDELIVERABLE- the transition that suppressed the channel was a failed delivery: an email hard bounce, a spam complaint (once a recipient reports a message as spam, the email provider rejects later sends to that address), or an invalid or unreachable phone number. It records why the channel became suppressed, and is not a statement that the customer still wants to hear from you — a spam complaint is itself a rejection, and because Cubby keeps one reason per channel and does not replace it, a customer who later asks to stop on an already-suppressed channel continues to be reported asUNDELIVERABLE. Treat it as a signal to investigate, never as permission to resume contact.
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
customerId- the ID of the tenant to update
Optional Properties
name- the name of the customercompanyName- the company name of the customercontact- an object containing the customer's contact and address information:address- the address of the customeraddress2- the second line of the address of the customercity- the city of the customerstate- the state of the customercountry- the country of the customerzip- the zip code of the customeremail- the email address of the customerphone- the phone number of the customer
dateOfBirth- the date of birth of the customermilitary- a boolean indicating if the customer is military;nullleaves it unchangedidType- the type of ID the customer hasidNumber- the number of the ID the customer hascommunicationPreferences- an object controlling the customer's marketing opt-in per channel. Each flag is optional; omit a flag to leave that channel's current preference unchanged:smsMarketing- a boolean;trueopts in to promotional SMS,falserecords that the customer wants transactional SMS onlyemailMarketing- a boolean;trueopts in to promotional email,falserecords that the customer wants transactional email only
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
Leads Search
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:
organizationId- limits results to leads in a particular organizationfacilityId- limits results to leads in a particular facilitycustomerId- limits results to leads for a particular customerpricingGroupId- limits results to leads for a particular pricing groupunitId- limits results to leads for a particular unitleadId- limits results to a specific lead
Optional Properties
updatedAfter- limits results to leads whoseupdatedAtis strictly after the given UTC timestamp (ISO-8601, e.g.2024-03-01T12:00:00.000000Z). Use for incremental polling — pass the timestamp of your last sync to skip the boundary record on the next call.updatedBefore- limits results to leads whoseupdatedAtis strictly before the given UTC timestamp.expansions- an array of strings which can be used to include additional data in the response; supported for this endpoint arefacility,unit,pricingGroupandcustomer
Response Parameters
leadId- the ID of the leadcreatedAt- the date and time the lead was created, as an ISO-8601 UTC timestamp (e.g.2024-03-01T12:00:00.000000Z)updatedAt- the date and time the lead was last updated, as an ISO-8601 UTC timestamp (e.g.2024-03-01T12:00:00.000000Z)source- the source of the lead. Can be one of the following:WALK_INCALLCONTACT_FORMABANDONED_CHECKOUTFAILED_CHECKOUTRESERVED_CHECKOUTWEBSITE_CHECKOUTSMS_MESSAGEWAITLIST_FORMRESERVATION_FORMWEBSITEREFERRALSEARCH_ENGINEDIGITAL_ADBILLBOARDPHYSICAL_ADAI_VOICE_AGENTSPAREFOOTMOBILE_APPKIOSKBUSINESS_DEVELOPMENTOTHER
customSource- a custom source for the lead, ifsourceisOTHERorigin- how the lead was created. Can be one of the following:MANAGER- manually created by a manager (seesource/customSourcefor the underlying channel)API- created through the external API (e.g.POST /v1/leads/create)AI_VOICE_AGENT- created by the AI voice agentCONTACT_FORM- submitted through a website contact formWAITLIST_FORM- submitted through a website waitlist formRESERVATION_FORM- submitted through a website reservation formWEBSITE_CHECKOUT- online checkout completed as a rentalRESERVED_CHECKOUT- contact details captured at the first step of a multi-step online checkout; nothing is reserved, even whenunitIdis setABANDONED_CHECKOUT- online checkout that was started but not completedFAILED_CHECKOUT- online checkout that failed at payment
status- the status of the lead. Can be one of the following:NEWON_HOLDIN_PROGRESS_HOTIN_PROGRESS_COLDCONVERTEDUNQUALIFIEDDUPLICATERESERVATION- the lead holds a reservation on its pricing group, pinned tounitIdwhen a unit was named;unitIdis cleared if that unit stops being available
facilityId- the ID of the facility the lead is interested inpricingGroupId- the ID of the pricing group the lead is interested inunitId- the ID of the unit the lead is interested inmessage- a free text message about the leadtargetMoveInDate- the target move-in date for the leadcustomerId- the ID of the customer associated with the leadcoverageType- the protection-plan coverage selected on the lead. One ofNONE,ORGANISATION(a facility coverage level), orPRIVATE_POLICY.nullif no coverage has been setcoverageLevelId- the ID of the selected coverage level whencoverageTypeisORGANISATION; otherwisenulldiscounts- an array of discount-program IDs applied to the lead; an empty array when none are appliedrateType- the quoted rate type on the lead. One ofWALK_IN_RATE,WEB_RATE, orCUSTOM_RATE.nullif unsetcustomRate- the custom monthly rate (in cents) quoted on the lead whenrateTypeisCUSTOM_RATE; otherwisenull
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.
reservedAt- ISO-8601 UTC timestamp when the lead most recently became a reservation, whether it was created as one or promoted into one later, ornullif it never was one. It is not cleared when the reservation ends - readstatusfor whether the hold is still liveconvertedAt- ISO-8601 UTC timestamp when the lead converted into a customer / lease, ornullif it has not convertedunqualifiedAt- ISO-8601 UTC timestamp when the lead was last archived as unqualified - for a lead archived out of a reservation, when the reservation was cancelled - ornullif it has not been archivedleaseMoveInDate- the start date of the lease created from this lead (YYYY-MM-DD), ornullif no lease has been created
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
organizationId- the ID of the organization the lead belongs to. At least one oforganizationIdorfacilityIdmust be providedfacilityId- the ID of the facility the lead is interested in. Can be used instead oforganizationIdfor facility-level API access. At least one oforganizationIdorfacilityIdmust be providedsource- the source of the lead, which can be one of the following:WALK_INCALLCONTACT_FORMABANDONED_CHECKOUTFAILED_CHECKOUTRESERVED_CHECKOUTWEBSITE_CHECKOUTSMS_MESSAGEWAITLIST_FORMRESERVATION_FORMWEBSITEREFERRALSEARCH_ENGINEDIGITAL_ADBILLBOARDPHYSICAL_ADAI_VOICE_AGENTSPAREFOOTMOBILE_APPKIOSKBUSINESS_DEVELOPMENTOTHER
If source is OTHER, customSource must be provided.
Optional Properties
customerId- the ID of an existing customer. If not provided, a new customer will be created using thecustomerpropertycustomSource- a custom source for the lead. Required ifsourceisOTHER, otherwise ignoredunitId- the ID of the unit the lead is interested inpricingGroupId- the ID of the pricing group the lead is interested inmessage- a free text message about the leadtargetMoveInDate- the target move-in date for the leadreservation- a boolean indicating if the lead has a reservation, defaults tofalse. Iftrue,pricingGroupIdandtargetMoveInDatemust be providedsendConfirmationEmail- a boolean, defaults totrue. Whentrueor omitted, Cubby emails its reservation confirmation if the facility has that email turned on. Set it tofalsewhen you email the customer your own: Cubby then does not email its reservation confirmation for this reservation.truecannot turn on an email the facility has turned off. The text message still follows the facility's settings. Ignored whenreservationis nottruecoverageLevelId- the ID of a facility coverage level to assign to the lead as its protection plan. The level must be active for the lead's facilitydiscounts- an array of discount-program IDs to apply to the lead. Each must be active and available for the lead's pricing group, sopricingGroupIdmust also be providedrateType- the quoted rate type for the lead. One ofWALK_IN_RATE,WEB_RATE, orCUSTOM_RATE. SettingCUSTOM_RATErequires the lead to have a facility or pricing groupcustomRate- the custom monthly rate to quote, in cents. Required whenrateTypeisCUSTOM_RATE; ignored otherwisecustomer.communicationPreferences- when creating a new customer, an object controlling the customer's marketing opt-in per channel. Each flag is optional; omit a flag to leave that channel at its default:smsMarketing- a boolean;trueopts in to promotional SMS,falserecords that the customer wants transactional SMS onlyemailMarketing- a boolean;trueopts in to promotional email,falserecords that the customer wants transactional email only
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
leadId- the ID of the lead to update
Optional Properties
facilityId- reassign the lead to a different facilitypricingGroupId- the ID of the pricing group the lead is interested inunitId- the ID of the unit the lead is interested instatus- the status of the lead. One ofNEW,ON_HOLD,IN_PROGRESS_HOT,IN_PROGRESS_COLD,UNQUALIFIED, orDUPLICATE.RESERVATIONandCONVERTEDcannot be set through this endpoint, and no status change is accepted on a lead that is currently a reservationsource- the source of the lead. Cannot be changed for leads originating from a contact form or abandoned checkout, and cannot be clearedcustomSource- a custom source for the lead. Required whensourceisOTHERmessage- a free text message about the leadtargetMoveInDate- the target move-in date for the leadcoverageLevelId- the ID of a facility coverage level to assign as the lead's protection plan; an explicitnullclears coverage. The level must be active for the lead's facilitydiscounts- an array of discount-program IDs to apply to the lead; an explicitnullor empty array clears all discounts. Each must be active and available for the lead's pricing grouprateType- the quoted rate type for the lead. One ofWALK_IN_RATE,WEB_RATE, orCUSTOM_RATE. SettingCUSTOM_RATErequires the lead to have a facility or pricing groupcustomRate- the custom monthly rate to quote, in cents. Required in the same request wheneverrateTypeis set toCUSTOM_RATE; ignored otherwise
Leads Get Checkout Link
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:
- the lead's status is
CONVERTED,UNQUALIFIEDorDUPLICATE - the lead has no
pricingGroupId. Set one with Leads Update, then request the link again - the lead's facility is not active on a storefront that has a tenant portal domain
Required Properties
leadId- the ID of the lead to generate a checkout link for
Leases
- Leases Search
- Leases Get Compliances
- Leases Get Rent Change Schedules
- Leases Change Rents
- Leases Cancel Rent Changes
- Lease Update Alternative Contacts
- Get Upsells
- Preview Charges
- Get Move-In Charges
- Create Lease
- Checkout
- Cancel Lease
- Schedule Move Out
- Update Scheduled Move Out
- Get Payment Link
- Get Documents Link
- Make Payment
- Waive Charge
- Issue Credit
- Write Off Balance
- Refund Balance
- Enable AutoPay
- Disable AutoPay
Leases Search
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
leaseId- limits results to a specific lease- or
facilityId- limits results to leases in a particular facility- or
customerId- limits results to leases for a particular customer
Optional Properties
activeOnOrAfter- limits results to leases which are active on or after a specific dateactiveOnOrBefore- limits results to leases which are active on or before a specific dateupdatedAfter- limits results to leases whoseupdatedAtis strictly after the given UTC timestamp (ISO-8601, e.g.2024-03-01T12:00:00.000000Z). Use for incremental polling — pass the timestamp of your last sync to skip the boundary record on the next call.updatedBefore- limits results to leases whoseupdatedAtis strictly before the given UTC timestamp.expansions- an array of strings which can be used to include additional data in the response; supported for this- endpoint are
facility,unit,pricingGroupledger,customer,compliance
Response Properties
createdAt- the date and time the lease was created, as an ISO-8601 UTC timestamp (e.g.2024-03-01T12:00:00.000000Z)updatedAt- the date and time the lease was last updated, as an ISO-8601 UTC timestamp (e.g.2024-03-01T12:00:00.000000Z)billingCycle- the cycle the lease is charged on:WEEKLY,BI_WEEKLY,DAYS_28,MONTHLY,QUARTERLY,BI_ANNUALorANNUAL. Usually the same as the facility'sbillingCycle, but it can differ. See Billing CyclesmonthlyRentalAmount- the lease's rent in cents, per one billing cycle of the lease's facility, not of the lease. Despite the name, it is a 28-day amount at aDAYS_28facility. When the lease'sbillingCyclediffers from its facility's, convert it as described in Billing Cycles to get the rent the customer is charged per periodnextChargeAmount- total amount that will be charged onnextChargeDateincluding insurance, additional fees and taxes. Will be populated only when searching byleaseIdorcustomerId. It is the actual charge, so it is already in the lease's ownbillingCyclerentChangeNewRentAmount- the rent in cents after the scheduled rent change, per one billing cycle of the lease's facility, likemonthlyRentalAmountpaidThroughDate- the last day covered by the charges that have posted to the lease and been paidprepaidBalance- the lease's prepaid (credit) balance in cents: money received ahead of charges that have not posted yet.0when the lease holds noneimpliedPaidThroughDate- the last day the lease would be paid through onceprepaidBalanceis applied to the lease's upcoming recurring charges (rent, coverage, recurring fees and their taxes, at the current rates). Will be populated only when searching byleaseIdorcustomerId. See Paid-through date and prepaymentscoverage- the current coverage details for the lease:coverageType- the type of coverage, which can beORGANISATIONfor organization-provided coverage,PRIVATE_POLICYfor tenant-provided coverage orNONEfor no coverage required- If
coverageTypeisORGANISATION:startDate- the date the coverage startedcoverageLevelId- the ID of the coverage level for the leasepremiumAmount- the current premium amount in cents, per one billing cycle of the lease's facilitycoverageAmount- the current coverage amount in cents
coverageChange- the next scheduled coverage change for the lease, if such change exists:coverageType- the type of coverage for the upcoming change, which can beORGANISATIONfor organization-provided coverage,PRIVATE_POLICYfor tenant-provided coverage orNONEfor no coverage requiredstartDate- the date the coverage change will take effectcoverageLevelId- the ID of the new coverage level for the lease, if the coverage change is to organization-provided coveragepremiumAmount- the new premium amount in cents, per one billing cycle of the lease's facilitycoverageAmount- the new coverage amount in cents
scheduledMoveOut- details about a scheduled move-out for the lease, if one exists:moveOutDate- the date the tenant will move out (YYYY-MM-DD)noticeGivenDate- the date the tenant gave notice (YYYY-MM-DD)moveOutReason- the reason for moving out; one ofNONE,CANT_AFFORD,NO_NEED,MOVING,CONSOLIDATING,BAD_EXPERIENCE,AUCTION, orOTHERcustomReason- a custom reason for the move-out, present whenmoveOutReasonisOTHERmoveOutTime- the preferred time of day for the move-out; one ofMORNING,LUNCHTIME,AFTERNOON,EVENING, orANYTIME
alternativeContacts- the lease's alternative contacts, each containing:name- the contact's nameemail- the contact's email addressphone- the contact's phone numberaddress,address2,city,state,country,zip- the contact's mailing addressnote- a note about the contact
Paid-through date and prepayments
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.
- When the lease holds no prepaid balance, or the balance does not cover one full period,
impliedPaidThroughDateequalspaidThroughDate. - When the lease has an outstanding balance, that balance is settled from the prepaid balance first.
- The date is an estimate at the current rates. A scheduled rent change, a coverage change or a new fee changes what the balance covers when it takes effect.
impliedPaidThroughDateis populated only when Leases Search is scoped byleaseIdorcustomerId. It isnullwhen the search is scoped byfacilityId, and on the lease objects returned by other endpoints.prepaidBalanceis always populated.
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
leaseIds- an array of lease IDs to get compliance status for
Response Parameters
leaseId- the ID of the leasedocuments- an array of documents required for the lease to be compliant, each containingtype- the type of the document, which can be one of the following:LEASE_AGREEMENTCOVERAGEIDENTITYVEHICLE
status- the status of the document, which can be one of the following:NOT_REQUIREDINCOMPLETEPENDING_APPROVALSIGNATURE_NEEDEDREJECTEDAPPROVED
otherDocuments- an array of the lease's other documents, such as the terms paired with an optional upgrade or a document added by staff, each containingname- the name of the documentstatus- the status of the document, which can be one of the following:SIGNATURE_NEEDED- waiting for the customer to signPENDING_APPROVAL- signed by the customer, waiting for staff approvalREJECTEDAPPROVED
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
leaseIds- an array of lease IDs to get rent change schedules for
Response Parameters
leaseId- the ID of the leaserentChangeDate- the date the rent change will take effectnoticeDate- the date the rent change notice will be sent
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
leases- an array of lease rent change objects, each containing:leaseId- the ID of the lease to change the rent fornewRentAmount- the new rent amount in cents
Optional Properties
rentChangeDate- the date the rent change will take effect, as returned by the get rent change schedules endpoint; if not provided, the next possible rent change date will be usednoticeDate- the date the rent change notice will be sent, as returned by the get rent change schedules endpoint; if not provided, the notice date will be set to 30 days before the rent change date
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
leaseId- the ID of the lease to updatealternativeContacts- an array of alternative contacts
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
unitId- the ID of the unit
Optional Properties
rentAmount- the rent amount to use as the base when computing percentage-based fee amounts. Defaults to the pricing group's standard rate. Pass the same value here as on Get Move-In Charges or Create Lease to get a preview that matches the billed amount.
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
leaseId- the ID of the lease
Optional Properties
prepayMonths- the number of billing periods to prepay. Omit (ornull) to return only the current outstanding charges. Defaults tonull.paymentMethodId- a saved payment method to preview the payment against. When it is a credit-card method and the facility has credit-card processing fees configured, the returned totals include that fee. Must belong to the lease's customer. Omit (ornull) to exclude credit-card fees. Defaults tonull.
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
404- the lease was not found
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
unitId- the ID of the unitmoveInDate- the date the tenant is moving inrentAmount- the rent amount
Optional Properties
coverageLevelId- the ID of the coverage level, defaults tonullchargeDeposit- a boolean indicating if the deposit should be charged, defaults totruechargeMoveInFee- a boolean indicating if the move-in fee should be charged, defaults totruetaxExempt- a boolean indicating if the charges are tax exempt, defaults tofalsestoringVehicle- a boolean indicating whether the tenant is storing a vehicle. Determines which tax category applies to rent, so it should match the value sent to Create Lease / Checkout to get a matching total. Defaults to the unit's pricing group parking setting.discounts- an array of discount IDs, defaults to[]upsellFeeIds- an array of upsell fee IDs to include as recurring charges on the lease. Each ID must come from Get Upsells for the sameunitId; passing a fee that is not an active optional upgrade for the unit returns a400error. Defaults to[].products- an array of merchandise to sell with the move-in, defaults to[]. Each entry has:-
productId- the ID of the product, from Products Search for the unit's facility
-
quantity- the number of units, a positive integer. The quantities across all ofproductsmay not add up to more than 2,000.
Error Conditions
400- aproductIdappears more than once inproducts; the message names the product400- aquantityis not a positive integer, or the quantities acrossproductsadd up to more than 2,000404- aproductIdis not sold at the unit's facility: it is unknown, archived, priced at zero, or assigned to another facility; the message names the product
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
-
unitId- the ID of the unit -
moveInDate- the date the tenant is moving in -
rentAmount- the rent amount -
customerId- the ID of the tenant -
or
-
customer- the tenant information: -
name- the name of the tenant
-
phone- the phone number of the tenant
Optional Properties
leadId- the ID of the lead this lease converts. When supplied it replaces the automatic match: that lead is converted even when its pricing group or unit differs from the one being leased, and it is repinned to the leased unit. Any open lead qualifies, including a reservation. The lead must be at the same facility as the unit being leased, or at no facility yet - a lead pinned to another facility in the organization is rejected rather than moved. Rejected with a400if the lead is already converted, is marked as a duplicate, belongs to a customer other thancustomerId, is pinned to another facility, or is combined with a newcustomerobject. When omitted, the customer's reservation for this unit is converted if they hold one, otherwise their earliest matching open lead, otherwise a new lead is created. Whichever lead is converted, fields you omit from this request are reset to the defaults documented here rather than kept as the lead had them — passdiscounts,coverageLevelIdandrentAmountexplicitly to preserve a promotion, coverage or rate already agreed on a reservation.coverageLevelId- the ID of the coverage level, defaults tonullchargeDeposit- a boolean indicating if the deposit should be charged, defaults totruechargeMoveInFee- a boolean indicating if the move-in fee should be charged, defaults totruetaxExempt- a boolean indicating if the charges are tax exempt, defaults tofalsestoringVehicle- a boolean indicating whether the tenant is storing a vehicle. Whentrue, the vehicle storage addendum is attached to the lease for signing. Defaults to the unit's pricing group parking setting.sendConfirmationEmail- a boolean, defaults totrue. Whentrueor omitted, Cubby emails its rental confirmation if the facility has that email turned on. Set it tofalsewhen you email the customer your own: Cubby then does not email its rental confirmation for this lease.truecannot turn on an email the facility has turned off. The text message still follows the facility's settingsdiscounts- an array of discount IDs, defaults to[]upsellFeeIds- an array of upsell fee IDs to add as recurring charges on the lease. Each ID must come from Get Upsells for the sameunitId; passing a fee that is not an active optional upgrade for the unit returns a400error. When an upsell comes with terms to sign, that document is attached to the lease for signature, and its status is reported inotherDocumentsof Leases Get Compliances. Defaults to[].source- the lead source, defaults toOTHER. One of:WALK_IN,CALL,CONTACT_FORM,WEBSITE,REFERRAL,SEARCH_ENGINE,DIGITAL_AD,BILLBOARD,PHYSICAL_AD,AI_VOICE_AGENT,SPAREFOOT,MOBILE_APP,KIOSK,BUSINESS_DEVELOPMENT,OTHERcustomSource- a custom source description, used whensourceisOTHERalternativeContacts- an array of alternative contacts for the leasecustomer- the tenant information:-
name- the name of the tenant
-
dateOfBirth- the date of birth of the tenant
-
military- a boolean indicating if the tenant is military; defaults tofalsewhen omitted
-
contact- the tenant's contact and address information:
-
-
address- the address of the tenant
-
-
-
address2- the second line of the address of the tenant
-
-
-
city- the city of the tenant
-
-
-
state- the state of the tenant
-
-
-
country- the country of the tenant
-
-
-
zip- the zip code of the tenant
-
-
-
email- the email address of the tenant
-
-
-
phone- the phone number of the tenant
-
-
communicationPreferences- an object controlling the new customer's marketing opt-in per channel. Each flag is optional; omit a flag to leave that channel at its default:
-
-
smsMarketing- a boolean;trueopts in to promotional SMS,falserecords that the customer wants transactional SMS only
-
-
-
emailMarketing- a boolean;trueopts in to promotional email,falserecords that the customer wants transactional email only
-
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:
payment- payment information for the move-in charges:-
amount- the amount to be charged (must equal the total from get-move-in-charges for the sameproducts)
-
methodType- the type of payment method, which can beCREDIT_CARD,ACHorACSS
-
token- the token generated by the payment gateway
-
address- the billing address associated with the payment method:
-
address- the street address
-
address2- the second line of the street address
-
city- the city
-
state- the state
-
country- the country
-
zip- the zip code
-
email- the email address
-
phone- the phone number
- If
methodTypeisCREDIT_CARD, the following properties are also required:cardBrand- the brand of the credit card, which can be one of the following:VISAMASTERCARDAMERICAN_EXPRESSDISCOVERDINERS_CLUBJCBMAESTROUNIONPAYMIRELOHIPERHIPERCARDFORBRUGSFORENINGENVISA_ELECTRONUNKNOWN
cardExpiration- the expiration date of the credit card in MM/YY formatcardLastFour- the last four digits of the credit cardcardHolder- the name of the cardholder
- If
methodTypeisACH, the following properties are also required:achAccountType- the type of ACH account, which can beCHECKINGorSAVINGSachAccountHolder- the name of the account holderachAccountLastFour- the last four digits of the ACH account
- If
methodTypeisACSS, the following properties are also required:acssHolderType- the type of ACSS account holder, which can bePERSONALorBUSINESSacssAccountHolder- the name of the account holderacssAccountLastFour- the last four digits of the ACSS account
Optional Properties
All optional properties from Create Lease also apply, plus:
products- an array of merchandise to sell with the lease, as on Get Move-In Charges: each entry has aproductIdfrom Products Search for the unit's facility and a positive integerquantity. Defaults to[]. The same400and404conditions as on Get Move-In Charges apply.enableAutoPay- a boolean (defaults tofalse). Whentrue, a successful payment saves the payment method supplied inpaymentto the customer as a reusable payment method and enrols the lease in AutoPay using it. Whenfalse, the payment method is charged but not saved. AutoPay is only enabled when the payment succeeds and the payment method is saved; check theautoPayEnabledresponse flag to confirm.sendReceiptEmail- a boolean, defaults totrue. Whentrueor omitted, Cubby emails its receipt if the facility has that email turned on. Set it tofalsewhen you email the customer your own: Cubby then does not email its receipt for this payment, including when a direct-debit payment settles later.truecannot turn on an email the facility has turned off. The text message still follows the facility's settings
Response Parameters
leaseId- the ID of the created lease;nullif the payment was declinedpaymentTransactionId- the ID of the payment transaction. This is the same identifier that Make Payment and Payments Search return aspaymentId, so a checkout result can be correlated against either of those endpointspaymentSuccess- whether the move-in payment succeeded. Whenfalse, the lease was rolled back. For direct-debit methods (ACH,ACSS) this means the debit was accepted for processing; it can still be returned laterpaymentFailureInfo- present only when the payment failed; contains a shortreasonand a fullerexplanationof the decline. It is not used to report payment-method-save or AutoPay problemspaymentMethodId- the ID of the saved payment method, ornullwhen the payment method was not saved to the customer as a reusable payment method. The payment method is saved only whenenableAutoPayistrue, so this is alwaysnullwhen AutoPay was not requested. When AutoPay was requested and the payment succeeded, anullvalue means the charge went through but the payment method could not be stored (so AutoPay was not enabled). When non-null, it can be reused for subsequent payments (e.g. Make Payment) or AutoPay for this customerautoPayEnabled- whether AutoPay was enabled for the lease. OnlytruewhenenableAutoPaywas requested and the payment method was saved successfully
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
leaseId- the ID of the lease to cancel
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
leaseId- the ID of the lease to schedule the move-out formoveOutDate- the date the tenant will move out (YYYY-MM-DD)noticeGivenDate- the date the tenant gave notice (YYYY-MM-DD)moveOutReason- the reason for moving out; one ofNONE,CANT_AFFORD,NO_NEED,MOVING,CONSOLIDATING,BAD_EXPERIENCE,AUCTION, orOTHERmoveOutTime- the preferred time of day for the move-out; one ofMORNING,LUNCHTIME,AFTERNOON,EVENING, orANYTIMEdisableAutoPay- a boolean indicating whether to disable auto-pay for the lease
Optional Properties
customReason- a custom reason for the move-out (required ifmoveOutReasonisOTHER)
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
leaseId- the ID of the lease whose scheduled move-out to change. A lease with no scheduled move-out is rejected with a400, and so is a lease that has already moved out
Optional Properties
moveOutDate- the date the tenant will move out (YYYY-MM-DD). A date you change cannot be in the past, read in the facility's own timezone; a date already in the past may be sent back as it isnoticeGivenDate- the date the tenant gave notice (YYYY-MM-DD)moveOutReason- the reason for moving out; one ofNONE,CANT_AFFORD,NO_NEED,MOVING,CONSOLIDATING,BAD_EXPERIENCE,AUCTION, orOTHER. Changing it to anything other thanOTHERclearscustomReasoncustomReason- a custom reason for the move-out. Required whilemoveOutReasonisOTHER: changing the reason toOTHERwithout one, or clearing it withnullwhile the reason isOTHER, is rejected with a400. It is ignored for any other reasonmoveOutTime- the preferred time of day for the move-out; one ofMORNING,LUNCHTIME,AFTERNOON,EVENING, orANYTIMEdisableAutoPay- sendtrueto disable auto-pay for the lease.falseleaves auto-pay as it is; use Enable AutoPay to turn it back on
Get Payment Link
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
leaseIds- an array of lease IDs to include in the payment link
Get Documents Link
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
leaseId- the ID of the lease to generate a documents link for
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
leaseId- the ID of the lease to make a payment forpaymentMethodId- the ID of the payment method to useamount- the amount in cents to charge the payment method. For credit cards at facilities with processing fees configured, the fee is included in (deducted from) this amount.
Optional Properties
sendReceiptEmail- a boolean, defaults totrue. Whentrueor omitted, Cubby emails its receipt if the facility has that email turned on. Set it tofalsewhen you email the customer your own: Cubby then does not email its receipt for this payment, including when a direct-debit payment settles later.truecannot turn on an email the facility has turned off. The text message still follows the facility's settings
Response Parameters
The response wraps a single payment object:
paymentId- the Cubby payment identifier. The same identifier that Checkout returns aspaymentTransactionIdand Payments Search returns aspaymentIdcreatedAt- when the payment was createdamount- the amount charged, in centscustomerId- the ID of the customer the payment is formethodType- the type of payment method usedstatus- the outcome:SUCCEEDED,DECLINED,FAILED, orPENDING. Statuses a payment reaches later — refunded, disputed, returned — appear on Payments Search, not herereason- a short status label, always populated:Approvedon success, otherwise the decline reason (Insufficient funds) or a fallback such asDeclinedorPending. A non-nullreasondoes not mean the payment failed — readstatusexplanation- a fuller description ofreasonwhere there is one,nullotherwise, including on success
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:
- Call Ledger Search with the lease's
leaseIdand thewaivableAmountsexpansion. Each charge carries awaivableAmount: how much of it, before tax, can still be waived. - Send that
waivableAmountback asexpectedWaivableAmount, with the charge'sbookEntryId.
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
leaseId- the ID of the lease the charge belongs tobookEntryId- the ID of the charge, from Ledger SearchexpectedWaivableAmount- the charge'swaivableAmount, in cents, as returned by Ledger Searchreason- why the charge is waived, at most 255 characters. Shown to staff in Cubby
Optional Properties
amount- the amount to waive, in cents. When omitted, everything still waivable is waived, with its tax. It cannot exceedexpectedWaivableAmounttaxInclusive- whentrue,amountincludes the tax waived with it, so the customer's balance drops by exactlyamount. Defaults tofalse, whereamountis before tax. Ignored whenamountis omitted.amountstill cannot exceedexpectedWaivableAmount, which is before tax, so a tax-inclusive waive can take off at most the pre-tax amount: to waive a whole charge with its tax, omitamount. A rare amount that no pre-tax amount produces exactly is rejected with a suggested alternative
Response Parameters
waivedAmount- the amount waived before tax, in centswaivedTax- the tax waived with it, in centstotalWaived-waivedAmountpluswaivedTax, in centstotalDue- the lease'stotalDueafter the waive, in cents, as Ledger Search reports it
Error Conditions
400with code8101- the charge's waivable amount is no longerexpectedWaivableAmount400- the charge cannot be waived, has already been waived in full,amountexceeds what is waivable, orreasonis longer than 255 characters403- the API key does not hold the Credits and Waives role for the lease's facility404-bookEntryIdis unknown or belongs to another lease
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:
- Call Ledger Search with the lease's
leaseIdand readbalances.credit. - Send that value back as
expectedCreditBalance, with theamountto 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
leaseId- the ID of the lease to creditamount- the amount to add, in cents. Must be positiveexpectedCreditBalance- the lease'screditbalance, in cents, as returned by Ledger Searchreason- why the credit is issued, at most 255 characters. Shown to staff in Cubby
Response Parameters
creditBalance- the lease's credit balance after the credit, in cents
Error Conditions
400with code8101- the lease's credit balance is no longerexpectedCreditBalance400-amountis not positive,reasonis longer than 255 characters, or credits are not enabled at the facility403- the API key does not hold the Credits and Waives role for the lease's facility
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:
- Call Ledger Search with the lease's
leaseIdand readbalances.totalDue. - 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
leaseId- the ID of the moved-out leaseamount- the lease's whole balance, in cents:balances.totalDuefrom Ledger Searchreason- why the balance is written off, at most 255 characters. Shown to staff in CubbybypassApproval-trueto write off the balance at once,falseto send the request to Cubby's approval queue
Response Parameters
status-APPLIEDwhen the balance was written off,PENDING_APPROVALwhen the request waits for approvalamount- the amount written off or waiting for approval, in cents
Error Conditions
400with code8101- the lease's balance is no longeramount400with code8102- a write-off of the lease is already waiting for approval400- the lease is still active, orreasonis longer than 255 characters403- the API key does not hold the Credits and Waives role for the lease's facility
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:
- Call Leases Search with the lease's
leaseIdand readprepaidBalance. - 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
leaseId- the ID of the moved-out leaseamount- the lease's whole prepaid balance, in cents:prepaidBalancefrom Leases Searchreason- why the balance is refunded, at most 255 characters. Shown to staff in CubbybypassApproval-trueto refund the balance at once,falseto send the request to Cubby's approval queue
Optional Properties
checkNumber- the number of the check you issued, at most 255 characters. Required whenbypassApprovalistrue, and ignored when it isfalseaddress- where the check is mailed. Shown to staff in Cubby
Response Parameters
status-APPLIEDwhen the balance was refunded,PENDING_APPROVALwhen the request waits for approvalamount- the amount refunded or waiting for approval, in cents
Error Conditions
400with code8101- the lease's prepaid balance is no longeramount400with code8102- a balance refund of the lease is already waiting for approval400- the lease is still active,checkNumberis missing whilebypassApprovalistrue, orreasonis longer than 255 characters403- the API key does not hold the Credits and Waives role for the lease's facility
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
leaseId- the ID of the lease to enable AutoPay forpaymentMethodId- the ID of the payment method to use for AutoPay. It must belong to the customer on the lease and be held at the payment provider the lease's facility currently uses — a method the facility cannot charge is rejected with a400
Disable AutoPay
POST /v1/leases/disable-auto-pay
Request Body — leases/disable-auto-pay
{
"leaseId": "lease_V4w64pjUwVK"
}
Disables AutoPay for a lease.
Payment Methods
Payment Methods Search
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
customerId- the ID of the customer
Response Properties
paymentServiceProvider- the payment gateway holding this method's token. A method can only be charged at a facility running on the same provider; Make Payment rejects a mismatch with a400
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
methodType- the type of payment method, which can beCREDIT_CARD,ACHorACSStoken- the token generated by the payment gatewaycustomerId- the ID of the customeraddress- the billing address associated with the payment method:address- the street addressaddress2- the second line of the street addresscity- the citystate- the statecountry- the countryzip- the zip codeemail- the email addressphone- the phone number
- If
methodTypeisCREDIT_CARD, the following properties are also required:cardBrand- the brand of the credit card, which can be one of the following:VISAMASTERCARDAMERICAN_EXPRESSDISCOVERDINERS_CLUBJCBMAESTROUNIONPAYMIRELOHIPERHIPERCARDFORBRUGSFORENINGENVISA_ELECTRONUNKNOWNcardExpiration- the expiration date of the credit card in MM/YY formatcardLastFour- the last four digits of the credit cardcardHolder- the name of the cardholder
- If
methodTypeisACH, the following properties are also required:achAccountType- the type of ACH account, which can beCHECKINGorSAVINGSachAccountHolder- the name of the account holderachAccountLastFour- the last four digits of the ACH account
- If
methodTypeisACSS, the following properties are also required:acssAccountHolderType- the type of ACSS account holder, which can bePERSONALorBUSINESSacssAccountHolder- the name of the account holderacssAccountLastFour- the last four digits of the ACSS account
Products
Products Search
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
facilityId- limits results to the products sold at a particular facility. Omitting it, or naming a facility the key cannot access, is rejected with a403.
Response Parameters
productId- the ID of the productname- the product namecategory- the product category configured by the operator, ornullunitPrice- the price of one unit at this facility, in cents, before taxtracked- whether the facility tracks stock for this productquantity- the current stock of a tracked product;nullwhentrackedisfalse
Ledgers
Ledger Search
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
leaseId- the ID of the lease to retrieve the ledger for- or
facilityId- the ID of the facility to retrieve the ledger for
Expansions
waivableAmounts- addswaivableAmountto everyCHARGEentry, for Waive Charge. RequiresleaseId; a search byfacilityIdwith this expansion is rejected with a400
Balances
totalDue- what the customer owes on the lease, in centsdeposit- the deposit held, in centsprepaid- the prepaid balance, in cents: money paid ahead of chargescredit- the credit balance, in cents: credit issued to the lease and not yet used on a charge. Send it asexpectedCreditBalanceto Issue Credit
Book entry structure
bookEntryId- the ID of the book entrytype- the type of the entry, which can beCHARGE,PAYMENT,TRANSFER, orWRITE_OFFentryTime- the date and time the entry was madeamount- the amount of the entry in centsamountPaid- the amount of the entry which has been paid in centspaymentTime- the date and time the charge was fully paid, if applicablewaivableAmount- only with thewaivableAmountsexpansion, onCHARGEentries: how much of the charge, before tax, can still be waived, in cents.0for a charge that cannot be waived or has been waived in full. Send it asexpectedWaivableAmountto Waive Chargedetails- an object containing additional details about the entry:- for
CHARGEentries:category- the category of the charge, which can beRENT,COVERAGE,FEE,RETAIL_SALE,DISCOUNT,TAX_STATE,TAX_LOCAL,DAMAGE,AUCTION,PREPAID,CREDIT,DEPOSITorUNKNOWNaccruesOn- the date the charge accrues fromdescription- a description of the chargewaive- a boolean indicating if the charge is a waive
- for
PAYMENTentries:method- the payment method used for the payment, which can bePREPAID,CREDIT,DEPOSIT,CREDIT_CARD,OFFLINE_CARD,CASH,ACH,ACSS,CHECK,E_TRANSFER,MONEY_ORDER,ONLINE_BANKING,VENMO,PAYPAL,ZELLE,CASH_APP,EXTERNALcardType- the type of card used for the paymentcardLastFour- the last 4 digits of the card used for the paymentcheckNumber- the check number used for the payment
- for
TRANSFERentries:source- the source of the transfer, which can beLEASE_BALANCE,IMPORTED_BALANCEorIMPORTED_DEPOSIT
- for
WRITE_OFFentries:explanation- the reason for the write-off
- for
Coverage
- Add private policy info
- Remove private policy info
- Download Private Policy
- Coverage plans
- Coverage Policies Search
- Coverage Enroll
- Coverage Policy Unenroll
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
leaseId- the ID of the lease to set the private policy info forpolicyNumber- the policy number for the private coverage policyexpirationDate- the expiration date for the private coverage policy
Error Conditions
- Lease must not have a private policy number already set
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
leaseId- the ID of the lease to remove the private policy info for
Error Conditions
- Lease must have a private policy number already set
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:
pricingGroupId- limits results to coverage levels of a particular pricing groupfacilityId- Deprecated. UsepricingGroupId. Limits results to coverage levels across all pricing groups in a particular facility
Response Properties
pricingGroupIds- the pricing groups this coverage level is available inpremiumAmount- the premium in cents, per one billing cycle of the facility the coverage is sold at. See Billing Cycles
Optional Properties
expansions- an array of strings which can be used to include additional data in the response; the only supported value for this endpoint iscoverageProgram
Response Parameters
coverageProgramId- the ID of the coverage program this level belongs to; use it to associate a level with an entry in thecoverageProgramsexpansiondefault- whether this coverage level is the program's default (the level preselected on Cubby storefronts)provider/policyNumber- the coverage provider and policy number. These are attributes of the coverage program and are duplicated onto each level for convenience so they remain available when thecoverageProgramexpansion is not requested. ThecoverageProgramobject is the source of truth; the level-level copies may be removed in a future major version.
Expansions
coverageProgram- returns the distinct coverage program(s) for the matched levels as thecoverageProgramsarray. Join each level to its program viacoverageProgramId. Each program entry carries:coverageProgramId- the program ID (join key withcoverageLevel.coverageProgramId)provider- the coverage providerpolicyNumber- the program's policy numbercoverageOptions- the program's additional options governing the coverage step:allowTenantOwnInsurance- tenants may use their own insurance coverage (with proof of insurance)hideTenantOwnInsuranceOnStorefront- hide the own-insurance option from online bookingallowWaiveInsurance- tenants may opt out of coveragehideWaiveInsuranceOnStorefront- hide the opt-out option from online booking
Coverage Policies Search
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
facilityId- limits results to policies in a particular facility- or
leaseId- limit results to policies for a particular lease
Optional Properties
activeOnOrAfter- limits results to policies which are active on or after a specific dateactiveOnOrBefore- limits results to policies which are active on or before a specific date
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
- Only leases which are active and in good standing can be enrolled
- Only leases where the
coverageAutoenrollableistruemay be enrolled
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
- Only leases which are active and have a coverage policy may be unenrolled
Payments
Payments Search
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.
facilityId- limits results to payments taken at a particular facility- or
customerId- limits results to payments made by a particular customer, across every facility your token can reach- or
leaseId- limits results to payments applied to a particular lease, plus the attempts made against it that never settled
Optional Properties
paymentDateOnOrAfter- limits results to payments which were made on or after a specific datepaymentDateOnOrBefore- limits results to payments which were made on or before a specific date
Both dates are interpreted in the facility's time zone, and how they are applied depends on the scope:
- with
leaseId, both bounds are optional; omitting them returns the lease's entire payment history - with
facilityId, omitting either bound falls back to a one-month window ending on the facility's current date - with
customerId, both bounds are ignored and the customer's entire payment history is returned
One payment can pay for multiple leases
- A customer renting several units can settle them all in a single transaction, so a payment is not tied to one lease — it belongs to every lease it was applied to.
amountis always the full amount of the transaction, never the portion applied to the lease you searched for. Adding upamountacross a customer's leases will therefore over-count. To see how much of a payment landed on one particular lease, read that lease's ledger via Ledger Search — the applied portion appears there as aPAYMENTbook entry.
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
paymentId- the ID of the payment, from Payments Searchamount- the amount to refund, in cents. It cannot exceed the payment'samountreason- why the payment is refunded, at most 250 characters. Shown to staff in CubbybypassApproval-trueto refund the payment at once,falseto send the request to Cubby's approval queue
Optional Properties
leaseAmounts- how the refund is split across the leases the payment paid. Required when it paid severalleaseId- the ID of a lease the payment paidamount- the part of the refund for that lease, in cents
Response Parameters
status-APPLIEDwhen the refund was sent,PENDING_APPROVALwhen the request waits for approvalpaymentStatus- the payment's status after the request, as Payments Search reports it
Error Conditions
400with code8102- the payment has already been refunded, or a refund of it is already waiting for approval400with code8103- whenbypassApprovalistrue: the payment provider refused or failed the refund, so nothing was refunded400- the payment did not succeed, is not a lease payment, is a bank payment andamountis not its full amount,leaseAmountsis missing or does not match the leases the payment paid, orreasonis longer than 250 characters400- whenbypassApprovalistrue: the payment is a card or bank payment imported from another system, which can't be refunded in Cubby, or the payment's facility is disabled403- the API key does not hold the Credits and Waives role for the payment's facility
Auctions
- Auctions Search
- Auction Create
- Start lien process
- Cancel lien process
- Settle auction
- Complete auction
Auctions Search
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
facilityId- limits results to auctions in a particular facility- or
auctionId- limits results to a specific auction
Supported expansions:
winningBidders- includes information about the winning bidders for each auctioned leaseleases- includes information about the leases being auctionedunits- includes information about the units being auctioned
Response Parameters
auctionId- the ID of the auctionauctionTime- the date and time of the auctionadvertisementDeadline- the deadline for publishing ad for the auctionleaseConfigurationId- the ID of the lease configuration associated with the auctionauctionedLeases- an array of leases which are being auctioned-
leaseId- the ID of the lease
-
lienStartDate- the date the lien started
-
status- the status of the auction, which can be one of the following:LISTED- the lease is listed for auctionNO_BIDS- the lease did not receive any bidsSOLD- the lease was soldPAYMENT_RECEIVED- the winning bidder has successfully paidCOMPLETE- the auction is completeCANCELLED- the auction process was cancelled
-
winningBidderId- the ID of the winning bidder (which is a ID of acustomerentity)
-
bidAmount- the amount of the winning bid
-
remainingBid- the part of the winning bid the facility collects when an online auction platform kept its fee. Omitted when the facility collects the whole bid
-
depositAmount- the amount of the deposit charged to the winning bidder
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
facilityId- the ID of the facility to create the auction forauctionTime- the date and time of the auctionleaseConfigurationId- the ID of the lease configuration to use for the auction
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
leaseId- the ID of the lease to start the lien process forauctionId- the ID of the auction to include the lease in
Optional Properties
sendEmailAndSms- a boolean indicating if email and SMS notices should be sent, defaults tofalsesendToAlternativeContacts- a boolean indicating if alternative contacts should be notified, defaults tofalse
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
leaseId- the ID of the auctioned leaseoutcome-SOLDorUNSOLD
For SOLD:
bidAmount- the winning bid, in cents. Must be greater than zerowinningBidderId- the ID of an existing customer of the organization who won the auction, as returned inwinningBidderIdby Auctions Search- or
winningBidder- a new customer to create as the winning bidder, with anameand an optionalcontactobject in the shape of the customercontactreturned by Customers Search
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
remainingBid- for a unit sold on an online auction platform that kept its fee: the part of the bid the facility collects, in cents. Must be greater than zero and less thanbidAmounttaxExempt- a boolean indicating whether the bidder is exempt from sales tax on the bid, defaults tofalsedeposit- the cleaning deposit terms-
collect- a boolean indicating whether the cleaning deposit should be charged to the bidder, defaults totrue
Response Parameters
auctionedLease- the auctioned lease, in the shape returned by Auctions Searchbid- forSOLD, the charge for the bid. Omitted forUNSOLD-
subtotal- the bid, orremainingBidwhen set, before tax, in cents
-
tax- the sales tax on the bid, in cents: every state and local tax that applies, added together. Tax is computed on the fullbidAmount, also whenremainingBidis set
deposit- forSOLD, the charge for the cleaning deposit, in the same shape asbid. Both amounts are0when no deposit was charged. Omitted forUNSOLDsubtotal- forSOLD,bid.subtotalplusdeposit.subtotal, in cents. Omitted forUNSOLDbalance- forSOLD, the total the bidder owes, in cents:subtotalplusbid.taxanddeposit.tax. Omitted forUNSOLD
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
leaseId- the ID of the auctioned leasedepositAction- what to do with the cleaning deposit:REFUNDorRETAIN. Required when a deposit was charged, and ignored otherwise
Response Parameters
auctionedLease- the auctioned lease, in the shape returned by Auctions SearchdepositRefund- the refund of the cleaning deposit, in the shape returned by Payments Search.nullwhen the deposit was retained or none was charged
Delinquency Exemptions
- Delinquency Exemptions Search
- Delinquency Exemptions Create
- Delinquency Exemptions Update
- Delinquency Exemptions Cancel
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.
Delinquency Exemptions Search
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:
leaseId- returns the active exemption of a specific lease, or an empty list if the lease has nonecustomerId- returns the active exemptions of every lease the customer holds, in the facilities your API key can accessfacilityId- returns the active exemptions of every lease in a specific facility
Response Properties
leaseId- the ID of the exempted leasecustomerId- the ID of the lease's customerfacilityId- the ID of the lease's facilityreason- one ofBANKRUPTCY,DECEASED,MILITARY_SERVICE,PAYMENT_ARRANGEMENT, orOTHERotherReason- the description of the reason, whenreasonisOTHERendDate- the last day of the exemption (YYYY-MM-DD), in the facility's timezonepauseDelinquencyFees- late fees and other automated delinquency fees are not chargedpauseOverlock- the unit is not overlocked and gate access is not restrictedpauseLienEligibility- the lease does not become eligible for lienpauseCollectionsMessages- automated collections messages are not sent to the customernote- the free text kept with the exemption, ornullif it has none. Staff see it in the Cubby appcreatedBy- the ID of the user who created the exemptioncreatedAt/updatedAt- when the exemption was created and last changed, as ISO-8601 UTC timestamps
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
leaseId- the ID of the lease to exemptreason- one ofBANKRUPTCY,DECEASED,MILITARY_SERVICE,PAYMENT_ARRANGEMENT, orOTHERendDate- the last day of the exemption (YYYY-MM-DD). It must be after today, in the facility's timezonepauseDelinquencyFees,pauseOverlock,pauseLienEligibility,pauseCollectionsMessages- booleans that select which automated actions to pause. See Delinquency Exemptions Search for what each one does. At least one must betrue
Optional Properties
otherReason- a description of the reason. Required whenreasonisOTHERnote- free text kept with the exemption, shown to staff in the Cubby app
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
leaseId- the ID of the lease whose exemption to change. A lease with no active exemption is rejected with a400
Optional Properties
reason- one ofBANKRUPTCY,DECEASED,MILITARY_SERVICE,PAYMENT_ARRANGEMENT, orOTHERotherReason- a description of the reason. Required whenreasonisOTHER, so clearing it while the reason isOTHERis rejected with a400endDate- the last day of the exemption (YYYY-MM-DD). It must be after today, in the facility's timezone, so an exemption cannot be ended by moving its date into the past — use Delinquency Exemptions Cancel for thatpauseDelinquencyFees,pauseOverlock,pauseLienEligibility,pauseCollectionsMessages- booleans that select which automated actions to pause. At least one must end uptruenote- free text kept with the exemption, shown to staff in the Cubby app. Setting it replaces the note's text, andnull,""and whitespace all clear it. Only the user who wrote a note can change or clear it, so changing a note written by a member of staff is rejected with a400. Sending the note back unchanged, or omitting it, is always accepted, so the other properties of such an exemption can still be changed
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
leaseId- the ID of the lease whose exemption to cancel. A lease with no active exemption is rejected with a400
Notes
Notes Search
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
leaseId- limits results to notes for a specific lease- or
customerId- limits results to notes for a specific customer- or
leadId- limits results to notes for a specific lead- or
unitId- limits results to notes for a specific unit- or
pricingGroupId- limits results to notes for a specific pricing group
Response Properties
text- the text of the notecreatedAt- the date and time the note was created, as an ISO-8601 UTC timestamp (e.g.2024-03-01T12:00:00.000000Z)createdBy- the ID of the user who created the note
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
text- the text of the note- and one of
leaseId- the ID of the lease to attach the note to- or
customerId- the ID of the customer to attach the note to- or
leadId- the ID of the lead to attach the note to- or
unitId- the ID of the unit to attach the note to- or
pricingGroupId- the ID of the pricing group to attach the note to
Tasks
Tasks Search
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:
taskId- returns the single task with this IDorganizationId- limits results to tasks in a specific organizationfacilityId- limits results to tasks in a specific facilityunitId- limits results to tasks for a specific unitcustomerId- limits results to tasks for a specific customer
Optional Properties
status- filters tasks by status; one ofOPEN,COMPLETED, orARCHIVEDdue- whentrue, filters to tasks whose due date has arrived, read in each task's facility timezone — so tasks due today are included alongside overdue onesupdatedAfter/updatedBefore- strict UTC timestamp bounds onupdatedAt, intended as incremental-sync cursors; see Date and Timeexpansions- an array of strings which can be used to include additional data in the response; supported for this endpoint arefacility,unit, andtenant
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
facilityId- the ID of the facility to create the task intitle- the title of the task
Optional Properties
description- a description of the taskdueDate- the due date of the task (YYYY-MM-DD). Cannot be in the past, read in the facility's own timezonecustomerId- the ID of the customer to associate the task withunitId- the ID of the unit to associate the task with; a task carries a customer or a unit, not both
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
taskId- the ID of the task to update
Optional Properties
title- the title of the taskdescription- a description of the taskdueDate- the due date of the task (YYYY-MM-DD). A date you change cannot be in the past, read in the facility's own timezone; a date already in the past may be left as it is. A task that repeats must keep a due date, so clearing it on one is rejected with a400customerId- the ID of the customer to associate the task with. Setting it clearsunitIdunitId- the ID of the unit to associate the task with. Setting it clearscustomerId. Sending both a customer and a unit in one request is rejected with a400status-OPEN,COMPLETEDorARCHIVED. See Task Status
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
- General Ledger Accrual Based Report
- Aged Receivables Report
- Rent Roll Report
- Merchant Services Disbursements Report
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
facilityId- the ID of the facility to generate the report forstartDate- the start date for the report inYYYY-MM-DDformatreportRelativeDuration- the duration of the report relative to the start date. Valid values are:D- one dayM- one month
Response Parameters
The response contains an array of journal entries, each of which contains the following fields:
id- the ID of the journal entry line itemjournalEntryId- the ID of the journal entrypaymentTime- the date and time the payment was madeentryTime- the date and time the journal entry was createdamount- the amount of the journal entry in centsdirection- the direction of the journal entry, which can beDEBITorCREDITaccount- the account the journal entry is associated with, which can be one of the following:-
ACCOUNT_RECEIVABLE- Accounts Receivable
-
RENT- Rent
-
INSURANCE- Insurance
-
FEES- Fees
-
DISCOUNTS- Discounts
-
TAX_STATE- State Tax
-
TAX_LOCAL- Local Tax
-
PREPAID_RENT- Prepaid
-
CREDIT_CARD_PAYMENTS- Credit Card
-
OFFLINE_CARD_PAYMENTS- Offline Card
-
CASH_PAYMENTS- Cash
-
ACH_PAYMENTS- ACH
-
ACSS_PAYMENTS- ACSS
-
CHECK_PAYMENTS- Check
-
MONEYORDER_PAYMENTS- Money Order
-
VENMO_PAYMENTS- Venmo
-
PAYPAL_PAYMENTS- PayPal
-
ZELLE_PAYMENTS- Zelle
-
CASH_APP_PAYMENTS- Cash App
-
E_TRANSFER_PAYMENTS- E-Transfer
-
ONLINE_BANKING_PAYMENTS- Online Banking
-
DEPOSIT- Deposit
-
OLD_SYSTEM- Imported Balance
-
OLD_SYSTEM_DEPOSIT- Imported Deposit
-
DAMAGE- Damage
-
RETAINED_DEPOSIT- Retained Deposit
-
BAD_DEBT- Bad Debt
-
GIVEN_CREDITS- Given Credits
-
CREDITS- Credits
-
USED_CREDITS- Used Credits
-
EXTERNAL_ACCOUNT- External Account
-
WAIVED_FEES- Waived Fees
-
WAIVED_DAMAGE- Waived Damage
-
WAIVED_RENT- Waived Rent
-
AUCTION- Auctions
-
EXTERNAL_AUCTION- External Auction
-
ACCOUNTS_PAYABLE- Accounts Payable
-
RETAIL_SALES- Retail Sales
mappedGlAccount- the mapped GL account for the journal entry, if such a mapping exists for the facilitymappedGlAccountNumber- the mapped GL account number for the journal entry, if such a mapping exists for the facilitydetails- an object containing additional details about the journal entry:-
description- a description of the journal entry
-
customerId- the ID of the customer associated with the journal entry
-
customerName- the name of the customer associated with the journal entry
-
leaseId- the ID of the lease the journal entry is booked to. Omitted when the entry is not booked to a lease, such as an auction or merchandise sale entry
-
unitName- the name of the unit associated with the journal entry
-
cardType- the type of card used for the payment, if applicable
-
cardLastFour- the last four digits of the card used for the payment, if applicable
-
checkNumber- the check number used for the payment, if applicable
-
pricingGroupId- the ID of the pricing group associated with the journal entry
-
coverageLevelId- the ID of the coverage level associated with the journal entry, if applicable
-
feeId- the ID of the fee associated with the journal entry, if applicable
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
facilityId- the ID of the facility to generate the report forstartDate- the start date for the report inYYYY-MM-DDformatreportRelativeDuration- the duration of the report relative to the start date. Valid values are:D- one dayM- one month
Response Parameters
The response contains an array of journal entry line items, each of which contains the following fields:
id- the ID of the journal entry line itemjournalEntryId- the ID of the journal entryentryTime- the date and time the journal entry was createdfacilityId- the ID of the facility associated with the journal entryfacilityName- the name of the facility associated with the journal entrycustomerId- the ID of the customer associated with the journal entrycustomerName- the name of the customer associated with the journal entryleaseId- the ID of the lease the journal entry is booked to. Omitted when the entry is not booked to a lease, such as an auction or merchandise sale entry, or the payment method account side of a paymentunitId- the ID of the unit associated with the journal entryunitName- the name of the unit associated with the journal entryaccount- the account the journal entry is associated with, which can be one of the following:-
ACCOUNT_RECEIVABLE- Accounts Receivable
-
RENT- Rent
-
INSURANCE- Insurance
-
FEES- Fees
-
DISCOUNTS- Discounts
-
TAX_STATE- State Tax
-
TAX_LOCAL- Local Tax
-
PREPAID_RENT- Prepaid
-
CREDIT_CARD_PAYMENTS- Credit Card
-
OFFLINE_CARD_PAYMENTS- Offline Card
-
CASH_PAYMENTS- Cash
-
ACH_PAYMENTS- ACH
-
ACSS_PAYMENTS- ACSS
-
CHECK_PAYMENTS- Check
-
MONEYORDER_PAYMENTS- Money Order
-
VENMO_PAYMENTS- Venmo
-
PAYPAL_PAYMENTS- PayPal
-
ZELLE_PAYMENTS- Zelle
-
CASH_APP_PAYMENTS- Cash App
-
E_TRANSFER_PAYMENTS- E-Transfer
-
ONLINE_BANKING_PAYMENTS- Online Banking
-
DEPOSIT- Deposit
-
OLD_SYSTEM- Imported Balance
-
OLD_SYSTEM_DEPOSIT- Imported Deposit
-
DAMAGE- Damage
-
RETAINED_DEPOSIT- Retained Deposit
-
BAD_DEBT- Bad Debt
-
GIVEN_CREDITS- Given Credits
-
CREDITS- Credits
-
USED_CREDITS- Used Credits
-
EXTERNAL_ACCOUNT- External Account
-
WAIVED_FEES- Waived Fees
-
WAIVED_DAMAGE- Waived Damage
-
WAIVED_RENT- Waived Rent
-
AUCTION- Auctions
-
EXTERNAL_AUCTION- External Auction
-
ACCOUNTS_PAYABLE- Accounts Payable
-
RETAIL_SALES- Retail Sales
mappedGlAccount- the mapped GL account for the journal entry, if such a mapping exists for the facilitymappedGlAccountNumber- the mapped GL account number for the journal entry, if such a mapping exists for the facilitytaxExempt- a boolean indicating if the journal entry is tax exempttaxCategory- the tax category for the journal entry, which can be one of the following:-
RENT_ENCLOSED_STORAGE- Rent for enclosed storage
-
RENT_PARKING_SPACE- Rent for parking space
-
RENT_MOBILE_STORAGE- Rent for mobile storage
-
INSURANCE- Insurance
-
FEE_TAXABLE- Taxable fee
-
FEE_NON_TAXABLE- Non-taxable fee
-
RETAIL_GENERAL- General retail
-
RETAIL_FOOD- Food retail
-
RETAIL_NON_TAXABLE- Non-taxable retail
-
DAMAGE- Damage
-
DEPOSIT- Deposit
-
AUCTION- Auction
-
EXTERNAL_AUCTION- External Auction
explanation- a description of the journal entrydebit- the debit amount for the journal entry in centscredit- the credit amount for the journal entry in cents
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
facilityIds- an array of facility IDs to generate the report for
Optional Properties
throughDate- the date to compute the aging buckets as of; defaults to the facility's current dateexpansions- an array of strings which can be used to include additional data in the response; the only supported value for this endpoint ischarges
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:
facilityId- the ID of the facilityfacilityName- the name of the facilityleaseId- the ID of the leaseunitId- the ID of the unitunitName- the name of the unitpricingGroupId- the ID of the pricing grouppricingGroupName- the name of the pricing groupcustomerId- the ID of the customercustomerName- the name of the customertotalAmount- the total outstanding balance for the lease in centsranges- an array of objects representing the aged receivable ranges, each of which-
range- the range of days past due, which can be one of the following:RANGE_0_30- 0 to 30 days past dueRANGE_30_60- 30 to 60 days past dueRANGE_60_90- 60 to 90 days past dueRANGE_90_120- 90 to 120 days past dueRANGE_120_PLUS- more than 120 days past dueRANGE_UNKNOWN- unknown days past due
-
amount- the amount outstanding in that range in cents
charges- returned only when thechargesexpansion is requested; an array of the unpaid charges that make up the lease's balance, ordered byentryTime. TheoutstandingAmountof all charges adds up tototalAmount, and that of the charges in a range adds up to that range'samount. Each charge contains:-
id- the ID of the charge
-
journalEntryId- the ID of the journal entry the charge was posted in
-
entryTime- when the charge was posted; its age is counted from this date
-
accruesOn- the first day of the period the charge covers
-
accruesThrough- the last day of the period the charge covers
-
account- the type of charge, which includes:
-
-
- charges:
RENT,FEES,INSURANCE,DAMAGE,DEPOSIT,RETAIL_SALES,TAX_STATE,TAX_LOCAL
- charges:
-
-
-
- credits against charges:
DISCOUNTS,WAIVED_RENT,WAIVED_FEES
- credits against charges:
-
-
-
- balances imported from a previous system:
OLD_SYSTEM,OLD_SYSTEM_DEPOSIT
- balances imported from a previous system:
-
-
-
- balances transferred from another lease:
ACCOUNT_RECEIVABLE
- balances transferred from another lease:
-
-
taxCategory- the tax category of the charge; same values astaxCategoryin the General Ledger Accrual Based Report
-
feeId- for fee charges, the ID of the fee
-
coverageLevelId- for insurance charges, the ID of the coverage level
-
amount- the original amount of the charge in cents; negative for a credit on the ledger, such as a discount
-
outstandingAmount- the part of the charge not yet covered by payments, in cents; negative for a credit that has not yet been applied, which reduces the lease's balance
-
range- the aging range the charge falls in, one of therangevalues above
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
facilityIds- an array of facility IDs to generate the report forthroughDate- the date through which to calculate rent due inYYYY-MM-DDformat
Response Parameters
The response contains an array of rent roll entries, one for each unit, each of which contains the following fields:
facilityId- the ID of the facilityfacilityName- the name of the facilitystatus- the status of the unit, which can be one of the following:RENTED- the unit is currently rentedSCHEDULED_MOVE_IN- the unit has a scheduled move-inVACANT- the unit is vacantUNAVAILABLE- the unit is unavailable for rent
unitId- the ID of the unitunitName- the name of the unitpricingGroupId- the ID of the pricing grouppricingGroupName- the name of the pricing groupwidth- the width of the unit in feetdepth- the depth of the unit in feetheight- the height of the unit in feetstandardRate- the standard rental rate for the unit in cents, per one billing cycle of the facilitycustomerId- the ID of the customer renting the unitcustomerName- the name of the customer renting the unitcompanyName- the company name of the customer renting the unitcontact- the contact information for the customer renting the unittotalDue- the total amount due for the unit in centsdeposit- the deposit amount for the unit in centsprepaid- the prepaid amount for the unit in centscredit- the credit balance available on the unit's lease in centsmonthlyRentalAmount- the rent for the unit's lease in cents, per the lease'sbillingCycle. UnlikemonthlyRentalAmounton Leases Search, which is per facility cycle, it is already converted to the lease's cycle; the two differ only for a lease on a different cycle than its facilityeffectiveRate- the effective rate for the unit in cents: the net rent (rent less discounts and waived rent) charged for the current billing periodrentVarianceAmount- the variance in rent for the unit in centslastRentChangeDate- the date of the tenant's last completed rent change, or omitted if the rent has never changedrentChangeScheduledDate- the date the rent change is scheduled to take effectrentChangeNewRentAmount- the new rent amount after the change in cents, per the lease'sbillingCyclebillingCycle- the billing cycle of the unit's lease, which can be one of the following:WEEKLY- billed weeklyBI_WEEKLY- billed every two weeksDAYS_28- billed every 28 daysMONTHLY- billed monthlyQUARTERLY- billed every three monthsBI_ANNUAL- billed every six monthsANNUAL- billed yearly
moveInDate- the move-in date for the unitpaidOnDate- the date the unit was last paid onpaidThroughDate- the date through which the unit is paidbillingDayOfMonth- the day of the month the unit is billed ontaxExempt- a boolean indicating if the unit is tax exemptpaid- a boolean indicating if the unit is paidautoPayEnabled- a boolean indicating if auto-pay is enabled for the unitoverlockNeeded- a boolean indicating if an overlock is needed for the unitoverlockApplied- a boolean indicating if an overlock has been applied to the unit
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
facilityIds- an array of facility IDs to generate the report forstartDate- the start date for the report inYYYY-MM-DDformatreportRelativeDuration- the duration of the report relative to the start date. Valid values are:D- one dayM- one month
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:
facilityId- the ID of the facilityfacilityName- the name of the facilitypaymentProvider- the payment provider:STRIPEorPAYABLImerchantId- the merchant account ID with the payment providerbatchDate- the date of the batch inYYYY-MM-DDformatbatchNumber- the batch or payout identifierbatchStatus- the status of the batch. Values depend on the payment provider:- Stripe:
paid,pending,in_transit,canceled,failed - Payabli:
OPEN,CLOSED,TRANSFERRED,FUNDED,RESOLVED,HELD
- Stripe:
methodType- the payment method type for the batch. Values depend on the payment provider:- Stripe:
card,fpx,bank_account - Payabli:
card,ach,wallet,combine
- Stripe:
amount- the total batch amount in cents
Transactions
Each transaction entry represents an individual payment within a batch:
facilityId- the ID of the facilityfacilityName- the name of the facilitypaymentProvider- the payment provider:STRIPEorPAYABLIbatchNumber- the batch or payout identifier this transaction belongs tobatchDate- the date of the parent batch inYYYY-MM-DDformatpaymentId- the Cubby payment identifier. This is the same identifier that Checkout returns aspaymentTransactionIdand that Make Payment and Payments Search return aspaymentId. Absent on some rows — see Rows without Cubby payment details belowtransactionId- the payment provider's transaction identifierdate- the date of the transaction inYYYY-MM-DDformatamount- the transaction amount in centspayabliStatus- (Payabli only) the transaction status as reported by Payabli:AUTHORIZED,APPROVED,DECLINED_BY_PROCESSOR,DECLINED_BY_TECHNICAL_ERROR,VOIDED,FAILED,INITIATEDstatus- the transaction status in Cubby:NEW,INITIATED,PENDING,APPROVED,DECLINED,ERROR,FAILED,VOIDED,CANCELING,VOIDING,APPROVINGtype- the type of transaction:SALE,REFUND,FAILUREcustomerId- the ID of the customer associated with the transactioncustomerName- the name of the customer associated with the transactionmethodType- the payment method used:CREDIT_CARD,ACH,ACSS, etc. Every row is a gateway transaction, so the methods a facility takes outside a gateway do not appear herecardBrand- the card brand, if applicable:VISA,MASTERCARD,AMERICAN_EXPRESS,DISCOVER,JCB,UNIONPAY, etc.lastFour- the last four digits of the card or account number, if applicable
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:
- refunds, disputes, and ACH returns — Cubby records these as children of the original payment and only
originals are matched, so a
REFUNDorFAILURErow never carries apaymentId. The originalSALErow does, but only if it settled inside the period you requested. - transactions with no matching Cubby payment — a charge taken on the same merchant account outside Cubby, for example.
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
Storefront Facilities Search
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
facilityId- limits results to a specific facility- or
organizationId- limits results to facilities in a specific organization
Optional Properties
expansions- an array of strings which can be used to include additional data in the response; supported for this endpoint areorganizationandschedules
Storefront Pricing Groups Search
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:
RENT- self-serve rental onlyRENT_OR_RESERVE- the unit type can be rented or reservedCALL_TO_RENT- the operator requires a phone conversation before renting
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
pricingGroupId- limits results to a specific pricing group- or
facilityId- limits results to pricing groups in a particular facility
Optional Properties
expansions- an array of strings which can be used to include additional data in the response; supported for this endpoint arediscounts
Response Parameters
price- the price in cents (integer). For a value-pricing unit type whose tiers show on the storefront, it starts from the cheapest tier on offer, not from the web ratestrikethroughPrice- the original/comparison price in cents (integer)width,depth,height- unit dimensionsdescription- the unit type's storefront description, omitted when it has noneimages- an array of image URLsfeatures- an array of feature descriptions: the unit type's features that the storefront shows, in the storefront's orderdiscounts- an array of discount IDs (expand withdiscountsexpansion to get full discount objects). Each expanded discount object carriesdiscountStrategyId, the ID of the discount strategy that holds the discountparking- a boolean indicating if this is a parking spacevehicleStorage- a boolean indicating if this is vehicle storagerentable-truewhen a customer without a reservation can rent a unit of this type now.falsewhen every free unit is taken or held by a reservation (reservations hold nothing back at a facility that allows overbooking). It isfalseexactly whenrentableUnitsis0on Pricing Group SearchdisplayedUnitsLeft- the remaining unit count to advertise, or omitted when there is no low-inventory message to show. It is always omitted forCALL_TO_RENTunit types
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
customerId- the ID of the customer to send the message tofacilityId- the ID of the facility to send the message frombody- the body of the message to send (must be at most 320 characters)
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
requestpart
{
"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:
customerId- the ID of the customer to send the message tofacilityId- the ID of the facility to send the message fromsubject- the subject of the email (must be at most 255 characters)body- the body of the email to send (must be at most 256 KB (262,144 characters) long)
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.