List suppliers

Suppliers in your Pennylane account with name and ID, optionally filtered by name.

GET https://cotlet.dev/api/v1/pennylane/suppliers

read

Returns the suppliers in the account. Use supplier_id from each item in import_supplier_invoice and list_supplier_invoices. IDs differ per Pennylane company, so look the supplier up again if you switch accounts. Pages hold 1 to 100 suppliers; pass next_cursor back as cursor for the next page.

Parameters

Parameters: list_suppliers
NameTypeDescription
name string string Only suppliers whose name contains this text.
limit integer integer 1 to 100. Default: 20.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/pennylane/suppliers \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("pennylane", "list_suppliers")
Node.js
const result = await cotlet.call('pennylane', 'list_suppliers');
CLI
cotlet call pennylane list_suppliers

Example response

JSON

{
  "suppliers": [
    {
      "supplier_id": 612,
      "name": "OVH SAS"
    },
    {
      "supplier_id": 640,
      "name": "Notion Labs Inc."
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.