List clients

Clients in your catalog with RFC, name, CFDI use, tax zip code and fiscal regime.

GET https://cotlet.dev/api/v1/facturama/clients

read

Lists the clients saved in the account catalog, filtered by a search text on name or RFC. Use client_id from each item in create_invoice. Pages hold up to 100 clients; pass next_cursor back as cursor for the next page.

Parameters

Parameters: list_clients
NameTypeDescription
search string string Text to match against client name or RFC.
limit integer integer 1 to 100. Default: 50.
cursor string string Next page cursor from the previous call.

Request

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

Example response

JSON

{
  "clients": [
    {
      "client_id": "cl_4821",
      "rfc": "XAXX010101000",
      "name": "Estudio Norte SA de CV",
      "cfdi_use": "G03",
      "tax_zip_code": "64000",
      "fiscal_regime": "601",
      "email": "billing@estudionorte.example"
    }
  ],
  "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.