Uploads a single expense ticket file, creates a draft expense dated today with the ticket attached and answers at once (202) with {draftId, documentFileId}. The AI recognition runs afterwards and fills the empty fields of the draft. Used by the mobile app.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/expenses/draft/upload-async
curl \
--request POST 'https://wyzio.app/api-v1/expenses/draft/upload-async' \
--header "Content-Type: multipart/form-data" \
--form "file=@file"
Response examples (200)
{}