Skip to main content

_manage-suppliers

Retrieve supplier

Call our List suppliers endpoint to retrieve the full list of your customer's existing suppliers.

const suppliersResponse = await payablesClient.suppliers.list({
companyId: companyId,
});

if (suppliersResponse.statusCode != 200) {
throw new Error("Could not get current suppliers");
}

console.log(suppliersResponse.suppliers[0].supplierName);
Supplier balances

Bill Pay does not expose supplier balances on the supplier endpoints. Instead, you can aggregate bills by supplier.

Create supplier

When your customer's company does business with a new supplier for the first time, you will need to create a supplier before creating a bill against that supplier. Use the Create supplier endpoint to do that.

const supplierCreateResponse = await payablesClient.suppliers.create({
supplier: {
supplierName: "Kelly's Industrial Supplies",
contactName: "Kelly's Industrial Supplies",
emailAddress: "[email protected]",
status: SupplierStatus.Active,
},
companyId: companyId,
connectionId: connectionId,
});

Was this page useful?
👏
👍
🤔
👎
😭