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

Getting 400 Bad Request from server side

edited May 16, 2023 12:31PM in Expenses 1 comment

Summary:

I am trying to apply cash advance using REST API, but I am getting 400 Bad Request from the server. Is there anything I am missing from my end

Content (required):

The Request I am sending for ApplyCashAdvance is

POST https://xyz.oraclepdemos.com/fscmRestApi/resources/latest/expenseReports/XXXXX/action/applyCashAdvances HTTP/1.1

Authorization: Basic XXXXX

Accept-Encoding: gzip, deflate

User-Agent: CData Data Provider Engine

Content-Type: application/vnd.oracle.adf.action+json

Content-Length: 46

REST-Framework-Version: 9

 

{

 "cashAdvanceNumber": "ADV000260XXXXXX"

}


Following is the response:

HTTP/1.1 400 Bad Request

Content-Type: application/vnd.oracle.adf.error+json

Content-Length: 520

Referrer-Policy: origin

X-Content-Type-Options: nosniff

Cache-Control: no-cache, no-store, must-revalidate

Location: 

X-ORACLE-DMS-ECID: 005yqKXdnwb5Uc1LJuh8if0007nI0000dS

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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