square-connect-api | Node API for square connect | REST library
kandi X-RAY | square-connect-api Summary
kandi X-RAY | square-connect-api Summary
#Square Connect Api :money_with_wings:. ####View on NPM npm install square-connect-api.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of square-connect-api
square-connect-api Key Features
square-connect-api Examples and Code Snippets
Community Discussions
Trending Discussions on square-connect-api
QUESTION
I'm writing an application that integrates with square and requires that I download and store the entire history of a merchant's payments at sign-up. What is the best way to download the entire history of payments?
In this PHP example, the author repeatedly requests the v1//payments
endpoint until all payments have been pulled. Is repeatedly hitting that endpoint the best/only way to download all payments? If so, considering the rate limit for the connect API and the potential for many users to be signing up and triggering full history downloads at the same time, how can I prevent my requests from getting blocked?
The above issue is mainly about a one-time sync of payments from square to my application. Is there a preferred way to keep my application's set of payments for a merchant in sync with square's set of payments for a merchant into the future? i.e. a way to 1) download all payments on sign-up and 2) download any future payments as they become available.
...ANSWER
Answered 2017-Sep-04 at 14:50You should use the v2/transactions endpoints, as they are more performant. You are correct in your approach, I would be sure to implement a robust back off strategy if you do end up hitting the rate limit. Depending on the merchant size, downloading the full transaction history likely won't take more than a minute or so.
To keep the transactions up to date, you can regularly pull new transactions and do diffs, or utilize webhooks
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install square-connect-api
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page