Manage vendors with the API
Learn how to add and manage vendors with the Payabli API
Vendors are the entities that provide goods or services to paypoints and organizations. They’re who gets paid in money out (pay out) transactions. Before you can use vendors in bills and payouts, you must add them. This guide explains how to add and manage vendors using the Payabli API.
Create a vendor
To create a vendor record, send a POST request to the /api/Vendor/single/{entry}
endpoint.
For complete details, see the API reference for this endpoint.
This example creates a new vendor record in the entrypoint 8cfec329267
.
A successful request returns a JSON response. The IdVendor is returned as responseData
.
responseData
is the vendor ID, and is used to manage the vendor via the APIImport vendors
You can import a list of vendors into Payabli using the API. This is useful if you have a large number of vendors 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 import a list of vendors, send a POST request to the /api/Import/vendorsForm/{entrypoint} endpoint, with an attached CSV file.
This example imports vendorImport.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.
After you import vendors, you can manage them with the API. For example, you can update vendor information, manage payment methods, and create bills associated with specific vendors.
Manage vendors
You can use the API to manage existing vendors, including updating their information, deleting them, and retrieving their details. See these endpoint references for more information:
Vendor status
In vendor endpoints and endpoints that return vendor data, the vendor status field is VendorStatus
.