Skip to main content

 

 

Coupa Success Portal

Expense Artifact API

Overview

Artifact is Coupa-speak for attachments. This API endpoint lets you attach files to expense reports and expense lines

Actions

The Expense Artifacts API lets you:

Verb Path Action Description
POST /api/expense_reports/:expense_report_id/expense_lines/
:expense_line_id/expense_artifacts
create Create expense artifact
POST /api/expense_lines/:expense_line_id/expense_artifacts create Create expense artifact
GET /api/expense_reports/:expense_report_id/expense_lines/
:expense_line_id/expense_artifacts/:id/image(/:style)
image Upload expense artifact image
GET /api/expense_lines/:expense_line_id/expense_artifacts/:id
/image(/:style)
image Upload expense artifact image
GET /api/expense_reports/:expense_report_id/expense_lines/
:expense_line_id/expense_artifacts
index Query expense artifactes
GET /api/expense_lines/expense_artifacts index Query expense artifactes
GET /api/expense_lines/:expense_line_id/expense_artifacts index Query expense artifactes
GET /api/expense_reports/:expense_report_id/expense_lines/
:expense_line_id/expense_artifacts/:id
show Show expense artifact
GET /api/expense_lines/expense_artifacts/:id show Show expense artifact
GET /api/expense_lines/:expense_line_id/expense_artifacts/
:id
show Show expense artifact
PATCH /api/expense_reports/:expense_report_id/expense_lines/
:expense_line_id/expense_artifacts/:id
update Update expense artifact
PUT /api/expense_reports/:expense_report_id/expense_lines/
:expense_line_id/expense_artifacts/:id
update Update expense artifact
PATCH /api/expense_lines/expense_artifacts/:id update Update expense artifact
PUT /api/expense_lines/expense_artifacts/:id update Update expense artifact
PATCH /api/expense_lines/:expense_line_id/expense_artifacts/
:id
update Update expense artifact
PUT /api/expense_lines/:expense_line_id/expense_artifacts/
:id
update Update expense artifact
PUT /api/expense_lines/expense_artifacts/:id/
update_with_ocr_response
update_with_ocr_response Update expense artifact with OCR response.

Elements

Element Description Req'd Unique Allowable Value In Out Data Type
created-at Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ   yes datetime
created-by User who created         yes User 
external-src-ref External system's unique identifier for transaction         yes string(255)
id Coupa unique identifier         yes integer
image-content-type image_content_type         yes string(255)
image-file-name image_file_name         yes string(255)
image-file-size image_file_size         yes string(255)
ocr-status OCR Status       yes yes string(50)
source-content-type source_content_type         yes string(255)
source-file-name source_file_name         yes string(255)
source-file-size source_file_size         yes string(255)
updated-at Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ   yes datetime
updated-by User who updated         yes User  
url External link to artifact         yes string
  • Was this article helpful?