API ReferenceEstimates
Update an existing estimate
AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/estimates/string/update" \ -H "Content-Type: application/json" \ -d '{ "clientId": "string", "currency": "string", "rows": [ { "quantity": 0.1, "type": "ITEM", "unitPrice": 0.1 } ] }'{
"accessToken": "string",
"accessTokenHash": "string",
"attachments": [
{
"blobId": "string",
"created": "2019-08-24T14:15:22Z",
"extension": "string",
"fileSize": 0,
"name": "string",
"type": "IMAGE"
}
],
"clientId": "string",
"contact": {
"department": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string",
"phone": "string"
},
"contactEmail": "string",
"convertedInvoiceId": "string",
"convertedOrderId": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"currency": "string",
"discountRows": [
{
"description": "string",
"id": "string",
"productId": "string",
"quantity": 0.1,
"subdescription": "string",
"taxAmount": 0.1,
"taxRate": 0.1,
"total": 0.1,
"totalWithTax": 0.1,
"type": "ITEM",
"unitPrice": 0.1
}
],
"estimateDate": "2019-08-24T14:15:22Z",
"estimateNumber": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expirationDays": 0,
"id": "string",
"itemRows": [
{
"description": "string",
"id": "string",
"productId": "string",
"quantity": 0.1,
"subdescription": "string",
"taxAmount": 0.1,
"taxRate": 0.1,
"total": 0.1,
"totalWithTax": 0.1,
"type": "ITEM",
"unitPrice": 0.1
}
],
"iteration": 0,
"language": "string",
"mailBody": "string",
"note": "string",
"number": "string",
"opportunityId": "string",
"parentEstimateId": "string",
"pdf": {
"blobId": "string",
"created": "2019-08-24T14:15:22Z",
"extension": "string",
"fileSize": 0,
"name": "string",
"type": "IMAGE"
},
"rejectionReason": "string",
"rows": [
{
"description": "string",
"id": "string",
"productId": "string",
"quantity": 0.1,
"subdescription": "string",
"taxAmount": 0.1,
"taxRate": 0.1,
"total": 0.1,
"totalWithTax": 0.1,
"type": "ITEM",
"unitPrice": 0.1
}
],
"sentBy": "string",
"sentMails": [
"string"
],
"signature": {
"blobId": "string",
"created": "2019-08-24T14:15:22Z",
"extension": "string",
"fileSize": 0,
"name": "string",
"type": "IMAGE"
},
"signedAt": "2019-08-24T14:15:22Z",
"signedBy": "string",
"status": "DRAFT",
"subsidiaryId": "string",
"tenantId": "string",
"totalExcludingTax": 0.1,
"totalTax": 0.1,
"totalWithTax": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"validUntil": "2019-08-24T14:15:22Z"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}