purchases
POST /companies/{companySlug}/purchases/drafts/{draftId}/attachments
Changed onCreates and adds a new attachment to a draft
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/purchases/drafts/{draftId}/attachments
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
Query parameters
ehfDocumentIdinteger
Instead of uploading a file, attach an existing received EHF document by its ehfDocumentId. The source EHF is marked as used and leaves the unprocessed view. Provide exactly one of file, ehfDocumentId or inboxDocumentId.
inboxDocumentIdinteger
Instead of uploading a file, attach an existing inbox document by its inboxDocumentId. The source document is marked as used and leaves the unused inbox view. Provide exactly one of file, ehfDocumentId or inboxDocumentId.
Request body multipart/form-data
Example request
{
"filename": "invoice_24760.pdf",
"file": "https://fiken.no/api/v2/files/745b2f15-gh75-4408-bgf2-b1d2dt610cb2/invoice24760.pdf"
}Response
Created
Changes
- info
added the new optional
queryrequest parameterehfDocumentId - info
added the new optional
queryrequest parameterinboxDocumentId
- info
- info
the endpoint scheme security
fiken_api_oauthwas removed from the API
- info