Invoice a customer quickstart
Learn how to send an invoice to a customer using the Tabs API. In this guide you’ll make a couple API calls and build a working example that you can adapt for your integration.
Get your API key
You can create an API key from the app. All requests require your key in the Authorization header.
Step 1: Create the customer
A customer in Tabs represents the business you’re billing. At minimum, provide a business name, but additional details are used in other workflows.
Create a customer using the POST /v3/customers endpoint, swapping in your API key:
Customer creation is processed asynchronously. Look up the customer with a filtered GET /v3/customers call to retrieve its id:
Save the returned id — you’ll use it in subsequent steps.
Tabs can automatically create customers by syncing with your CRM or ERP. If the customers exist already, try the GET /v3/customers endpoint to retrieve a customer id.
Step 2: Create the contract
Every billing relationship in Tabs starts with a contract. A contract defines the billing arrangement with the customer. It also links the customer to a named agreement and serves as the container for any billing terms and schedules you attach later.
To create a contract (in Tabs) for a customer, call the POST /v3/contracts endpoint. Use your API key and the customer ID returned in Step 1.
Tabs returns a response like:
Again, save the returned id, which represents the contract. The contract starts in an unprocessed state—it won’t generate invoices until you mark it as processed in Step 4.
Step 3: Add a billing term
A billing term defines what you’re charging, how much it costs, and how often. For a one-off invoice, create a billing term with isRecurring set to false. Tabs generates a single invoice for the full amount when you mark the contract as processed in Step 4.
Create the billing term on the contract by calling the POST /v3/contracts/{contractId}/billing-terms endpoint:
Tabs returns a response like:
Step 4: Mark the contract as processed
Creating a billing term defines what to bill, but Tabs doesn’t generate the invoice until the contract is processed. Mark the contract as processed with the POST /v3/contracts/{contractId}/actions endpoint:
Tabs sets the contract status to PROCESSED and generates a draft invoice for the billing term. The invoice has an issueDate of 2025-02-01 and a dueDate 30 days later (2025-03-03), based on the netPaymentTerms you specified.
You can change an invoice while it’s in draft state.
Step 5: Send the invoice
The final step is to send the invoice to the customer. First, fetch the invoice to review its details. Use the customer ID to scope the lookup with a filtered GET /v3/invoices call:
Tabs returns a response like:
When you’re ready to send the invoice, use the invoice actions endpoint to transition it from DRAFT to SENT. Sending is asynchronous, and at least one of sendToErp or sendToCustomer must be true:
Tabs queues a background job and returns a job reference:
Once the job completes, the invoice transitions from DRAFT to SENT. In a complete integration, you can set up payment options through Stripe and Plaid.
Next steps
From here, you can:
- Review the Tabs Data Model
- Mark an Invoice as paid

