Retry an offer's delivery
Emails a sent offer to its recipient again, with the same number and link. Use it after a send returned 503 or the trail shows `DELIVERY_FAILED`. Only a `SENT` version can be delivered; any other status returns 409.
Emails a sent offer to its recipient again, with the same number and link. Use it after a send returned 503 or the trail shows DELIVERY_FAILED. Only a SENT version can be delivered; 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}$Response Body
application/json
curl -X POST "https://example.com/crm/offers/string/retry-delivery"{ "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}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.
Retry sealing an accepted offer POST
Queues sealing again for an offer accepted with a signature, after `sealState` came back `FAILED`. Sealing produces the tamper-evident PDF and the certificate of completion. An offer that is already sealed is returned unchanged. An offer that is not accepted, or was accepted with a click, returns 409.