Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in
  • Welcome
    • Guidelines
    • News and Events
    • Suggestions for PayPal
    • General Discussions
  • PayPal Help Community
    • Managing Account
    • Transactions
    • Wallet
    • Security and Fraud
    • Products & Services
    • Reporting
  • MTS Community
    • PayPal Upgrade Community
    • PayPal Payments Standard
    • REST APIs
    • NVP/SOAP APIs
    • SDKs
    • Sandbox Environment
    • PayPal Reporting
    • Payflow
    • Ideas for MTS
    • Client-side Integration
    • Server-side Integration
  • The Archives
    • PayPal Help Community Archives
      • Managing Account Archives
      • Transactions Archives
      • Wallet Archives
      • Security and Fraud Archives
      • Products & Services Archives
      • Reporting Archives
    • Help Community
      • PayPal Basics Archives
      • Payments Archives
      • My Money Archives
      • My Account Archives
      • Disputes and Limitations Archives
      • Products and Services Archives
      • PayPal Credit Archives
    • Merchant Community
      • Merchant Products
      • Business Tools Archives
      • Reporting Archives
      • Managing Risk and Fraud Archives
    • Help Archives
      • About Business (Archive)
      • About Payments (Archive)
      • About Settings (Archive)
      • About eBay (Archive)
      • About Protections (Archive)
      • About Products (Archive)
    • Social and Your Voice Archives
      • Off Topic (Archive)
      • My Feedback for PayPal (Archive)
    • About PayPal Archives
      • Watercooler (Archive)
      • Tax Information (Archive)
      • Fees (Archive)
      • eBay and PayPal (Archive)
      • Coupons and promotions (Archive)
    • My Account Archives
      • My account settings (Archive)
      • Account limits and verification (Archive)
      • Account balance (Archive)
      • Bank accounts and credit cards (Archive)
    • Payments Archives
      • Sending money (Archive)
      • Receiving money (Archive)
      • Refunds (Archive)
      • Donations and Fundraising (Archive)
    • Disputes and Security Archives
      • Disputes and claims (Archive)
      • Fraud, phishing and spoof (Archive)
    • My Business Archives
      • Merchant services (Archive)
      • Reporting and tracking (Archive)
      • Shipping (Archive)
    • PayPal Products Archives
      • PayPal Debit Mastercard (Archive)
      • PayPal Extras MasterCard (Archive)
      • PayPal Mobile & Other Services (Archive)
      • Student Accounts (Archive)
      • Bill Me Later (Archive)
    • Getting to know PayPal
      • My PayPal account
      • Security and protection
    • Receiving and sending money
      • Buying with PayPal
      • Selling with PayPal
    • PayPal Here UK
      • PayPal Here News and Events
      • PayPal Here Community
      • Chip and Pin Card Reader
      • PayPal Here App

The Community Forum is not available for new posts or responses; previous posts remain available to review. For comprehensive support options, please visit PayPal.com/HelpCenter
Merchant Technical Support: For technical support and related questions, please visit our Technical Support Help Center or Developer Central

If you want to report illegal content under the EU Digital Services Act, please do so here

since ‎Oct-12-2017
Country: United States
Type: Business
julesnyc
julesnyc Contributor
Contributor
3
Posts
0
Kudos
0
Solutions
Your 3rd PayPal Anniversary
Your PayPal Anniversary
The Return
Ice Breaker
Active
View all
Latest Contributions by julesnyc
  • Topics julesnyc has Participated In
  • Latest Contributions by julesnyc

Re: Paypal Sync API - Transaction History / Search

by julesnyc Contributor in Sandbox Environment
‎Feb-20-2018 07:29 PM
‎Feb-20-2018 07:29 PM
Hi!   Thanks for your reply.    This was my initial guess as well, and I understand the debug log may say that, but I entered the same access token as in my second request example from my previous post. In that example, I made the request with the transaction_id instead of start_date and end_date.    Is there a different access token I should be using? In my Paypal API Settings, I have transaction search available.   I saw elsewhere the same request formatted with different syntax - it said transaction_date. Can you please advise on the exact syntax I should be using when making my request in order to pull up a list of transactions for a user given a date range? Or on what I may need to change? I know that the access key was the same as what I was given.   Thank you ... View more

