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

Support for BatchPayments #463

Open
untoldone opened this issue Nov 24, 2018 · 4 comments
Open

Support for BatchPayments #463

untoldone opened this issue Nov 24, 2018 · 4 comments

Comments

@untoldone
Copy link

Looking to make use of https://developer.xero.com/documentation/api/batch-payments API.

I'm using Xeroizer to import payouts from Stripe. I'm creating two invoices -- one aggregate sale and one aggregate bill to cover the transactions and fees associated with a stripe sales in a given stripe payout. Once I have these, I'd like to create a BatchPayment in the bank account which includes those two transactions -- this way reconciliation is super easy and I just click "OK". Without the payout I have to manually find the two invoices and match them with each transaction on the bank side which takes more time.

@CloCkWeRX
Copy link
Collaborator

We do have models for batch payments (https://github.com/waynerobinson/xeroizer/blob/master/lib/xeroizer/models/batch_payments.rb) but no specific code examples off the top of my head.

@nnc
Copy link
Contributor

nnc commented Apr 20, 2019

@CloCkWeRX I don't think that's what @untoldone had in mind, as Xero introduced an API for creating and retrieving batch payments in late 2018. While Xeroizer currently only supports reading the batch payment settings for a contact.

Not that I'm in any way against adding support for Batch Payments API to Xeroizer, but I don't think it would solve @untoldone' problem because one of the limitations for that API is "You can’t create a batch payment with a mixture of sales invoices and bills".

@untoldone
Copy link
Author

Ah, weird -- you can do it in the UI / I missed that when I looked... I wonder if there's another API that does that or if the docs aren't up to date.

@lifeparticle
Copy link

Hi,

I was wondering if it's possible to access the following API via xeroizer gem ?
https://developer.xero.com/documentation/api/batch-payments#PUT

Thanks!

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

4 participants