Daily payment file from Paymentus posts to utility billing
Every weekday morning, reads Paymentus's payment file from the SFTP folder, keeps accepted payments, checks each account exists in utility billing, and posts the payments. Payments for unknown accounts are emailed to the billing office instead of posted.
10 steps
The whole flow, as it appears on the canvas.
Scroll sideways on small screens. Colors show the kind of step: start, read, change, decide, write.
What each step does.
- 01 · Start · On a schedule
Weekdays at 6:30 am
- Cron
30 6 * * 1-5(workspace time zone)
Then: Read the Paymentus file; Utility billing accounts
- Cron
- 02 · Files · Read files · SFTP server
Read the Paymentus file
- Reads files matching
paymentus-payments-*.csvininboxon SFTP server - Format: CSV, first row has the field names
- Only files new since the last good run
- After a good run, files move to
archive
Then: Accepted payments only
- Reads files matching
- 03 · Decide · Filter
Accepted payments only
- Keeps only records where
Payment StatusisACCEPTED
Then: To utility billing fields
- Keeps only records where
- 04 · Read · Get records · Utility billing (CIS)
Utility billing accounts
- Reads Accounts from Utility billing (CIS)
- At most 50,000 records per run
Then: Find the account
- 05 · Change · Map fields
To utility billing fields
- Shapes each record into 7 fields:
receipt_number,account_number,amount,paid_on,method,source,batch
Then: Find the account
- Shapes each record into 7 fields:
- 06 · Decide · Join
Find the account
- Join
Then: Account found?
- 07 · Decide · If / else
Account found?
- Yes when
ub_accountis not empty
Then: Yes → Fields for: post the payment; No → Email unknown accounts
- Yes when
- 08 · Change · Map fields
Fields for: post the payment
- Shapes each record into 7 fields:
receipt_number,account_number,amount,paid_on,method,source,batch
Then: Post the payment
- Shapes each record into 7 fields:
- 09 · Act · Send email
Email unknown accounts
- Emails
[email protected]: “{{count}} Paymentus payments need an account” - One summary email
- Records attached as CSV
- Emails
- 10 · Write · Send records · Utility billing (CIS)
Post the payment
- Creates Payments in Utility billing (CIS)
Connectors used
Swap any of them for another system with the same kind of data.
Run this flow on your systems.
We'll set up a workspace with your systems in a sandbox and build your first flow with you.