Skip to content

Latest commit

 

History

History
111 lines (94 loc) · 1.64 KB

README.md

File metadata and controls

111 lines (94 loc) · 1.64 KB

DOMONDA API

The Domonda API is implemented using the GraphQL protocol: http://graphql.org/

For interactive access and documentation use GraphiQL.app: https://github.com/skevy/graphiql-app

Authentication

Authentication is implemented via Bearer token. Replace API_KEY with your companies's API key. If you don't have one, request it from erik@domonda.com

POST https://app.domonda.com/api/public/graphql

Authorization: Bearer API_KEY

For a full API specification see:

Example queries

Query all documents:

{
  allDocuments {
    nodes {
        id,
        type,
        categoryId,
        workflowStepId,
        importDate,
        periodDate,
        name,
        title,
        language,
        version,
        numPages,
        numAttachPages
    }
  }
}

Query all invoices:

{
  allInvoices {
    nodes {
      documentId,
      type,
      title,
      version,
      invoiceNumber,
      invoiceDate,
      net,
      total,
      vatPercent,
      vatId,
      currency,
      iban,
      bic,
      dueDate,
      paymentStatus,
      paidDate,
    }
  }
}

Query all delivery notes:

{
  allDeliveryNotes {
    nodes {
      documentId,
      type,
      version,
      partnerCompanyId,
      invoiceId,
      invoiceNumber,
      deliveryNoteNr,
      deliveryDate,
    }
  }
}

Quary all delivery note items:

{
  allDeliveryNoteItems {
    nodes {
      documentId,
      deliveryNoteNr,
      deliveryDate,
      posNr,
      quantity,
      productNr,
      eanNr,
      gtinNr,
      description,
    }
  }
}