API - Dispute missing evidence type

ishabidevs
New Community Member

Hello,

Im trying to provide an evidence using my app. for this im using request js to send the request to paypal.

My request looks like this: 

request({
method: 'POST',
preambleCRLF: true,
postambleCRLF: true,
headers: {
'Authorization': 'Bearer token'
},
multipart: [
{
'content-type': 'application/json',
body: JSON.stringify(input)
},
{ body: fs.createReadStream(path.join(__dirname, '../attestation.pdf')) }
]
}
 
And my input is : 
const input = {
"input": {
"evidences": [
{
"evidence_type": "PROOF_OF_FULFILLMENT",
"evidence_info": {
"tracking_info": [
{
"carrier_name": "FEDEX",
"tracking_number": "122533485"
}
]
},
"notes": "Test"
}
]
}
};
 
And i always got this error from paypal:
StatusCode: 400 - [{\"location\":\"body\",\"issue\":\"MISSING_EVIDENCE_TYPE\"}]...

Login to Me Too
1 REPLY 1

pengfei
Contributor
Contributor

I encountered the same problem, did you solve it?

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.