Identity Management (MOSC)

MOSC Banner

How to attach expense Receipts to an expense report using REST API

edited Feb 24, 2021 11:23AM in Identity Management (MOSC) 1 commentAnswered

Hello team,

We are working on a product where user can attach expense receipts relating to an expense report through REST services. As per Oracle standard document(https://docs.oracle.com/en/cloud/saas/financials/21a/farfa/op-expensereports-expensereportsuniqid-child-expense-expenseuniqid-child-attachments-post.html), it is mentioned to use below Json format as body.

"Attachments":[
		{
			"DatatypeCode":"File",
			"Url":"http:Yahoo.com",
			"CategoryName":"Receipts",
			"FileName":"TD.txt",
			"FileContents":"JKJKJKJKJKJKJKJKJKJKJ",
			"Title":"TESTY",
			"Description":"HEKKY"
		}

I tried by using the same format and tested in Postman but attachment is not uploaded successfully. Could you please help us what details we need to give for each value type. for Eg: Url.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center