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
| Name | Type | Description |
|---|---|---|
| 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 https://cotlet.dev/api/v1/pennylane/suppliers \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("pennylane", "list_suppliers") const result = await cotlet.call('pennylane', 'list_suppliers'); cotlet call pennylane list_suppliers Example response
{
"suppliers": [
{
"supplier_id": 612,
"name": "OVH SAS"
},
{
"supplier_id": 640,
"name": "Notion Labs Inc."
}
],
"has_more": false,
"next_cursor": null
}