Documents

Retrieve one document by Atlar resource ID or by ERP external ID (provenance.vendorId).

get/accounting/v2beta/documents/{id}

Request

Path parameters

idstring required

Atlar resource ID or External ID. Prefix External IDs with external:.

Response

An accounting document.

idstring required

Unique resource identifier.

organizationIdstring required

Unique resource identifier for an Organization.

glEntityIdstring required

The Atlar general ledger entity id that this document is associated with.

type'JOURNAL_ENTRY' | 'PAYMENT' | 'CREDIT_MEMO' | 'INVOICE' | 'PURCHASE_ORDER' | 'TRANSFER' | 'EXPENSE_REPORT' required

ERP document category. Typical reconciliation roles:

  • INVOICE, CREDIT_MEMO, PURCHASE_ORDER, EXPENSE_REPORT — usually SOURCE (open balance on remainingAmount).
  • PAYMENT — usually INSTRUCTION (posts to a bank GL account).
  • JOURNAL_ENTRY, TRANSFER — SOURCE or INSTRUCTION depending on glEntries (bank lines imply INSTRUCTION).
classification'SOURCE' | 'INSTRUCTION' required

Classification of a document based on whether it affects a bank GL account:

  • SOURCE: A document with no child ledger entries affecting a GL account of type BANK (e.g. an invoice).
  • INSTRUCTION: A document with child ledger entries affecting a GL account of type BANK (e.g. a payment).
datestring date required

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21.

issueDatestring date required

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21.

descriptionstring required

The description of the document.

referencestring

Primary business reference used in matching (e.g. invoice or payment number). Prefer this over ad-hoc keys in references when a single main reference exists.

referencesobject required

Additional keyed references for matching and search (e.g. memo, check number). Keys are exposed as document.references.* in reconciliation rules.

voidedboolean required

Whether the document is voided in the accounting system.

reconciliationStatus'OPEN' | 'MATCHED' | 'RECONCILED' | 'IGNORED' required

The reconciliation status of a document:

  • OPEN: Not yet matched to any counterpart.
  • MATCHED: Matched but the reconciliation match is not yet approved.
  • RECONCILED: Part of an approved reconciliation match.
  • IGNORED: Ignored from reconciliation.
reconciliationMatchIdstring

Unique resource identifier.

outgoingDocumentIdstring

Unique resource identifier.

vendorCreatedstring date-time required

When the document was created in the originating external system.

vendorResourceUrlstring

The URL to the document in the originating external system, to help navigate to the document in the originating external system. This differs from the provenance URL, which is the endpoint URL from where it was fetched from.

versioninteger required

Resource version. Starts at value 1 when the resource is created and increases by one for each successive update.

etagstring required

ETag based on the resource version. This can be passed along in If-Match HTTP header when updating a resource to perform a conditional update.

createdstring date-time required

Time at which the resource was created.

updatedstring date-time required

Time at which the resource was last updated.

Example response

