Offers

Get an offer's customer link

Returns the token and path of the page where the customer reads and accepts the offer. Only a `SENT` or `EXPIRED` version has a link to copy; any other status returns 409.

GET
/crm/offers/{versionId}/link

Returns the token and path of the page where the customer reads and accepts the offer. Only a SENT or EXPIRED version has a link to copy; any other status returns 409.

Authorization

x-api-key
x-api-key<token>

Company API key, created under Settings > API Keys.

In: header

Path Parameters

versionId*string

The offer version id.

Header Parameters

x-company-id?string

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.

Match^[0-9a-fA-F]{24}$

Response Body

application/json

curl -X GET "https://example.com/crm/offers/string/link"
{  "token": "string",  "url": "string"}