Create owner payable
POST
/api/trust/owner-payables
const url = 'https://api.getvespy.com/api/trust/owner-payables';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"amountCents":1,"description":"example","kind":"distribution","ownerId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","propertyId":"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/owner-payables \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amountCents": 1, "description": "example", "kind": "distribution", "ownerId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "propertyId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
amountCents
required
integer
description
string
kind
A distribution pays the owner out of the property’s account; a contribution is money the owner puts in.
string
ownerId
required
string format: uuid
propertyId
string format: uuid
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
ownerPayable
required
object
amountCents
required
integer
bankAccountId
required
The bank account the money moved in; set when paid.
string format: uuid
createdAt
required
string format: date-time
createdByUserId
required
string format: uuid
description
required
string
id
required
string format: uuid
kind
required
A distribution pays the owner out of the property’s account; a contribution is money the owner puts in.
string
organizationId
required
string format: uuid
overrideReason
required
string
ownerId
required
string format: uuid
paidAt
required
string format: date-time
paymentMethod
required
string
propertyId
required
string format: uuid
reference
required
string
status
required
string
updatedAt
required
string format: date-time
voidedAt
required
string format: date-time
Example
{ "ownerPayable": { "kind": "distribution", "paymentMethod": "check", "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"}