/estimates/{estimateId}experimentalWymagana sesjaReturns the estimate directly, not wrapped in an envelope object (unlike the list endpoint's estimates key). Responds 403 when the caller is not a member of the estimate's workshop and 404 when no such estimate exists.
Parametry ścieżki
| Nazwa | Typ | Wymagane | Ograniczenia | Opis |
|---|---|---|---|---|
| estimateId | string | Tak | - | Estimate id |
Odpowiedzi
200SuccessPole Typ Wymagane Ograniczenia Opis id string Tak - - workshopId string Tak - - name string Tak - - recipientName string Nie - Absent when the estimate has no named recipient createdAt string Tak format: "date-time"- updatedAt string Tak format: "date-time"- markupPercent number Tak - - discountPercent number Tak - - lineItems array of LineItem Tak - - Przykład{ "id": "estimate-1", "workshopId": "workshop-1", "name": "Bespoke chair estimate", "recipientName": "Anna Kowalska", "createdAt": "2026-08-01T09:00:00.000Z", "updatedAt": "2026-08-10T14:30:00.000Z", "markupPercent": 10, "discountPercent": 0, "lineItems": [ { "id": "line-item-1", "label": "Oak plank, 2m", "unit": "sqm", "unitPrice": 120, "quantity": 4 } ] }401Not authenticatedBrak treści.
403ForbiddenBrak treści.
404Not foundBrak treści.
Przykładowe żądanie
curl -X GET 'https://mercastra.cloud/api/estimates/<estimateId>' \ -H 'Cookie: session=<session cookie>'