Zum Hauptinhalt springen
POST
Add a recipient

Autorisierungen

Authorization
string
header
erforderlich

API token of the organisation. Send it as Authorization: Bearer api_... The token is bound to exactly one organisation.

Pfadparameter

id
string
erforderlich

Offer identifier

Body

application/json

The new Offer resource

email
string<email>
erforderlich

The email of the recipient. This will be used to send the email.

firstName
string | null

The first name of the recipient (optional, email is the only required field)

Maximum string length: 100
lastName
string | null

The last name of the recipient (optional, email is the only required field)

Maximum string length: 100
role
any

The role of the recipient

Possible values:

  • read: The recipient can read the offer
  • sign: The recipient can read and sign the offer
sendEmail
boolean

Whether to send an invitation email to the recipient. Otherwise, you have to inform the recipient manually.

customText
string | null

A personal message for this invitation, shown in the invitation email above the offer link. Ignored when sendEmail is false.

Maximum string length: 1000

Antwort

Offer resource created

id
string
read-only
subscription
object | null

Linked subscription. Set when the offer extends or renews an existing subscription, and also once an accepted offer has been converted into a subscription. Null when the offer is not linked to a subscription.

customer
object | null
number
string
name
string | null
status
enum<string>
read-only
Verfügbare Optionen:
open,
signing,
awaiting_invoice_details,
signed,
archived
sections
string[]
customVariables
object | null
locale
string
read-only
recipients
object[]
read-only
purchaseOrderDocument
object | null

Media ID of the purchase order uploaded by the buyer. To download it, call GET /media/{id}/download with your API token, or mint a shareable link with POST /media/{id}/download-token and then GET /media/{id}/download/{token}.

auditLogDocument
object | null

Media ID of the acceptance and audit-trail document. To download it, call GET /media/{id}/download with your API token, or mint a shareable link with POST /media/{id}/download-token and then GET /media/{id}/download/{token}.

signedDocument
object | null

Media ID of the fully signed offer PDF. To download it, call GET /media/{id}/download with your API token, or mint a shareable link with POST /media/{id}/download-token and then GET /media/{id}/download/{token}.

signedAt
string<date-time> | null
read-only
Beispiel:

"2021-01-01T00:00:00+00:00"

autoActivateSubscription
boolean
Standard:true
Beispiel:

true

acceptanceMode
string
Standard:click

How the offer is accepted: click, esignature or print. Defaults to click.

Beispiel:

"click"

dealType
string
Standard:new_business

Deal type, set automatically when the offer is published: new_business, expansion, renewal or one_off. Read-only.

Beispiel:

"new_business"

validUntil
string<date-time> | null

Date until which the offer is valid. Acting on an expired offer is rejected with HTTP 410. Set when the offer is published; null for historical offers.

Beispiel:

"2021-01-01T00:00:00+00:00"

createdAt
string<date-time>
read-only

The date and time when the resource was created.

Beispiel:

"2021-01-01T00:00:00+00:00"

updatedAt
string<date-time>
read-only

The date and time when the resource was last updated.

Beispiel:

"2021-01-01T00:00:00+00:00"

contactPerson
object | null

The contact person of the offer

signed
boolean
read-only
issuedAt
string<date-time>
read-only
Beispiel:

"2021-01-01T00:00:00+00:00"

publishedVersionHash
string | null
read-only
currentVersionHash
string | null
read-only