Leases

Lease agreements.

The object#

FieldTypeDescription
idread-onlyintegerNolaPro id.
unitidintegerUnitid. Id only.
customeridintegerReference to customers, by id. Write either this or customer.
customerstring(30)Code for the referenced customer, instead of the id.
useridintegerUserid. Id only.
userstring(50)The name of the referenced genusers, instead of the id. Send this or userid, not both unless they agree.
rentperiodstring(5)Rent Period: W = weekly, SM = semi-monthly, M = monthly, S = semester, SY = semi-yearly, AY = academic year, Y = yearly.
cotenantstring(150)Co-tenant named on the lease.
cotenantemailstring(200)Email of the co-tenant.
begindatestringDate the lease begins.
enddatestringDate the lease ends.
moveindatestringDate the tenant moves in.
firstinvoicemonthsintegerMonths before the move-in date that the first invoice comes due; copied from the building default.
origenddatestringOriginal end date before any renewal or extension.
rentamountmoneystring(6dp)Stored as decimal(19,6).
petrentmoneystring(6dp)Stored as decimal(19,6).
lawncaremoneystring(6dp)Stored as decimal(19,6).
revenueglaccountidintegerReference to glaccounts, by id. Write either this or revenueglaccount.
revenueglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or revenueglaccountid, not both unless they agree.
petrentglaccountidintegerReference to glaccounts, by id. Write either this or petrentglaccount.
petrentglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or petrentglaccountid, not both unless they agree.
lawncareglaccountidintegerReference to glaccounts, by id. Write either this or lawncareglaccount.
lawncareglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or lawncareglaccountid, not both unless they agree.
deferredrevenueglaccountidintegerReference to glaccounts, by id. Write either this or deferredrevenueglaccount.
deferredrevenueglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or deferredrevenueglaccountid, not both unless they agree.
numpaymentsintegerNumber of rent payments over the lease term, derived from the rent period (e.g. 12 for monthly).
depositamountmoneystring(6dp)Stored as decimal(19,6).
depositcreditmoneystring(6dp)Stored as decimal(19,6).
depositreturnedmoneystring(6dp)Stored as decimal(19,6).
depositreturnedinvoiceidintegerInvoice the returned deposit was credited on. Write either this or depositreturnedinvoice.
depositreturnedinvoicestring(30)Invoice NUMBER (arinvoice.invoicenumber) instead of the id. The sibling of depositreturnedinvoiceid.
depositkeptvoucheridintegerDepositkeptvoucherid. Id only.
depositkeptvoucherstring(50)The voucher of the referenced gltransactions, instead of the id. Send this or depositkeptvoucherid, not both unless they agree.
depositglaccountidintegerReference to glaccounts, by id. Write either this or depositglaccount.
depositglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or depositglaccountid, not both unless they agree.
overagecapmoneystring(6dp)Stored as decimal(19,6).
latefeemoneystring(6dp)Stored as decimal(19,6).
transferfeemoneystring(6dp)Stored as decimal(19,6).
notestextNotes. Stored as text, no practical length limit.
entrydateread-onlystringWhen the record was created.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
reservationfeemoneystring(6dp)Stored as decimal(19,6).
reservationfeeglaccountidintegerReference to glaccounts, by id. Write either this or reservationfeeglaccount.
reservationfeeglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or reservationfeeglaccountid, not both unless they agree.
petdepositmoneystring(6dp)Stored as decimal(19,6).
petdepositcreditmoneystring(6dp)Stored as decimal(19,6).
petdepositglaccountidintegerReference to glaccounts, by id. Write either this or petdepositglaccount.
petdepositglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or petdepositglaccountid, not both unless they agree.
petdepositreturnedmoneystring(6dp)Stored as decimal(19,6).
proratedamountmoneystring(6dp)Stored as decimal(19,6).
prorateddaysintegerDays of prorated rent billed for a partial first period.
proratedtotaldaysintegerTotal days in the period the proration was computed against.
paymentplantextPaymentplan. Stored as text, no practical length limit.
leaseendedinteger1 once the lease has ended.
leaseendeddatestringDate the lease actually ended.
leaseendeduseridintegerReference to genusers, by id. Write either this or leaseendeduser.
leaseendeduserstring(50)The name of the referenced genusers, instead of the id. Send this or leaseendeduserid, not both unless they agree.
origleaseidintegerOrigleaseid. Id only.
renewedinteger1 when the lease was renewed into a newer lease.
transferredinteger1 when the lease was transferred to another unit or tenant.
transferredunitidintegerTransferredunitid. Id only.
autobillinteger1 generates rent invoices automatically each period (Auto Bill).
leasecodestring(30)Short code identifying the lease.
signedinteger1 once the signed lease is on file; unsigned leases are flagged on lease lists.
prepaymentamountmoneystring(6dp)Stored as decimal(19,6).
prepaymentdatestringDate the prepayment (e.g. deposit or first rent) was received.
cotenant2string(150)Second co-tenant named on the lease.
cotenant2emailstring(200)Email of the second co-tenant.
externalidstring(100)Your own key. Scoped to your company.

