You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Creating an Attachment to an Expense Item via Rest API

edited Oct 4, 2021 8:30PM in Expenses 1 comment

Summary:


Content (required):

Has anyone had success posting a payload for this rest api?


"Create an attachment record for a specific attachment identifier"

/fscmRestApi/resources/11.13.18.05/expenseReports/{expenseReportsUniqID}/child/Expense/{ExpenseUniqID}/child/Attachments



We're getting a 400 Bad Request "Unable to Parse Payload" when we attempt to send the response.


This is our payload


"Expense": [

{:

"Attachments":[

{:

"DatatypeCode":"Text",

"CategoryName":"Receipts",

"FileName":"test"

"FileContents":"test",

"Title":"test",

"Description":"test"

}:

]:

}:

]:

}:


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!