Withdraw an offer
Takes back a sent offer: its link stops working and the customer can no longer accept it. The deal is left as it is. Withdrawing an offer that is already withdrawn changes nothing; any other status than `SENT` returns 409.
Takes back a sent offer: its link stops working and the customer can no longer accept it. The deal is left as it is. Withdrawing an offer that is already withdrawn changes nothing; any other status than SENT 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}$Response Body
application/json
curl -X POST "https://example.com/crm/offers/string/withdraw"{ "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 an offer draft PATCH
Changes the draft. Only the fields you send change, and `lines` replaces every line. More than 200 lines returns 400. A version that is no longer a draft returns 409; start a new version to change a sent offer.
List order stages GET
Returns the company's order pipeline stages in board order, with how many orders each holds. Use a stage `id` to create or move an order.