Endpoints#

POST/leases/batch 207

Create many.

Requires scope properties:write.

Parameters
NameInTypeNotes
Body array
FieldTypeDescription
idread-onlyintegerNolaPro id.
unitidintegerUnitid. Id only.
customeridintegerReference to customers, by id. Write either this or customer.
customerstring(30)Code for the referenced customer, instead of the id.
useridintegerUserid. Id only.
userstring(50)The name of the referenced genusers, instead of the id. Send this or userid, not both unless they agree.
rentperiodstring(5)Rent Period: W = weekly, SM = semi-monthly, M = monthly, S = semester, SY = semi-yearly, AY = academic year, Y = yearly.
cotenantstring(150)Co-tenant named on the lease.
cotenantemailstring(200)Email of the co-tenant.
begindatestringDate the lease begins.
enddatestringDate the lease ends.
moveindatestringDate the tenant moves in.
firstinvoicemonthsintegerMonths before the move-in date that the first invoice comes due; copied from the building default.
origenddatestringOriginal end date before any renewal or extension.
rentamountmoneystring(6dp)Stored as decimal(19,6).
petrentmoneystring(6dp)Stored as decimal(19,6).
lawncaremoneystring(6dp)Stored as decimal(19,6).
revenueglaccountidintegerReference to glaccounts, by id. Write either this or revenueglaccount.
revenueglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or revenueglaccountid, not both unless they agree.
petrentglaccountidintegerReference to glaccounts, by id. Write either this or petrentglaccount.
petrentglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or petrentglaccountid, not both unless they agree.
lawncareglaccountidintegerReference to glaccounts, by id. Write either this or lawncareglaccount.
lawncareglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or lawncareglaccountid, not both unless they agree.
deferredrevenueglaccountidintegerReference to glaccounts, by id. Write either this or deferredrevenueglaccount.
deferredrevenueglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or deferredrevenueglaccountid, not both unless they agree.
numpaymentsintegerNumber of rent payments over the lease term, derived from the rent period (e.g. 12 for monthly).
depositamountmoneystring(6dp)Stored as decimal(19,6).
depositcreditmoneystring(6dp)Stored as decimal(19,6).
depositreturnedmoneystring(6dp)Stored as decimal(19,6).
depositreturnedinvoiceidintegerInvoice the returned deposit was credited on. Write either this or depositreturnedinvoice.
depositreturnedinvoicestring(30)Invoice NUMBER (arinvoice.invoicenumber) instead of the id. The sibling of depositreturnedinvoiceid.
depositkeptvoucheridintegerDepositkeptvoucherid. Id only.
depositkeptvoucherstring(50)The voucher of the referenced gltransactions, instead of the id. Send this or depositkeptvoucherid, not both unless they agree.
depositglaccountidintegerReference to glaccounts, by id. Write either this or depositglaccount.
depositglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or depositglaccountid, not both unless they agree.
overagecapmoneystring(6dp)Stored as decimal(19,6).
latefeemoneystring(6dp)Stored as decimal(19,6).
transferfeemoneystring(6dp)Stored as decimal(19,6).
notestextNotes. Stored as text, no practical length limit.
entrydateread-onlystringWhen the record was created.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
reservationfeemoneystring(6dp)Stored as decimal(19,6).
reservationfeeglaccountidintegerReference to glaccounts, by id. Write either this or reservationfeeglaccount.
reservationfeeglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or reservationfeeglaccountid, not both unless they agree.
petdepositmoneystring(6dp)Stored as decimal(19,6).
petdepositcreditmoneystring(6dp)Stored as decimal(19,6).
petdepositglaccountidintegerReference to glaccounts, by id. Write either this or petdepositglaccount.
petdepositglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or petdepositglaccountid, not both unless they agree.
petdepositreturnedmoneystring(6dp)Stored as decimal(19,6).
proratedamountmoneystring(6dp)Stored as decimal(19,6).
prorateddaysintegerDays of prorated rent billed for a partial first period.
proratedtotaldaysintegerTotal days in the period the proration was computed against.
paymentplantextPaymentplan. Stored as text, no practical length limit.
leaseendedinteger1 once the lease has ended.
leaseendeddatestringDate the lease actually ended.
leaseendeduseridintegerReference to genusers, by id. Write either this or leaseendeduser.
leaseendeduserstring(50)The name of the referenced genusers, instead of the id. Send this or leaseendeduserid, not both unless they agree.
origleaseidintegerOrigleaseid. Id only.
renewedinteger1 when the lease was renewed into a newer lease.
transferredinteger1 when the lease was transferred to another unit or tenant.
transferredunitidintegerTransferredunitid. Id only.
autobillinteger1 generates rent invoices automatically each period (Auto Bill).
leasecodestring(30)Short code identifying the lease.
signedinteger1 once the signed lease is on file; unsigned leases are flagged on lease lists.
prepaymentamountmoneystring(6dp)Stored as decimal(19,6).
prepaymentdatestringDate the prepayment (e.g. deposit or first rent) was received.
cotenant2string(150)Second co-tenant named on the lease.
cotenant2emailstring(200)Email of the second co-tenant.
externalidstring(100)Your own key. Scoped to your company.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/leases/batch' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '[
    {
        "unitid": 104,
        "customerid": 104,
        "customer": "Example customer",
        "user": "Example user",
        "rentperiod": "Example rentperiod",
        "cotenant": "Example cotenant"
    }
]'
GET/leases 200403

