Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return total unlinked transactions count #713

Open
kyungmin opened this issue Oct 22, 2014 · 3 comments
Open

Return total unlinked transactions count #713

kyungmin opened this issue Oct 22, 2014 · 3 comments

Comments

@kyungmin
Copy link

We want to display total number of unlinked transactions to encourage marketplaces to link their transactions.

Mockup: balanced/balanced-dashboard#1481 (comment)

@mjallday
Copy link
Contributor

should be provided by stats, not the main api.

e..g GET https://stats.balancedpayments.com/MP123123/unlinked_transactions

@mahmoudimus could be good kafka/eb proof of concept

@kyungmin
Copy link
Author

Is stats.balancedpayments.com replacing analytics.balancedpayments.com?

Perhaps GET https://stats.balancedpayments.com/MP123123/count could return them at once like:

{
    "transactions": {
        "total": 123,
        "debit": 123,
        "credit": 123,
        "refund": 123,
        "reversal": 123,
        "unlinked": 123
    },
    "orders": {
        "total": 123,
        "overdue": 123
    },
    "disputes": {
        "total": 123,
        "won": 123,
        "lost": 123,
        "pending": 123
    },
    ...
}

We could do similar for GET https://stats.balancedpayments.com/MP123123/amount.

What do you think? When could this be done?

@msherry
Copy link
Contributor

msherry commented Oct 23, 2014

I believe stats is already in use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants