POST /companies/{companySlug}/sales/{saleId}/attachments
Changed onCreates and adds a new attachment to a Sale
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/sales/{saleId}/attachments
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
Query parameters
True if this attachment may document the payment (i.e. transaction receipt from credit card/payment company, export from bank, etc.). Default value is false if not specified. At least one of attachToPayment and attachToSale must be true.
True if this attachment may document the sale (i.e. invoice, etc). Default value is false if not specified. At least one of attachToPayment and attachToSale must be true.
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.
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
- warning
removed the request property
- warning
removed the request property
- info
added the new optional
queryrequest parameterattachToPayment - info
added the new optional
queryrequest parameterattachToSale
- warning