The Customers API provides endpoints for managing customer records, including CRUD operations, enrichment, portal access, and invoice summaries.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/midday-ai/midday/llms.txt
Use this file to discover all available pages before exploring further.
Query Endpoints
get
Retrieve a paginated list of customers.Search query for customer name, email, or website
Array of sort objects
Number of results per page
getById
Retrieve a specific customer by ID.Customer UUID
getInvoiceSummary
Get invoice summary statistics for a customer.Customer UUID
getByPortalId
Public endpoint - no authentication required
The customer’s unique portal ID
getPortalInvoices
Public endpoint - no authentication required
The customer’s unique portal ID
Pagination cursor
Number of results per page
Mutation Endpoints
upsert
Create a new customer or update an existing one.Customer UUID (for updates, omit for new customers)
Customer name
Email address
Phone number
Website URL
Address object
VAT/tax ID number
Internal notes
The created or updated customer object
When creating a new customer with a website, AI enrichment is automatically triggered to fetch additional company information.
delete
Delete a customer.Customer UUID
togglePortal
Enable or disable customer portal access.Customer UUID
Whether to enable or disable portal access
Updated customer object with portalId if enabled
AI Enrichment
enrich
Manually trigger AI enrichment for a customer.Customer UUID
Enrichment requires the customer to have a website. The AI will fetch company information like logo, description, industry, and social media links.
cancelEnrichment
Cancel an in-progress enrichment job.Customer UUID
clearEnrichment
Clear enrichment data for a customer.Customer UUID
Customer Portal
The customer portal allows your clients to view their invoices and payment status without logging into your system.Enabling Portal Access
Portal Features
- View all invoices (paid, unpaid, overdue)
- Download invoice PDFs
- See payment status and history
- View invoice summaries and totals
- No login required - access via unique secure link