Manage bills with the API
Centralize your pay-out tasks in Payabli to track, manage, and monetize payments to vendors using the Payabli Bills API
In Payabli, bills represent a bill from a vendor that a paypoint is expected to pay. Use managed payables with Payabli to turn those payouts to vendors into an income stream.
Learn how to use our OCR engine to scrape documents and create bills: Use the OCR Engine
Basic bill workflow
- When you get an invoice from a vendor or supplier, add it to Payabli as a bill via the API, File Exchange, or the web.
- Update or delete bills, and then queue them for approval.
- After bills are approved, make payout requests, and you can pay one or many bills.
Via an enablement process, your vendors are contacted to help decide on a payment method. The goal is that they choose to receive payments through virtual cards for ease, speed, and security of payment.
Considerations
Keep these points in mind when working with bills:
- You don’t have to use Payabli’s bill engine to make a payout. When making a payout request, set the query parameter
doNotCreateBills
totrue
. - We strongly recommend including bill images with your bills. Including bill images can make payouts faster, more accurate, and prevent problems.
- You can pay more than one bill with one payout request. If several active bills added, queued, and ready to be paid, you can make a payout request to pay all active bills. Remittance information for that single payout request will include the details for all of the paid bills.
- Bill approval isn’t required. If a bill status is Active or Approved it can be sent for payout. If a bill status is Sent to Approval or Pending Approval you can’t send it for payout.
- You can use the OCR engine to capture data from uploaded bill images.
Create a bill
To create a single bill, send a POST request to /api/Bill/single/{entry}
.
For complete information, see the API reference.
This example adds a bill to the entrypoint with ID 8cfec329267
. The bill is for a vendor with the vendorNumber
“‘1234-A”. The bill number is ABC-123, and the request includes an uploaded bill image, and optional fields like comments.
A successful response returns the bill ID in the responseData
field.
If your workflow requires bill approval, you can send the bill to approval with the API. For more information, see Send a bill to approval.
After your bill is approved you can make a payout request to pay the bill. For more information, see Make a payout request.
Import bills
You can import a list of bills into Payabli using the API. This is useful if you have a large number of bills to add at once, or if you want to automate the process. Before you get started, download the example CSV file and open it with the editor of your choice. Use it as an example to help you build your import file.
To create a bill, send a POST request to the /api/Import/billsForm/{entrypoint}
endpoint, with an attached CSV file.
This example imports billImport.csv for the entrypoint e56ce00572
.
A successful request returns a JSON response with the number of added and rejected records, and any errors. The imported data is now available for use, and you can confirm by checking PartnerHub or PayHub.
responseData
object contains the number of records added and rejected. The errors
field contains any errors that occurred during the import process.After you import bills, you can manage them with the API. For example, you can update or delete bills, send them for approval, and create payout requests.
Manage bills
You can also manage your bills via the API. See these endpoint references for more information: