Need help in identifying correct API endpoint for Register events.
Hello,
I am looking for an API that would return Register events (Cash add, drop, withdraw, etc) for all the registers (or a specified register) for a specified time period.
Can you please help me identify the correct API endpoint for this requirement?
Thanks,
Shrikant.
1 comment
Hey!
Yes this data is available via the API!
For any cash add/drop, the RegisterWithdraw endpoint can be used for both! A cash add would appear as a positive number and a withdraw as a negative.
There are also RegisterCount, RegisterCountAmount endpoints.
If you are trying to get the logs within a specific timestamp, here's how you can do it:
https://us.merchantos.com/API/Account/{accountID}/RegisterWithdraw.json?createTime=%3E%3C,2019-01-01T00:00:01-5:00,2021-08-01T23:59:59-5:00
This call gets all logs that are within the 2 specified times. The 2 times are in bold and italic to make it easier to read.
Let me know if this answers your question :)