Put an unposted security deposit into a trust account
POST
/api/trust/deposits/{id}/post
const url = 'https://api.getvespy.com/api/trust/deposits/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/post';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"bankAccountId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
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/trust/deposits/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/post \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "bankAccountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'For a deposit recorded without a bank account, such as one created from a lease abstraction. Assigns the trust account and posts the deposit to the trust books.
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
bankAccountId
required
string format: uuid
Examplegenerated
{ "bankAccountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
securityDeposit
required
object
amountCents
required
integer
bankAccountId
required
string format: uuid
createdAt
required
string format: date-time
fundingChargeId
required
The paid deposit charge this deposit was funded from.
string format: uuid
id
required
string format: uuid
isOverdue
required
boolean
leaseId
required
string format: uuid
organizationId
required
string format: uuid
propertyState
required
string
receivedAt
required
string format: date-time
returnDeadline
required
string format: date-time
returnDeadlineDays
required
integer
returnedAt
required
string format: date-time
status
required
string
tenantId
required
string format: uuid
updatedAt
required
string format: date-time
Example
{ "securityDeposit": { "status": "held" }}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"}