Create Offer
Lets an expert offer a price and a delivery time for a testimony. Only testimonies in the pending or offered state are eligible. The real estate must lie in one of the expert's regions, unless its region is unknown (realEstate.region is null): such a testimony accepts offers from every expert. Each expert can hold one live offer per testimony — there is no endpoint to update an offer; to change one, withdraw it and create a new one. The expert's offers are listed by List Own Offers.
Experts may create offers before their account is approved, but such offers stay hidden from the client (they are not part of the testimony's offers, no email is sent and the testimony's state does not change) until the approval comes through. Once the expert is approved, the offer surfaces, the client receives the offer email and a still-pending testimony moves to offered. Clients cannot check out an offer of an unapproved or suspended expert.
HTTP Request
POST /api/v1/testimonies/:testimonyId/offers
| Parameter | Description |
|---|---|
expertAmount number | Amount in EUR the expert wants to be paid, with at most two decimals. At least 0.50; the resulting price (this amount plus the platform commission) may not exceed 999999.99. |
elaborationInDays integer | Estimated days for completion. Between 1 and 255. |
Response
201 Created
Returns the new Offer Object. price — the submitted expertAmount plus the platform commission, calculated by the backend — is what the client sees and pays; expertAmount is included because the caller is the expert who made the offer; expert is the authenticated expert as a Counterparty. The first offer from an approved expert moves the testimony from pending to offered and the client is notified by email.
{
"data": {
"id": "01J5X4A2B3C4D5E6F7G8H9J0K1",
"price": 605,
"elaborationInDays": 14,
"expertAmount": 500,
"expert": {
"firstName": "Ján",
"lastName": "Novák",
"regions": ["nr", "tt", "ba"],
"email": null,
"phone": null
}
}
}Authentication
Requires authentication via Bearer token, a verified email and the expert role; an expert whose account was rejected is refused as well (403 Forbidden otherwise). An unknown testimony ID answers 404 Not Found.
401 Unauthorized
{
"message": "Unauthenticated."
}Error Handling
Validation Errors
422 Unprocessable Content with an errors object — expertAmount or elaborationInDays missing or out of range.
Business Errors
409 Conflict — the testimony is accepted, completed or cancelled:
{
"message": "Posudok v aktuálnom stave neprijíma ponuky."
}422 Unprocessable Content — the real estate has a region and it is not among the expert's regions. A testimony without a region is never refused for this reason:
{
"message": "Posudok je mimo vašich regiónov pôsobnosti."
}409 Conflict — the expert already has a live offer on this testimony:
{
"message": "Na tento posudok už máte aktívnu ponuku."
}409 Conflict — another request changed the testimony at the same moment; re-fetch it and retry:
{
"message": "Záznam bol medzitým zmenený. Skúste to znova."
}Rate Limit
429 Too Many Requests — more than 5 attempts per hour to create an offer on the same testimony for this user. Refused attempts count too. The limit keeps an offer from being withdrawn and replaced over and over, since every round emails the client twice.