Record a customer's decision
Records that the customer accepted or rejected a sent offer outside the link, for example over the phone. An acceptance marks the deal won, as a decision through the link would, and the customer gets a confirmation email. A recorded decision is not sealed. Only a `SENT` version can be decided; any other status returns 409.
Records that the customer accepted or rejected a sent offer outside the link, for example over the phone. An acceptance marks the deal won, as a decision through the link would, and the customer gets a confirmation email. A recorded decision is not sealed. Only a SENT version can be decided; any other status returns 409.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Path Parameters
The offer version id.
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/string/record-decision" \ -H "Content-Type: application/json" \ -d '{ "outcome": "ACCEPTED" }'{ "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}Record a withdrawn acceptance POST
Records that the customer withdrew their acceptance, as a consumer may under the right of withdrawal (angrerett). The deal reopens; the sealed document and the trail stay as they are. Only an `ACCEPTED` version whose acceptance is not already withdrawn qualifies; anything else returns 409.
Resend an offer POST
Emails a sent offer to its recipient again, with the same number and link, for example when the customer lost the email. Only a `SENT` version can be resent; any other status returns 409. Returns 503 when the email could not be delivered.