Hey Retool community!
I’m building a single interface to handle client payments from our app into Xero (and out through GoCardless/Wise/Stripe). Before I dive in, I want to make sure this “push payment” flow is supported:
OAuth2 setup: Using Retool’s REST resource with Xero’s authorize/token URLs
POST /Payments: Sending JSON like:
{
"Payments": [{
"Invoice": { "InvoiceID": "<invoice-id>" },
"Account": { "AccountID": "<bank-account-id>" },
"Date": "YYYY-MM-DD",
"Amount": 123.45,
"Reference":"Retool push"
}]
}
Payment Services: Xero is already connected to GoCardless/Wise/Stripe
Flow I expect:
- Form → Retool POST to Xero
- Xero pushes to our linked provider
- Bank feed comes back, we reconcile in our PMS
I’ve read a bunch of posts about sending invoices and querying the API to pull data, but haven’t found anything on actually pushing payments from Retool. If there already exists documentation on this, forgive my ignorance and please point me in the right direction.
- Has anyone successfully driven real “push payments” via Retool → Xero?
- Are there any gotchas around Payment Services or idempotency keys?
- Best practices for polling vs. webhooks on bank feeds after the POST?
TIA for any examples, sample queries, or pointers!