List leases.

Requires scope properties:read.

Parameters
NameInTypeNotes
customeridquerystringRestrict to one customerid.
cancelquerystringDefaults to false. Pass true or any.
externalidquerystringExact match on your own key.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
403insufficient_scopeToken lacks read scope.
curl \
  'https://acme.nolapro.com/!/api/v2/leases' \
  -H 'Authorization: Bearer $NP_TOKEN'
POST/leases 201400

Create.

Requires scope properties:write.

Parameters
NameInTypeNotes
Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
unitidintegerUnitid. Id only.
customeridintegerReference to customers, by id. Write either this or customer.
customerstring(30)Code for the referenced customer, instead of the id.
useridintegerUserid. Id only.
userstring(50)The name of the referenced genusers, instead of the id. Send this or userid, not both unless they agree.
rentperiodstring(5)Rent Period: W = weekly, SM = semi-monthly, M = monthly, S = semester, SY = semi-yearly, AY = academic year, Y = yearly.
cotenantstring(150)Co-tenant named on the lease.
cotenantemailstring(200)Email of the co-tenant.
begindatestringDate the lease begins.
enddatestringDate the lease ends.
moveindatestringDate the tenant moves in.
firstinvoicemonthsintegerMonths before the move-in date that the first invoice comes due; copied from the building default.
origenddatestringOriginal end date before any renewal or extension.
rentamountmoneystring(6dp)Stored as decimal(19,6).
petrentmoneystring(6dp)Stored as decimal(19,6).
lawncaremoneystring(6dp)Stored as decimal(19,6).
revenueglaccountidintegerReference to glaccounts, by id. Write either this or revenueglaccount.
revenueglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or revenueglaccountid, not both unless they agree.
petrentglaccountidintegerReference to glaccounts, by id. Write either this or petrentglaccount.
petrentglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or petrentglaccountid, not both unless they agree.
lawncareglaccountidintegerReference to glaccounts, by id. Write either this or lawncareglaccount.
lawncareglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or lawncareglaccountid, not both unless they agree.
deferredrevenueglaccountidintegerReference to glaccounts, by id. Write either this or deferredrevenueglaccount.
deferredrevenueglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or deferredrevenueglaccountid, not both unless they agree.
numpaymentsintegerNumber of rent payments over the lease term, derived from the rent period (e.g. 12 for monthly).
depositamountmoneystring(6dp)Stored as decimal(19,6).
depositcreditmoneystring(6dp)Stored as decimal(19,6).
depositreturnedmoneystring(6dp)Stored as decimal(19,6).
depositreturnedinvoiceidintegerInvoice the returned deposit was credited on. Write either this or depositreturnedinvoice.
depositreturnedinvoicestring(30)Invoice NUMBER (arinvoice.invoicenumber) instead of the id. The sibling of depositreturnedinvoiceid.
depositkeptvoucheridintegerDepositkeptvoucherid. Id only.
depositkeptvoucherstring(50)The voucher of the referenced gltransactions, instead of the id. Send this or depositkeptvoucherid, not both unless they agree.
depositglaccountidintegerReference to glaccounts, by id. Write either this or depositglaccount.
depositglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or depositglaccountid, not both unless they agree.
overagecapmoneystring(6dp)Stored as decimal(19,6).
latefeemoneystring(6dp)Stored as decimal(19,6).
transferfeemoneystring(6dp)Stored as decimal(19,6).
notestextNotes. Stored as text, no practical length limit.
entrydateread-onlystringWhen the record was created.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
reservationfeemoneystring(6dp)Stored as decimal(19,6).
reservationfeeglaccountidintegerReference to glaccounts, by id. Write either this or reservationfeeglaccount.
reservationfeeglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or reservationfeeglaccountid, not both unless they agree.
petdepositmoneystring(6dp)Stored as decimal(19,6).
petdepositcreditmoneystring(6dp)Stored as decimal(19,6).
petdepositglaccountidintegerReference to glaccounts, by id. Write either this or petdepositglaccount.
petdepositglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or petdepositglaccountid, not both unless they agree.
petdepositreturnedmoneystring(6dp)Stored as decimal(19,6).
proratedamountmoneystring(6dp)Stored as decimal(19,6).
prorateddaysintegerDays of prorated rent billed for a partial first period.
proratedtotaldaysintegerTotal days in the period the proration was computed against.
paymentplantextPaymentplan. Stored as text, no practical length limit.
leaseendedinteger1 once the lease has ended.
leaseendeddatestringDate the lease actually ended.
leaseendeduseridintegerReference to genusers, by id. Write either this or leaseendeduser.
leaseendeduserstring(50)The name of the referenced genusers, instead of the id. Send this or leaseendeduserid, not both unless they agree.
origleaseidintegerOrigleaseid. Id only.
renewedinteger1 when the lease was renewed into a newer lease.
transferredinteger1 when the lease was transferred to another unit or tenant.
transferredunitidintegerTransferredunitid. Id only.
autobillinteger1 generates rent invoices automatically each period (Auto Bill).
leasecodestring(30)Short code identifying the lease.
signedinteger1 once the signed lease is on file; unsigned leases are flagged on lease lists.
prepaymentamountmoneystring(6dp)Stored as decimal(19,6).
prepaymentdatestringDate the prepayment (e.g. deposit or first rent) was received.
cotenant2string(150)Second co-tenant named on the lease.
cotenant2emailstring(200)Email of the second co-tenant.
externalidstring(100)Your own key. Scoped to your company.
When it fails
StatusCodeMeaning
400invalid_requestA required field was missing.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/leases' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "unitid": 104,
    "customerid": 104,
    "customer": "Example customer",
    "user": "Example user",
    "rentperiod": "Example rentperiod",
    "cotenant": "Example cotenant"
}'
Response 201
{
    "unitid": 104,
    "customerid": 104,
    "customer": "Example customer",
    "user": "Example user",
    "rentperiod": "Example rentperiod",
    "cotenant": "Example cotenant"
}
GET/leases/{id} 200404