{
  "id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
  "organizationId": "0160f6ab-5741-49e1-af46-9138927e547e",
  "glEntityId": "01925d46-2dd4-7ceb-b929-ed9aa3a9481e",
  "amount": {
    "baseAmount": {
      "currency": "EUR",
      "stringValue": "15.02",
      "value": 1502
    },
    "instructedAmount": {
      "currency": "EUR",
      "stringValue": "15.02",
      "value": 1502
    }
  },
  "remainingAmount": {
    "baseAmount": {
      "currency": "EUR",
      "stringValue": "15.02",
      "value": 1502
    },
    "instructedAmount": {
      "currency": "EUR",
      "stringValue": "15.02",
      "value": 1502
    }
  },
  "date": "2022-05-07",
  "issueDate": "2022-05-07",
  "invoiceDetails": {
    "settledDate": "2022-05-07"
  },
  "description": "Invoice #10001",
  "reference": "INV-10001",
  "reconciliationStatus": "OPEN",
  "reconciliationMatchId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
  "outgoingDocumentId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
  "glEntries": [
    {
      "id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
      "glAccountId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
      "vendorBankAccountId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
      "glClassificationIds": [
        "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8"
      ],
      "amount": {
        "baseAmount": {
          "currency": "EUR",
          "stringValue": "15.02",
          "value": 1502
        },
        "instructedAmount": {
          "currency": "EUR",
          "stringValue": "15.02",
          "value": 1502
        }
      }
    }
  ],
  "appliedDocuments": [
    {
      "amount": {
        "currency": "EUR",
        "stringValue": "15.02",
        "value": 1502
      },
      "targetDocumentId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
      "date": "2022-05-07"
    }
  ],
  "provenance": {
    "resource": {
      "contentType": "application/vnd.iso20022.camt.053.001.02+xml"
    }
  },
  "currencyExchange": {
    "sourceCurrency": "EUR",
    "targetCurrency": "SEK",
    "unitCurrency": "EUR",
    "exchangeRate": "11.21320"
  },
  "version": 1,
  "etag": "version:3",
  "created": "2022-05-04T18:31:12.889104898Z",
  "updated": "2022-05-04T18:47:32.213842599Z"
}

Changes

    • breaking

      the response property /// became optional for the status

    • warning

      changed the pattern of the path request parameter id from ^[a-zA-Z0-9\-]{1,256}$ to ^external:[a-zA-Z0-9._\-+=]{1,64}$|^[a-zA-Z0-9\-]{1,256}$

    • warning

      added the new EXPENSE_REPORT enum value to the // response property for the response status

    • warning

      added the new EXPENSE_REPORT enum value to the response property for the response status

    • warning

      added the new GL_ENTITY enum value to the / response property for the response status

    • warning

      added the new application/pdf enum value to the ////// response property for the response status

    • warning

      added the new application/pdf enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.adyen.balance-platform.statement-report+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.adyen.balance-platform.statement-report+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.atlar.connectivity.v2.instrument-product-statement+json enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.atlar.connectivity.v2.instrument-product-statement+json enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.blackrock.cachematrix.balance+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.blackrock.cachematrix.balance+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.blackrock.cachematrix.transactions+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.blackrock.cachematrix.transactions+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.deutsche.wealth-online+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.deutsche.wealth-online+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.ebics.hac.v25+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.ebics.hac.v25+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.ebics.hac.v30+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.ebics.hac.v30+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.ebics.htd.v30+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.ebics.htd.v30+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.edi.997 enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.edi.997 enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.iso20022.camt.053.001.12+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.iso20022.camt.053.001.12+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.iso20022.pacs.002.001.10+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.iso20022.pacs.002.001.10+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.iso20022.pain.008.001.08+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.iso20022.pain.008.001.08+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.daily-feed+zip enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.daily-feed+zip enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.morgan-money.balance-report+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.morgan-money.balance-report+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.morgan-money.transaction-report+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.morgan-money.transaction-report+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.soci.cash-balance+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.soci.cash-balance+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.soci.holdings+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.soci.holdings+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.soci.transactions+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.jpm.soci.transactions+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.m2.m006.m001+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.m2.m006.m001+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.m2.m006.m005+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.m2.m006.m005+xml enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.nordea.investments.abasec.pos+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.nordea.investments.abasec.pos+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.nordea.investments.abasec.tra+csv enum value to the ////// response property for the response status

    • warning

      added the new application/vnd.nordea.investments.abasec.tra+csv enum value to the ////// response property for the response status

    • warning

      added the new application/zip enum value to the ////// response property for the response status

    • warning

      added the new application/zip enum value to the ////// response property for the response status

    • warning

      added the new text/csv enum value to the ////// response property for the response status

    • warning

      added the new text/csv enum value to the ////// response property for the response status

    • info

      the security scope gl_entities:read was added to the endpoint's security scheme basicAuth

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property to the response with the status