Record a rent prepayment received from the tenant
POST
/api/leases/{id}/rent-prepayments
const url = 'https://api.getvespy.com/api/leases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rent-prepayments';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"checkNumber":"example","idempotencyKey":"example","months":1,"paymentMethod":"ach","receivedAt":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.getvespy.com/api/leases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rent-prepayments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "checkNumber": "example", "idempotencyKey": "example", "months": 1, "paymentMethod": "ach", "receivedAt": "2026-04-15T12:00:00Z" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
checkNumber
string
idempotencyKey
required
string
months
required
integer
paymentMethod
required
string
receivedAt
required
string format: date-time
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
paymentId
required
string format: uuid
prepayment
required
object
chargeIds
required
Array<string>
createdAt
required
string format: date-time
firstDueDate
required
string format: date
id
required
string format: uuid
lastDueDate
required
string format: date
leaseId
required
string format: uuid
monthlyAmountCents
required
integer
months
required
integer
source
required
string
status
required
string
tenantId
required
string format: uuid
totalCents
required
integer
Example
{ "prepayment": { "source": "staff", "status": "pending" }}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}