Create an offer draft
Starts a new offer on the deal as a version 1 draft, titled after the deal and filled with the company's default terms, validity and acceptance depth. If your company already has a draft open on the deal, that draft is returned instead. Fill it with update, then send it.
Starts a new offer on the deal as a version 1 draft, titled after the deal and filled with the company's default terms, validity and acceptance depth. If your company already has a draft open on the deal, that draft is returned instead. Fill it with update, then send it.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Header Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/crm/offers" \ -H "Content-Type: application/json" \ -d '{ "dealId": "string" }'{ "acceptanceDepth": "CLICK", "acceptanceWithdrawnAt": "2019-08-24T14:15:22Z", "authLevel": "LINK_POSSESSION", "dealId": "string", "decidedAt": "2019-08-24T14:15:22Z", "divergenceAttested": true, "firstViewedAt": "2019-08-24T14:15:22Z", "id": "string", "introMessage": "string", "isReadOnly": true, "lines": [ { "catalogItemId": "string", "description": "string", "discountPct": 0, "proposalId": "string", "proposalWorkKey": "string", "qty": 0, "source": "string", "unit": "string", "unitPriceOre": 0, "vatRate": 0 } ], "money": { "incVatOre": 0, "netOre": 0, "vatOre": 0 }, "number": 0, "pdfSizeBytes": 0, "personalMessage": "string", "recipientDiverged": true, "recipientEmail": "string", "recipientName": "string", "recipientPhone": "string", "recipientType": "BUSINESS", "sealState": "FAILED", "sender": { "addressLines": [ "string" ], "companyName": "string", "email": "string", "logoUrl": "string", "orgNumber": "string", "phone": "string" }, "sentAt": "2019-08-24T14:15:22Z", "siblings": [ { "acceptanceDepth": "CLICK", "acceptanceWithdrawnAt": "2019-08-24T14:15:22Z", "authLevel": "LINK_POSSESSION", "decidedAt": "2019-08-24T14:15:22Z", "id": "string", "money": { "incVatOre": 0, "netOre": 0, "vatOre": 0 }, "recipientType": "BUSINESS", "sentAt": "2019-08-24T14:15:22Z", "status": "ACCEPTED", "version": 0 } ], "status": "ACCEPTED", "surfaceLang": "EN", "terms": "string", "threadId": "string", "title": "string", "trail": [ { "actorName": "string", "at": "2019-08-24T14:15:22Z", "id": "string", "ip": "string", "kind": "ACCEPTED", "payload": { "authLevel": "string", "channels": [ "string" ], "comment": "string", "depth": "string", "diverged": true, "documentSha256": "string", "name": "string", "note": "string", "number": 0, "reason": "string", "recipientEmail": "string", "sealLogSeq": 0, "sealedSha256": "string", "signatureMode": "string", "version": 0, "property1": null, "property2": null }, "source": "INTERNAL", "userAgent": "string" } ], "validUntil": "2019-08-24T14:15:22Z", "version": 0}Update a meeting PATCH
Changes the fields sent and leaves the rest as they are. Participants and clients added here are invited, and moving the start time notifies everyone on the meeting.
Start a new offer version POST
Copies the version into a new draft in the same offer, to revise an offer that was already sent. If the offer already has a draft, that draft is returned instead. Sending the new version supersedes the one sent before it.