Retrieve one record.

Requires scope properties:read.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl \
  'https://acme.nolapro.com/!/api/v2/leases/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "unitid": 104,
    "customerid": 104,
    "customer": "Example customer",
    "user": "Example user",
    "rentperiod": "Example rentperiod",
    "cotenant": "Example cotenant"
}
PATCH/leases/{id} 200404

Update.

Requires scope properties:write.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
unitidintegerUnitid. Id only.
customeridintegerReference to customers, by id. Write either this or customer.
customerstring(30)Code for the referenced customer, instead of the id.
useridintegerUserid. Id only.
userstring(50)The name of the referenced genusers, instead of the id. Send this or userid, not both unless they agree.
rentperiodstring(5)Rent Period: W = weekly, SM = semi-monthly, M = monthly, S = semester, SY = semi-yearly, AY = academic year, Y = yearly.
cotenantstring(150)Co-tenant named on the lease.
cotenantemailstring(200)Email of the co-tenant.
begindatestringDate the lease begins.
enddatestringDate the lease ends.
moveindatestringDate the tenant moves in.
firstinvoicemonthsintegerMonths before the move-in date that the first invoice comes due; copied from the building default.
origenddatestringOriginal end date before any renewal or extension.
rentamountmoneystring(6dp)Stored as decimal(19,6).
petrentmoneystring(6dp)Stored as decimal(19,6).
lawncaremoneystring(6dp)Stored as decimal(19,6).
revenueglaccountidintegerReference to glaccounts, by id. Write either this or revenueglaccount.
revenueglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or revenueglaccountid, not both unless they agree.
petrentglaccountidintegerReference to glaccounts, by id. Write either this or petrentglaccount.
petrentglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or petrentglaccountid, not both unless they agree.
lawncareglaccountidintegerReference to glaccounts, by id. Write either this or lawncareglaccount.
lawncareglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or lawncareglaccountid, not both unless they agree.
deferredrevenueglaccountidintegerReference to glaccounts, by id. Write either this or deferredrevenueglaccount.
deferredrevenueglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or deferredrevenueglaccountid, not both unless they agree.
numpaymentsintegerNumber of rent payments over the lease term, derived from the rent period (e.g. 12 for monthly).
depositamountmoneystring(6dp)Stored as decimal(19,6).
depositcreditmoneystring(6dp)Stored as decimal(19,6).
depositreturnedmoneystring(6dp)Stored as decimal(19,6).
depositreturnedinvoiceidintegerInvoice the returned deposit was credited on. Write either this or depositreturnedinvoice.
depositreturnedinvoicestring(30)Invoice NUMBER (arinvoice.invoicenumber) instead of the id. The sibling of depositreturnedinvoiceid.
depositkeptvoucheridintegerDepositkeptvoucherid. Id only.
depositkeptvoucherstring(50)The voucher of the referenced gltransactions, instead of the id. Send this or depositkeptvoucherid, not both unless they agree.
depositglaccountidintegerReference to glaccounts, by id. Write either this or depositglaccount.
depositglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or depositglaccountid, not both unless they agree.
overagecapmoneystring(6dp)Stored as decimal(19,6).
latefeemoneystring(6dp)Stored as decimal(19,6).
transferfeemoneystring(6dp)Stored as decimal(19,6).
notestextNotes. Stored as text, no practical length limit.
entrydateread-onlystringWhen the record was created.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
reservationfeemoneystring(6dp)Stored as decimal(19,6).
reservationfeeglaccountidintegerReference to glaccounts, by id. Write either this or reservationfeeglaccount.
reservationfeeglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or reservationfeeglaccountid, not both unless they agree.
petdepositmoneystring(6dp)Stored as decimal(19,6).
petdepositcreditmoneystring(6dp)Stored as decimal(19,6).
petdepositglaccountidintegerReference to glaccounts, by id. Write either this or petdepositglaccount.
petdepositglaccountstring(20)The name of the referenced glaccounts, instead of the id. Send this or petdepositglaccountid, not both unless they agree.
petdepositreturnedmoneystring(6dp)Stored as decimal(19,6).
proratedamountmoneystring(6dp)Stored as decimal(19,6).
prorateddaysintegerDays of prorated rent billed for a partial first period.
proratedtotaldaysintegerTotal days in the period the proration was computed against.
paymentplantextPaymentplan. Stored as text, no practical length limit.
leaseendedinteger1 once the lease has ended.
leaseendeddatestringDate the lease actually ended.
leaseendeduseridintegerReference to genusers, by id. Write either this or leaseendeduser.
leaseendeduserstring(50)The name of the referenced genusers, instead of the id. Send this or leaseendeduserid, not both unless they agree.
origleaseidintegerOrigleaseid. Id only.
renewedinteger1 when the lease was renewed into a newer lease.
transferredinteger1 when the lease was transferred to another unit or tenant.
transferredunitidintegerTransferredunitid. Id only.
autobillinteger1 generates rent invoices automatically each period (Auto Bill).
leasecodestring(30)Short code identifying the lease.
signedinteger1 once the signed lease is on file; unsigned leases are flagged on lease lists.
prepaymentamountmoneystring(6dp)Stored as decimal(19,6).
prepaymentdatestringDate the prepayment (e.g. deposit or first rent) was received.
cotenant2string(150)Second co-tenant named on the lease.
cotenant2emailstring(200)Email of the second co-tenant.
externalidstring(100)Your own key. Scoped to your company.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl -X PATCH \
  'https://acme.nolapro.com/!/api/v2/leases/104' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "unitid": 104,
    "customerid": 104,
    "customer": "Example customer",
    "user": "Example user",
    "rentperiod": "Example rentperiod",
    "cotenant": "Example cotenant"
}'
Response 200
{
    "unitid": 104,
    "customerid": 104,
    "customer": "Example customer",
    "user": "Example user",
    "rentperiod": "Example rentperiod",
    "cotenant": "Example cotenant"
}
DELETE/leases/{id} 200404

Cancel.

Requires scope properties:cancel.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl -X DELETE \
  'https://acme.nolapro.com/!/api/v2/leases/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "unitid": 104,
    "customerid": 104,
    "customer": "Example customer",
    "user": "Example user",
    "rentperiod": "Example rentperiod",
    "cotenant": "Example cotenant"
}