AnsweredAssumed Answered

Help with API posting XML body

Question asked by user19174 on Nov 29, 2017
Latest reply on Nov 30, 2017 by user19174

Hi,

 

I am trying to run a settlement report on the horrible Paypal Reporting API and for the life of me I can't seem to get this right.

 

The following works in postman, but I can't get it to work in Filemaker.  I am either getting a no content type error or empty xml error.

 

I have tried escaping the " and changing ' to " and everything else I can think of.  No luck, and the documentation is not particularly helpful.

 

Any of the geniuses here want to take a crack at it?

 

JJ

 

curl -X POST \

  https://payments-reports.paypal.com/reportingengine \

  -H 'cache-control: no-cache' \

  -H 'content-type:text' \

  -H 'postman-token: c87c22df-3c67-a818-c92c-bec037cded28' \

  -d '<?xml version="1.0" encoding="UTF-8"?>

<reportingEngineRequest>

   <authRequest>

      <user>username</user>

      <vendor>vendor</vendor>

      <partner>PayPal</partner>

      <password>mypassword</password>

   </authRequest>

<runReportRequest>

      <reportName>TransactionSummaryReport</reportName>

      <reportParam>

         <paramName>start_date</paramName>

         <paramValue>2017-11-24</paramValue>

               </reportParam>

        <reportParam>

         <paramName>end_date</paramName>

         <paramValue>2017-11-24</paramValue>

      </reportParam>

      <pageSize>50</pageSize>

   </runReportRequest>

   </reportingEngineRequest>'

Outcomes