GET /companies/{companySlug}/ehf/{ehfDocumentId}
Changed onReturns the received EHF document with the specified id.
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/ehf/{ehfDocumentId}
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
Response
OK
Processing state of the document. Note that used and processed are distinct: attaching a document is not the same as booking it. Through this API the only state change available for an EHF document is attaching it (which sets used, see the attachment endpoints); booking and deleting are done in Fiken (the web application), so processed and deleted are never reached through this API.
- unprocessed – received and still in the inbox, not yet handled.
- used – attached as documentation to another record (a purchase, sale, or journal entry, or a draft of these) via the attachment endpoints. The document itself has not been booked. It stays used even when the record it is attached to is itself already booked — attaching does not transition it to processed.
- processed – the document itself has been booked as a purchase, which populates purchaseId. Booking an EHF is done in Fiken; this API has no endpoint to book one, so a document does not become processed through the API, and attaching it to an existing purchase does not make it processed.
- deleted – removed from the inbox (done in Fiken).
Whether the document is an invoice or a credit note.
The supplier's invoice or credit note number as stated in the EHF document.
Invoice/credit note date from the EHF document.
Payment due date, if present.
Supplier name as stated in the EHF document.
Supplier organization number as stated in the EHF document.
Id of the matched Fiken contact for the supplier, if any.
Total net amount in cents.
Total VAT amount in cents.
Total gross amount (= net + VAT) in cents.
Total amount to be paid, in cents (NOK), if present.
ISO 4217 currency code.
Bank account number for payment, if present.
Free-text description of the document.
Id of the purchase this document was booked as (i.e. when status is processed). Null for documents that are unprocessed, used, or deleted. Booking is done in Fiken, not through this API.
URL to download the document PDF. For use with API credentials (bearer token or oauth 2).
URL to download the document PDF. Requires the user to login with username and password in Fiken.
URL to download the raw EHF XML. For use with API credentials (bearer token or oauth 2).
URL to download the raw EHF XML. Requires the user to login with username and password in Fiken.
When the document was received.
Example response
{
"ehfDocumentId": 1234134
}Changes
- info
endpoint added
- info