Re: Paypal Sync API - Transaction History / Search

by julesnyc Contributor in Sandbox Environment
‎Feb-19-2018 02:00 PM
‎Feb-19-2018 02:00 PM
Hi!   Thanks for the reply. Just gave it another go so I could test what was up.   So - I'm getting a 401 even though I have a valid access token. Just did three queries:   one to just check that I was hitting the right api . curl -v -X GET https://api.paypal.com/v1/reporting/transactions \ > -H "Content-Type: application/json" \ > -H "Authorization: Bearer [my access token here]" Got this back {"name":"INVALID_REQUEST","debug_id":"5ebbb637efb2c","message":"Invalid request - see details.","details":[{"location":"query","issue":"Either `start_date` and `end_date` or `transaction_id` should be present in query"}]} which was expected. But now I knew I needed start date and end date to receive a valid list of transactions.    Just to make sure,  I query a transaction ID search with my own account to make sure it works; it does.   Request: curl -v -X GET https://api.paypal.com/v1/reporting/transactions?transaction_id=[id] \ > -H "Content-Type: application/json" \ > -H "Authorization: Bearer [token]" Response: HTTP/1.1 200 OK < Date: Mon, 19 Feb 2018 21:49:15 GMT < Server: Apache < paypal-debug-id: 57e58a22276b3 < HTTP_X_PP_AZ_LOCATOR: slca.slc < Paypal-Debug-Id: 57e58a22276b3 < Set-Cookie: X-PP-SILOVER=name%3DLIVE5.API.1%26silo_version%3D880%26app%3Dapiplatformproxyserv%26TIME%3D1531349850%26HTTP_X_PP_AZ_LOCATOR%3Dslca.slc; Expires=Mon, 19 Feb 2018 22:19:15 GMT; domain=.paypal.com; path=/; Secure; HttpOnly < Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT < Vary: Authorization < Content-Length: 759 < Cache-Control: max-age=0, no-cache, no-store, must-revalidate < Pragma: no-cache < Connection: close < Content-Type: application/json;charset=UTF-8 [transaction info appeared below...] SO to get to the final point, when I tried with start date and end date, I got a 401. Request and response below: Request: curl -v -X GET https://api.paypal.com/v1/reporting/transactions?start_date=2017-02-15T00:00:00+0000&end_date=2018-02-15T00:00:00+0000 \ > -H "Content-Type: application/json" \ > -H "Authorization: Bearer [access token]" Response: < HTTP/1.1 401 Unauthorized < Date: Mon, 19 Feb 2018 21:50:12 GMT < Server: Apache < paypal-debug-id: 3ea0f291b33ae < HTTP_X_PP_AZ_LOCATOR: slca.slc < Paypal-Debug-Id: 3ea0f291b33ae < Set-Cookie: X-PP-SILOVER=name%3DLIVE5.API.1%26silo_version%3D880%26app%3Dapiplatformproxyserv%26TIME%3D2487651162%26HTTP_X_PP_AZ_LOCATOR%3Dslca.slc; Expires=Mon, 19 Feb 2018 22:20:12 GMT; domain=.paypal.com; path=/; Secure; HttpOnly < Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT < Content-Length: 0 < Cache-Control: max-age=0, no-cache, no-store, must-revalidate < Pragma: no-cache < Connection: close < Content-Type: text/plain; charset=ISO-8859-1 < * Closing connection 0 * TLSv1.2 (OUT), TLS alert, Client hello (1): I was using the Ruby and Node SDKs, but have been working with curl to just get it to work. ... View more

Paypal Sync API - Transaction History / Search

by julesnyc Contributor in Sandbox Environment
‎Feb-13-2018 10:22 AM
‎Feb-13-2018 10:22 AM
Hi all,   I'm trying to work with the Paypal Sync API in order to get a list of transaction history. I'm able to pull transactions with a specific ID, but unfortunately it's not letting me pull in transactions through a start date and end date.    From the API docs:   "You must also include either the transaction_date or transaction_id query parameter. You can optionally include other query parameters."   It doesn't seem to work if I don't do transaction_id, instead using transaction date.    Anyone have any ideas? ... View more
Labels:
  • Labels:
  • API
  • Reference Transactions
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros
Welcome to the PayPal Community!