Create Testimony
Allows an authenticated client to create a new testimony with real estate details.
HTTP Request
POST /api/v1/testimonies
| Parameter | Description |
|---|---|
purpose string, enum | Testimony purpose. Valid values: mortgage, inheritance, construction, settlement, coownership, noncash, enforcement, auction, transfer, business, easement |
realEstate object, RealEstate | Associated real estate. See Real Estate Object. |
notes string, optional | Additional notes |
Response
201 Created
json
{
"data": {
"id": "9dc6f0f8-f7d7-4676-8c07-13a1f0865681",
"state": "pending",
"purpose": "mortgage",
"price": null,
"client": {
"role": "client",
"email": "samuel.mago@gmail.com",
"phone": "+421 902 654 321",
"firstName": "Samuel",
"lastName": "Mago",
"billingAddress": null,
"shippingAddress": null,
"company": null,
"bankAccount": null,
"regions": null,
"emailVerified": false,
"newsletterSubscribed": true
},
"expert": null,
"realEstate": {
"type": "house",
"region": "ba",
"properties": {
"parcelCount": 1,
"storeyCount": 1,
"otherBuildingCount": 0,
"detachedGarageCount": 1
},
"address": {
"line1": "Trieda Andreja Hlinku",
"line2": "1/22",
"city": "Nitra",
"postalCode": "94901"
},
"addressCoords": null,
"userCoords": null
},
"notes": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"cancellationReason": null,
"acceptedOffer": null,
"offers": null,
"createdAt": "2024-05-17T16:15:36+00:00"
}
}