Zum Hauptinhalt springen

Abfragebeispiele

Diese Beispiele zeigen grundlegende Abfragen für jede Top-Level-Abfrage in der API. Für vollständige Argumentdetails und Rückgabetypen siehe die einzelnen Abfragereferenzseiten und Typreferenzseiten.

Organisationsabfrage

Siehe: organisation query · Organisation type

query GetOrganisation($id: ID!) {
organisation(id: $id) {
id
name
retention
pdfRetention
attachmentRetention
textRetention
created
userCount
}
}

Vorlagenabfrage

Siehe: template query · Template type

query GetTemplate($id: ID!) {
template(id: $id) {
id
title
pageCount
fileName
link
autoArchive
valid
locked
tags
groupId
archived
createdBy
lastSent
created
modified
}
}

Erfahrungabfrage

Siehe: experience query · Experience type

query GetExperience($id: ID!) {
experience(id: $id) {
id
name
header
text1
text2
text3
allowSignatureReuse
attachDraft
backgroundColour
defaultExperience
language
created
modified
}
}

Dokumentabfrage

Siehe: document query · Document type

query GetDocument($id: ID!) {
document(id: $id) {
id
name
link
status
hash
created
modified
senderName
senderEmail
batchId
batchName
taskId
certifyDocument
sendMethod
}
}

Stapelabfrage

Siehe: batch query · Batch type

query GetBatch($id: ID!) {
batch(id: $id) {
id
name
enforceOrder
type
creatorName
documentCount
inProgressCount
rejectedCount
completedCount
bouncedCount
created
modified
status
progress
}
}

Gruppenabfrage

Siehe: group query · Group type

query GetGroup($id: ID!) {
group(id: $id) {
id
name
publicName
attachmentRetention
pdfRetention
retention
textRetention
apiIntegration
certifyDocuments
sequentialSend
stopPDFPrinting
stopPDFCopying
licensesRemaining
credit
}
}

Kontaktgruppenabfrage

Siehe: contactGroup query · ContactGroup type

query GetContactGroup($id: ID!) {
contactGroup(id: $id) {
id
name
colour
contacts {
id
name
firstName
lastName
email
timeZone
phoneNumber
}
}
}

Benutzerabfrage

Siehe: user query · User type

query GetUser($id: ID) {
user(id: $id) {
id
name
firstName
lastName
email
timeZone
companySize
companyRole
companyType
lastDocumentSentAt
lastValidTemplateMadeAt
uploadedTemplatesCount
webhookHmacSecret
}
}

Aufgabenabfrage

Siehe: task query

query GetTask($id: ID!) {
task(id: $id) {
data
report {
status
batchId
documents
errors
}
}
}

Entwurfsabfrage

Siehe: draft query · Draft type

query GetDraft($id: ID!) {
draft(id: $id) {
id
name
shared
templateCount
batch
multidoc
version
created
modified
link
}
}

Empfängerabfrage

Siehe: recipient query · Recipient type

query GetRecipient($id: ID!) {
recipient(id: $id) {
id
phoneNumber
firstName
lastName
email
role
roleType
status
authentication
timeZone
experience
expiryDate
skipped
nominate
detailsTBD
emailOpenedDateTime
documentFirstViewedDateTime
signedDateTime
sentDateTime
emailProblem
recipientOrder
}
}

Rechnungsabfrage

Siehe: invoice query · Invoice type

query GetInvoice($id: ID!) {
invoice(id: $id) {
id
created
supplyDate
currency
paymentSystem
invoiceNumber
taxRate
subTotal
totalIncTax
creditReason
customerName
address1
postcode
link
}
}

Knotenabfrage

Siehe: node query

query GetNode($id: ID!) {
node(id: $id) {
id
}
}

Upload-Abfrage

Siehe: upload query · Dateien hochladen Anleitung

query GetUpload($id: ID!, $uploadType: UploadType!, $extension: String!) {
upload(id: $id, uploadType: $uploadType, extension: $extension) {
url
}
}