MENU navbar-image

Tidybill API Documentation: Invoicing REST API

Tidybill REST API reference: create and send invoices, quotes and recurring invoices, manage clients and projects, and track time, with curl and JavaScript examples.

Authentication

Tidybill uses Bearer token authentication. Create a personal access token from Settings > API in your Tidybill dashboard (requires Pro plan).

Include the token in every request:

Authorization: Bearer YOUR_TOKEN

Multi-tenancy

All resource endpoints require an X-Company-Id header to specify which company you're operating on. You can list your companies via GET /api/companies.

X-Company-Id: 1

Money

All currency amounts are stored in cents (e.g. $10.50 = 1050). Most fields are integers, except unit_price which supports up to 6 decimal places for sub-cent pricing (e.g. 3.5 = $0.035). Line item totals and all other monetary fields are rounded to whole cents. Tax rates are in basis points (e.g. 15% = 1500).

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Create a personal access token from Settings > API in your Tidybill dashboard. Requires a Pro plan.

Authentication

Register

Example request:
curl --request POST \
    "https://tidybill.app/api/auth/register" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\",
    \"password\": \"-0pBNvYgxw\",
    \"gclid\": \"a\",
    \"utm_source\": \"y\",
    \"utm_medium\": \"k\",
    \"utm_campaign\": \"c\",
    \"utm_term\": \"m\",
    \"utm_content\": \"y\",
    \"referrer\": \"u\",
    \"landing_page\": \"w\"
}"
const url = new URL(
    "https://tidybill.app/api/auth/register"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "email": "zbailey@example.net",
    "password": "-0pBNvYgxw",
    "gclid": "a",
    "utm_source": "y",
    "utm_medium": "k",
    "utm_campaign": "c",
    "utm_term": "m",
    "utm_content": "y",
    "referrer": "u",
    "landing_page": "w"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "message": "If your email is not already registered, your account has been created. Please check your inbox."
}
 

Request      

POST api/auth/register

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

Must not be greater than 255 characters. Example: b

email   string     

Must be a valid email address. Must not be greater than 255 characters. Example: zbailey@example.net

password   string     

Must be at least 8 characters. Example: -0pBNvYgxw

gclid   string  optional    

Must not be greater than 255 characters. Example: a

utm_source   string  optional    

Must not be greater than 255 characters. Example: y

utm_medium   string  optional    

Must not be greater than 255 characters. Example: k

utm_campaign   string  optional    

Must not be greater than 255 characters. Example: c

utm_term   string  optional    

Must not be greater than 255 characters. Example: m

utm_content   string  optional    

Must not be greater than 255 characters. Example: y

referrer   string  optional    

Must not be greater than 2048 characters. Example: u

landing_page   string  optional    

Must not be greater than 2048 characters. Example: w

Login

Example request:
curl --request POST \
    "https://tidybill.app/api/auth/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"gbailey@example.net\",
    \"password\": \"|]|{+-\"
}"
const url = new URL(
    "https://tidybill.app/api/auth/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "gbailey@example.net",
    "password": "|]|{+-"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 1,
        "name": "John",
        "email": "john@example.com"
    }
}
 

Example response (401):


{
    "message": "Invalid credentials."
}
 

Request      

POST api/auth/login

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

email   string     

Must be a valid email address. Example: gbailey@example.net

password   string     

Example: |]|{+-

Send password reset link

Example request:
curl --request POST \
    "https://tidybill.app/api/auth/forgot-password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"gbailey@example.net\"
}"
const url = new URL(
    "https://tidybill.app/api/auth/forgot-password"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "gbailey@example.net"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "message": "If an account exists, a reset link has been sent."
}
 

Request      

POST api/auth/forgot-password

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

email   string     

Must be a valid email address. Example: gbailey@example.net

Reset password

Example request:
curl --request POST \
    "https://tidybill.app/api/auth/reset-password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"architecto\",
    \"email\": \"zbailey@example.net\",
    \"password\": \"-0pBNvYgxw\"
}"
const url = new URL(
    "https://tidybill.app/api/auth/reset-password"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "token": "architecto",
    "email": "zbailey@example.net",
    "password": "-0pBNvYgxw"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "message": "Password has been reset."
}
 

Example response (422):


{
    "message": "This password reset token is invalid."
}
 

Request      

POST api/auth/reset-password

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

token   string     

Example: architecto

email   string     

Must be a valid email address. Example: zbailey@example.net

password   string     

Must be at least 8 characters. Example: -0pBNvYgxw

Redirect to Google OAuth

Example request:
curl --request GET \
    --get "https://tidybill.app/api/auth/google" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/auth/google"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302, Redirect to Google):



 

Request      

GET api/auth/google

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Google OAuth callback

Example request:
curl --request GET \
    --get "https://tidybill.app/api/auth/google/callback" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/auth/google/callback"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302, Redirect to frontend after authentication):



 

Request      

GET api/auth/google/callback

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Verify email

Example request:
curl --request GET \
    --get "https://tidybill.app/api/auth/email/verify/architecto/architecto" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/auth/email/verify/architecto/architecto"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "verified": true
}
 

Request      

GET api/auth/email/verify/{id}/{hash}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   string     

The ID of the verify. Example: architecto

hash   string     

Example: architecto

Resend verification email

Example request:
curl --request POST \
    "https://tidybill.app/api/auth/email/resend" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"gbailey@example.net\"
}"
const url = new URL(
    "https://tidybill.app/api/auth/email/resend"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "gbailey@example.net"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "message": "If your email is registered and unverified, a verification link has been sent."
}
 

Request      

POST api/auth/email/resend

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

email   string     

Must be a valid email address. Must not be greater than 255 characters. Example: gbailey@example.net

Logout

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/auth/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/auth/logout"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "Logged out."
}
 

Request      

POST api/auth/logout

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get authenticated user

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/auth/user" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/auth/user"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 1,
        "name": "Morgan Hirthe",
        "email": "dare.emelie@example.com",
        "avatar_url": null,
        "current_company_id": null,
        "pending_deletion_at": null,
        "created_at": "2026-10-30T14:13:53.000000Z",
        "updated_at": "2026-10-30T14:13:53.000000Z"
    }
}
 

Request      

GET api/auth/user

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update authenticated user

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/auth/user" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\"
}"
const url = new URL(
    "https://tidybill.app/api/auth/user"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "email": "zbailey@example.net"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 2,
        "name": "Aleen O'Kon",
        "email": "jdach@example.org",
        "avatar_url": null,
        "current_company_id": null,
        "pending_deletion_at": null,
        "created_at": "2026-10-30T14:13:54.000000Z",
        "updated_at": "2026-10-30T14:13:54.000000Z"
    }
}
 

Request      

PUT api/auth/user

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string  optional    

Must not be greater than 255 characters. Example: b

email   string  optional    

Must be a valid email address. Example: zbailey@example.net

Companies

GET api/companies/{company}/email/verify/{hash}

Example request:
curl --request GET \
    --get "https://tidybill.app/api/companies/architecto/email/verify/architecto" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/architecto/email/verify/architecto"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/companies/{company}/email/verify/{hash}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company   string     

The company. Example: architecto

hash   string     

Example: architecto

List companies

requires authentication

Returns all companies the authenticated user is a member of, regardless of role.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/companies" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 7,
            "uuid": "36611a4d-2e2f-4f3b-a81e-41deb85f8082",
            "name": "Price Ltd",
            "legal_name": null,
            "email": "dare.emelie@baumbach.org",
            "email_verified": false,
            "phone": null,
            "address_line_1": null,
            "address_line_2": null,
            "city": null,
            "state": null,
            "postal_code": null,
            "country": null,
            "currency": "USD",
            "tax_number": null,
            "vat_id": null,
            "vat_registered": true,
            "logo_path": null,
            "invoice_prefix": "INV-",
            "invoice_next_number": 1,
            "quote_prefix": "QUO-",
            "quote_next_number": 1,
            "invoice_layout": "classic",
            "default_payment_terms": 30,
            "default_hourly_rate": null,
            "default_tax_name_1": "VAT",
            "default_tax_rate_1": 1500,
            "default_tax_name_2": null,
            "default_tax_rate_2": null,
            "default_accounting_basis": "accrual",
            "automatic_tax_enabled": false,
            "late_fee_type": null,
            "late_fee_value": null,
            "late_fee_days": null,
            "created_at": "2026-10-30T14:13:54.000000Z",
            "updated_at": "2026-10-30T14:13:54.000000Z"
        },
        {
            "id": 8,
            "uuid": "b30cd8e0-62e5-448f-9022-c7418ab101e8",
            "name": "Leuschke, Bauch and Fritsch",
            "legal_name": null,
            "email": "isidro.mclaughlin@smitham.com",
            "email_verified": false,
            "phone": null,
            "address_line_1": null,
            "address_line_2": null,
            "city": null,
            "state": null,
            "postal_code": null,
            "country": null,
            "currency": "USD",
            "tax_number": null,
            "vat_id": null,
            "vat_registered": true,
            "logo_path": null,
            "invoice_prefix": "INV-",
            "invoice_next_number": 1,
            "quote_prefix": "QUO-",
            "quote_next_number": 1,
            "invoice_layout": "classic",
            "default_payment_terms": 30,
            "default_hourly_rate": null,
            "default_tax_name_1": "VAT",
            "default_tax_rate_1": 1500,
            "default_tax_name_2": null,
            "default_tax_rate_2": null,
            "default_accounting_basis": "accrual",
            "automatic_tax_enabled": false,
            "late_fee_type": null,
            "late_fee_value": null,
            "late_fee_days": null,
            "created_at": "2026-10-30T14:13:54.000000Z",
            "updated_at": "2026-10-30T14:13:54.000000Z"
        }
    ]
}
 

Request      

GET api/companies

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Create a company

requires authentication

Creates a company, attaches the authenticated user as owner, and creates a default invoice template. Returns 403 if the user's plan company limit is reached.

Example request:
curl --request POST \
    "https://tidybill.app/api/companies" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"legal_name\": \"n\",
    \"email\": \"ashly64@example.com\",
    \"phone\": \"v\",
    \"address_line_1\": \"d\",
    \"address_line_2\": \"l\",
    \"city\": \"j\",
    \"state\": \"n\",
    \"postal_code\": \"ikhwaykcmyuwpwlv\",
    \"country\": \"qw\",
    \"currency\": \"rsi\",
    \"tax_number\": \"t\",
    \"registration_number\": \"c\",
    \"vat_id\": \"p\",
    \"invoice_prefix\": \"scqldz\",
    \"invoice_next_number\": 23,
    \"quote_prefix\": \"nrwtuj\",
    \"quote_next_number\": 67,
    \"default_payment_terms\": 10,
    \"default_hourly_rate\": 24,
    \"default_tax_name_1\": \"x\",
    \"default_tax_rate_1\": 15,
    \"default_tax_name_2\": \"k\",
    \"default_tax_rate_2\": 7,
    \"default_accounting_basis\": \"accrual\",
    \"automatic_tax_enabled\": false
}"
const url = new URL(
    "https://tidybill.app/api/companies"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "legal_name": "n",
    "email": "ashly64@example.com",
    "phone": "v",
    "address_line_1": "d",
    "address_line_2": "l",
    "city": "j",
    "state": "n",
    "postal_code": "ikhwaykcmyuwpwlv",
    "country": "qw",
    "currency": "rsi",
    "tax_number": "t",
    "registration_number": "c",
    "vat_id": "p",
    "invoice_prefix": "scqldz",
    "invoice_next_number": 23,
    "quote_prefix": "nrwtuj",
    "quote_next_number": 67,
    "default_payment_terms": 10,
    "default_hourly_rate": 24,
    "default_tax_name_1": "x",
    "default_tax_rate_1": 15,
    "default_tax_name_2": "k",
    "default_tax_rate_2": 7,
    "default_accounting_basis": "accrual",
    "automatic_tax_enabled": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 9,
        "uuid": "416bc75c-49d6-4cdd-bd0c-0aa58ab55ef9",
        "name": "Hettinger, Nitzsche and Ankunding",
        "legal_name": null,
        "email": "verlie08@kutch.com",
        "email_verified": false,
        "phone": null,
        "address_line_1": null,
        "address_line_2": null,
        "city": null,
        "state": null,
        "postal_code": null,
        "country": null,
        "currency": "USD",
        "tax_number": null,
        "vat_id": null,
        "vat_registered": true,
        "logo_path": null,
        "invoice_prefix": "INV-",
        "invoice_next_number": 1,
        "quote_prefix": "QUO-",
        "quote_next_number": 1,
        "invoice_layout": "classic",
        "default_payment_terms": 30,
        "default_hourly_rate": null,
        "default_tax_name_1": "VAT",
        "default_tax_rate_1": 1500,
        "default_tax_name_2": null,
        "default_tax_rate_2": null,
        "default_accounting_basis": "accrual",
        "automatic_tax_enabled": false,
        "late_fee_type": null,
        "late_fee_value": null,
        "late_fee_days": null,
        "created_at": "2026-10-30T14:13:54.000000Z",
        "updated_at": "2026-10-30T14:13:54.000000Z"
    }
}
 

Example response (403):


{
    "message": "You've reached your free plan limit of 1 companies. Please upgrade.",
    "upgrade_required": true
}
 

Request      

POST api/companies

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

Must not be greater than 255 characters. Example: b

legal_name   string  optional    

Must not be greater than 255 characters. Example: n

email   string  optional    

Must be a valid email address. Must not be greater than 255 characters. Example: ashly64@example.com

phone   string  optional    

Must not be greater than 50 characters. Example: v

address_line_1   string  optional    

Must not be greater than 255 characters. Example: d

address_line_2   string  optional    

Must not be greater than 255 characters. Example: l

city   string  optional    

Must not be greater than 255 characters. Example: j

state   string  optional    

Must not be greater than 255 characters. Example: n

postal_code   string  optional    

Must not be greater than 20 characters. Example: ikhwaykcmyuwpwlv

country   string  optional    

Must be 2 characters. Example: qw

currency   string  optional    

Must be 3 characters. Example: rsi

tax_number   string  optional    

Must not be greater than 255 characters. Example: t

registration_number   string  optional    

Must not be greater than 50 characters. Example: c

vat_id   string  optional    

Must not be greater than 50 characters. Example: p

invoice_prefix   string  optional    

Must not be greater than 10 characters. Example: scqldz

invoice_next_number   integer  optional    

Must be at least 1. Example: 23

quote_prefix   string  optional    

Must not be greater than 10 characters. Example: nrwtuj

quote_next_number   integer  optional    

Must be at least 1. Example: 67

default_payment_terms   integer  optional    

Must be at least 0. Must not be greater than 365. Example: 10

default_hourly_rate   integer  optional    

Must be at least 0. Example: 24

default_tax_name_1   string  optional    

Must not be greater than 255 characters. Example: x

default_tax_rate_1   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 15

default_tax_name_2   string  optional    

Must not be greater than 255 characters. Example: k

default_tax_rate_2   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 7

default_accounting_basis   string  optional    

Example: accrual

Must be one of:
  • accrual
  • cash
automatic_tax_enabled   boolean  optional    

Example: false

Get a company

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/companies/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 10,
        "uuid": "4aa8096e-e91a-4387-85b5-75d3aa321e04",
        "name": "Price Ltd",
        "legal_name": null,
        "email": "dare.emelie@baumbach.org",
        "email_verified": false,
        "phone": null,
        "address_line_1": null,
        "address_line_2": null,
        "city": null,
        "state": null,
        "postal_code": null,
        "country": null,
        "currency": "USD",
        "tax_number": null,
        "vat_id": null,
        "vat_registered": true,
        "logo_path": null,
        "invoice_prefix": "INV-",
        "invoice_next_number": 1,
        "quote_prefix": "QUO-",
        "quote_next_number": 1,
        "invoice_layout": "classic",
        "default_payment_terms": 30,
        "default_hourly_rate": null,
        "default_tax_name_1": "VAT",
        "default_tax_rate_1": 1500,
        "default_tax_name_2": null,
        "default_tax_rate_2": null,
        "default_accounting_basis": "accrual",
        "automatic_tax_enabled": false,
        "late_fee_type": null,
        "late_fee_value": null,
        "late_fee_days": null,
        "created_at": "2026-10-30T14:13:54.000000Z",
        "updated_at": "2026-10-30T14:13:54.000000Z"
    }
}
 

Request      

GET api/companies/{company_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Update a company

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/companies/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"legal_name\": \"n\",
    \"email\": \"ashly64@example.com\",
    \"phone\": \"v\",
    \"address_line_1\": \"d\",
    \"address_line_2\": \"l\",
    \"city\": \"j\",
    \"state\": \"n\",
    \"postal_code\": \"ikhwaykcmyuwpwlv\",
    \"country\": \"qw\",
    \"currency\": \"rsi\",
    \"tax_number\": \"t\",
    \"registration_number\": \"c\",
    \"vat_id\": \"p\",
    \"invoice_prefix\": \"scqldz\",
    \"invoice_next_number\": 23,
    \"quote_prefix\": \"nrwtuj\",
    \"quote_next_number\": 67,
    \"default_payment_terms\": 10,
    \"default_hourly_rate\": 24,
    \"default_tax_name_1\": \"x\",
    \"default_tax_rate_1\": 15,
    \"default_tax_name_2\": \"k\",
    \"default_tax_rate_2\": 7,
    \"default_accounting_basis\": \"cash\",
    \"automatic_tax_enabled\": true
}"
const url = new URL(
    "https://tidybill.app/api/companies/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "legal_name": "n",
    "email": "ashly64@example.com",
    "phone": "v",
    "address_line_1": "d",
    "address_line_2": "l",
    "city": "j",
    "state": "n",
    "postal_code": "ikhwaykcmyuwpwlv",
    "country": "qw",
    "currency": "rsi",
    "tax_number": "t",
    "registration_number": "c",
    "vat_id": "p",
    "invoice_prefix": "scqldz",
    "invoice_next_number": 23,
    "quote_prefix": "nrwtuj",
    "quote_next_number": 67,
    "default_payment_terms": 10,
    "default_hourly_rate": 24,
    "default_tax_name_1": "x",
    "default_tax_rate_1": 15,
    "default_tax_name_2": "k",
    "default_tax_rate_2": 7,
    "default_accounting_basis": "cash",
    "automatic_tax_enabled": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 11,
        "uuid": "6bfece37-27f5-4a93-84f1-e308fd10fe2f",
        "name": "Hettinger, Nitzsche and Ankunding",
        "legal_name": null,
        "email": "verlie08@kutch.com",
        "email_verified": false,
        "phone": null,
        "address_line_1": null,
        "address_line_2": null,
        "city": null,
        "state": null,
        "postal_code": null,
        "country": null,
        "currency": "USD",
        "tax_number": null,
        "vat_id": null,
        "vat_registered": true,
        "logo_path": null,
        "invoice_prefix": "INV-",
        "invoice_next_number": 1,
        "quote_prefix": "QUO-",
        "quote_next_number": 1,
        "invoice_layout": "classic",
        "default_payment_terms": 30,
        "default_hourly_rate": null,
        "default_tax_name_1": "VAT",
        "default_tax_rate_1": 1500,
        "default_tax_name_2": null,
        "default_tax_rate_2": null,
        "default_accounting_basis": "accrual",
        "automatic_tax_enabled": false,
        "late_fee_type": null,
        "late_fee_value": null,
        "late_fee_days": null,
        "created_at": "2026-10-30T14:13:54.000000Z",
        "updated_at": "2026-10-30T14:13:54.000000Z"
    }
}
 

Request      

PUT api/companies/{company_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Body Parameters

name   string     

Must not be greater than 255 characters. Example: b

legal_name   string  optional    

Must not be greater than 255 characters. Example: n

email   string  optional    

Must be a valid email address. Must not be greater than 255 characters. Example: ashly64@example.com

phone   string  optional    

Must not be greater than 50 characters. Example: v

address_line_1   string  optional    

Must not be greater than 255 characters. Example: d

address_line_2   string  optional    

Must not be greater than 255 characters. Example: l

city   string  optional    

Must not be greater than 255 characters. Example: j

state   string  optional    

Must not be greater than 255 characters. Example: n

postal_code   string  optional    

Must not be greater than 20 characters. Example: ikhwaykcmyuwpwlv

country   string  optional    

Must be 2 characters. Example: qw

currency   string  optional    

Must be 3 characters. Example: rsi

tax_number   string  optional    

Must not be greater than 255 characters. Example: t

registration_number   string  optional    

Must not be greater than 50 characters. Example: c

vat_id   string  optional    

Must not be greater than 50 characters. Example: p

invoice_prefix   string  optional    

Must not be greater than 10 characters. Example: scqldz

invoice_next_number   integer  optional    

Must be at least 1. Example: 23

quote_prefix   string  optional    

Must not be greater than 10 characters. Example: nrwtuj

quote_next_number   integer  optional    

Must be at least 1. Example: 67

default_payment_terms   integer  optional    

Must be at least 0. Must not be greater than 365. Example: 10

default_hourly_rate   integer  optional    

Must be at least 0. Example: 24

default_tax_name_1   string  optional    

Must not be greater than 255 characters. Example: x

default_tax_rate_1   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 15

default_tax_name_2   string  optional    

Must not be greater than 255 characters. Example: k

default_tax_rate_2   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 7

default_accounting_basis   string  optional    

Example: cash

Must be one of:
  • accrual
  • cash
automatic_tax_enabled   boolean  optional    

Example: true

POST api/companies/{company_id}/email/verification-notification

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/companies/16/email/verification-notification" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/email/verification-notification"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/companies/{company_id}/email/verification-notification

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Delete a company

requires authentication

Only the company owner can delete a company. Returns 403 for any other role.

Example request:
curl --request DELETE \
    "https://tidybill.app/api/companies/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Example response (403):


{
    "message": "Only the owner can delete a company."
}
 

Request      

DELETE api/companies/{company_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Switch active company

requires authentication

Updates the user's current_company_id so subsequent requests default to this company.

Example request:
curl --request POST \
    "https://tidybill.app/api/companies/16/switch" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/switch"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 12,
        "uuid": "87b7a3eb-1188-4dcc-ac46-9fc6e70205af",
        "name": "Price Ltd",
        "legal_name": null,
        "email": "dare.emelie@baumbach.org",
        "email_verified": false,
        "phone": null,
        "address_line_1": null,
        "address_line_2": null,
        "city": null,
        "state": null,
        "postal_code": null,
        "country": null,
        "currency": "USD",
        "tax_number": null,
        "vat_id": null,
        "vat_registered": true,
        "logo_path": null,
        "invoice_prefix": "INV-",
        "invoice_next_number": 1,
        "quote_prefix": "QUO-",
        "quote_next_number": 1,
        "invoice_layout": "classic",
        "default_payment_terms": 30,
        "default_hourly_rate": null,
        "default_tax_name_1": "VAT",
        "default_tax_rate_1": 1500,
        "default_tax_name_2": null,
        "default_tax_rate_2": null,
        "default_accounting_basis": "accrual",
        "automatic_tax_enabled": false,
        "late_fee_type": null,
        "late_fee_value": null,
        "late_fee_days": null,
        "created_at": "2026-10-30T14:13:54.000000Z",
        "updated_at": "2026-10-30T14:13:54.000000Z"
    }
}
 

Request      

POST api/companies/{company_id}/switch

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

List company members

requires authentication

Returns all users belonging to the company with their assigned role from the pivot table.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/companies/16/members" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/members"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "name": "John",
            "email": "john@example.com",
            "role": "owner"
        }
    ]
}
 

Request      

GET api/companies/{company_id}/members

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Invite a member

requires authentication

Creates an invitation record with a 7-day expiry and emails the invite link. Re-inviting an address that still has an unaccepted invitation refreshes that invitation in place. Returns 422 if the user is already a member.

Example request:
curl --request POST \
    "https://tidybill.app/api/companies/16/members/invite" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"gbailey@example.net\",
    \"role\": \"architecto\"
}"
const url = new URL(
    "https://tidybill.app/api/companies/16/members/invite"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "gbailey@example.net",
    "role": "architecto"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "message": "Invitation sent.",
    "data": {
        "id": 1,
        "email": "jane@example.com",
        "role": "member",
        "expires_at": "2026-04-12T00:00:00.000000Z"
    }
}
 

Example response (422):


{
    "message": "User is already a member."
}
 

Request      

POST api/companies/{company_id}/members/invite

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Body Parameters

email   string     

Must be a valid email address. Example: gbailey@example.net

role   string     

Example: architecto

List pending invitations

requires authentication

Returns all non-expired, non-accepted invitations for the company, ordered by most recent.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/companies/16/members/invitations" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/members/invitations"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "email": "jane@example.com",
            "role": "member",
            "invited_by": "John",
            "expires_at": "2026-04-12T00:00:00.000000Z"
        }
    ]
}
 

Request      

GET api/companies/{company_id}/members/invitations

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Cancel an invitation

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/companies/16/members/invitations/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/members/invitations/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/companies/{company_id}/members/invitations/{invitation_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

invitation_id   integer     

The ID of the invitation. Example: 16

Resend an invitation

requires authentication

Regenerates the invitation token, extends the expiry by 7 days, and re-sends the email. Returns 422 if the invitation has already been accepted.

Example request:
curl --request POST \
    "https://tidybill.app/api/companies/16/members/invitations/16/resend" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/members/invitations/16/resend"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "Invitation resent."
}
 

Example response (422):


{
    "message": "Invitation already accepted."
}
 

Request      

POST api/companies/{company_id}/members/invitations/{invitation_id}/resend

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

invitation_id   integer     

The ID of the invitation. Example: 16

Update a member's role

requires authentication

Changes the role on the company-user pivot. The owner role cannot be changed; returns 403 if attempted.

Example request:
curl --request PUT \
    "https://tidybill.app/api/companies/16/members/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"role\": \"architecto\"
}"
const url = new URL(
    "https://tidybill.app/api/companies/16/members/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "role": "architecto"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "message": "Member updated."
}
 

Example response (403):


{
    "message": "Cannot change the owner role."
}
 

Request      

PUT api/companies/{company_id}/members/{user_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

user_id   integer     

The ID of the user. Example: 16

Body Parameters

role   string     

Example: architecto

Remove a member

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/companies/16/members/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/members/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Example response (403):


{
    "message": "Cannot remove the company owner."
}
 

Example response (422):


{
    "message": "You cannot remove yourself."
}
 

Request      

DELETE api/companies/{company_id}/members/{user_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

user_id   integer     

The ID of the user. Example: 16

Clients

Export clients as CSV or PDF.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/clients/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/clients/export

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Bulk action on clients

requires authentication

Supported actions: archive, unarchive, delete. Returns the count of affected records.

Example request:
curl --request POST \
    "https://tidybill.app/api/clients/bulk-action" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ],
    \"action\": \"delete\"
}"
const url = new URL(
    "https://tidybill.app/api/clients/bulk-action"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ],
    "action": "delete"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "affected": 3
    }
}
 

Request      

POST api/clients/bulk-action

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   integer[]  optional    
action   string     

Example: delete

Must be one of:
  • archive
  • unarchive
  • delete
  • restore

Restore a deleted client

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/clients/16/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {}
}
 

Request      

POST api/clients/{client_id}/restore

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

List clients

requires authentication

Supports name/email search and archived state filtering. Results are paginated and include active/archived counts in the meta.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/clients" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 4,
            "uuid": "ee5461bd-1851-439a-93ef-5b2c4276761e",
            "name": "Price Ltd",
            "email": "dare.emelie@example.com",
            "phone": "+14324666067",
            "address_line_1": "26432 Leuschke Throughway Apt. 227",
            "address_line_2": null,
            "city": "Lake Audreyborough",
            "state": "Montana",
            "postal_code": "36080-0782",
            "country": "VG",
            "currency": "USD",
            "payment_terms": 30,
            "late_fee_type": null,
            "late_fee_value": null,
            "late_fee_days": null,
            "reminders_enabled": null,
            "payment_receipts_enabled": true,
            "notes": null,
            "default_invoice_notes": null,
            "is_archived": false,
            "created_at": "2026-10-30T14:13:55.000000Z",
            "updated_at": "2026-10-30T14:13:55.000000Z",
            "deleted_at": null
        },
        {
            "id": 5,
            "uuid": "3985b72f-50e5-4a8f-8d18-3651f209c45a",
            "name": "Fahey, Cartwright and Balistreri",
            "email": "florence.wolff@example.net",
            "phone": "1-346-252-9368",
            "address_line_1": "20568 Murl Villages",
            "address_line_2": null,
            "city": "New Modesta",
            "state": "Iowa",
            "postal_code": "57582-4237",
            "country": "TM",
            "currency": "USD",
            "payment_terms": 30,
            "late_fee_type": null,
            "late_fee_value": null,
            "late_fee_days": null,
            "reminders_enabled": null,
            "payment_receipts_enabled": true,
            "notes": null,
            "default_invoice_notes": null,
            "is_archived": false,
            "created_at": "2026-10-30T14:13:55.000000Z",
            "updated_at": "2026-10-30T14:13:55.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/clients

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get a client

requires authentication

Includes the client's contacts and associated projects.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/clients/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 6,
        "uuid": "69b47faa-c4ce-441f-8e54-95ebd1280e7b",
        "name": "Price Ltd",
        "email": "dare.emelie@example.com",
        "phone": "+14324666067",
        "address_line_1": "26432 Leuschke Throughway Apt. 227",
        "address_line_2": null,
        "city": "Lake Audreyborough",
        "state": "Montana",
        "postal_code": "36080-0782",
        "country": "VG",
        "currency": "USD",
        "payment_terms": 30,
        "late_fee_type": null,
        "late_fee_value": null,
        "late_fee_days": null,
        "reminders_enabled": null,
        "payment_receipts_enabled": true,
        "notes": null,
        "default_invoice_notes": null,
        "is_archived": false,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z",
        "deleted_at": null
    }
}
 

Request      

GET api/clients/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the client. Example: 16

Create a client

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/clients" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\",
    \"phone\": \"i\",
    \"address_line_1\": \"y\",
    \"address_line_2\": \"v\",
    \"city\": \"d\",
    \"state\": \"l\",
    \"postal_code\": \"jnikhwaykcmyuwpw\",
    \"country\": \"lv\",
    \"currency\": \"qwr\",
    \"payment_terms\": 10,
    \"late_fee_type\": \"flat\",
    \"late_fee_value\": 86,
    \"late_fee_days\": 3,
    \"reminders_enabled\": true,
    \"payment_receipts_enabled\": true,
    \"notes\": \"c\",
    \"default_invoice_notes\": \"p\",
    \"is_archived\": true
}"
const url = new URL(
    "https://tidybill.app/api/clients"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "email": "zbailey@example.net",
    "phone": "i",
    "address_line_1": "y",
    "address_line_2": "v",
    "city": "d",
    "state": "l",
    "postal_code": "jnikhwaykcmyuwpw",
    "country": "lv",
    "currency": "qwr",
    "payment_terms": 10,
    "late_fee_type": "flat",
    "late_fee_value": 86,
    "late_fee_days": 3,
    "reminders_enabled": true,
    "payment_receipts_enabled": true,
    "notes": "c",
    "default_invoice_notes": "p",
    "is_archived": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 7,
        "uuid": "d0174891-44ef-41ce-8e6e-01fb9acc4078",
        "name": "Koch PLC",
        "email": "ztromp@example.org",
        "phone": "+1-559-693-2083",
        "address_line_1": "981 Nitzsche Route Apt. 203",
        "address_line_2": null,
        "city": "Madisenborough",
        "state": "Montana",
        "postal_code": "77824",
        "country": "SO",
        "currency": "USD",
        "payment_terms": 30,
        "late_fee_type": null,
        "late_fee_value": null,
        "late_fee_days": null,
        "reminders_enabled": null,
        "payment_receipts_enabled": true,
        "notes": null,
        "default_invoice_notes": null,
        "is_archived": false,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/clients

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

Must not be greater than 255 characters. Example: b

email   string  optional    

Must be a valid email address. Must not be greater than 255 characters. Example: zbailey@example.net

phone   string  optional    

Must not be greater than 50 characters. Example: i

address_line_1   string  optional    

Must not be greater than 255 characters. Example: y

address_line_2   string  optional    

Must not be greater than 255 characters. Example: v

city   string  optional    

Must not be greater than 255 characters. Example: d

state   string  optional    

Must not be greater than 255 characters. Example: l

postal_code   string  optional    

Must not be greater than 20 characters. Example: jnikhwaykcmyuwpw

country   string  optional    

Must be 2 characters. Example: lv

currency   string  optional    

Must be 3 characters. Example: qwr

payment_terms   integer  optional    

Must be at least 0. Must not be greater than 365. Example: 10

late_fee_type   string  optional    

Example: flat

Must be one of:
  • percentage
  • percentage_balance
  • flat
  • none
late_fee_value   integer  optional    

Must be at least 0. Example: 86

late_fee_days   integer  optional    

Must be at least 0. Must not be greater than 90. Example: 3

reminders_enabled   boolean  optional    

Example: true

payment_receipts_enabled   boolean  optional    

Example: true

notes   string  optional    

Must not be greater than 5000 characters. Example: c

default_invoice_notes   string  optional    

Must not be greater than 2000 characters. Example: p

is_archived   boolean  optional    

Example: true

Update a client

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/clients/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\",
    \"phone\": \"i\",
    \"address_line_1\": \"y\",
    \"address_line_2\": \"v\",
    \"city\": \"d\",
    \"state\": \"l\",
    \"postal_code\": \"jnikhwaykcmyuwpw\",
    \"country\": \"lv\",
    \"currency\": \"qwr\",
    \"payment_terms\": 10,
    \"late_fee_type\": \"flat\",
    \"late_fee_value\": 86,
    \"late_fee_days\": 3,
    \"reminders_enabled\": true,
    \"payment_receipts_enabled\": true,
    \"notes\": \"c\",
    \"default_invoice_notes\": \"p\",
    \"is_archived\": false
}"
const url = new URL(
    "https://tidybill.app/api/clients/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "email": "zbailey@example.net",
    "phone": "i",
    "address_line_1": "y",
    "address_line_2": "v",
    "city": "d",
    "state": "l",
    "postal_code": "jnikhwaykcmyuwpw",
    "country": "lv",
    "currency": "qwr",
    "payment_terms": 10,
    "late_fee_type": "flat",
    "late_fee_value": 86,
    "late_fee_days": 3,
    "reminders_enabled": true,
    "payment_receipts_enabled": true,
    "notes": "c",
    "default_invoice_notes": "p",
    "is_archived": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 8,
        "uuid": "9188c70f-848b-480c-ab69-35090e9873d6",
        "name": "Koch PLC",
        "email": "ztromp@example.org",
        "phone": "+1-559-693-2083",
        "address_line_1": "981 Nitzsche Route Apt. 203",
        "address_line_2": null,
        "city": "Madisenborough",
        "state": "Montana",
        "postal_code": "77824",
        "country": "SO",
        "currency": "USD",
        "payment_terms": 30,
        "late_fee_type": null,
        "late_fee_value": null,
        "late_fee_days": null,
        "reminders_enabled": null,
        "payment_receipts_enabled": true,
        "notes": null,
        "default_invoice_notes": null,
        "is_archived": false,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z",
        "deleted_at": null
    }
}
 

Request      

PUT api/clients/{id}

PATCH api/clients/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the client. Example: 16

Body Parameters

name   string  optional    

Must not be greater than 255 characters. Example: b

email   string  optional    

Must be a valid email address. Must not be greater than 255 characters. Example: zbailey@example.net

phone   string  optional    

Must not be greater than 50 characters. Example: i

address_line_1   string  optional    

Must not be greater than 255 characters. Example: y

address_line_2   string  optional    

Must not be greater than 255 characters. Example: v

city   string  optional    

Must not be greater than 255 characters. Example: d

state   string  optional    

Must not be greater than 255 characters. Example: l

postal_code   string  optional    

Must not be greater than 20 characters. Example: jnikhwaykcmyuwpw

country   string  optional    

Must be 2 characters. Example: lv

currency   string  optional    

Must be 3 characters. Example: qwr

payment_terms   integer  optional    

Must be at least 0. Must not be greater than 365. Example: 10

late_fee_type   string  optional    

Example: flat

Must be one of:
  • percentage
  • percentage_balance
  • flat
  • none
late_fee_value   integer  optional    

Must be at least 0. Example: 86

late_fee_days   integer  optional    

Must be at least 0. Must not be greater than 90. Example: 3

reminders_enabled   boolean  optional    

Example: true

payment_receipts_enabled   boolean  optional    

Example: true

notes   string  optional    

Must not be greater than 5000 characters. Example: c

default_invoice_notes   string  optional    

Must not be greater than 2000 characters. Example: p

is_archived   boolean  optional    

Example: false

Delete a client

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/clients/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/clients/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the client. Example: 16

Move client to another company

requires authentication

Moves the client and all their associated invoices, quotes, recurring invoices, projects, time entries, and expenses to the target company in a single transaction.

Example request:
curl --request POST \
    "https://tidybill.app/api/clients/16/move" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16/move"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 9,
        "uuid": "8c3f172b-637c-4e1c-9f9c-b45c54c1bd1a",
        "name": "Price Ltd",
        "email": "dare.emelie@example.com",
        "phone": "+14324666067",
        "address_line_1": "26432 Leuschke Throughway Apt. 227",
        "address_line_2": null,
        "city": "Lake Audreyborough",
        "state": "Montana",
        "postal_code": "36080-0782",
        "country": "VG",
        "currency": "USD",
        "payment_terms": 30,
        "late_fee_type": null,
        "late_fee_value": null,
        "late_fee_days": null,
        "reminders_enabled": null,
        "payment_receipts_enabled": true,
        "notes": null,
        "default_invoice_notes": null,
        "is_archived": false,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z",
        "deleted_at": null
    }
}
 

Example response (422):


{
    "data": {
        "message": "Client is already in this company."
    }
}
 

Request      

POST api/clients/{client_id}/move

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

Get client stats

requires authentication

Returns total invoiced, total paid, outstanding balance (active invoices only), and total tracked hours for the client.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/clients/16/stats" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16/stats"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "total_invoiced": 10000,
        "total_paid": 5000,
        "outstanding": 5000,
        "total_hours": 12.5
    }
}
 

Request      

GET api/clients/{client_id}/stats

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

Get client statement data

requires authentication

Returns a list of non-draft, non-voided invoices for the date range with running balance, plus total invoiced, paid, and outstanding amounts.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/clients/16/statement?from=2026-01-01&to=2026-03-31" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"from\": \"2026-10-30T14:13:55\",
    \"to\": \"2026-10-30T14:13:55\"
}"
const url = new URL(
    "https://tidybill.app/api/clients/16/statement"
);

const params = {
    "from": "2026-01-01",
    "to": "2026-03-31",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "from": "2026-10-30T14:13:55",
    "to": "2026-10-30T14:13:55"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "client": {},
        "from": "2026-01-01",
        "to": "2026-03-31",
        "total_invoiced": 10000,
        "total_paid": 5000,
        "total_outstanding": 5000,
        "items": []
    }
}
 

Request      

GET api/clients/{client_id}/statement

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

Query Parameters

from   string  optional    

Start date (YYYY-MM-DD). Example: 2026-01-01

to   string  optional    

End date (YYYY-MM-DD). Example: 2026-03-31

Body Parameters

from   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:55

to   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:55

Download client statement as PDF

requires authentication

Generates a PDF statement using the company's default invoice template and streams it as a file download.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/clients/16/statement/pdf?from=2026-01-01&to=2026-03-31" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"from\": \"2026-10-30T14:13:55\",
    \"to\": \"2026-10-30T14:13:55\"
}"
const url = new URL(
    "https://tidybill.app/api/clients/16/statement/pdf"
);

const params = {
    "from": "2026-01-01",
    "to": "2026-03-31",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "from": "2026-10-30T14:13:55",
    "to": "2026-10-30T14:13:55"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, PDF binary):


{
    "content-type": "application/pdf"
}
 

Request      

GET api/clients/{client_id}/statement/pdf

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

Query Parameters

from   string  optional    

Start date (YYYY-MM-DD). Example: 2026-01-01

to   string  optional    

End date (YYYY-MM-DD). Example: 2026-03-31

Body Parameters

from   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:55

to   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:55

Send client statement by email

requires authentication

Generates the statement PDF and emails it to the supplied recipients, or the client's primary contact / email address when none are given. Accepts an optional note for a custom body and a cc list of additional recipients.

Example request:
curl --request POST \
    "https://tidybill.app/api/clients/16/statement/send" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"from\": \"2026-10-30T14:13:55\",
    \"to\": \"2026-10-30T14:13:55\",
    \"note\": \"b\",
    \"recipients\": [
        \"zbailey@example.net\"
    ],
    \"cc\": [
        \"gulgowski.asia@example.com\"
    ]
}"
const url = new URL(
    "https://tidybill.app/api/clients/16/statement/send"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "from": "2026-10-30T14:13:55",
    "to": "2026-10-30T14:13:55",
    "note": "b",
    "recipients": [
        "zbailey@example.net"
    ],
    "cc": [
        "gulgowski.asia@example.com"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "message": "Statement sent successfully."
}
 

Example response (422):


{
    "message": "Client has no email address."
}
 

Request      

POST api/clients/{client_id}/statement/send

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

Body Parameters

from   string     

Must be a valid date. Example: 2026-10-30T14:13:55

to   string     

Must be a valid date. Example: 2026-10-30T14:13:55

note   string  optional    

Must not be greater than 2000 characters. Example: b

recipients   string[]  optional    

Must be a valid email address.

cc   string[]  optional    

Must be a valid email address.

List client contacts

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/clients/16/contacts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16/contacts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "name": "Morgan Hirthe",
            "email": "dare.emelie@example.com",
            "phone": "+14324666067",
            "is_primary": false,
            "created_at": "2026-10-30T14:13:55.000000Z"
        },
        {
            "id": 2,
            "name": "Ms. Anais Conroy",
            "email": "moises37@example.com",
            "phone": "1-678-926-5062",
            "is_primary": false,
            "created_at": "2026-10-30T14:13:55.000000Z"
        }
    ]
}
 

Request      

GET api/clients/{client_id}/contacts

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

Get a client contact

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/clients/16/contacts/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16/contacts/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "name": "Morgan Hirthe",
        "email": "dare.emelie@example.com",
        "phone": "+14324666067",
        "is_primary": false,
        "created_at": "2026-10-30T14:13:55.000000Z"
    }
}
 

Request      

GET api/clients/{client_id}/contacts/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

id   integer     

The ID of the contact. Example: 16

Create a client contact

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/clients/16/contacts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\",
    \"phone\": \"i\",
    \"is_primary\": false
}"
const url = new URL(
    "https://tidybill.app/api/clients/16/contacts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "email": "zbailey@example.net",
    "phone": "i",
    "is_primary": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "name": "Mr. Gerhard Dach Jr.",
        "email": "lafayette.considine@example.com",
        "phone": "+1-626-249-0432",
        "is_primary": false,
        "created_at": "2026-10-30T14:13:55.000000Z"
    }
}
 

Request      

POST api/clients/{client_id}/contacts

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

Body Parameters

name   string     

Must not be greater than 255 characters. Example: b

email   string  optional    

Must be a valid email address. Must not be greater than 255 characters. Example: zbailey@example.net

phone   string  optional    

Must not be greater than 50 characters. Example: i

is_primary   boolean  optional    

Example: false

Update a client contact

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/clients/16/contacts/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\",
    \"phone\": \"i\",
    \"is_primary\": false
}"
const url = new URL(
    "https://tidybill.app/api/clients/16/contacts/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "email": "zbailey@example.net",
    "phone": "i",
    "is_primary": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 5,
        "name": "Mr. Gerhard Dach Jr.",
        "email": "lafayette.considine@example.com",
        "phone": "+1-626-249-0432",
        "is_primary": false,
        "created_at": "2026-10-30T14:13:55.000000Z"
    }
}
 

Request      

PUT api/clients/{client_id}/contacts/{id}

PATCH api/clients/{client_id}/contacts/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

id   integer     

The ID of the contact. Example: 16

Body Parameters

name   string     

Must not be greater than 255 characters. Example: b

email   string  optional    

Must be a valid email address. Must not be greater than 255 characters. Example: zbailey@example.net

phone   string  optional    

Must not be greater than 50 characters. Example: i

is_primary   boolean  optional    

Example: false

Delete a client contact

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/clients/16/contacts/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16/contacts/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/clients/{client_id}/contacts/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

id   integer     

The ID of the contact. Example: 16

Invoices

Export invoices as CSV or PDF.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/invoices/export

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Bulk action on invoices.

requires authentication

Supported actions: archive, unarchive, mark-sent (draft invoices only), delete (draft invoices only, also unbills linked time entries). Returns the count of affected records.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/bulk-action" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ],
    \"action\": \"mark-sent\"
}"
const url = new URL(
    "https://tidybill.app/api/invoices/bulk-action"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ],
    "action": "mark-sent"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "affected": 3
    }
}
 

Request      

POST api/invoices/bulk-action

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   integer[]  optional    
action   string     

Example: mark-sent

Must be one of:
  • archive
  • unarchive
  • mark-sent
  • send
  • delete
  • restore

Bulk record payments for multiple invoices.

requires authentication

Records a payment against each invoice in a single transaction. If send_notification is true, a payment received email is sent to each affected client whose payment_receipts_enabled is true.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/bulk-record-payment" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payments\": [
        {
            \"invoice_id\": 16,
            \"amount\": 22,
            \"payment_date\": \"2026-10-30T14:13:58\",
            \"payment_method\": \"2checkout\",
            \"reference\": \"g\",
            \"notes\": \"z\"
        }
    ],
    \"send_notification\": false
}"
const url = new URL(
    "https://tidybill.app/api/invoices/bulk-record-payment"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "payments": [
        {
            "invoice_id": 16,
            "amount": 22,
            "payment_date": "2026-10-30T14:13:58",
            "payment_method": "2checkout",
            "reference": "g",
            "notes": "z"
        }
    ],
    "send_notification": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "recorded": 2,
        "errors": []
    }
}
 

Request      

POST api/invoices/bulk-record-payment

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

payments   object[]     

Must have at least 1 items. Must not have more than 100 items.

invoice_id   integer     

Example: 16

amount   integer     

Must be at least 1. Must not be greater than 999999999. Example: 22

payment_date   string     

Must be a valid date. Example: 2026-10-30T14:13:58

payment_method   string  optional    

Example: 2checkout

Must be one of:
  • bank_transfer
  • card
  • cash
  • cheque
  • paypal
  • ach
  • 2checkout
  • other
reference   string  optional    

Must not be greater than 255 characters. Example: g

notes   string  optional    

Must not be greater than 1000 characters. Example: z

send_notification   boolean  optional    

Example: false

Download multiple invoices as a single zip of PDFs.

requires authentication

Accepts a comma-separated ids query parameter and streams a zip archive.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices/bulk-pdf" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": \"architecto\"
}"
const url = new URL(
    "https://tidybill.app/api/invoices/bulk-pdf"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": "architecto"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/invoices/bulk-pdf

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   string     

Example: architecto

List invoices.

requires authentication

Supports filtering by status, client_id, invoice_number, and a comma-separated ids list. Results are paginated and include aggregate totals (grouped by invoice currency) and status counts in the meta.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices?filter%5Bstatus%5D=sent&filter%5Bclient_id%5D=1&filter%5Binvoice_number%5D=INV-001&filter%5Bids%5D=1%2C2%2C3&sort=-issue_date" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices"
);

const params = {
    "filter[status]": "sent",
    "filter[client_id]": "1",
    "filter[invoice_number]": "INV-001",
    "filter[ids]": "1,2,3",
    "sort": "-issue_date",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "uuid": "502e306c-1439-4a4b-b486-77f9fdb89343",
            "client_id": 31,
            "recurring_invoice_id": null,
            "invoice_number": "INV-79198",
            "status": "draft",
            "is_archived": false,
            "status_label": "Draft",
            "status_color": "gray",
            "issue_date": "2026-10-30",
            "due_date": "2026-11-29",
            "currency": "USD",
            "subtotal": 0,
            "tax_total": 0,
            "discount_type": null,
            "discount_value": null,
            "discount_total": 0,
            "total": 0,
            "amount_paid": 0,
            "amount_due": 0,
            "notes": null,
            "terms": null,
            "footer": null,
            "sent_at": null,
            "viewed_at": null,
            "paid_at": null,
            "reported_paid_at": null,
            "reported_paid_amount": null,
            "late_fee_amount": 0,
            "late_fee_applied_at": null,
            "reminders_sent": 0,
            "company": {
                "name": "Hirthe Inc",
                "legal_name": null,
                "email": "emelie.baumbach@keebler.com",
                "phone": null,
                "address": null,
                "tax_number": null,
                "logo_path": null
            },
            "created_at": "2026-10-30T14:13:58.000000Z",
            "updated_at": "2026-10-30T14:13:58.000000Z",
            "deleted_at": null
        },
        {
            "id": 2,
            "uuid": "e87ecbe8-5b3e-42d8-9333-5a964ae640ae",
            "client_id": 32,
            "recurring_invoice_id": null,
            "invoice_number": "INV-21385",
            "status": "draft",
            "is_archived": false,
            "status_label": "Draft",
            "status_color": "gray",
            "issue_date": "2026-10-30",
            "due_date": "2026-11-29",
            "currency": "USD",
            "subtotal": 0,
            "tax_total": 0,
            "discount_type": null,
            "discount_value": null,
            "discount_total": 0,
            "total": 0,
            "amount_paid": 0,
            "amount_due": 0,
            "notes": null,
            "terms": null,
            "footer": null,
            "sent_at": null,
            "viewed_at": null,
            "paid_at": null,
            "reported_paid_at": null,
            "reported_paid_amount": null,
            "late_fee_amount": 0,
            "late_fee_applied_at": null,
            "reminders_sent": 0,
            "company": {
                "name": "Schmidt PLC",
                "legal_name": null,
                "email": "doris.franecki@little.net",
                "phone": null,
                "address": null,
                "tax_number": null,
                "logo_path": null
            },
            "created_at": "2026-10-30T14:13:58.000000Z",
            "updated_at": "2026-10-30T14:13:58.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/invoices

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

filter[status]   string  optional    

Filter by status. Example: sent

filter[client_id]   integer  optional    

Filter by client ID. Example: 1

filter[invoice_number]   string  optional    

Partial match on invoice number. Example: INV-001

filter[ids]   string  optional    

Comma-separated list of invoice IDs. Example: 1,2,3

sort   string  optional    

Sort field (prefix with - for descending). Example: -issue_date

Get an invoice.

requires authentication

Includes the client, all line items (including late fee items), and payment records.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "uuid": "cfbd03ad-7acd-40ab-b0ea-ab0c99763f95",
        "client_id": 33,
        "recurring_invoice_id": null,
        "invoice_number": "INV-54634",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Cronin, Dare and Hauck",
            "legal_name": null,
            "email": "leo34@leuschke.info",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:58.000000Z",
        "updated_at": "2026-10-30T14:13:58.000000Z",
        "deleted_at": null
    }
}
 

Request      

GET api/invoices/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Create an invoice.

requires authentication

Creates a draft invoice. Pass a line_items array to create and attach line items in the same request.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"client_id\": \"architecto\",
    \"issue_date\": \"2026-10-30T14:13:58\",
    \"due_date\": \"2052-11-22\",
    \"currency\": \"ngz\",
    \"discount_type\": \"fixed\",
    \"discount_value\": 16,
    \"notes\": \"n\",
    \"terms\": \"g\",
    \"footer\": \"z\",
    \"is_archived\": true,
    \"buyer_reference\": \"m\",
    \"purchase_order_reference\": \"i\",
    \"contract_reference\": \"y\",
    \"line_items\": [
        {
            \"id\": 16,
            \"description\": \"Et animi quos velit et fugiat.\",
            \"quantity\": 4326.41688,
            \"unit_price\": 4326.41688,
            \"tax_name\": \"m\",
            \"tax_rate\": 15,
            \"tax_category\": \"K\",
            \"sort_order\": 16,
            \"account_code\": \"n\",
            \"rebill_vendor_id\": 16,
            \"tax_details\": {
                \"unit_code\": \"ngzmiy\",
                \"tax_exemption_reason_code\": \"v\",
                \"tax_exemption_reason\": \"d\"
            },
            \"time_entry_id\": 16,
            \"expense_id\": 16
        }
    ]
}"
const url = new URL(
    "https://tidybill.app/api/invoices"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "client_id": "architecto",
    "issue_date": "2026-10-30T14:13:58",
    "due_date": "2052-11-22",
    "currency": "ngz",
    "discount_type": "fixed",
    "discount_value": 16,
    "notes": "n",
    "terms": "g",
    "footer": "z",
    "is_archived": true,
    "buyer_reference": "m",
    "purchase_order_reference": "i",
    "contract_reference": "y",
    "line_items": [
        {
            "id": 16,
            "description": "Et animi quos velit et fugiat.",
            "quantity": 4326.41688,
            "unit_price": 4326.41688,
            "tax_name": "m",
            "tax_rate": 15,
            "tax_category": "K",
            "sort_order": 16,
            "account_code": "n",
            "rebill_vendor_id": 16,
            "tax_details": {
                "unit_code": "ngzmiy",
                "tax_exemption_reason_code": "v",
                "tax_exemption_reason": "d"
            },
            "time_entry_id": 16,
            "expense_id": 16
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "uuid": "6d2df434-7a67-4b00-897f-f912b565b009",
        "client_id": 34,
        "recurring_invoice_id": null,
        "invoice_number": "INV-70546",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Crooks LLC",
            "legal_name": null,
            "email": "gulgowski.asia@dach.com",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:58.000000Z",
        "updated_at": "2026-10-30T14:13:58.000000Z",
        "deleted_at": null
    },
    "status": "201"
}
 

Request      

POST api/invoices

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

client_id   string     

Must match an existing stored value. Example: architecto

issue_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:58

due_date   string  optional    

Must be a valid date. Must be a date after or equal to issue_date. Example: 2052-11-22

currency   string  optional    

Must be 3 characters. Example: ngz

discount_type   string  optional    

Example: fixed

Must be one of:
  • percentage
  • fixed
discount_value   integer  optional    

Example: 16

notes   string  optional    

Must not be greater than 2000 characters. Example: n

terms   string  optional    

Must not be greater than 2000 characters. Example: g

footer   string  optional    

Must not be greater than 500 characters. Example: z

is_archived   boolean  optional    

Example: true

buyer_reference   string  optional    

Must not be greater than 100 characters. Example: m

purchase_order_reference   string  optional    

Must not be greater than 100 characters. Example: i

contract_reference   string  optional    

Must not be greater than 100 characters. Example: y

line_items   object[]  optional    

Must not have more than 500 items.

id   integer  optional    

Example: 16

description   string     

Must not be greater than 1000 characters. Example: Et animi quos velit et fugiat.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

service_id   string  optional    

Must match an existing stored value.

tax_name   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate   number  optional    

Must be at least 0. Must not be greater than 100. Example: 15

tax_category   string  optional    

Example: K

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

rebill_vendor_id   integer  optional    

Must match an existing stored value. Example: 16

tax_details   object  optional    
unit_code   string  optional    

Must not be greater than 10 characters. Example: ngzmiy

tax_exemption_reason_code   string  optional    

Must not be greater than 50 characters. Example: v

tax_exemption_reason   string  optional    

Must not be greater than 500 characters. Example: d

time_entry_id   integer  optional    

Example: 16

expense_id   integer  optional    

Example: 16

Update an invoice.

requires authentication

If line_items is provided, the full set of line items is synced (added, updated, and removed). Omit line_items to update invoice fields only without touching line items.

Example request:
curl --request PUT \
    "https://tidybill.app/api/invoices/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"issue_date\": \"2026-10-30T14:13:58\",
    \"due_date\": \"2052-11-22\",
    \"currency\": \"ngz\",
    \"discount_type\": \"fixed\",
    \"discount_value\": 16,
    \"notes\": \"n\",
    \"terms\": \"g\",
    \"footer\": \"z\",
    \"is_archived\": false,
    \"buyer_reference\": \"m\",
    \"purchase_order_reference\": \"i\",
    \"contract_reference\": \"y\",
    \"line_items\": [
        {
            \"id\": 16,
            \"description\": \"Et animi quos velit et fugiat.\",
            \"quantity\": 4326.41688,
            \"unit_price\": 4326.41688,
            \"tax_name\": \"m\",
            \"tax_rate\": 15,
            \"tax_category\": \"AE\",
            \"sort_order\": 16,
            \"account_code\": \"n\",
            \"rebill_vendor_id\": 16,
            \"tax_details\": {
                \"unit_code\": \"ngzmiy\",
                \"tax_exemption_reason_code\": \"v\",
                \"tax_exemption_reason\": \"d\"
            },
            \"time_entry_id\": 16,
            \"expense_id\": 16
        }
    ]
}"
const url = new URL(
    "https://tidybill.app/api/invoices/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "issue_date": "2026-10-30T14:13:58",
    "due_date": "2052-11-22",
    "currency": "ngz",
    "discount_type": "fixed",
    "discount_value": 16,
    "notes": "n",
    "terms": "g",
    "footer": "z",
    "is_archived": false,
    "buyer_reference": "m",
    "purchase_order_reference": "i",
    "contract_reference": "y",
    "line_items": [
        {
            "id": 16,
            "description": "Et animi quos velit et fugiat.",
            "quantity": 4326.41688,
            "unit_price": 4326.41688,
            "tax_name": "m",
            "tax_rate": 15,
            "tax_category": "AE",
            "sort_order": 16,
            "account_code": "n",
            "rebill_vendor_id": 16,
            "tax_details": {
                "unit_code": "ngzmiy",
                "tax_exemption_reason_code": "v",
                "tax_exemption_reason": "d"
            },
            "time_entry_id": 16,
            "expense_id": 16
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 5,
        "uuid": "ac553dc6-aca1-4ddd-bfc1-a8c53ab81cf7",
        "client_id": 35,
        "recurring_invoice_id": null,
        "invoice_number": "INV-63526",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Okuneva, Rempel and Gulgowski",
            "legal_name": null,
            "email": "justina.gaylord@dickens.com",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:58.000000Z",
        "updated_at": "2026-10-30T14:13:58.000000Z",
        "deleted_at": null
    }
}
 

Request      

PUT api/invoices/{id}

PATCH api/invoices/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Body Parameters

client_id   string  optional    

Must match an existing stored value.

issue_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:58

due_date   string  optional    

Must be a valid date. Must be a date after or equal to issue_date. Example: 2052-11-22

currency   string  optional    

Must be 3 characters. Example: ngz

discount_type   string  optional    

Example: fixed

Must be one of:
  • percentage
  • fixed
discount_value   integer  optional    

Example: 16

notes   string  optional    

Must not be greater than 2000 characters. Example: n

terms   string  optional    

Must not be greater than 2000 characters. Example: g

footer   string  optional    

Must not be greater than 500 characters. Example: z

is_archived   boolean  optional    

Example: false

buyer_reference   string  optional    

Must not be greater than 100 characters. Example: m

purchase_order_reference   string  optional    

Must not be greater than 100 characters. Example: i

contract_reference   string  optional    

Must not be greater than 100 characters. Example: y

line_items   object[]  optional    

Must not have more than 500 items.

id   integer  optional    

Example: 16

description   string     

Must not be greater than 1000 characters. Example: Et animi quos velit et fugiat.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

service_id   string  optional    

Must match an existing stored value.

tax_name   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate   number  optional    

Must be at least 0. Must not be greater than 100. Example: 15

tax_category   string  optional    

Example: AE

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

rebill_vendor_id   integer  optional    

Must match an existing stored value. Example: 16

tax_details   object  optional    
unit_code   string  optional    

Must not be greater than 10 characters. Example: ngzmiy

tax_exemption_reason_code   string  optional    

Must not be greater than 50 characters. Example: v

tax_exemption_reason   string  optional    

Must not be greater than 500 characters. Example: d

time_entry_id   integer  optional    

Example: 16

expense_id   integer  optional    

Example: 16

Delete an invoice.

requires authentication

Soft deletes the invoice and marks any linked time entries as unbilled so they can be re-invoiced.

Example request:
curl --request DELETE \
    "https://tidybill.app/api/invoices/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/invoices/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

List line items for an invoice.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices/16/line-items" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/line-items"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "service_id": null,
            "time_entry_id": null,
            "expense_id": null,
            "rebill_vendor_id": null,
            "description": "Nostrum qui commodi incidunt iure.",
            "quantity": 1.02,
            "unit_price": "13053.000000",
            "amount": 13314,
            "tax_name_1": null,
            "tax_rate_1": null,
            "tax_amount_1": 0,
            "tax_name_2": null,
            "tax_rate_2": null,
            "tax_amount_2": 0,
            "tax_category": null,
            "tax_category_applied": "S",
            "sort_order": 0,
            "is_late_fee": false,
            "created_at": "2026-10-30T14:13:58.000000Z",
            "updated_at": "2026-10-30T14:13:58.000000Z"
        },
        {
            "id": 2,
            "service_id": null,
            "time_entry_id": null,
            "expense_id": null,
            "rebill_vendor_id": null,
            "description": "Nemo voluptate accusamus ut et.",
            "quantity": 8.73,
            "unit_price": "36405.000000",
            "amount": 317816,
            "tax_name_1": null,
            "tax_rate_1": null,
            "tax_amount_1": 0,
            "tax_name_2": null,
            "tax_rate_2": null,
            "tax_amount_2": 0,
            "tax_category": null,
            "tax_category_applied": "S",
            "sort_order": 0,
            "is_late_fee": false,
            "created_at": "2026-10-30T14:13:59.000000Z",
            "updated_at": "2026-10-30T14:13:59.000000Z"
        }
    ]
}
 

Request      

GET api/invoices/{invoice_id}/line-items

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Add a line item to an invoice.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/line-items" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Eius et animi quos velit et.\",
    \"quantity\": 4326.41688,
    \"unit_price\": 4326.41688,
    \"tax_name_1\": \"m\",
    \"tax_rate_1\": 15,
    \"tax_name_2\": \"y\",
    \"tax_rate_2\": 1,
    \"tax_category\": \"G\",
    \"sort_order\": 16,
    \"account_code\": \"n\"
}"
const url = new URL(
    "https://tidybill.app/api/invoices/16/line-items"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Eius et animi quos velit et.",
    "quantity": 4326.41688,
    "unit_price": 4326.41688,
    "tax_name_1": "m",
    "tax_rate_1": 15,
    "tax_name_2": "y",
    "tax_rate_2": 1,
    "tax_category": "G",
    "sort_order": 16,
    "account_code": "n"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "service_id": null,
        "time_entry_id": null,
        "expense_id": null,
        "rebill_vendor_id": null,
        "description": "Velit et fugiat sunt nihil accusantium.",
        "quantity": 3.2,
        "unit_price": "2681.000000",
        "amount": 8579,
        "tax_name_1": null,
        "tax_rate_1": null,
        "tax_amount_1": 0,
        "tax_name_2": null,
        "tax_rate_2": null,
        "tax_amount_2": 0,
        "tax_category": null,
        "tax_category_applied": "S",
        "sort_order": 0,
        "is_late_fee": false,
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z"
    },
    "status": "201"
}
 

Request      

POST api/invoices/{invoice_id}/line-items

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Body Parameters

service_id   string  optional    

Must match an existing stored value.

description   string     

Must not be greater than 1000 characters. Example: Eius et animi quos velit et.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

tax_name_1   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate_1   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 15

tax_name_2   string  optional    

Must not be greater than 50 characters. Example: y

tax_rate_2   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 1

tax_category   string  optional    

Example: G

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

Update a line item on an invoice.

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/invoices/16/line-items/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Eius et animi quos velit et.\",
    \"quantity\": 4326.41688,
    \"unit_price\": 4326.41688,
    \"tax_name_1\": \"m\",
    \"tax_rate_1\": 15,
    \"tax_name_2\": \"y\",
    \"tax_rate_2\": 1,
    \"tax_category\": \"G\",
    \"sort_order\": 16,
    \"account_code\": \"n\"
}"
const url = new URL(
    "https://tidybill.app/api/invoices/16/line-items/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Eius et animi quos velit et.",
    "quantity": 4326.41688,
    "unit_price": 4326.41688,
    "tax_name_1": "m",
    "tax_rate_1": 15,
    "tax_name_2": "y",
    "tax_rate_2": 1,
    "tax_category": "G",
    "sort_order": 16,
    "account_code": "n"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "service_id": null,
        "time_entry_id": null,
        "expense_id": null,
        "rebill_vendor_id": null,
        "description": "Velit et fugiat sunt nihil accusantium.",
        "quantity": 3.2,
        "unit_price": "2681.000000",
        "amount": 8579,
        "tax_name_1": null,
        "tax_rate_1": null,
        "tax_amount_1": 0,
        "tax_name_2": null,
        "tax_rate_2": null,
        "tax_amount_2": 0,
        "tax_category": null,
        "tax_category_applied": "S",
        "sort_order": 0,
        "is_late_fee": false,
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z"
    }
}
 

Request      

PUT api/invoices/{invoice_id}/line-items/{lineItem_id}

PATCH api/invoices/{invoice_id}/line-items/{lineItem_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

lineItem_id   integer     

The ID of the lineItem. Example: 16

invoice   integer     

The invoice ID. Example: 1

lineItem   integer     

The line item ID. Example: 1

Body Parameters

service_id   string  optional    

Must match an existing stored value.

description   string     

Must not be greater than 1000 characters. Example: Eius et animi quos velit et.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

tax_name_1   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate_1   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 15

tax_name_2   string  optional    

Must not be greater than 50 characters. Example: y

tax_rate_2   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 1

tax_category   string  optional    

Example: G

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

Delete a line item from an invoice.

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/invoices/16/line-items/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/line-items/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/invoices/{invoice_id}/line-items/{lineItem_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

lineItem_id   integer     

The ID of the lineItem. Example: 16

invoice   integer     

The invoice ID. Example: 1

lineItem   integer     

The line item ID. Example: 1

Restore a deleted invoice.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {}
}
 

Request      

POST api/invoices/{invoice_id}/restore

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Archive an invoice.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/archive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/archive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/invoices/{invoice_id}/archive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Unarchive an invoice.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/unarchive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/unarchive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/invoices/{invoice_id}/unarchive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Move an invoice to another company.

requires authentication

The authenticated user must have access to the target company. Reassigns the invoice, its payments, credits, time entries, and expenses to the target company.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/move" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/move"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 10,
        "uuid": "b3fdf0db-1e4e-4f5d-9088-ef9cd21bc5dd",
        "client_id": 40,
        "recurring_invoice_id": null,
        "invoice_number": "INV-80304",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Dare Group",
            "legal_name": null,
            "email": "leo34@leuschke.info",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/invoices/{invoice_id}/move

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Import time entries as line items onto an invoice.

requires authentication

Converts the specified unbilled time entries into invoice line items and marks them as billed. Accepts an array of time_entry_ids.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/import-time" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"time_entry_ids\": [
        16
    ]
}"
const url = new URL(
    "https://tidybill.app/api/invoices/16/import-time"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "time_entry_ids": [
        16
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 11,
        "uuid": "567fc0b0-6942-45b8-a9e8-89e741010773",
        "client_id": 41,
        "recurring_invoice_id": null,
        "invoice_number": "INV-24492",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Rempel, Gulgowski and O'Kon",
            "legal_name": null,
            "email": "jdach@dickens.com",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/invoices/{invoice_id}/import-time

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Body Parameters

time_entry_ids   integer[]  optional    

Must match an existing stored value.

Import expenses as line items onto an invoice.

requires authentication

Converts the specified unbilled expenses into invoice line items and marks them as billed. Accepts an array of expense_ids.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/import-expenses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"expense_ids\": [
        16
    ]
}"
const url = new URL(
    "https://tidybill.app/api/invoices/16/import-expenses"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "expense_ids": [
        16
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 12,
        "uuid": "343e600f-3bc7-4ac0-bd61-5ac90f162a0a",
        "client_id": 42,
        "recurring_invoice_id": null,
        "invoice_number": "INV-45117",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Gulgowski-O'Kon",
            "legal_name": null,
            "email": "jdach@dickens.com",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/invoices/{invoice_id}/import-expenses

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Body Parameters

expense_ids   integer[]  optional    

Must match an existing stored value.

Send an invoice by email.

requires authentication

Sends the invoice to the client's contacts (or explicitly chosen recipients) and transitions a draft invoice to sent status. Returns 422 when there is no recipient email address for the client.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/send" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"recipients\": [
        \"gbailey@example.net\"
    ],
    \"cc\": [
        \"rempel.chadrick@example.org\"
    ]
}"
const url = new URL(
    "https://tidybill.app/api/invoices/16/send"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "recipients": [
        "gbailey@example.net"
    ],
    "cc": [
        "rempel.chadrick@example.org"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 13,
        "uuid": "c6fb6bc5-d626-4780-8c67-79807709cb96",
        "client_id": 43,
        "recurring_invoice_id": null,
        "invoice_number": "INV-85495",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Dickens PLC",
            "legal_name": null,
            "email": "mya96@cormier.com",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/invoices/{invoice_id}/send

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Body Parameters

recipients   string[]  optional    

Must be a valid email address.

cc   string[]  optional    

Must be a valid email address.

Send an invoice over WhatsApp.

requires authentication

Builds a WhatsApp click-to-chat link (wa.me) to the given phone number, prefilled with the invoice number, total, due date and client portal link. Tidybill sends nothing itself: the user's own WhatsApp opens the chat. A draft invoice transitions to sent. National numbers are resolved against the client's country, falling back to the company's. Requires a plan with the client portal. Returns 422 when the phone number is not valid.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/whatsapp" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"phone\": \"+27 72 194 3546\"
}"
const url = new URL(
    "https://tidybill.app/api/invoices/16/whatsapp"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "phone": "+27 72 194 3546"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "url": "https://wa.me/27721943546?text=Hi%20Acme%2C...",
        "invoice": {
            "id": 1,
            "status": "sent"
        }
    }
}
 

Example response (422):


{
    "message": "Enter a valid mobile number, including the country code."
}
 

Request      

POST api/invoices/{invoice_id}/whatsapp

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Body Parameters

phone   string     

The recipient's mobile number, international or national format. Example: +27 72 194 3546

Mark an invoice as sent without emailing.

requires authentication

Transitions the invoice status to sent and logs the activity, but does not send any email to the client.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/mark-sent" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/mark-sent"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 14,
        "uuid": "cc63c20c-af24-42a7-a4ba-7da8d1e7f799",
        "client_id": 44,
        "recurring_invoice_id": null,
        "invoice_number": "INV-14650",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Hauck-Leuschke",
            "legal_name": null,
            "email": "alayna44@bauch.com",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/invoices/{invoice_id}/mark-sent

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Mark an invoice as fully paid.

requires authentication

Sets amount_paid to the invoice total and amount_due to zero in a single transaction, then transitions the status to paid.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/mark-paid" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/mark-paid"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 15,
        "uuid": "9a494925-7307-459d-8255-c59b57ddef4a",
        "client_id": 45,
        "recurring_invoice_id": null,
        "invoice_number": "INV-62492",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Leuschke Inc",
            "legal_name": null,
            "email": "imclaughlin@bauch.com",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/invoices/{invoice_id}/mark-paid

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Record a payment against an invoice.

requires authentication

Records a partial or full payment and updates amount_paid and amount_due. Automatically transitions the invoice to partial or paid status based on the remaining balance.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/record-payment" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 1,
    \"payment_date\": \"2026-10-30T14:13:59\",
    \"payment_method\": \"paypal\",
    \"reference\": \"n\",
    \"notes\": \"g\",
    \"send_notification\": true
}"
const url = new URL(
    "https://tidybill.app/api/invoices/16/record-payment"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "amount": 1,
    "payment_date": "2026-10-30T14:13:59",
    "payment_method": "paypal",
    "reference": "n",
    "notes": "g",
    "send_notification": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 16,
        "uuid": "114d241d-77e7-4383-a876-aeb8a02a3c3c",
        "client_id": 46,
        "recurring_invoice_id": null,
        "invoice_number": "INV-26855",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "O'Kon and Sons",
            "legal_name": null,
            "email": "jermaine.tillman@runte.com",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/invoices/{invoice_id}/record-payment

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Body Parameters

amount   integer     

Must be at least 1. Must not be greater than 999999999. Example: 1

payment_date   string     

Must be a valid date. Example: 2026-10-30T14:13:59

payment_method   string  optional    

Example: paypal

Must be one of:
  • bank_transfer
  • card
  • cash
  • cheque
  • paypal
  • ach
  • 2checkout
  • other
reference   string  optional    

Must not be greater than 255 characters. Example: n

notes   string  optional    

Must not be greater than 2000 characters. Example: g

send_notification   boolean  optional    

Example: true

Resend the payment receipt to the client.

requires authentication

Re-queues the payment-received email summarising all payments on this invoice. Returns 422 if the invoice has no recorded payments or the client has no email.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/resend-receipt" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/resend-receipt"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "message": "Receipt sent."
    }
}
 

Request      

POST api/invoices/{invoice_id}/resend-receipt

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Void an invoice.

requires authentication

Transitions the invoice to cancelled status and marks any linked time entries as unbilled so they can be re-invoiced.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/void" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/void"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 19,
        "uuid": "b969c24a-140f-4a4a-9138-676a43e388e0",
        "client_id": 49,
        "recurring_invoice_id": null,
        "invoice_number": "INV-30805",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Keebler LLC",
            "legal_name": null,
            "email": "bauch.marcelo@predovic.biz",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/invoices/{invoice_id}/void

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Duplicate an invoice.

requires authentication

Creates a new draft invoice with the same line items and client as the original, assigned the next available invoice number.

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/duplicate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/duplicate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 20,
        "uuid": "28096aa7-c9e5-42f7-a37d-4fbf83ea8a60",
        "client_id": 50,
        "recurring_invoice_id": null,
        "invoice_number": "INV-93082",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "McLaughlin, Leuschke and Bauch",
            "legal_name": null,
            "email": "okeefe.isidro@mclaughlin.info",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    },
    "status": "201"
}
 

Request      

POST api/invoices/{invoice_id}/duplicate

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Download invoice as PDF.

requires authentication

Generates the invoice PDF on demand and streams it inline using the company's default template.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices/16/pdf" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/pdf"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, PDF file download):

Binary data - 
 

Request      

GET api/invoices/{invoice_id}/pdf

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

invoice   integer     

The invoice ID. Example: 1

Quotes

Export quotes as CSV or PDF.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/quotes/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/quotes/export

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Bulk action on quotes.

requires authentication

Supported actions: archive, unarchive, mark-sent (draft quotes only), delete (draft quotes only). Returns the count of affected records.

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/bulk-action" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ],
    \"action\": \"delete\"
}"
const url = new URL(
    "https://tidybill.app/api/quotes/bulk-action"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ],
    "action": "delete"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "affected": 3
    }
}
 

Request      

POST api/quotes/bulk-action

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   integer[]  optional    
action   string     

Example: delete

Must be one of:
  • archive
  • unarchive
  • mark-sent
  • delete
  • restore

List quotes.

requires authentication

Supports filtering by status, client_id, and quote_number. Results are paginated and include active/archived counts in the meta.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/quotes?filter%5Bstatus%5D=sent&filter%5Bclient_id%5D=1&filter%5Bquote_number%5D=QUO-001&sort=-issue_date" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes"
);

const params = {
    "filter[status]": "sent",
    "filter[client_id]": "1",
    "filter[quote_number]": "QUO-001",
    "sort": "-issue_date",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 4,
            "uuid": "473407b8-a660-4dc4-9a25-fde74d6cbe40",
            "client_id": 51,
            "quote_number": "QUO-92439",
            "status": "draft",
            "is_archived": false,
            "status_label": "Draft",
            "status_color": "gray",
            "issue_date": "2026-10-30",
            "expiry_date": "2026-11-29",
            "currency": "USD",
            "subtotal": 0,
            "tax_total": 0,
            "discount_type": null,
            "discount_value": null,
            "discount_total": 0,
            "total": 0,
            "notes": null,
            "terms": null,
            "footer": null,
            "sent_at": null,
            "viewed_at": null,
            "accepted_at": null,
            "declined_at": null,
            "converted_to_invoice_id": null,
            "converted_to_project_id": null,
            "pdf_path": null,
            "created_at": "2026-10-30T14:13:59.000000Z",
            "updated_at": "2026-10-30T14:13:59.000000Z",
            "deleted_at": null
        },
        {
            "id": 5,
            "uuid": "43162b07-1cb2-4892-9f71-5ef0e46e9cac",
            "client_id": 52,
            "quote_number": "QUO-09313",
            "status": "draft",
            "is_archived": false,
            "status_label": "Draft",
            "status_color": "gray",
            "issue_date": "2026-10-30",
            "expiry_date": "2026-11-29",
            "currency": "USD",
            "subtotal": 0,
            "tax_total": 0,
            "discount_type": null,
            "discount_value": null,
            "discount_total": 0,
            "total": 0,
            "notes": null,
            "terms": null,
            "footer": null,
            "sent_at": null,
            "viewed_at": null,
            "accepted_at": null,
            "declined_at": null,
            "converted_to_invoice_id": null,
            "converted_to_project_id": null,
            "pdf_path": null,
            "created_at": "2026-10-30T14:13:59.000000Z",
            "updated_at": "2026-10-30T14:13:59.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/quotes

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

filter[status]   string  optional    

Filter by status. Example: sent

filter[client_id]   integer  optional    

Filter by client ID. Example: 1

filter[quote_number]   string  optional    

Partial match on quote number. Example: QUO-001

sort   string  optional    

Sort field (prefix with - for descending). Example: -issue_date

Get a quote.

requires authentication

Includes the client and all line items.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/quotes/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 6,
        "uuid": "1f1010a9-c03e-4cda-97fa-f2dee2a6059c",
        "client_id": 53,
        "quote_number": "QUO-47352",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "expiry_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "accepted_at": null,
        "declined_at": null,
        "converted_to_invoice_id": null,
        "converted_to_project_id": null,
        "pdf_path": null,
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

GET api/quotes/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Create a quote.

requires authentication

Creates a draft quote. Pass a line_items array to create and attach line items in the same request.

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"client_id\": \"architecto\",
    \"issue_date\": \"2026-10-30T14:14:00\",
    \"expiry_date\": \"2052-11-22\",
    \"currency\": \"ngz\",
    \"discount_type\": \"fixed\",
    \"discount_value\": 16,
    \"notes\": \"n\",
    \"terms\": \"g\",
    \"footer\": \"z\",
    \"is_archived\": true,
    \"line_items\": [
        {
            \"id\": 16,
            \"description\": \"Et animi quos velit et fugiat.\",
            \"quantity\": 4326.41688,
            \"unit_price\": 4326.41688,
            \"tax_name\": \"m\",
            \"tax_rate\": 15,
            \"tax_category\": \"Z\",
            \"sort_order\": 16,
            \"account_code\": \"n\",
            \"rebill_vendor_id\": 16,
            \"tax_details\": {
                \"unit_code\": \"ngzmiy\",
                \"tax_exemption_reason_code\": \"v\",
                \"tax_exemption_reason\": \"d\"
            }
        }
    ]
}"
const url = new URL(
    "https://tidybill.app/api/quotes"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "client_id": "architecto",
    "issue_date": "2026-10-30T14:14:00",
    "expiry_date": "2052-11-22",
    "currency": "ngz",
    "discount_type": "fixed",
    "discount_value": 16,
    "notes": "n",
    "terms": "g",
    "footer": "z",
    "is_archived": true,
    "line_items": [
        {
            "id": 16,
            "description": "Et animi quos velit et fugiat.",
            "quantity": 4326.41688,
            "unit_price": 4326.41688,
            "tax_name": "m",
            "tax_rate": 15,
            "tax_category": "Z",
            "sort_order": 16,
            "account_code": "n",
            "rebill_vendor_id": 16,
            "tax_details": {
                "unit_code": "ngzmiy",
                "tax_exemption_reason_code": "v",
                "tax_exemption_reason": "d"
            }
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 7,
        "uuid": "5d0985ff-7bab-4906-83af-f623cafa2c14",
        "client_id": 54,
        "quote_number": "QUO-88051",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "expiry_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "accepted_at": null,
        "declined_at": null,
        "converted_to_invoice_id": null,
        "converted_to_project_id": null,
        "pdf_path": null,
        "created_at": "2026-10-30T14:14:00.000000Z",
        "updated_at": "2026-10-30T14:14:00.000000Z",
        "deleted_at": null
    },
    "status": "201"
}
 

Request      

POST api/quotes

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

client_id   string     

Must match an existing stored value. Example: architecto

issue_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:14:00

expiry_date   string  optional    

Must be a valid date. Must be a date after or equal to issue_date. Example: 2052-11-22

currency   string  optional    

Must be 3 characters. Example: ngz

discount_type   string  optional    

Example: fixed

Must be one of:
  • percentage
  • fixed
discount_value   integer  optional    

Example: 16

notes   string  optional    

Must not be greater than 2000 characters. Example: n

terms   string  optional    

Must not be greater than 2000 characters. Example: g

footer   string  optional    

Must not be greater than 500 characters. Example: z

is_archived   boolean  optional    

Example: true

line_items   object[]  optional    

Must not have more than 500 items.

id   integer  optional    

Example: 16

description   string     

Must not be greater than 1000 characters. Example: Et animi quos velit et fugiat.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

service_id   string  optional    

Must match an existing stored value.

tax_name   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate   number  optional    

Must be at least 0. Must not be greater than 100. Example: 15

tax_category   string  optional    

Example: Z

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

rebill_vendor_id   integer  optional    

Must match an existing stored value. Example: 16

tax_details   object  optional    
unit_code   string  optional    

Must not be greater than 10 characters. Example: ngzmiy

tax_exemption_reason_code   string  optional    

Must not be greater than 50 characters. Example: v

tax_exemption_reason   string  optional    

Must not be greater than 500 characters. Example: d

Update a quote.

requires authentication

If line_items is provided, the full set of line items is synced. Omit line_items to update quote fields only without touching line items.

Example request:
curl --request PUT \
    "https://tidybill.app/api/quotes/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"issue_date\": \"2026-10-30T14:14:00\",
    \"expiry_date\": \"2052-11-22\",
    \"currency\": \"ngz\",
    \"discount_type\": \"fixed\",
    \"discount_value\": 16,
    \"notes\": \"n\",
    \"terms\": \"g\",
    \"footer\": \"z\",
    \"is_archived\": true,
    \"line_items\": [
        {
            \"id\": 16,
            \"description\": \"Et animi quos velit et fugiat.\",
            \"quantity\": 4326.41688,
            \"unit_price\": 4326.41688,
            \"tax_name\": \"m\",
            \"tax_rate\": 15,
            \"tax_category\": \"K\",
            \"sort_order\": 16,
            \"account_code\": \"n\",
            \"rebill_vendor_id\": 16,
            \"tax_details\": {
                \"unit_code\": \"ngzmiy\",
                \"tax_exemption_reason_code\": \"v\",
                \"tax_exemption_reason\": \"d\"
            }
        }
    ]
}"
const url = new URL(
    "https://tidybill.app/api/quotes/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "issue_date": "2026-10-30T14:14:00",
    "expiry_date": "2052-11-22",
    "currency": "ngz",
    "discount_type": "fixed",
    "discount_value": 16,
    "notes": "n",
    "terms": "g",
    "footer": "z",
    "is_archived": true,
    "line_items": [
        {
            "id": 16,
            "description": "Et animi quos velit et fugiat.",
            "quantity": 4326.41688,
            "unit_price": 4326.41688,
            "tax_name": "m",
            "tax_rate": 15,
            "tax_category": "K",
            "sort_order": 16,
            "account_code": "n",
            "rebill_vendor_id": 16,
            "tax_details": {
                "unit_code": "ngzmiy",
                "tax_exemption_reason_code": "v",
                "tax_exemption_reason": "d"
            }
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 8,
        "uuid": "5a28665f-1259-474c-bb24-c52e1a627ab8",
        "client_id": 55,
        "quote_number": "QUO-40109",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "expiry_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "accepted_at": null,
        "declined_at": null,
        "converted_to_invoice_id": null,
        "converted_to_project_id": null,
        "pdf_path": null,
        "created_at": "2026-10-30T14:14:00.000000Z",
        "updated_at": "2026-10-30T14:14:00.000000Z",
        "deleted_at": null
    }
}
 

Request      

PUT api/quotes/{id}

PATCH api/quotes/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Body Parameters

client_id   string  optional    

Must match an existing stored value.

issue_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:14:00

expiry_date   string  optional    

Must be a valid date. Must be a date after or equal to issue_date. Example: 2052-11-22

currency   string  optional    

Must be 3 characters. Example: ngz

discount_type   string  optional    

Example: fixed

Must be one of:
  • percentage
  • fixed
discount_value   integer  optional    

Example: 16

notes   string  optional    

Must not be greater than 2000 characters. Example: n

terms   string  optional    

Must not be greater than 2000 characters. Example: g

footer   string  optional    

Must not be greater than 500 characters. Example: z

is_archived   boolean  optional    

Example: true

line_items   object[]  optional    

Must not have more than 500 items.

id   integer  optional    

Example: 16

description   string     

Must not be greater than 1000 characters. Example: Et animi quos velit et fugiat.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

service_id   string  optional    

Must match an existing stored value.

tax_name   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate   number  optional    

Must be at least 0. Must not be greater than 100. Example: 15

tax_category   string  optional    

Example: K

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

rebill_vendor_id   integer  optional    

Must match an existing stored value. Example: 16

tax_details   object  optional    
unit_code   string  optional    

Must not be greater than 10 characters. Example: ngzmiy

tax_exemption_reason_code   string  optional    

Must not be greater than 50 characters. Example: v

tax_exemption_reason   string  optional    

Must not be greater than 500 characters. Example: d

Delete a quote.

requires authentication

Only draft quotes can be deleted. Returns 422 for any other status.

Example request:
curl --request DELETE \
    "https://tidybill.app/api/quotes/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/quotes/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

List line items for a quote.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/quotes/16/line-items" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/line-items"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "service_id": null,
            "time_entry_id": null,
            "expense_id": null,
            "rebill_vendor_id": null,
            "description": "Nostrum qui commodi incidunt iure.",
            "quantity": 1.02,
            "unit_price": "13053.000000",
            "amount": 13314,
            "tax_name_1": null,
            "tax_rate_1": null,
            "tax_amount_1": 0,
            "tax_name_2": null,
            "tax_rate_2": null,
            "tax_amount_2": 0,
            "tax_category": null,
            "tax_category_applied": "S",
            "sort_order": 0,
            "is_late_fee": false,
            "created_at": "2026-10-30T14:14:00.000000Z",
            "updated_at": "2026-10-30T14:14:00.000000Z"
        },
        {
            "id": 2,
            "service_id": null,
            "time_entry_id": null,
            "expense_id": null,
            "rebill_vendor_id": null,
            "description": "Nemo voluptate accusamus ut et.",
            "quantity": 8.73,
            "unit_price": "36405.000000",
            "amount": 317816,
            "tax_name_1": null,
            "tax_rate_1": null,
            "tax_amount_1": 0,
            "tax_name_2": null,
            "tax_rate_2": null,
            "tax_amount_2": 0,
            "tax_category": null,
            "tax_category_applied": "S",
            "sort_order": 0,
            "is_late_fee": false,
            "created_at": "2026-10-30T14:14:00.000000Z",
            "updated_at": "2026-10-30T14:14:00.000000Z"
        }
    ]
}
 

Request      

GET api/quotes/{quote_id}/line-items

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Add a line item to a quote.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/16/line-items" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Eius et animi quos velit et.\",
    \"quantity\": 4326.41688,
    \"unit_price\": 4326.41688,
    \"tax_name_1\": \"m\",
    \"tax_rate_1\": 15,
    \"tax_name_2\": \"y\",
    \"tax_rate_2\": 1,
    \"tax_category\": \"AE\",
    \"sort_order\": 16,
    \"account_code\": \"n\"
}"
const url = new URL(
    "https://tidybill.app/api/quotes/16/line-items"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Eius et animi quos velit et.",
    "quantity": 4326.41688,
    "unit_price": 4326.41688,
    "tax_name_1": "m",
    "tax_rate_1": 15,
    "tax_name_2": "y",
    "tax_rate_2": 1,
    "tax_category": "AE",
    "sort_order": 16,
    "account_code": "n"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "service_id": null,
        "time_entry_id": null,
        "expense_id": null,
        "rebill_vendor_id": null,
        "description": "Velit et fugiat sunt nihil accusantium.",
        "quantity": 3.2,
        "unit_price": "2681.000000",
        "amount": 8579,
        "tax_name_1": null,
        "tax_rate_1": null,
        "tax_amount_1": 0,
        "tax_name_2": null,
        "tax_rate_2": null,
        "tax_amount_2": 0,
        "tax_category": null,
        "tax_category_applied": "S",
        "sort_order": 0,
        "is_late_fee": false,
        "created_at": "2026-10-30T14:14:00.000000Z",
        "updated_at": "2026-10-30T14:14:00.000000Z"
    },
    "status": "201"
}
 

Request      

POST api/quotes/{quote_id}/line-items

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Body Parameters

service_id   string  optional    

Must match an existing stored value.

description   string     

Must not be greater than 1000 characters. Example: Eius et animi quos velit et.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

tax_name_1   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate_1   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 15

tax_name_2   string  optional    

Must not be greater than 50 characters. Example: y

tax_rate_2   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 1

tax_category   string  optional    

Example: AE

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

Update a line item on a quote.

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/quotes/16/line-items/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Eius et animi quos velit et.\",
    \"quantity\": 4326.41688,
    \"unit_price\": 4326.41688,
    \"tax_name_1\": \"m\",
    \"tax_rate_1\": 15,
    \"tax_name_2\": \"y\",
    \"tax_rate_2\": 1,
    \"tax_category\": \"AE\",
    \"sort_order\": 16,
    \"account_code\": \"n\"
}"
const url = new URL(
    "https://tidybill.app/api/quotes/16/line-items/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Eius et animi quos velit et.",
    "quantity": 4326.41688,
    "unit_price": 4326.41688,
    "tax_name_1": "m",
    "tax_rate_1": 15,
    "tax_name_2": "y",
    "tax_rate_2": 1,
    "tax_category": "AE",
    "sort_order": 16,
    "account_code": "n"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "service_id": null,
        "time_entry_id": null,
        "expense_id": null,
        "rebill_vendor_id": null,
        "description": "Velit et fugiat sunt nihil accusantium.",
        "quantity": 3.2,
        "unit_price": "2681.000000",
        "amount": 8579,
        "tax_name_1": null,
        "tax_rate_1": null,
        "tax_amount_1": 0,
        "tax_name_2": null,
        "tax_rate_2": null,
        "tax_amount_2": 0,
        "tax_category": null,
        "tax_category_applied": "S",
        "sort_order": 0,
        "is_late_fee": false,
        "created_at": "2026-10-30T14:14:00.000000Z",
        "updated_at": "2026-10-30T14:14:00.000000Z"
    }
}
 

Request      

PUT api/quotes/{quote_id}/line-items/{lineItem_id}

PATCH api/quotes/{quote_id}/line-items/{lineItem_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

lineItem_id   integer     

The ID of the lineItem. Example: 16

quote   integer     

The quote ID. Example: 1

lineItem   integer     

The line item ID. Example: 1

Body Parameters

service_id   string  optional    

Must match an existing stored value.

description   string     

Must not be greater than 1000 characters. Example: Eius et animi quos velit et.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

tax_name_1   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate_1   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 15

tax_name_2   string  optional    

Must not be greater than 50 characters. Example: y

tax_rate_2   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 1

tax_category   string  optional    

Example: AE

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

Delete a line item from a quote.

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/quotes/16/line-items/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/line-items/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/quotes/{quote_id}/line-items/{lineItem_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

lineItem_id   integer     

The ID of the lineItem. Example: 16

quote   integer     

The quote ID. Example: 1

lineItem   integer     

The line item ID. Example: 1

Restore a deleted quote.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/16/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {}
}
 

Request      

POST api/quotes/{quote_id}/restore

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Archive a quote.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/16/archive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/archive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/quotes/{quote_id}/archive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Unarchive a quote.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/16/unarchive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/unarchive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/quotes/{quote_id}/unarchive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Send a quote by email.

requires authentication

Sends the quote to the client's email address and transitions the status to sent. Returns 422 if the client has no email configured.

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/16/send" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/send"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 13,
        "uuid": "71df20e5-1162-45b5-ad73-d1c18031c4e6",
        "client_id": 60,
        "quote_number": "QUO-35644",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "expiry_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "accepted_at": null,
        "declined_at": null,
        "converted_to_invoice_id": null,
        "converted_to_project_id": null,
        "pdf_path": null,
        "created_at": "2026-10-30T14:14:00.000000Z",
        "updated_at": "2026-10-30T14:14:00.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/quotes/{quote_id}/send

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Mark a quote as sent without emailing.

requires authentication

Transitions the quote status to sent and logs the activity, but does not send any email to the client.

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/16/mark-sent" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/mark-sent"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 14,
        "uuid": "ccb5a68b-593e-4c74-aadb-c8ed7108d755",
        "client_id": 61,
        "quote_number": "QUO-08317",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "expiry_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "accepted_at": null,
        "declined_at": null,
        "converted_to_invoice_id": null,
        "converted_to_project_id": null,
        "pdf_path": null,
        "created_at": "2026-10-30T14:14:00.000000Z",
        "updated_at": "2026-10-30T14:14:00.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/quotes/{quote_id}/mark-sent

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Convert a quote to an invoice.

requires authentication

Creates a new draft invoice from the quote's line items and client. The quote must be in sent, viewed, or accepted status.

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/16/convert-to-invoice" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/convert-to-invoice"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 21,
        "uuid": "da7c0466-e144-4384-8331-26d7e298a02e",
        "client_id": 62,
        "recurring_invoice_id": null,
        "invoice_number": "INV-98251",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "McLaughlin and Sons",
            "legal_name": null,
            "email": "sleffler@mitchell.info",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:14:00.000000Z",
        "updated_at": "2026-10-30T14:14:00.000000Z",
        "deleted_at": null
    },
    "status": "201"
}
 

Request      

POST api/quotes/{quote_id}/convert-to-invoice

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Convert a quote to a project.

requires authentication

Creates a new project from the quote details. The quote must be in sent, viewed, or accepted status.

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/16/convert-to-project" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/convert-to-project"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 7,
        "client_id": 63,
        "name": "implement intuitive e-tailers",
        "status": "active",
        "is_archived": false,
        "billing_method": "hourly",
        "hourly_rate": 14351,
        "budget_hours": null,
        "budget_amount": null,
        "start_date": null,
        "end_date": null,
        "client_currency": "USD",
        "company_currency": "USD",
        "total_logged_seconds": 0,
        "unbilled_seconds": 0,
        "unbilled_amount": 0,
        "last_invoice_date": null,
        "created_at": "2026-10-30T14:14:00.000000Z",
        "updated_at": "2026-10-30T14:14:00.000000Z",
        "deleted_at": null
    },
    "status": "201"
}
 

Request      

POST api/quotes/{quote_id}/convert-to-project

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Duplicate a quote.

requires authentication

Creates a new draft quote with the same line items and client as the original, assigned the next available quote number.

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/16/duplicate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/duplicate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 15,
        "uuid": "9754f91b-28cc-4278-bba2-ecf0afa9f920",
        "client_id": 64,
        "quote_number": "QUO-82093",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "expiry_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "accepted_at": null,
        "declined_at": null,
        "converted_to_invoice_id": null,
        "converted_to_project_id": null,
        "pdf_path": null,
        "created_at": "2026-10-30T14:14:00.000000Z",
        "updated_at": "2026-10-30T14:14:00.000000Z",
        "deleted_at": null
    },
    "status": "201"
}
 

Request      

POST api/quotes/{quote_id}/duplicate

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Download quote as PDF.

requires authentication

Generates the quote PDF on demand and streams it inline using the company's default template.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/quotes/16/pdf" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/pdf"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, PDF file download):

Binary data - 
 

Request      

GET api/quotes/{quote_id}/pdf

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

quote   integer     

The quote ID. Example: 1

Projects

Export projects as CSV or PDF.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/projects/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/projects/export

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Bulk action on projects.

requires authentication

Supported actions: archive, unarchive, complete, delete. Returns the count of affected records.

Example request:
curl --request POST \
    "https://tidybill.app/api/projects/bulk-action" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ],
    \"action\": \"restore\"
}"
const url = new URL(
    "https://tidybill.app/api/projects/bulk-action"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ],
    "action": "restore"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "affected": 3
    }
}
 

Request      

POST api/projects/bulk-action

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   integer[]  optional    
action   string     

Example: restore

Must be one of:
  • archive
  • unarchive
  • complete
  • delete
  • restore

Restore a deleted project.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/projects/16/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects/16/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {}
}
 

Request      

POST api/projects/{project_id}/restore

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

project_id   integer     

The ID of the project. Example: 16

List projects.

requires authentication

Supports filtering by status, client_id, and name search. Results are paginated and include per-status and archived counts in the meta.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/projects" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "client_id": 15,
            "name": "implement intuitive e-tailers",
            "status": "active",
            "is_archived": false,
            "billing_method": "hourly",
            "hourly_rate": 14351,
            "budget_hours": null,
            "budget_amount": null,
            "start_date": null,
            "end_date": null,
            "client_currency": "USD",
            "company_currency": "USD",
            "total_logged_seconds": 0,
            "unbilled_seconds": 0,
            "unbilled_amount": 0,
            "last_invoice_date": null,
            "created_at": "2026-10-30T14:13:55.000000Z",
            "updated_at": "2026-10-30T14:13:55.000000Z",
            "deleted_at": null
        },
        {
            "id": 2,
            "client_id": 16,
            "name": "benchmark one-to-one infrastructures",
            "status": "active",
            "is_archived": false,
            "billing_method": "hourly",
            "hourly_rate": 21548,
            "budget_hours": null,
            "budget_amount": null,
            "start_date": null,
            "end_date": null,
            "client_currency": "USD",
            "company_currency": "USD",
            "total_logged_seconds": 0,
            "unbilled_seconds": 0,
            "unbilled_amount": 0,
            "last_invoice_date": null,
            "created_at": "2026-10-30T14:13:55.000000Z",
            "updated_at": "2026-10-30T14:13:55.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/projects

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get a project.

requires authentication

Includes the client and project members with their hourly rates.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/projects/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "client_id": 17,
        "name": "implement intuitive e-tailers",
        "status": "active",
        "is_archived": false,
        "billing_method": "hourly",
        "hourly_rate": 14351,
        "budget_hours": null,
        "budget_amount": null,
        "start_date": null,
        "end_date": null,
        "client_currency": "USD",
        "company_currency": "USD",
        "total_logged_seconds": 0,
        "unbilled_seconds": 0,
        "unbilled_amount": 0,
        "last_invoice_date": null,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z",
        "deleted_at": null
    }
}
 

Request      

GET api/projects/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the project. Example: 16

Create a project.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/projects" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"client_id\": \"architecto\",
    \"name\": \"n\",
    \"status\": \"active\",
    \"billing_method\": \"flat_rate\",
    \"hourly_rate\": 84,
    \"budget_hours\": 12,
    \"budget_amount\": 77,
    \"start_date\": \"2026-10-30T14:13:55\",
    \"end_date\": \"2052-11-22\",
    \"is_archived\": true
}"
const url = new URL(
    "https://tidybill.app/api/projects"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "client_id": "architecto",
    "name": "n",
    "status": "active",
    "billing_method": "flat_rate",
    "hourly_rate": 84,
    "budget_hours": 12,
    "budget_amount": 77,
    "start_date": "2026-10-30T14:13:55",
    "end_date": "2052-11-22",
    "is_archived": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "client_id": 18,
        "name": "exploit scalable supply-chains",
        "status": "active",
        "is_archived": false,
        "billing_method": "hourly",
        "hourly_rate": 17320,
        "budget_hours": null,
        "budget_amount": null,
        "start_date": null,
        "end_date": null,
        "client_currency": "USD",
        "company_currency": "USD",
        "total_logged_seconds": 0,
        "unbilled_seconds": 0,
        "unbilled_amount": 0,
        "last_invoice_date": null,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/projects

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

client_id   string     

Must match an existing stored value. Example: architecto

name   string     

Must not be greater than 255 characters. Example: n

status   string  optional    

Example: active

Must be one of:
  • active
  • completed
  • archived
billing_method   string  optional    

Example: flat_rate

Must be one of:
  • hourly
  • flat_rate
  • non_billable
hourly_rate   integer  optional    

Must be at least 0. Example: 84

budget_hours   number  optional    

Must be at least 0. Example: 12

budget_amount   integer  optional    

Must be at least 0. Example: 77

start_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:55

end_date   string  optional    

Must be a valid date. Must be a date after or equal to start_date. Example: 2052-11-22

is_archived   boolean  optional    

Example: true

Update a project.

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/projects/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"status\": \"archived\",
    \"billing_method\": \"non_billable\",
    \"hourly_rate\": 39,
    \"budget_hours\": 84,
    \"budget_amount\": 12,
    \"start_date\": \"2026-10-30T14:13:55\",
    \"end_date\": \"2052-11-22\",
    \"is_archived\": true
}"
const url = new URL(
    "https://tidybill.app/api/projects/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "status": "archived",
    "billing_method": "non_billable",
    "hourly_rate": 39,
    "budget_hours": 84,
    "budget_amount": 12,
    "start_date": "2026-10-30T14:13:55",
    "end_date": "2052-11-22",
    "is_archived": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 5,
        "client_id": 19,
        "name": "exploit scalable supply-chains",
        "status": "active",
        "is_archived": false,
        "billing_method": "hourly",
        "hourly_rate": 17320,
        "budget_hours": null,
        "budget_amount": null,
        "start_date": null,
        "end_date": null,
        "client_currency": "USD",
        "company_currency": "USD",
        "total_logged_seconds": 0,
        "unbilled_seconds": 0,
        "unbilled_amount": 0,
        "last_invoice_date": null,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z",
        "deleted_at": null
    }
}
 

Request      

PUT api/projects/{id}

PATCH api/projects/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the project. Example: 16

Body Parameters

client_id   string  optional    

Must match an existing stored value.

name   string  optional    

Must not be greater than 255 characters. Example: b

status   string  optional    

Example: archived

Must be one of:
  • active
  • completed
  • archived
billing_method   string  optional    

Example: non_billable

Must be one of:
  • hourly
  • flat_rate
  • non_billable
hourly_rate   integer  optional    

Must be at least 0. Example: 39

budget_hours   number  optional    

Must be at least 0. Example: 84

budget_amount   integer  optional    

Must be at least 0. Example: 12

start_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:55

end_date   string  optional    

Must be a valid date. Must be a date after or equal to start_date. Example: 2052-11-22

is_archived   boolean  optional    

Example: true

Delete a project.

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/projects/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/projects/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the project. Example: 16

Move project to another company.

requires authentication

Moves the project (and its time entries) to a company the authenticated user has access to. Detaches all project members and clears the client association.

Example request:
curl --request POST \
    "https://tidybill.app/api/projects/16/move" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"target_company_id\": 16
}"
const url = new URL(
    "https://tidybill.app/api/projects/16/move"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "target_company_id": 16
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 6,
        "client_id": 20,
        "name": "exploit scalable supply-chains",
        "status": "active",
        "is_archived": false,
        "billing_method": "hourly",
        "hourly_rate": 17320,
        "budget_hours": null,
        "budget_amount": null,
        "start_date": null,
        "end_date": null,
        "client_currency": "USD",
        "company_currency": "USD",
        "total_logged_seconds": 0,
        "unbilled_seconds": 0,
        "unbilled_amount": 0,
        "last_invoice_date": null,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/projects/{project_id}/move

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

project_id   integer     

The ID of the project. Example: 16

Body Parameters

target_company_id   integer     

Example: 16

Archive a project.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/projects/16/archive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects/16/archive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/projects/{project_id}/archive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

project_id   integer     

The ID of the project. Example: 16

Unarchive a project.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/projects/16/unarchive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects/16/unarchive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/projects/{project_id}/unarchive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

project_id   integer     

The ID of the project. Example: 16

Get project stats.

requires authentication

Returns hours breakdown (total, billed, unbilled) and budget info for the project.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/projects/16/stats" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects/16/stats"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "total_hours": 10.5,
        "billed_hours": 4,
        "unbilled_hours": 6.5,
        "budget_hours": 20,
        "budget_amount": 300000
    }
}
 

Request      

GET api/projects/{project_id}/stats

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

project_id   integer     

The ID of the project. Example: 16

List project members.

requires authentication

Returns each member's user details and their project-specific hourly rate from the pivot table.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/projects/16/members" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects/16/members"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "name": "Jane Smith",
            "email": "jane@example.com",
            "hourly_rate": 15000
        }
    ]
}
 

Request      

GET api/projects/{project_id}/members

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

project_id   integer     

The ID of the project. Example: 16

Add a project member.

requires authentication

The user must be a member of the current company. Accepts an optional hourly_rate (in cents) to override the company default for this project.

Example request:
curl --request POST \
    "https://tidybill.app/api/projects/16/members" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 16,
    \"hourly_rate\": 39
}"
const url = new URL(
    "https://tidybill.app/api/projects/16/members"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 16,
    "hourly_rate": 39
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "message": "Member added."
}
 

Request      

POST api/projects/{project_id}/members

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

project_id   integer     

The ID of the project. Example: 16

Body Parameters

user_id   integer     

Example: 16

hourly_rate   integer  optional    

Must be at least 0. Example: 39

Remove a project member.

requires authentication

Detaches the user from the project. The user must be a member of the current company.

Example request:
curl --request DELETE \
    "https://tidybill.app/api/projects/16/members/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects/16/members/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/projects/{project_id}/members/{user_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

project_id   integer     

The ID of the project. Example: 16

user_id   integer     

The ID of the user. Example: 16

Set or update a per-service rate override on the project.

requires authentication

The service must belong to the current company. The hourly_rate (in cents, client currency) overrides the service default for this project; a null rate marks the override as set-but-unspecified.

Example request:
curl --request POST \
    "https://tidybill.app/api/projects/16/service-rates" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"service_id\": 16,
    \"hourly_rate\": 39
}"
const url = new URL(
    "https://tidybill.app/api/projects/16/service-rates"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "service_id": 16,
    "hourly_rate": 39
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "message": "Service rate set."
}
 

Request      

POST api/projects/{project_id}/service-rates

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

project_id   integer     

The ID of the project. Example: 16

Body Parameters

service_id   integer     

Example: 16

hourly_rate   integer  optional    

Must be at least 0. Example: 39

Remove a per-service rate override from the project.

requires authentication

Detaches the service from the project, reverting it to the service default. The service must belong to the current company.

Example request:
curl --request DELETE \
    "https://tidybill.app/api/projects/16/service-rates/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/projects/16/service-rates/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/projects/{project_id}/service-rates/{service_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

project_id   integer     

The ID of the project. Example: 16

service_id   integer     

The ID of the service. Example: 16

Time Tracking

Manage time entries for tracking billable and non-billable work. Time entries store a date and duration (in seconds). The started_at, ended_at, and is_running fields in the response are read-only and only populated when using the Timer endpoints (start/stop/current/discard). To create a manual time entry, provide date and duration only. Rates are resolved dynamically from current settings (member-project pivot rate, project rate, service rate, company default). All money values are integers in cents.

Resolve hourly rate.

requires authentication

Returns the hourly rate that would be auto-applied for a given project/service combination. Resolution order: project rate, service rate, company default rate.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/time-entries/resolve-rate?project_id=1&service_id=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/time-entries/resolve-rate"
);

const params = {
    "project_id": "1",
    "service_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "rate": 15000,
    "source": "project"
}
 

Request      

GET api/time-entries/resolve-rate

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

project_id   integer  optional    

optional The project ID to check. Example: 1

service_id   integer  optional    

optional The service ID to check. Example: 1

List unbilled time entries.

requires authentication

Returns billable entries that have not yet been added to an invoice. Excludes running timers.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/time-entries/unbilled" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/time-entries/unbilled"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "user_id": 3,
            "client_id": 21,
            "project_id": null,
            "service_id": null,
            "date": "2026-10-05",
            "duration": 5783,
            "started_at": null,
            "ended_at": null,
            "is_running": false,
            "is_billable": true,
            "is_billed": false,
            "invoice_id": null,
            "effective_rate": 0,
            "rate_source": "none",
            "notes": "Nostrum qui commodi incidunt iure.",
            "calculated_amount": 0,
            "duration_hours": 1.61,
            "created_at": "2026-10-30T14:13:56.000000Z",
            "updated_at": "2026-10-30T14:13:56.000000Z"
        },
        {
            "id": 2,
            "user_id": 4,
            "client_id": 22,
            "project_id": null,
            "service_id": null,
            "date": "2026-10-24",
            "duration": 17654,
            "started_at": null,
            "ended_at": null,
            "is_running": false,
            "is_billable": true,
            "is_billed": false,
            "invoice_id": null,
            "effective_rate": 0,
            "rate_source": "none",
            "notes": "Rerum ex repellendus assumenda et.",
            "calculated_amount": 0,
            "duration_hours": 4.9,
            "created_at": "2026-10-30T14:13:56.000000Z",
            "updated_at": "2026-10-30T14:13:56.000000Z"
        }
    ]
}
 

Request      

GET api/time-entries/unbilled

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Bulk create time entries.

requires authentication

Create up to 50 time entries in a single request. Each entry uses the same schema as the single create endpoint.

Example request:
curl --request POST \
    "https://tidybill.app/api/time-entries/bulk" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"entries\": [
        {
            \"client_id\": 1,
            \"project_id\": 1,
            \"service_id\": 1,
            \"date\": \"2026-03-29\",
            \"duration\": 3600,
            \"is_billable\": true,
            \"notes\": \"API integration work\"
        }
    ]
}"
const url = new URL(
    "https://tidybill.app/api/time-entries/bulk"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "entries": [
        {
            "client_id": 1,
            "project_id": 1,
            "service_id": 1,
            "date": "2026-03-29",
            "duration": 3600,
            "is_billable": true,
            "notes": "API integration work"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "data": []
}
 

Request      

POST api/time-entries/bulk

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

entries   object[]     

Array of time entry objects (max 50).

client_id   integer  optional    

optional The client ID. Example: 1

project_id   integer     

The project ID. Example: 1

service_id   integer     

The service ID. Example: 1

date   string     

The date of the work. Example: 2026-03-29

duration   integer     

Duration in seconds. Example: 3600

is_billable   boolean  optional    

optional Whether billable. Example: true

notes   string  optional    

optional Description of work. Example: API integration work

Bulk delete time entries.

requires authentication

Delete up to 100 time entries. Only deletes entries owned by the authenticated user.

Example request:
curl --request DELETE \
    "https://tidybill.app/api/time-entries/bulk" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1,
        2,
        3
    ]
}"
const url = new URL(
    "https://tidybill.app/api/time-entries/bulk"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        1,
        2,
        3
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/time-entries/bulk

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   integer[]     

Array of time entry IDs to delete (max 100).

List time entries.

requires authentication

Returns a paginated list of time entries, sorted by date descending by default.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/time-entries" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/time-entries"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 3,
            "user_id": 5,
            "client_id": 23,
            "project_id": null,
            "service_id": null,
            "date": "2026-10-05",
            "duration": 5783,
            "started_at": null,
            "ended_at": null,
            "is_running": false,
            "is_billable": true,
            "is_billed": false,
            "invoice_id": null,
            "effective_rate": 0,
            "rate_source": "none",
            "notes": "Nostrum qui commodi incidunt iure.",
            "calculated_amount": 0,
            "duration_hours": 1.61,
            "created_at": "2026-10-30T14:13:56.000000Z",
            "updated_at": "2026-10-30T14:13:56.000000Z"
        },
        {
            "id": 4,
            "user_id": 6,
            "client_id": 24,
            "project_id": null,
            "service_id": null,
            "date": "2026-10-05",
            "duration": 21598,
            "started_at": null,
            "ended_at": null,
            "is_running": false,
            "is_billable": true,
            "is_billed": false,
            "invoice_id": null,
            "effective_rate": 0,
            "rate_source": "none",
            "notes": "Ex repellendus assumenda et tenetur ab reiciendis.",
            "calculated_amount": 0,
            "duration_hours": 6,
            "created_at": "2026-10-30T14:13:57.000000Z",
            "updated_at": "2026-10-30T14:13:57.000000Z"
        }
    ]
}
 

Request      

GET api/time-entries

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get a time entry.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/time-entries/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/time-entries/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 5,
        "user_id": 7,
        "client_id": 25,
        "project_id": null,
        "service_id": null,
        "date": "2026-10-05",
        "duration": 5783,
        "started_at": null,
        "ended_at": null,
        "is_running": false,
        "is_billable": true,
        "is_billed": false,
        "invoice_id": null,
        "effective_rate": 0,
        "rate_source": "none",
        "notes": "Nostrum qui commodi incidunt iure.",
        "calculated_amount": 0,
        "duration_hours": 1.61,
        "created_at": "2026-10-30T14:13:57.000000Z",
        "updated_at": "2026-10-30T14:13:57.000000Z"
    }
}
 

Request      

GET api/time-entries/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the time entry. Example: 16

Create a time entry.

requires authentication

Create a manual time entry. Provide date (YYYY-MM-DD) and duration (in seconds, e.g. 3600 = 1 hour). Do NOT send started_at, ended_at, or is_running - those are managed by the Timer endpoints. The effective rate is resolved dynamically from current settings at display/billing time.

Example request:
curl --request POST \
    "https://tidybill.app/api/time-entries" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"client_id\": 1,
    \"project_id\": 1,
    \"service_id\": 1,
    \"date\": \"2026-03-29\",
    \"duration\": 3600,
    \"is_billable\": true,
    \"is_billed\": false,
    \"notes\": \"API integration work\"
}"
const url = new URL(
    "https://tidybill.app/api/time-entries"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "client_id": 1,
    "project_id": 1,
    "service_id": 1,
    "date": "2026-03-29",
    "duration": 3600,
    "is_billable": true,
    "is_billed": false,
    "notes": "API integration work"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 6,
        "user_id": 8,
        "client_id": 26,
        "project_id": null,
        "service_id": null,
        "date": "2026-10-05",
        "duration": 2034,
        "started_at": null,
        "ended_at": null,
        "is_running": false,
        "is_billable": true,
        "is_billed": false,
        "invoice_id": null,
        "effective_rate": 0,
        "rate_source": "none",
        "notes": "Et fugiat sunt nihil accusantium.",
        "calculated_amount": 0,
        "duration_hours": 0.57,
        "created_at": "2026-10-30T14:13:57.000000Z",
        "updated_at": "2026-10-30T14:13:57.000000Z"
    }
}
 

Request      

POST api/time-entries

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

client_id   integer  optional    

optional The client ID. Example: 1

project_id   integer     

The project ID. Example: 1

service_id   integer     

The service ID. Example: 1

date   string     

The date of the work. Example: 2026-03-29

duration   integer     

Duration in seconds (e.g. 3600 = 1 hour). Example: 3600

is_billable   boolean  optional    

optional Whether the entry is billable. Defaults to true. Example: true

is_billed   boolean  optional    

optional Whether the entry has been billed. Defaults to false. Example: false

notes   string  optional    

optional Description of work performed. Example: API integration work

Update a time entry.

requires authentication

Same body schema as create. Only the entry owner or a company admin/owner can update.

Example request:
curl --request PUT \
    "https://tidybill.app/api/time-entries/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"project_id\": \"architecto\",
    \"service_id\": \"architecto\",
    \"date\": \"2026-10-30T14:13:57\",
    \"duration\": 39,
    \"is_billable\": false,
    \"is_billed\": true,
    \"notes\": \"g\"
}"
const url = new URL(
    "https://tidybill.app/api/time-entries/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "project_id": "architecto",
    "service_id": "architecto",
    "date": "2026-10-30T14:13:57",
    "duration": 39,
    "is_billable": false,
    "is_billed": true,
    "notes": "g"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 7,
        "user_id": 9,
        "client_id": 27,
        "project_id": null,
        "service_id": null,
        "date": "2026-10-05",
        "duration": 2034,
        "started_at": null,
        "ended_at": null,
        "is_running": false,
        "is_billable": true,
        "is_billed": false,
        "invoice_id": null,
        "effective_rate": 0,
        "rate_source": "none",
        "notes": "Et fugiat sunt nihil accusantium.",
        "calculated_amount": 0,
        "duration_hours": 0.57,
        "created_at": "2026-10-30T14:13:57.000000Z",
        "updated_at": "2026-10-30T14:13:57.000000Z"
    }
}
 

Request      

PUT api/time-entries/{id}

PATCH api/time-entries/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the time entry. Example: 16

Body Parameters

client_id   string  optional    

Must match an existing stored value.

project_id   string     

Must match an existing stored value. Example: architecto

service_id   string     

Must match an existing stored value. Example: architecto

date   string     

Must be a valid date. Example: 2026-10-30T14:13:57

duration   integer     

Must be at least 0. Example: 39

is_billable   boolean  optional    

Example: false

is_billed   boolean  optional    

Example: true

notes   string  optional    

Must not be greater than 2000 characters. Example: g

Delete a time entry.

requires authentication

Only the entry owner or a company admin/owner can delete.

Example request:
curl --request DELETE \
    "https://tidybill.app/api/time-entries/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/time-entries/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/time-entries/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the time entry. Example: 16

Start a timer.

requires authentication

Starts a new running timer. If a timer is already running, it is stopped first. The started_at is set to the current time. Duration is calculated when the timer is stopped.

Example request:
curl --request POST \
    "https://tidybill.app/api/timer/start" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"client_id\": 1,
    \"project_id\": 1,
    \"service_id\": 1,
    \"notes\": \"Working on API integration\",
    \"is_billable\": true
}"
const url = new URL(
    "https://tidybill.app/api/timer/start"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "client_id": 1,
    "project_id": 1,
    "service_id": 1,
    "notes": "Working on API integration",
    "is_billable": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 8,
        "user_id": 10,
        "client_id": 28,
        "project_id": null,
        "service_id": null,
        "date": "2026-10-19",
        "duration": 26342,
        "started_at": null,
        "ended_at": null,
        "is_running": false,
        "is_billable": true,
        "is_billed": false,
        "invoice_id": null,
        "effective_rate": 0,
        "rate_source": "none",
        "notes": "Quos velit et fugiat sunt nihil accusantium harum.",
        "calculated_amount": 0,
        "duration_hours": 7.32,
        "created_at": "2026-10-30T14:13:58.000000Z",
        "updated_at": "2026-10-30T14:13:58.000000Z"
    }
}
 

Request      

POST api/timer/start

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

client_id   integer  optional    

optional The client ID. Example: 1

project_id   integer  optional    

optional The project ID. Example: 1

service_id   integer  optional    

optional The service ID. Example: 1

notes   string  optional    

optional Description of work. Example: Working on API integration

is_billable   boolean  optional    

optional Whether billable. Defaults to true. Example: true

Stop the running timer.

requires authentication

Stops the current user's running timer, calculates the duration from started_at to now, and sets ended_at. Returns 404 if no timer is running.

Example request:
curl --request PUT \
    "https://tidybill.app/api/timer/stop" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/timer/stop"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 9,
        "user_id": 11,
        "client_id": 29,
        "project_id": null,
        "service_id": null,
        "date": "2026-10-05",
        "duration": 5783,
        "started_at": null,
        "ended_at": null,
        "is_running": false,
        "is_billable": true,
        "is_billed": false,
        "invoice_id": null,
        "effective_rate": 0,
        "rate_source": "none",
        "notes": "Nostrum qui commodi incidunt iure.",
        "calculated_amount": 0,
        "duration_hours": 1.61,
        "created_at": "2026-10-30T14:13:58.000000Z",
        "updated_at": "2026-10-30T14:13:58.000000Z"
    }
}
 

Request      

PUT api/timer/stop

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get current running timer.

requires authentication

Returns the current user's running timer, or {"data": null} if no timer is running.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/timer/current" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/timer/current"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 10,
        "user_id": 12,
        "client_id": 30,
        "project_id": null,
        "service_id": null,
        "date": "2026-10-05",
        "duration": 5783,
        "started_at": null,
        "ended_at": null,
        "is_running": false,
        "is_billable": true,
        "is_billed": false,
        "invoice_id": null,
        "effective_rate": 0,
        "rate_source": "none",
        "notes": "Nostrum qui commodi incidunt iure.",
        "calculated_amount": 0,
        "duration_hours": 1.61,
        "created_at": "2026-10-30T14:13:58.000000Z",
        "updated_at": "2026-10-30T14:13:58.000000Z"
    }
}
 

Request      

GET api/timer/current

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Discard the running timer.

requires authentication

Deletes the running timer without saving. Returns 204 whether or not a timer was running.

Example request:
curl --request DELETE \
    "https://tidybill.app/api/timer/discard" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/timer/discard"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/timer/discard

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Services

Export services as CSV or PDF.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/services/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/services/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/services/export

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Bulk action on services.

requires authentication

Supported actions: activate, deactivate, delete. Returns the count of affected records.

Example request:
curl --request POST \
    "https://tidybill.app/api/services/bulk-action" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ],
    \"action\": \"delete\"
}"
const url = new URL(
    "https://tidybill.app/api/services/bulk-action"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ],
    "action": "delete"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "affected": 3
    }
}
 

Request      

POST api/services/bulk-action

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   integer[]  optional    
action   string     

Example: delete

Must be one of:
  • activate
  • deactivate
  • delete

List services.

requires authentication

Supports filtering by is_active, type, and name search. Results are paginated with active/inactive counts in the meta.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/services" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/services"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "type": "service",
            "name": "Development",
            "description": "Quidem nostrum qui commodi incidunt iure odit.",
            "default_rate": 14003,
            "unit": "hour",
            "tax_name_1": null,
            "tax_rate_1": null,
            "tax_name_2": null,
            "tax_rate_2": null,
            "is_active": true,
            "created_at": "2026-10-30T14:13:55.000000Z",
            "updated_at": "2026-10-30T14:13:55.000000Z"
        },
        {
            "id": 2,
            "type": "service",
            "name": "Consulting",
            "description": "Facere tempora ex voluptatem laboriosam.",
            "default_rate": 14572,
            "unit": "item",
            "tax_name_1": null,
            "tax_rate_1": null,
            "tax_name_2": null,
            "tax_rate_2": null,
            "is_active": true,
            "created_at": "2026-10-30T14:13:55.000000Z",
            "updated_at": "2026-10-30T14:13:55.000000Z"
        }
    ]
}
 

Request      

GET api/services

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get a service.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/services/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/services/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "type": "service",
        "name": "Development",
        "description": "Quidem nostrum qui commodi incidunt iure odit.",
        "default_rate": 14003,
        "unit": "hour",
        "tax_name_1": null,
        "tax_rate_1": null,
        "tax_name_2": null,
        "tax_rate_2": null,
        "is_active": true,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z"
    }
}
 

Request      

GET api/services/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the service. Example: 16

Create a service.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/services" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"description\": \"Et animi quos velit et fugiat.\",
    \"default_rate\": 42,
    \"type\": \"service\",
    \"unit\": \"ljnikhwaykcmyuwp\",
    \"tax_name_1\": \"w\",
    \"tax_rate_1\": 89,
    \"tax_name_2\": \"v\",
    \"tax_rate_2\": 3,
    \"is_active\": true,
    \"account_code\": \"w\",
    \"tax_defaults\": {
        \"unit_code\": \"WEE\",
        \"tax_category_code\": \"AE\"
    }
}"
const url = new URL(
    "https://tidybill.app/api/services"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "description": "Et animi quos velit et fugiat.",
    "default_rate": 42,
    "type": "service",
    "unit": "ljnikhwaykcmyuwp",
    "tax_name_1": "w",
    "tax_rate_1": 89,
    "tax_name_2": "v",
    "tax_rate_2": 3,
    "is_active": true,
    "account_code": "w",
    "tax_defaults": {
        "unit_code": "WEE",
        "tax_category_code": "AE"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "type": "service",
        "name": "Testing",
        "description": "Et modi ipsum nostrum omnis autem et consequatur.",
        "default_rate": 8880,
        "unit": null,
        "tax_name_1": null,
        "tax_rate_1": null,
        "tax_name_2": null,
        "tax_rate_2": null,
        "is_active": true,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z"
    }
}
 

Request      

POST api/services

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

Must not be greater than 255 characters. Example: b

description   string  optional    

Must not be greater than 2000 characters. Example: Et animi quos velit et fugiat.

default_rate   integer  optional    

Must be at least 0. Example: 42

type   string  optional    

Example: service

Must be one of:
  • service
  • product
unit   string  optional    

Must not be greater than 20 characters. Example: ljnikhwaykcmyuwp

tax_name_1   string  optional    

Must not be greater than 50 characters. Example: w

tax_rate_1   integer  optional    

Must be at least 0. Example: 89

tax_name_2   string  optional    

Must not be greater than 50 characters. Example: v

tax_rate_2   integer  optional    

Must be at least 0. Example: 3

is_active   boolean  optional    

Example: true

account_code   string  optional    

Must not be greater than 32 characters. Example: w

tax_defaults   object  optional    
unit_code   string  optional    

Example: WEE

Must be one of:
  • HUR
  • DAY
  • C62
  • LS
  • MON
  • WEE
  • KGM
  • MTR
tax_category_code   string  optional    

Example: AE

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O

Update a service.

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/services/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"description\": \"Et animi quos velit et fugiat.\",
    \"default_rate\": 42,
    \"type\": \"product\",
    \"unit\": \"ljnikhwaykcmyuwp\",
    \"tax_name_1\": \"w\",
    \"tax_rate_1\": 89,
    \"tax_name_2\": \"v\",
    \"tax_rate_2\": 3,
    \"is_active\": false,
    \"account_code\": \"w\",
    \"tax_defaults\": {
        \"unit_code\": \"LS\",
        \"tax_category_code\": \"S\"
    }
}"
const url = new URL(
    "https://tidybill.app/api/services/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "description": "Et animi quos velit et fugiat.",
    "default_rate": 42,
    "type": "product",
    "unit": "ljnikhwaykcmyuwp",
    "tax_name_1": "w",
    "tax_rate_1": 89,
    "tax_name_2": "v",
    "tax_rate_2": 3,
    "is_active": false,
    "account_code": "w",
    "tax_defaults": {
        "unit_code": "LS",
        "tax_category_code": "S"
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 5,
        "type": "service",
        "name": "Testing",
        "description": "Et modi ipsum nostrum omnis autem et consequatur.",
        "default_rate": 8880,
        "unit": null,
        "tax_name_1": null,
        "tax_rate_1": null,
        "tax_name_2": null,
        "tax_rate_2": null,
        "is_active": true,
        "created_at": "2026-10-30T14:13:55.000000Z",
        "updated_at": "2026-10-30T14:13:55.000000Z"
    }
}
 

Request      

PUT api/services/{id}

PATCH api/services/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the service. Example: 16

Body Parameters

name   string     

Must not be greater than 255 characters. Example: b

description   string  optional    

Must not be greater than 2000 characters. Example: Et animi quos velit et fugiat.

default_rate   integer  optional    

Must be at least 0. Example: 42

type   string  optional    

Example: product

Must be one of:
  • service
  • product
unit   string  optional    

Must not be greater than 20 characters. Example: ljnikhwaykcmyuwp

tax_name_1   string  optional    

Must not be greater than 50 characters. Example: w

tax_rate_1   integer  optional    

Must be at least 0. Example: 89

tax_name_2   string  optional    

Must not be greater than 50 characters. Example: v

tax_rate_2   integer  optional    

Must be at least 0. Example: 3

is_active   boolean  optional    

Example: false

account_code   string  optional    

Must not be greater than 32 characters. Example: w

tax_defaults   object  optional    
unit_code   string  optional    

Example: LS

Must be one of:
  • HUR
  • DAY
  • C62
  • LS
  • MON
  • WEE
  • KGM
  • MTR
tax_category_code   string  optional    

Example: S

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O

Delete a service.

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/services/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/services/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/services/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the service. Example: 16

Expenses

GET api/expenses/export

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/expenses/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/expenses/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/expenses/export

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/expenses/bulk-action

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/expenses/bulk-action" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ],
    \"action\": \"mark_paid\"
}"
const url = new URL(
    "https://tidybill.app/api/expenses/bulk-action"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ],
    "action": "mark_paid"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "affected": 3
    }
}
 

Request      

POST api/expenses/bulk-action

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   integer[]  optional    
action   string     

Example: mark_paid

Must be one of:
  • archive
  • unarchive
  • delete
  • mark_paid
  • mark_unpaid

GET api/expenses

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/expenses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/expenses"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "user_id": 13,
            "client_id": null,
            "vendor_id": null,
            "project_id": null,
            "invoice_id": null,
            "expense_category_id": 1,
            "description": null,
            "amount": 5000,
            "currency": "USD",
            "tax_amount": 0,
            "tax_name": null,
            "tax_rate": 0,
            "expense_date": "2026-10-30",
            "status": "pending",
            "is_archived": false,
            "from_tidybill": false,
            "is_billable": false,
            "is_billed": false,
            "paid_at": null,
            "recouped_at": null,
            "receipt_path": null,
            "reference": null,
            "created_at": "2026-10-30T14:14:00.000000Z",
            "updated_at": "2026-10-30T14:14:00.000000Z"
        },
        {
            "id": 2,
            "user_id": 14,
            "client_id": null,
            "vendor_id": null,
            "project_id": null,
            "invoice_id": null,
            "expense_category_id": 2,
            "description": null,
            "amount": 5000,
            "currency": "USD",
            "tax_amount": 0,
            "tax_name": null,
            "tax_rate": 0,
            "expense_date": "2026-10-30",
            "status": "pending",
            "is_archived": false,
            "from_tidybill": false,
            "is_billable": false,
            "is_billed": false,
            "paid_at": null,
            "recouped_at": null,
            "receipt_path": null,
            "reference": null,
            "created_at": "2026-10-30T14:14:01.000000Z",
            "updated_at": "2026-10-30T14:14:01.000000Z"
        }
    ]
}
 

Request      

GET api/expenses

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/expenses/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/expenses/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/expenses/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "user_id": 15,
        "client_id": null,
        "vendor_id": null,
        "project_id": null,
        "invoice_id": null,
        "expense_category_id": 3,
        "description": null,
        "amount": 5000,
        "currency": "USD",
        "tax_amount": 0,
        "tax_name": null,
        "tax_rate": 0,
        "expense_date": "2026-10-30",
        "status": "pending",
        "is_archived": false,
        "from_tidybill": false,
        "is_billable": false,
        "is_billed": false,
        "paid_at": null,
        "recouped_at": null,
        "receipt_path": null,
        "reference": null,
        "created_at": "2026-10-30T14:14:01.000000Z",
        "updated_at": "2026-10-30T14:14:01.000000Z"
    }
}
 

Request      

GET api/expenses/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the expense. Example: 16

POST api/expenses

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/expenses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"expense_category_id\": 16,
    \"vendor\": \"n\",
    \"description\": \"Animi quos velit et fugiat.\",
    \"amount\": 26,
    \"currency\": \"l\",
    \"tax_amount\": 9,
    \"tax_name\": \"n\",
    \"tax_rate\": 5,
    \"expense_date\": \"2026-10-30T14:14:01\",
    \"is_billable\": false,
    \"reference\": \"k\"
}"
const url = new URL(
    "https://tidybill.app/api/expenses"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "expense_category_id": 16,
    "vendor": "n",
    "description": "Animi quos velit et fugiat.",
    "amount": 26,
    "currency": "l",
    "tax_amount": 9,
    "tax_name": "n",
    "tax_rate": 5,
    "expense_date": "2026-10-30T14:14:01",
    "is_billable": false,
    "reference": "k"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "user_id": 16,
        "client_id": null,
        "vendor_id": null,
        "project_id": null,
        "invoice_id": null,
        "expense_category_id": 4,
        "description": null,
        "amount": 5000,
        "currency": "USD",
        "tax_amount": 0,
        "tax_name": null,
        "tax_rate": 0,
        "expense_date": "2026-10-30",
        "status": "pending",
        "is_archived": false,
        "from_tidybill": false,
        "is_billable": false,
        "is_billed": false,
        "paid_at": null,
        "recouped_at": null,
        "receipt_path": null,
        "reference": null,
        "created_at": "2026-10-30T14:14:01.000000Z",
        "updated_at": "2026-10-30T14:14:01.000000Z"
    }
}
 

Request      

POST api/expenses

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

expense_category_id   integer     

Must match an existing stored value. Example: 16

vendor   string  optional    

Must not be greater than 255 characters. Example: n

vendor_id   string  optional    

Must match an existing stored value.

description   string  optional    

Must not be greater than 2000 characters. Example: Animi quos velit et fugiat.

amount   integer     

Must be at least 1. Example: 26

currency   string  optional    

Must not be greater than 3 characters. Example: l

tax_amount   integer  optional    

Must be at least 0. Example: 9

tax_name   string  optional    

Must not be greater than 50 characters. Example: n

tax_rate   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 5

expense_date   string     

Must be a valid date. Example: 2026-10-30T14:14:01

is_billable   boolean  optional    

Example: false

client_id   string  optional    

Must match an existing stored value.

project_id   string  optional    

Must match an existing stored value.

reference   string  optional    

Must not be greater than 255 characters. Example: k

PUT api/expenses/{id}

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/expenses/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"expense_category_id\": 16,
    \"vendor\": \"n\",
    \"description\": \"Animi quos velit et fugiat.\",
    \"amount\": 26,
    \"currency\": \"l\",
    \"tax_amount\": 9,
    \"tax_name\": \"n\",
    \"tax_rate\": 5,
    \"expense_date\": \"2026-10-30T14:14:01\",
    \"is_billable\": false,
    \"reference\": \"k\"
}"
const url = new URL(
    "https://tidybill.app/api/expenses/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "expense_category_id": 16,
    "vendor": "n",
    "description": "Animi quos velit et fugiat.",
    "amount": 26,
    "currency": "l",
    "tax_amount": 9,
    "tax_name": "n",
    "tax_rate": 5,
    "expense_date": "2026-10-30T14:14:01",
    "is_billable": false,
    "reference": "k"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 5,
        "user_id": 17,
        "client_id": null,
        "vendor_id": null,
        "project_id": null,
        "invoice_id": null,
        "expense_category_id": 5,
        "description": null,
        "amount": 5000,
        "currency": "USD",
        "tax_amount": 0,
        "tax_name": null,
        "tax_rate": 0,
        "expense_date": "2026-10-30",
        "status": "pending",
        "is_archived": false,
        "from_tidybill": false,
        "is_billable": false,
        "is_billed": false,
        "paid_at": null,
        "recouped_at": null,
        "receipt_path": null,
        "reference": null,
        "created_at": "2026-10-30T14:14:01.000000Z",
        "updated_at": "2026-10-30T14:14:01.000000Z"
    }
}
 

Request      

PUT api/expenses/{id}

PATCH api/expenses/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the expense. Example: 16

Body Parameters

expense_category_id   integer  optional    

Must match an existing stored value. Example: 16

vendor   string  optional    

Must not be greater than 255 characters. Example: n

vendor_id   string  optional    

Must match an existing stored value.

description   string  optional    

Must not be greater than 2000 characters. Example: Animi quos velit et fugiat.

amount   integer     

Must be at least 1. Example: 26

currency   string  optional    

Must not be greater than 3 characters. Example: l

tax_amount   integer  optional    

Must be at least 0. Example: 9

tax_name   string  optional    

Must not be greater than 50 characters. Example: n

tax_rate   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 5

expense_date   string     

Must be a valid date. Example: 2026-10-30T14:14:01

is_billable   boolean  optional    

Example: false

client_id   string  optional    

Must match an existing stored value.

project_id   string  optional    

Must match an existing stored value.

reference   string  optional    

Must not be greater than 255 characters. Example: k

DELETE api/expenses/{id}

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/expenses/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/expenses/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/expenses/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the expense. Example: 16

POST api/expenses/{expense_id}/archive

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/expenses/16/archive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/expenses/16/archive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/expenses/{expense_id}/archive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

expense_id   integer     

The ID of the expense. Example: 16

POST api/expenses/{expense_id}/unarchive

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/expenses/16/unarchive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/expenses/16/unarchive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/expenses/{expense_id}/unarchive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

expense_id   integer     

The ID of the expense. Example: 16

POST api/expenses/{expense_id}/mark-paid

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/expenses/16/mark-paid" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/expenses/16/mark-paid"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/expenses/{expense_id}/mark-paid

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

expense_id   integer     

The ID of the expense. Example: 16

POST api/expenses/{expense_id}/mark-unpaid

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/expenses/16/mark-unpaid" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/expenses/16/mark-unpaid"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/expenses/{expense_id}/mark-unpaid

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

expense_id   integer     

The ID of the expense. Example: 16

POST api/expenses/{expense_id}/receipt

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/expenses/16/receipt" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"receipt\": \"b\"
}"
const url = new URL(
    "https://tidybill.app/api/expenses/16/receipt"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "receipt": "b"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 6,
        "user_id": 18,
        "client_id": null,
        "vendor_id": null,
        "project_id": null,
        "invoice_id": null,
        "expense_category_id": 6,
        "description": null,
        "amount": 5000,
        "currency": "USD",
        "tax_amount": 0,
        "tax_name": null,
        "tax_rate": 0,
        "expense_date": "2026-10-30",
        "status": "pending",
        "is_archived": false,
        "from_tidybill": false,
        "is_billable": false,
        "is_billed": false,
        "paid_at": null,
        "recouped_at": null,
        "receipt_path": null,
        "reference": null,
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z"
    }
}
 

Request      

POST api/expenses/{expense_id}/receipt

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

expense_id   integer     

The ID of the expense. Example: 16

Body Parameters

receipt   string     

Must not be greater than 5120 characters. Example: b

GET api/expenses/{expense_id}/receipt

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/expenses/16/receipt" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/expenses/16/receipt"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


file
 

Request      

GET api/expenses/{expense_id}/receipt

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

expense_id   integer     

The ID of the expense. Example: 16

Credits

Export credits as CSV or PDF.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/credits/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/credits/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/credits/export

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Bulk action on credits.

requires authentication

Supported actions: archive, unarchive, delete. Returns the count of affected records.

Example request:
curl --request POST \
    "https://tidybill.app/api/credits/bulk-action" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ],
    \"action\": \"delete\"
}"
const url = new URL(
    "https://tidybill.app/api/credits/bulk-action"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ],
    "action": "delete"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "affected": 3
    }
}
 

Request      

POST api/credits/bulk-action

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   integer[]  optional    
action   string     

Example: delete

Must be one of:
  • archive
  • unarchive
  • delete
  • restore

List credits.

requires authentication

Supports filtering by client_id, type, and has_balance. Results are paginated with active/archived counts in the meta.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/credits" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/credits"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "client_id": 65,
            "invoice_id": null,
            "type": "credit_note",
            "is_archived": false,
            "amount": 26768,
            "balance": 26768,
            "currency": "USD",
            "description": "Quidem nostrum qui commodi incidunt iure odit.",
            "date": "2026-10-30T00:00:00.000000Z",
            "created_at": "2026-10-30T14:14:02.000000Z",
            "updated_at": "2026-10-30T14:14:02.000000Z",
            "deleted_at": null
        },
        {
            "id": 2,
            "client_id": 66,
            "invoice_id": null,
            "type": "credit_note",
            "is_archived": false,
            "amount": 13913,
            "balance": 13913,
            "currency": "USD",
            "description": "Ratione nemo voluptate accusamus ut et recusandae modi rerum.",
            "date": "2026-10-30T00:00:00.000000Z",
            "created_at": "2026-10-30T14:14:02.000000Z",
            "updated_at": "2026-10-30T14:14:02.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/credits

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get a credit.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/credits/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/credits/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "client_id": 67,
        "invoice_id": null,
        "type": "credit_note",
        "is_archived": false,
        "amount": 26768,
        "balance": 26768,
        "currency": "USD",
        "description": "Quidem nostrum qui commodi incidunt iure odit.",
        "date": "2026-10-30T00:00:00.000000Z",
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z",
        "deleted_at": null
    }
}
 

Request      

GET api/credits/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the credit. Example: 16

Create a credit.

requires authentication

Creates a credit note for a client. The initial balance is automatically set equal to amount. Currency defaults to the company currency if not provided.

Example request:
curl --request POST \
    "https://tidybill.app/api/credits" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"client_id\": \"architecto\",
    \"type\": \"overpayment\",
    \"amount\": 22,
    \"currency\": \"gzm\",
    \"description\": \"Et fugiat sunt nihil accusantium.\",
    \"date\": \"2026-10-30T14:14:02\"
}"
const url = new URL(
    "https://tidybill.app/api/credits"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "client_id": "architecto",
    "type": "overpayment",
    "amount": 22,
    "currency": "gzm",
    "description": "Et fugiat sunt nihil accusantium.",
    "date": "2026-10-30T14:14:02"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "client_id": 68,
        "invoice_id": null,
        "type": "credit_note",
        "is_archived": false,
        "amount": 21638,
        "balance": 21638,
        "currency": "USD",
        "description": "Modi deserunt aut ab provident perspiciatis.",
        "date": "2026-10-30T00:00:00.000000Z",
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/credits

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

client_id   string     

Must match an existing stored value. Example: architecto

invoice_id   string  optional    

Must match an existing stored value.

type   string     

Example: overpayment

Must be one of:
  • credit_note
  • overpayment
  • prepayment
amount   integer     

Must be at least 1. Example: 22

currency   string  optional    

Must be 3 characters. Example: gzm

description   string  optional    

Must not be greater than 2000 characters. Example: Et fugiat sunt nihil accusantium.

date   string     

Must be a valid date. Example: 2026-10-30T14:14:02

Restore a deleted credit.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/credits/16/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/credits/16/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {}
}
 

Request      

POST api/credits/{credit_id}/restore

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

credit_id   integer     

The ID of the credit. Example: 16

Archive a credit.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/credits/16/archive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/credits/16/archive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/credits/{credit_id}/archive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

credit_id   integer     

The ID of the credit. Example: 16

Unarchive a credit.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/credits/16/unarchive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/credits/16/unarchive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/credits/{credit_id}/unarchive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

credit_id   integer     

The ID of the credit. Example: 16

Get client credit balance.

requires authentication

Returns the total available credit balance and list of credits with a remaining balance for the given client.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/clients/16/credits" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16/credits"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "client_id": 1,
        "available_balance": 5000,
        "credits": []
    }
}
 

Request      

GET api/clients/{client_id}/credits

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

Apply credit to an invoice.

requires authentication

Applies part or all of a credit's balance to an outstanding invoice. Both must belong to the same client. The invoice must be in a payable state (sent, viewed, partial, or overdue). Automatically transitions the invoice to paid or partial based on the resulting amount_due.

Example request:
curl --request POST \
    "https://tidybill.app/api/credits/16/apply" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"invoice_id\": \"architecto\",
    \"amount\": 22
}"
const url = new URL(
    "https://tidybill.app/api/credits/16/apply"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "invoice_id": "architecto",
    "amount": 22
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 5,
        "client_id": 69,
        "invoice_id": null,
        "type": "credit_note",
        "is_archived": false,
        "amount": 11278,
        "balance": 11278,
        "currency": "USD",
        "description": "Quos velit et fugiat sunt nihil accusantium harum.",
        "date": "2026-10-30T00:00:00.000000Z",
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/credits/{credit_id}/apply

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

credit_id   integer     

The ID of the credit. Example: 16

Body Parameters

invoice_id   string     

Example: architecto

amount   integer     

Must be at least 1. Example: 22

Recurring Invoices

Export recurring invoices as CSV or PDF.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/recurring-invoices/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/recurring-invoices/export

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Bulk action on recurring invoices.

requires authentication

Supported actions: activate, pause, archive, delete. Returns the count of affected records.

Example request:
curl --request POST \
    "https://tidybill.app/api/recurring-invoices/bulk-action" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ],
    \"action\": \"architecto\"
}"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/bulk-action"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ],
    "action": "architecto"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "affected": 3
    }
}
 

Request      

POST api/recurring-invoices/bulk-action

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   integer[]  optional    
action   string     

Example: architecto

Restore a deleted recurring invoice.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/recurring-invoices/16/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {}
}
 

Request      

POST api/recurring-invoices/{recurringInvoice_id}/restore

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurringInvoice_id   integer     

The ID of the recurringInvoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

List recurring invoices.

requires authentication

Supports filtering by status, client_id, and frequency. Results are paginated and include per-status counts in the meta.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/recurring-invoices?filter%5Bstatus%5D=active&filter%5Bclient_id%5D=1&filter%5Bfrequency%5D=monthly&sort=next_generate_date" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices"
);

const params = {
    "filter[status]": "active",
    "filter[client_id]": "1",
    "filter[frequency]": "monthly",
    "sort": "next_generate_date",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "client_id": 70,
            "title": "Adipisci quidem nostrum qui.",
            "status": "active",
            "is_archived": false,
            "frequency": "monthly",
            "frequency_label": "Monthly",
            "interval": 1,
            "start_date": "2026-10-30",
            "end_date": null,
            "next_generate_date": "2026-10-30",
            "last_generated_at": null,
            "auto_send": false,
            "include_unbilled_expenses": false,
            "currency": "USD",
            "subtotal": 0,
            "tax_total": 0,
            "discount_type": null,
            "discount_value": null,
            "discount_total": 0,
            "total": 0,
            "notes": null,
            "payment_terms": 30,
            "occurrences_generated": 0,
            "max_occurrences": null,
            "created_at": "2026-10-30T14:14:02.000000Z",
            "updated_at": "2026-10-30T14:14:02.000000Z",
            "deleted_at": null
        },
        {
            "id": 2,
            "client_id": 71,
            "title": "Qui repudiandae laboriosam.",
            "status": "active",
            "is_archived": false,
            "frequency": "monthly",
            "frequency_label": "Monthly",
            "interval": 1,
            "start_date": "2026-10-30",
            "end_date": null,
            "next_generate_date": "2026-10-30",
            "last_generated_at": null,
            "auto_send": false,
            "include_unbilled_expenses": false,
            "currency": "USD",
            "subtotal": 0,
            "tax_total": 0,
            "discount_type": null,
            "discount_value": null,
            "discount_total": 0,
            "total": 0,
            "notes": null,
            "payment_terms": 30,
            "occurrences_generated": 0,
            "max_occurrences": null,
            "created_at": "2026-10-30T14:14:02.000000Z",
            "updated_at": "2026-10-30T14:14:02.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/recurring-invoices

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

filter[status]   string  optional    

Filter by status. Example: active

filter[client_id]   integer  optional    

Filter by client ID. Example: 1

filter[frequency]   string  optional    

Filter by frequency. Example: monthly

sort   string  optional    

Sort field (prefix with - for descending). Example: next_generate_date

Get a recurring invoice.

requires authentication

Includes line items, client, and the list of invoices generated from this template.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/recurring-invoices/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "client_id": 72,
        "title": "Adipisci quidem nostrum qui.",
        "status": "active",
        "is_archived": false,
        "frequency": "monthly",
        "frequency_label": "Monthly",
        "interval": 1,
        "start_date": "2026-10-30",
        "end_date": null,
        "next_generate_date": "2026-10-30",
        "last_generated_at": null,
        "auto_send": false,
        "include_unbilled_expenses": false,
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "payment_terms": 30,
        "occurrences_generated": 0,
        "max_occurrences": null,
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z",
        "deleted_at": null
    }
}
 

Request      

GET api/recurring-invoices/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the recurring invoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

Create a recurring invoice.

requires authentication

Creates an active recurring invoice template. The next_generate_date is set to start_date and invoices are generated automatically on schedule. Pass line_items to attach them in the same request.

Example request:
curl --request POST \
    "https://tidybill.app/api/recurring-invoices" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"client_id\": \"architecto\",
    \"title\": \"n\",
    \"frequency\": \"custom\",
    \"interval\": 67,
    \"start_date\": \"2026-10-30T14:14:02\",
    \"end_date\": \"2052-11-22\",
    \"auto_send\": true,
    \"include_unbilled_expenses\": false,
    \"currency\": \"ngz\",
    \"discount_type\": \"fixed\",
    \"discount_value\": 16,
    \"notes\": \"n\",
    \"payment_terms\": 84,
    \"next_generate_date\": \"2026-10-30T14:14:02\",
    \"max_occurrences\": 66,
    \"line_items\": [
        {
            \"id\": 16,
            \"description\": \"Et animi quos velit et fugiat.\",
            \"quantity\": 4326.41688,
            \"unit_price\": 4326.41688,
            \"tax_name\": \"m\",
            \"tax_rate\": 15,
            \"tax_category\": \"AE\",
            \"sort_order\": 16,
            \"account_code\": \"n\",
            \"rebill_vendor_id\": 16,
            \"tax_details\": {
                \"unit_code\": \"ngzmiy\",
                \"tax_exemption_reason_code\": \"v\",
                \"tax_exemption_reason\": \"d\"
            }
        }
    ]
}"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "client_id": "architecto",
    "title": "n",
    "frequency": "custom",
    "interval": 67,
    "start_date": "2026-10-30T14:14:02",
    "end_date": "2052-11-22",
    "auto_send": true,
    "include_unbilled_expenses": false,
    "currency": "ngz",
    "discount_type": "fixed",
    "discount_value": 16,
    "notes": "n",
    "payment_terms": 84,
    "next_generate_date": "2026-10-30T14:14:02",
    "max_occurrences": 66,
    "line_items": [
        {
            "id": 16,
            "description": "Et animi quos velit et fugiat.",
            "quantity": 4326.41688,
            "unit_price": 4326.41688,
            "tax_name": "m",
            "tax_rate": 15,
            "tax_category": "AE",
            "sort_order": 16,
            "account_code": "n",
            "rebill_vendor_id": 16,
            "tax_details": {
                "unit_code": "ngzmiy",
                "tax_exemption_reason_code": "v",
                "tax_exemption_reason": "d"
            }
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "client_id": 73,
        "title": "Accusantium harum mollitia modi.",
        "status": "active",
        "is_archived": false,
        "frequency": "monthly",
        "frequency_label": "Monthly",
        "interval": 1,
        "start_date": "2026-10-30",
        "end_date": null,
        "next_generate_date": "2026-10-30",
        "last_generated_at": null,
        "auto_send": false,
        "include_unbilled_expenses": false,
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "payment_terms": 30,
        "occurrences_generated": 0,
        "max_occurrences": null,
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z",
        "deleted_at": null
    },
    "status": "201"
}
 

Request      

POST api/recurring-invoices

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

client_id   string     

Must match an existing stored value. Example: architecto

title   string     

Must not be greater than 255 characters. Example: n

frequency   string     

Example: custom

Must be one of:
  • weekly
  • monthly
  • quarterly
  • yearly
  • custom
interval   integer  optional    

Must be at least 1. Example: 67

start_date   string     

Must be a valid date. Example: 2026-10-30T14:14:02

end_date   string  optional    

Must be a valid date. Must be a date after start_date. Example: 2052-11-22

auto_send   boolean  optional    

Example: true

include_unbilled_expenses   boolean  optional    

Example: false

currency   string  optional    

Must be 3 characters. Example: ngz

discount_type   string  optional    

Example: fixed

Must be one of:
  • percentage
  • fixed
discount_value   integer  optional    

Example: 16

notes   string  optional    

Must not be greater than 2000 characters. Example: n

payment_terms   integer  optional    

Must be at least 0. Example: 84

next_generate_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:14:02

max_occurrences   integer  optional    

Must be at least 1. Example: 66

line_items   object[]  optional    

Must not have more than 500 items.

id   integer  optional    

Example: 16

description   string     

Must not be greater than 1000 characters. Example: Et animi quos velit et fugiat.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

service_id   string  optional    

Must match an existing stored value.

tax_name   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate   number  optional    

Must be at least 0. Must not be greater than 100. Example: 15

tax_category   string  optional    

Example: AE

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

rebill_vendor_id   integer  optional    

Must match an existing stored value. Example: 16

tax_details   object  optional    
unit_code   string  optional    

Must not be greater than 10 characters. Example: ngzmiy

tax_exemption_reason_code   string  optional    

Must not be greater than 50 characters. Example: v

tax_exemption_reason   string  optional    

Must not be greater than 500 characters. Example: d

Update a recurring invoice.

requires authentication

If line_items is provided, the full set of line items is synced. Omit line_items to update template fields only without touching line items.

Example request:
curl --request PUT \
    "https://tidybill.app/api/recurring-invoices/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"b\",
    \"frequency\": \"custom\",
    \"interval\": 22,
    \"start_date\": \"2026-10-30T14:14:02\",
    \"end_date\": \"2052-11-22\",
    \"auto_send\": true,
    \"include_unbilled_expenses\": true,
    \"currency\": \"ngz\",
    \"discount_type\": \"fixed\",
    \"discount_value\": 16,
    \"notes\": \"n\",
    \"payment_terms\": 84,
    \"next_generate_date\": \"2026-10-30T14:14:02\",
    \"max_occurrences\": 66,
    \"line_items\": [
        {
            \"id\": 16,
            \"description\": \"Et animi quos velit et fugiat.\",
            \"quantity\": 4326.41688,
            \"unit_price\": 4326.41688,
            \"tax_name\": \"m\",
            \"tax_rate\": 15,
            \"tax_category\": \"O\",
            \"sort_order\": 16,
            \"account_code\": \"n\",
            \"rebill_vendor_id\": 16,
            \"tax_details\": {
                \"unit_code\": \"ngzmiy\",
                \"tax_exemption_reason_code\": \"v\",
                \"tax_exemption_reason\": \"d\"
            }
        }
    ]
}"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "b",
    "frequency": "custom",
    "interval": 22,
    "start_date": "2026-10-30T14:14:02",
    "end_date": "2052-11-22",
    "auto_send": true,
    "include_unbilled_expenses": true,
    "currency": "ngz",
    "discount_type": "fixed",
    "discount_value": 16,
    "notes": "n",
    "payment_terms": 84,
    "next_generate_date": "2026-10-30T14:14:02",
    "max_occurrences": 66,
    "line_items": [
        {
            "id": 16,
            "description": "Et animi quos velit et fugiat.",
            "quantity": 4326.41688,
            "unit_price": 4326.41688,
            "tax_name": "m",
            "tax_rate": 15,
            "tax_category": "O",
            "sort_order": 16,
            "account_code": "n",
            "rebill_vendor_id": 16,
            "tax_details": {
                "unit_code": "ngzmiy",
                "tax_exemption_reason_code": "v",
                "tax_exemption_reason": "d"
            }
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 5,
        "client_id": 74,
        "title": "Accusantium harum mollitia modi.",
        "status": "active",
        "is_archived": false,
        "frequency": "monthly",
        "frequency_label": "Monthly",
        "interval": 1,
        "start_date": "2026-10-30",
        "end_date": null,
        "next_generate_date": "2026-10-30",
        "last_generated_at": null,
        "auto_send": false,
        "include_unbilled_expenses": false,
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "payment_terms": 30,
        "occurrences_generated": 0,
        "max_occurrences": null,
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z",
        "deleted_at": null
    }
}
 

Request      

PUT api/recurring-invoices/{id}

PATCH api/recurring-invoices/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the recurring invoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

Body Parameters

client_id   string  optional    

Must match an existing stored value.

title   string  optional    

Must not be greater than 255 characters. Example: b

frequency   string  optional    

Example: custom

Must be one of:
  • weekly
  • monthly
  • quarterly
  • yearly
  • custom
interval   integer  optional    

Must be at least 1. Example: 22

start_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:14:02

end_date   string  optional    

Must be a valid date. Must be a date after start_date. Example: 2052-11-22

auto_send   boolean  optional    

Example: true

include_unbilled_expenses   boolean  optional    

Example: true

currency   string  optional    

Must be 3 characters. Example: ngz

discount_type   string  optional    

Example: fixed

Must be one of:
  • percentage
  • fixed
discount_value   integer  optional    

Example: 16

notes   string  optional    

Must not be greater than 2000 characters. Example: n

payment_terms   integer  optional    

Must be at least 0. Example: 84

next_generate_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:14:02

max_occurrences   integer  optional    

Must be at least 1. Example: 66

line_items   object[]  optional    

Must not have more than 500 items.

id   integer  optional    

Example: 16

description   string     

Must not be greater than 1000 characters. Example: Et animi quos velit et fugiat.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

service_id   string  optional    

Must match an existing stored value.

tax_name   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate   number  optional    

Must be at least 0. Must not be greater than 100. Example: 15

tax_category   string  optional    

Example: O

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

rebill_vendor_id   integer  optional    

Must match an existing stored value. Example: 16

tax_details   object  optional    
unit_code   string  optional    

Must not be greater than 10 characters. Example: ngzmiy

tax_exemption_reason_code   string  optional    

Must not be greater than 50 characters. Example: v

tax_exemption_reason   string  optional    

Must not be greater than 500 characters. Example: d

Delete a recurring invoice.

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/recurring-invoices/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/recurring-invoices/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the recurring invoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

List line items for a recurring invoice.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/recurring-invoices/16/line-items" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/line-items"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "service_id": null,
            "time_entry_id": null,
            "expense_id": null,
            "rebill_vendor_id": null,
            "description": "Nostrum qui commodi incidunt iure.",
            "quantity": 1.02,
            "unit_price": "13053.000000",
            "amount": 13314,
            "tax_name_1": null,
            "tax_rate_1": null,
            "tax_amount_1": 0,
            "tax_name_2": null,
            "tax_rate_2": null,
            "tax_amount_2": 0,
            "tax_category": null,
            "tax_category_applied": "S",
            "sort_order": 0,
            "is_late_fee": false,
            "created_at": "2026-10-30T14:14:02.000000Z",
            "updated_at": "2026-10-30T14:14:02.000000Z"
        },
        {
            "id": 2,
            "service_id": null,
            "time_entry_id": null,
            "expense_id": null,
            "rebill_vendor_id": null,
            "description": "Nemo voluptate accusamus ut et.",
            "quantity": 8.73,
            "unit_price": "36405.000000",
            "amount": 317816,
            "tax_name_1": null,
            "tax_rate_1": null,
            "tax_amount_1": 0,
            "tax_name_2": null,
            "tax_rate_2": null,
            "tax_amount_2": 0,
            "tax_category": null,
            "tax_category_applied": "S",
            "sort_order": 0,
            "is_late_fee": false,
            "created_at": "2026-10-30T14:14:02.000000Z",
            "updated_at": "2026-10-30T14:14:02.000000Z"
        }
    ]
}
 

Request      

GET api/recurring-invoices/{recurring_invoice_id}/line-items

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurring_invoice_id   integer     

The ID of the recurring invoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

Add a line item to a recurring invoice.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/recurring-invoices/16/line-items" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Eius et animi quos velit et.\",
    \"quantity\": 4326.41688,
    \"unit_price\": 4326.41688,
    \"tax_name_1\": \"m\",
    \"tax_rate_1\": 15,
    \"tax_name_2\": \"y\",
    \"tax_rate_2\": 1,
    \"tax_category\": \"G\",
    \"sort_order\": 16,
    \"account_code\": \"n\"
}"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/line-items"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Eius et animi quos velit et.",
    "quantity": 4326.41688,
    "unit_price": 4326.41688,
    "tax_name_1": "m",
    "tax_rate_1": 15,
    "tax_name_2": "y",
    "tax_rate_2": 1,
    "tax_category": "G",
    "sort_order": 16,
    "account_code": "n"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "service_id": null,
        "time_entry_id": null,
        "expense_id": null,
        "rebill_vendor_id": null,
        "description": "Velit et fugiat sunt nihil accusantium.",
        "quantity": 3.2,
        "unit_price": "2681.000000",
        "amount": 8579,
        "tax_name_1": null,
        "tax_rate_1": null,
        "tax_amount_1": 0,
        "tax_name_2": null,
        "tax_rate_2": null,
        "tax_amount_2": 0,
        "tax_category": null,
        "tax_category_applied": "S",
        "sort_order": 0,
        "is_late_fee": false,
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z"
    },
    "status": "201"
}
 

Request      

POST api/recurring-invoices/{recurring_invoice_id}/line-items

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurring_invoice_id   integer     

The ID of the recurring invoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

Body Parameters

service_id   string  optional    

Must match an existing stored value.

description   string     

Must not be greater than 1000 characters. Example: Eius et animi quos velit et.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

tax_name_1   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate_1   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 15

tax_name_2   string  optional    

Must not be greater than 50 characters. Example: y

tax_rate_2   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 1

tax_category   string  optional    

Example: G

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

Update a line item on a recurring invoice.

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/recurring-invoices/16/line-items/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Eius et animi quos velit et.\",
    \"quantity\": 4326.41688,
    \"unit_price\": 4326.41688,
    \"tax_name_1\": \"m\",
    \"tax_rate_1\": 15,
    \"tax_name_2\": \"y\",
    \"tax_rate_2\": 1,
    \"tax_category\": \"AE\",
    \"sort_order\": 16,
    \"account_code\": \"n\"
}"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/line-items/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Eius et animi quos velit et.",
    "quantity": 4326.41688,
    "unit_price": 4326.41688,
    "tax_name_1": "m",
    "tax_rate_1": 15,
    "tax_name_2": "y",
    "tax_rate_2": 1,
    "tax_category": "AE",
    "sort_order": 16,
    "account_code": "n"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "service_id": null,
        "time_entry_id": null,
        "expense_id": null,
        "rebill_vendor_id": null,
        "description": "Velit et fugiat sunt nihil accusantium.",
        "quantity": 3.2,
        "unit_price": "2681.000000",
        "amount": 8579,
        "tax_name_1": null,
        "tax_rate_1": null,
        "tax_amount_1": 0,
        "tax_name_2": null,
        "tax_rate_2": null,
        "tax_amount_2": 0,
        "tax_category": null,
        "tax_category_applied": "S",
        "sort_order": 0,
        "is_late_fee": false,
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z"
    }
}
 

Request      

PUT api/recurring-invoices/{recurring_invoice_id}/line-items/{lineItem_id}

PATCH api/recurring-invoices/{recurring_invoice_id}/line-items/{lineItem_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurring_invoice_id   integer     

The ID of the recurring invoice. Example: 16

lineItem_id   integer     

The ID of the lineItem. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

lineItem   integer     

The line item ID. Example: 1

Body Parameters

service_id   string  optional    

Must match an existing stored value.

description   string     

Must not be greater than 1000 characters. Example: Eius et animi quos velit et.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

tax_name_1   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate_1   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 15

tax_name_2   string  optional    

Must not be greater than 50 characters. Example: y

tax_rate_2   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 1

tax_category   string  optional    

Example: AE

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

Delete a line item from a recurring invoice.

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/recurring-invoices/16/line-items/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/line-items/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/recurring-invoices/{recurring_invoice_id}/line-items/{lineItem_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurring_invoice_id   integer     

The ID of the recurring invoice. Example: 16

lineItem_id   integer     

The ID of the lineItem. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

lineItem   integer     

The line item ID. Example: 1

Move a recurring invoice to another company.

requires authentication

Reassigns the template to the target company. Clears the client association, nullifies service references on line items, and unlinks previously generated invoices in the source company.

Example request:
curl --request POST \
    "https://tidybill.app/api/recurring-invoices/16/move" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"target_company_id\": 16
}"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/move"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "target_company_id": 16
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 10,
        "client_id": 79,
        "title": "Et animi quos.",
        "status": "active",
        "is_archived": false,
        "frequency": "monthly",
        "frequency_label": "Monthly",
        "interval": 1,
        "start_date": "2026-10-30",
        "end_date": null,
        "next_generate_date": "2026-10-30",
        "last_generated_at": null,
        "auto_send": false,
        "include_unbilled_expenses": false,
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "payment_terms": 30,
        "occurrences_generated": 0,
        "max_occurrences": null,
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/recurring-invoices/{recurringInvoice_id}/move

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurringInvoice_id   integer     

The ID of the recurringInvoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

Body Parameters

target_company_id   integer     

Example: 16

Archive a recurring invoice.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/recurring-invoices/16/archive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/archive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/recurring-invoices/{recurringInvoice_id}/archive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurringInvoice_id   integer     

The ID of the recurringInvoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

Unarchive a recurring invoice.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/recurring-invoices/16/unarchive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/unarchive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

POST api/recurring-invoices/{recurringInvoice_id}/unarchive

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurringInvoice_id   integer     

The ID of the recurringInvoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

Pause a recurring invoice.

requires authentication

Stops automatic invoice generation. Only active recurring invoices can be paused.

Example request:
curl --request POST \
    "https://tidybill.app/api/recurring-invoices/16/pause" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/pause"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 11,
        "client_id": 80,
        "title": "Adipisci quidem nostrum qui.",
        "status": "active",
        "is_archived": false,
        "frequency": "monthly",
        "frequency_label": "Monthly",
        "interval": 1,
        "start_date": "2026-10-30",
        "end_date": null,
        "next_generate_date": "2026-10-30",
        "last_generated_at": null,
        "auto_send": false,
        "include_unbilled_expenses": false,
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "payment_terms": 30,
        "occurrences_generated": 0,
        "max_occurrences": null,
        "created_at": "2026-10-30T14:14:03.000000Z",
        "updated_at": "2026-10-30T14:14:03.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/recurring-invoices/{recurringInvoice_id}/pause

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurringInvoice_id   integer     

The ID of the recurringInvoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

Resume a paused recurring invoice.

requires authentication

Resumes automatic invoice generation by setting the status back to active. Only paused recurring invoices can be resumed.

Example request:
curl --request POST \
    "https://tidybill.app/api/recurring-invoices/16/resume" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/resume"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 12,
        "client_id": 81,
        "title": "Adipisci quidem nostrum qui.",
        "status": "active",
        "is_archived": false,
        "frequency": "monthly",
        "frequency_label": "Monthly",
        "interval": 1,
        "start_date": "2026-10-30",
        "end_date": null,
        "next_generate_date": "2026-10-30",
        "last_generated_at": null,
        "auto_send": false,
        "include_unbilled_expenses": false,
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "payment_terms": 30,
        "occurrences_generated": 0,
        "max_occurrences": null,
        "created_at": "2026-10-30T14:14:03.000000Z",
        "updated_at": "2026-10-30T14:14:03.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/recurring-invoices/{recurringInvoice_id}/resume

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurringInvoice_id   integer     

The ID of the recurringInvoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

Manually generate an invoice from a recurring invoice.

requires authentication

Immediately generates the next invoice regardless of the scheduled date. Returns 422 if the maximum occurrence limit has been reached.

Example request:
curl --request POST \
    "https://tidybill.app/api/recurring-invoices/16/generate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/recurring-invoices/16/generate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 22,
        "uuid": "1ba4dc3c-8c1c-49f5-911f-0412267ea713",
        "client_id": 82,
        "recurring_invoice_id": null,
        "invoice_number": "INV-52976",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Tromp-Leffler",
            "legal_name": null,
            "email": "mitchell.matilda@feeney.com",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:14:03.000000Z",
        "updated_at": "2026-10-30T14:14:03.000000Z",
        "deleted_at": null
    },
    "status": "201"
}
 

Request      

POST api/recurring-invoices/{recurringInvoice_id}/generate

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recurringInvoice_id   integer     

The ID of the recurringInvoice. Example: 16

recurringInvoice   integer     

The recurring invoice ID. Example: 1

Billing

List Stripe prices for all plans.

requires authentication

Returns active recurring prices per plan keyed by plan name. Cached for one hour.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/billing/prices" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/billing/prices"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "starter": [
            {
                "price_id": "price_starter_monthly",
                "amount": 900,
                "currency": "usd",
                "interval": "month",
                "interval_count": 1
            },
            {
                "price_id": "price_starter_annual",
                "amount": 700,
                "currency": "usd",
                "interval": "month",
                "interval_count": 1
            }
        ],
        "pro": [
            {
                "price_id": "price_pro_monthly",
                "amount": 1800,
                "currency": "usd",
                "interval": "month",
                "interval_count": 1
            }
        ]
    }
}
 

Request      

GET api/billing/prices

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get current subscription.

requires authentication

Returns the authenticated user's active subscription or a default free plan object.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/billing/subscription" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/billing/subscription"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "plan": "starter",
        "status": "active",
        "trial_ends_at": null,
        "current_period_end": "2026-05-01T00:00:00Z"
    }
}
 

Request      

GET api/billing/subscription

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

List available plans.

requires authentication

Returns all plan tiers and their feature limits.

Unlimited limits are encoded as 0 (e.g. pro max_clients).

Example request:
curl --request GET \
    --get "https://tidybill.app/api/billing/plans" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/billing/plans"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "plan": "free",
            "max_companies": 1,
            "monthly_price_cents": 0,
            "annual_price_monthly_cents": 0,
            "max_clients": 5,
            "max_invoices_per_month": 5,
            "max_projects": 3,
            "max_team_members": 1,
            "feature_recurring": false,
            "feature_time_tracking": false,
            "feature_quotes": false,
            "feature_templates": false,
            "feature_portal": false,
            "feature_api_access": false
        },
        {
            "id": 2,
            "plan": "starter",
            "max_companies": 2,
            "monthly_price_cents": 900,
            "annual_price_monthly_cents": 700,
            "max_clients": 25,
            "max_invoices_per_month": 50,
            "max_projects": 10,
            "max_team_members": 3,
            "feature_recurring": true,
            "feature_time_tracking": true,
            "feature_quotes": true,
            "feature_templates": false,
            "feature_portal": true,
            "feature_api_access": false
        },
        {
            "id": 3,
            "plan": "pro",
            "max_companies": 5,
            "monthly_price_cents": 1800,
            "annual_price_monthly_cents": 1500,
            "max_clients": 0,
            "max_invoices_per_month": 0,
            "max_projects": 0,
            "max_team_members": 25,
            "feature_recurring": true,
            "feature_time_tracking": true,
            "feature_quotes": true,
            "feature_templates": true,
            "feature_portal": true,
            "feature_api_access": true
        }
    ]
}
 

Request      

GET api/billing/plans

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get current plan usage.

requires authentication

Returns usage counts for the authenticated user's companies against their plan limits.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/billing/usage" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/billing/usage"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "clients": 12,
        "invoices_this_month": 8,
        "projects": 4,
        "team_members": 2,
        "companies": 1,
        "max_companies": 2
    }
}
 

Request      

GET api/billing/usage

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

List Stripe billing invoices.

requires authentication

Returns the last 12 Stripe invoices for the authenticated user's subscription. Returns an empty array if the user has no Stripe customer ID.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/billing/invoices" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/billing/invoices"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": "in_xxx",
            "number": "INV-0001",
            "amount": 900,
            "currency": "USD",
            "status": "paid",
            "date": "2026-03-01",
            "pdf_url": "https://pay.stripe.com/invoice/xxx/pdf"
        }
    ]
}
 

Example response (200, No Stripe customer):


{
    "data": []
}
 

Request      

GET api/billing/invoices

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Create a Stripe Checkout session.

requires authentication

Creates a Stripe Checkout session for the given plan and price. Returns the hosted checkout URL.

Example request:
curl --request POST \
    "https://tidybill.app/api/billing/checkout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"plan\": \"starter\",
    \"price_id\": \"price_abc123\"
}"
const url = new URL(
    "https://tidybill.app/api/billing/checkout"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "plan": "starter",
    "price_id": "price_abc123"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "checkout_url": "https://checkout.stripe.com/pay/cs_live_xxx",
        "plan": "starter"
    }
}
 

Example response (422):


{
    "message": "Plan not configured."
}
 

Request      

POST api/billing/checkout

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

plan   string     

The plan to subscribe to. Example: starter

price_id   string     

The Stripe price ID. Must start with price_. Example: price_abc123

Get Stripe Billing Portal URL.

requires authentication

Returns a URL to the Stripe Customer Portal where the user can manage their subscription. Returns null if the user has no Stripe customer ID.

Example request:
curl --request POST \
    "https://tidybill.app/api/billing/portal" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/billing/portal"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "portal_url": "https://billing.stripe.com/session/xxx"
    }
}
 

Example response (200, No Stripe customer):


{
    "data": {
        "portal_url": null
    }
}
 

Request      

POST api/billing/portal

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Settings

Get company settings.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 186,
        "uuid": "624130e2-e31d-46fa-a64a-5bdd4d91d40b",
        "name": "Gusikowski, Littel and Smith",
        "legal_name": null,
        "email": "maya43@jacobs.com",
        "email_verified": false,
        "phone": null,
        "address_line_1": null,
        "address_line_2": null,
        "city": null,
        "state": null,
        "postal_code": null,
        "country": null,
        "currency": "USD",
        "tax_number": null,
        "vat_id": null,
        "vat_registered": true,
        "logo_path": null,
        "invoice_prefix": "INV-",
        "invoice_next_number": 1,
        "quote_prefix": "QUO-",
        "quote_next_number": 1,
        "invoice_layout": "classic",
        "default_payment_terms": 30,
        "default_hourly_rate": null,
        "default_tax_name_1": "VAT",
        "default_tax_rate_1": 1500,
        "default_tax_name_2": null,
        "default_tax_rate_2": null,
        "default_accounting_basis": "accrual",
        "automatic_tax_enabled": false,
        "late_fee_type": null,
        "late_fee_value": null,
        "late_fee_days": null,
        "created_at": "2026-10-30T14:14:03.000000Z",
        "updated_at": "2026-10-30T14:14:03.000000Z"
    }
}
 

Request      

GET api/settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update company settings.

requires authentication

Updates general company settings including address, currency, invoice/quote prefix, default tax rates, default payment terms, and hourly rate. All fields are optional (PATCH semantics).

Example request:
curl --request PUT \
    "https://tidybill.app/api/settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"legal_name\": \"n\",
    \"email\": \"ashly64@example.com\",
    \"phone\": \"v\",
    \"address_line_1\": \"d\",
    \"address_line_2\": \"l\",
    \"city\": \"j\",
    \"state\": \"n\",
    \"postal_code\": \"ikhwaykcmyuwpwlv\",
    \"country\": \"qw\",
    \"currency\": \"rsi\",
    \"tax_number\": \"t\",
    \"invoice_prefix\": \"cpscql\",
    \"quote_prefix\": \"dzsnrw\",
    \"default_payment_terms\": 19,
    \"default_hourly_rate\": 33,
    \"default_tax_name_1\": \"j\",
    \"default_tax_rate_1\": 17,
    \"default_tax_name_2\": \"v\",
    \"default_tax_rate_2\": 24,
    \"invoice_layout\": \"classic\"
}"
const url = new URL(
    "https://tidybill.app/api/settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "legal_name": "n",
    "email": "ashly64@example.com",
    "phone": "v",
    "address_line_1": "d",
    "address_line_2": "l",
    "city": "j",
    "state": "n",
    "postal_code": "ikhwaykcmyuwpwlv",
    "country": "qw",
    "currency": "rsi",
    "tax_number": "t",
    "invoice_prefix": "cpscql",
    "quote_prefix": "dzsnrw",
    "default_payment_terms": 19,
    "default_hourly_rate": 33,
    "default_tax_name_1": "j",
    "default_tax_rate_1": 17,
    "default_tax_name_2": "v",
    "default_tax_rate_2": 24,
    "invoice_layout": "classic"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 187,
        "uuid": "0f6a30ad-1f3c-41d7-b3e2-52c16748b3da",
        "name": "Considine LLC",
        "legal_name": null,
        "email": "ernie.nitzsche@ankunding.biz",
        "email_verified": false,
        "phone": null,
        "address_line_1": null,
        "address_line_2": null,
        "city": null,
        "state": null,
        "postal_code": null,
        "country": null,
        "currency": "USD",
        "tax_number": null,
        "vat_id": null,
        "vat_registered": true,
        "logo_path": null,
        "invoice_prefix": "INV-",
        "invoice_next_number": 1,
        "quote_prefix": "QUO-",
        "quote_next_number": 1,
        "invoice_layout": "classic",
        "default_payment_terms": 30,
        "default_hourly_rate": null,
        "default_tax_name_1": "VAT",
        "default_tax_rate_1": 1500,
        "default_tax_name_2": null,
        "default_tax_rate_2": null,
        "default_accounting_basis": "accrual",
        "automatic_tax_enabled": false,
        "late_fee_type": null,
        "late_fee_value": null,
        "late_fee_days": null,
        "created_at": "2026-10-30T14:14:03.000000Z",
        "updated_at": "2026-10-30T14:14:03.000000Z"
    }
}
 

Request      

PUT api/settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string  optional    

Must not be greater than 255 characters. Example: b

legal_name   string  optional    

Must not be greater than 255 characters. Example: n

email   string  optional    

Must be a valid email address. Must not be greater than 255 characters. Example: ashly64@example.com

phone   string  optional    

Must not be greater than 50 characters. Example: v

address_line_1   string  optional    

Must not be greater than 255 characters. Example: d

address_line_2   string  optional    

Must not be greater than 255 characters. Example: l

city   string  optional    

Must not be greater than 255 characters. Example: j

state   string  optional    

Must not be greater than 255 characters. Example: n

postal_code   string  optional    

Must not be greater than 20 characters. Example: ikhwaykcmyuwpwlv

country   string  optional    

Must be 2 characters. Example: qw

currency   string  optional    

Must be 3 characters. Example: rsi

tax_number   string  optional    

Must not be greater than 255 characters. Example: t

invoice_prefix   string  optional    

Must not be greater than 10 characters. Example: cpscql

quote_prefix   string  optional    

Must not be greater than 10 characters. Example: dzsnrw

default_payment_terms   integer  optional    

Must be at least 0. Must not be greater than 365. Example: 19

default_hourly_rate   integer  optional    

Must be at least 0. Example: 33

default_tax_name_1   string  optional    

Must not be greater than 255 characters. Example: j

default_tax_rate_1   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 17

default_tax_name_2   string  optional    

Must not be greater than 255 characters. Example: v

default_tax_rate_2   integer  optional    

Must be at least 0. Must not be greater than 10000. Example: 24

invoice_layout   string  optional    

Example: classic

Must be one of:
  • classic
  • modern
  • compact

Get branding settings.

requires authentication

Returns the company logo path and default invoice template branding settings.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/branding" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/branding"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "logo_path": "logos/1/logo.png",
        "template": {
            "id": 1,
            "layout": "modern",
            "primary_color": "#1a1a2e",
            "secondary_color": "#1e40af",
            "accent_color": "#3b82f6",
            "font_family": "Helvetica",
            "show_logo": true,
            "header_html": null,
            "footer_html": null,
            "custom_css": null
        }
    }
}
 

Request      

GET api/settings/branding

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update branding settings.

requires authentication

Creates or updates the default invoice template for the company. HTML fields are sanitized.

Example request:
curl --request PUT \
    "https://tidybill.app/api/settings/branding" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"layout\": \"classic\",
    \"primary_color\": \"bngzmiy\",
    \"secondary_color\": \"vdljnik\",
    \"accent_color\": \"hwaykcm\",
    \"font_family\": \"y\",
    \"show_logo\": true,
    \"header_html\": \"u\",
    \"footer_html\": \"w\",
    \"custom_css\": \"p\"
}"
const url = new URL(
    "https://tidybill.app/api/settings/branding"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "layout": "classic",
    "primary_color": "bngzmiy",
    "secondary_color": "vdljnik",
    "accent_color": "hwaykcm",
    "font_family": "y",
    "show_logo": true,
    "header_html": "u",
    "footer_html": "w",
    "custom_css": "p"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 1,
        "layout": "modern",
        "primary_color": "#1a1a2e",
        "secondary_color": "#1e40af",
        "accent_color": "#3b82f6",
        "font_family": "Helvetica",
        "show_logo": true,
        "header_html": null,
        "footer_html": null,
        "custom_css": null
    }
}
 

Request      

PUT api/settings/branding

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

layout   string  optional    

Example: classic

Must be one of:
  • classic
  • modern
  • compact
primary_color   string  optional    

Must not be greater than 7 characters. Example: bngzmiy

secondary_color   string  optional    

Must not be greater than 7 characters. Example: vdljnik

accent_color   string  optional    

Must not be greater than 7 characters. Example: hwaykcm

font_family   string  optional    

Must not be greater than 255 characters. Example: y

show_logo   boolean  optional    

Example: true

header_html   string  optional    

Must not be greater than 5000 characters. Example: u

footer_html   string  optional    

Must not be greater than 5000 characters. Example: w

custom_css   string  optional    

Must not be greater than 5000 characters. Example: p

requires authentication

Accepts a JPEG, PNG, GIF, or WebP image up to 2 MB. Replaces any existing logo.

Get late fee settings.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/late-fees" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/late-fees"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "late_fee_type": "percentage",
        "late_fee_value": 150,
        "late_fee_days": 30
    }
}
 

Request      

GET api/settings/late-fees

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update late fee settings.

requires authentication

late_fee_value is stored in cents (flat) or basis points (percentage). late_fee_days is the number of days past due before the fee applies.

Example request:
curl --request PUT \
    "https://tidybill.app/api/settings/late-fees" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"late_fee_type\": \"percentage\",
    \"late_fee_value\": 27,
    \"late_fee_days\": 22
}"
const url = new URL(
    "https://tidybill.app/api/settings/late-fees"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "late_fee_type": "percentage",
    "late_fee_value": 27,
    "late_fee_days": 22
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "late_fee_type": "percentage",
        "late_fee_value": 150,
        "late_fee_days": 30
    }
}
 

Request      

PUT api/settings/late-fees

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

late_fee_type   string  optional    

Example: percentage

Must be one of:
  • percentage
  • percentage_balance
  • flat
late_fee_value   integer  optional    

Must be at least 0. Example: 27

late_fee_days   integer  optional    

Must be at least 0. Must not be greater than 90. Example: 22

Bank Accounts

List bank accounts.

requires authentication

Returns all bank accounts for the current company ordered by sort_order. Not paginated.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/bank-accounts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/bank-accounts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "name": "Primary",
            "details": "Quidem nostrum qui commodi incidunt iure odit. Et modi ipsum nostrum omnis autem et consequatur. Dolores enim non facere tempora. Voluptatem laboriosam praesentium quis adipisci.",
            "sort_order": 0,
            "created_at": "2026-10-30T14:14:03.000000Z",
            "updated_at": "2026-10-30T14:14:03.000000Z"
        },
        {
            "id": 2,
            "name": "Primary",
            "details": "Corporis dolorem mollitia deleniti nemo odit quia officia. Dignissimos neque blanditiis odio.",
            "sort_order": 0,
            "created_at": "2026-10-30T14:14:03.000000Z",
            "updated_at": "2026-10-30T14:14:03.000000Z"
        }
    ]
}
 

Request      

GET api/settings/bank-accounts

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Show a bank account.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/bank-accounts/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/bank-accounts/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "name": "Primary",
        "details": "Quidem nostrum qui commodi incidunt iure odit. Et modi ipsum nostrum omnis autem et consequatur. Dolores enim non facere tempora. Voluptatem laboriosam praesentium quis adipisci.",
        "sort_order": 0,
        "created_at": "2026-10-30T14:14:03.000000Z",
        "updated_at": "2026-10-30T14:14:03.000000Z"
    }
}
 

Request      

GET api/settings/bank-accounts/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the bank account. Example: 16

Create a bank account.

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/settings/bank-accounts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"details\": \"n\",
    \"sort_order\": 84
}"
const url = new URL(
    "https://tidybill.app/api/settings/bank-accounts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "details": "n",
    "sort_order": 84
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "name": "Primary",
        "details": "Velit et fugiat sunt nihil accusantium. Mollitia modi deserunt aut ab provident perspiciatis quo. Nostrum aut adipisci quidem nostrum. Commodi incidunt iure odit.",
        "sort_order": 0,
        "created_at": "2026-10-30T14:14:03.000000Z",
        "updated_at": "2026-10-30T14:14:03.000000Z"
    }
}
 

Example response (201):


{}
 

Request      

POST api/settings/bank-accounts

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

Must not be greater than 100 characters. Example: b

details   string  optional    

Must not be greater than 2000 characters. Example: n

sort_order   integer  optional    

Must be at least 0. Example: 84

Update a bank account.

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/settings/bank-accounts/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"details\": \"n\",
    \"sort_order\": 84
}"
const url = new URL(
    "https://tidybill.app/api/settings/bank-accounts/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "details": "n",
    "sort_order": 84
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 5,
        "name": "Primary",
        "details": "Velit et fugiat sunt nihil accusantium. Mollitia modi deserunt aut ab provident perspiciatis quo. Nostrum aut adipisci quidem nostrum. Commodi incidunt iure odit.",
        "sort_order": 0,
        "created_at": "2026-10-30T14:14:03.000000Z",
        "updated_at": "2026-10-30T14:14:03.000000Z"
    }
}
 

Request      

PUT api/settings/bank-accounts/{id}

PATCH api/settings/bank-accounts/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the bank account. Example: 16

Body Parameters

name   string     

Must not be greater than 100 characters. Example: b

details   string  optional    

Must not be greater than 2000 characters. Example: n

sort_order   integer  optional    

Must be at least 0. Example: 84

Delete a bank account.

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/settings/bank-accounts/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/bank-accounts/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/settings/bank-accounts/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the bank account. Example: 16

Imports

FreshBooks OAuth callback.

Handles the authorization code callback from FreshBooks. Exchanges the code for access tokens, fetches the FreshBooks identity, and syncs company settings. Redirects to the frontend settings page on success.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/freshbooks/callback?code=authcode123" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/callback"
);

const params = {
    "code": "authcode123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302, Redirect to settings on success):



 

Example response (400):


{
    "message": "Missing authorization code or session cookie. Please try connecting again."
}
 

Example response (502):


{
    "message": "Failed to exchange code for tokens."
}
 

Request      

GET api/settings/freshbooks/callback

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

code   string     

Authorization code from FreshBooks. Example: authcode123

Initiate FreshBooks OAuth.

requires authentication

Redirects the user to FreshBooks' OAuth authorization page. Credentials must be saved first. Identity is preserved via a signed cookie (FreshBooks does not support state parameter).

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/freshbooks/connect?company_id=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/connect"
);

const params = {
    "company_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302, Redirect to FreshBooks):



 

Request      

GET api/settings/freshbooks/connect

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

company_id   integer     

The company to import into. Example: 1

Save FreshBooks OAuth credentials.

requires authentication

Stores the FreshBooks app client ID and secret for the current user/company. Required before initiating the OAuth flow.

Example request:
curl --request POST \
    "https://tidybill.app/api/settings/freshbooks/credentials" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"client_id\": \"abc123\",
    \"client_secret\": \"secret456\"
}"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/credentials"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "client_id": "abc123",
    "client_secret": "secret456"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "message": "Credentials saved"
    }
}
 

Request      

POST api/settings/freshbooks/credentials

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

client_id   string     

The FreshBooks app client ID. Example: abc123

client_secret   string     

The FreshBooks app client secret. Example: secret456

Preview FreshBooks import counts.

requires authentication

Fetches resource counts from FreshBooks (clients, invoices, etc.) without importing. Updates the import status to previewing.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/freshbooks/preview" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/preview"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "clients": 42,
        "invoices": 210,
        "payments": 185,
        "expenses": 67
    }
}
 

Example response (422):


{
    "data": {
        "message": "FreshBooks is not connected."
    }
}
 

Request      

GET api/settings/freshbooks/preview

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Start FreshBooks import.

requires authentication

Queues the import job for the connected FreshBooks account. Optionally restrict to specific resource types. Returns 409 if an import is already in progress.

Example request:
curl --request POST \
    "https://tidybill.app/api/settings/freshbooks/import" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"selected_resources\": [
        \"clients\",
        \"invoices\"
    ],
    \"reimport_existing\": false
}"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/import"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "selected_resources": [
        "clients",
        "invoices"
    ],
    "reimport_existing": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "data": {
        "message": "Import started"
    }
}
 

Example response (409):


{
    "data": {
        "message": "Import is already in progress."
    }
}
 

Example response (422):


{
    "data": {
        "message": "FreshBooks is not connected."
    }
}
 

Request      

POST api/settings/freshbooks/import

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

selected_resources   string[]  optional    

Optional list of resource types to import. Valid values depend on FreshBooksImportContext.

reimport_existing   boolean  optional    

Whether to overwrite previously imported records. Example: false

Get FreshBooks import status.

requires authentication

Returns the current state of the import record for the authenticated user and company. Returns null data if no import record exists.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/freshbooks/status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/status"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "status": "importing",
        "progress": {
            "clients": 42,
            "invoices": 0
        },
        "preview_data": null,
        "error_message": null,
        "started_at": "2026-04-05T08:00:00+00:00",
        "completed_at": null,
        "has_credentials": true,
        "has_tokens": true,
        "freshbooks_account_id": "ABC123",
        "selected_resources": [
            "clients",
            "invoices"
        ]
    }
}
 

Example response (200, No import record):


{
    "data": null
}
 

Request      

GET api/settings/freshbooks/status

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Reset import to preview state.

requires authentication

Clears any in-progress or errored import so a new import can be started from the preview step.

Example request:
curl --request POST \
    "https://tidybill.app/api/settings/freshbooks/reset" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/reset"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "message": "Ready for new import"
    }
}
 

Example response (422):


{
    "data": {
        "message": "FreshBooks is not connected."
    }
}
 

Request      

POST api/settings/freshbooks/reset

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Disconnect FreshBooks.

requires authentication

Clears stored OAuth tokens and account identifiers from the import record. The credentials (client ID/secret) are preserved.

Example request:
curl --request POST \
    "https://tidybill.app/api/settings/freshbooks/disconnect" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/disconnect"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "message": "Disconnected from FreshBooks."
    }
}
 

Request      

POST api/settings/freshbooks/disconnect

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/settings/freshbooks/export

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/settings/freshbooks/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/settings/freshbooks/export

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/settings/freshbooks/export/status

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/freshbooks/export/status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/export/status"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/settings/freshbooks/export/status

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/settings/freshbooks/export/download

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/freshbooks/export/download" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/freshbooks/export/download"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/settings/freshbooks/export/download

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Stripe Connect

Stripe Connect OAuth callback.

Handles the OAuth callback from Stripe. Exchanges the authorization code for tokens, stores the connected account ID on the company, then redirects to the frontend settings page.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/stripe/callback?code=ac_xxx&state=base64encodedstate" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/stripe/callback"
);

const params = {
    "code": "ac_xxx",
    "state": "base64encodedstate",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302, Redirect to settings on success):



 

Example response (400):


{
    "message": "Missing authorization code or state. Please try connecting again."
}
 

Example response (502):


{
    "message": "Failed to connect Stripe account."
}
 

Request      

GET api/settings/stripe/callback

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

code   string     

Authorization code from Stripe. Example: ac_xxx

state   string     

Signed state parameter issued during connect. Example: base64encodedstate

Initiate Stripe Connect OAuth.

requires authentication

Redirects the user to Stripe's OAuth authorization page. Requires company_id as a query parameter. The user must have access to the specified company.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/stripe/connect?company_id=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/stripe/connect"
);

const params = {
    "company_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302, Redirect to Stripe):



 

Request      

GET api/settings/stripe/connect

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

company_id   integer     

The company to connect Stripe to. Example: 1

Get Stripe Connect status.

requires authentication

Returns the connection status of the company's Stripe Connect account. Fetches live status from Stripe and syncs it locally; falls back to cached values if Stripe is unreachable.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/stripe/status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/stripe/status"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Connected):


{
    "data": {
        "connected": true,
        "account_name": "Acme Corp",
        "payouts_enabled": true,
        "charges_enabled": true,
        "connected_at": "2026-01-15T10:00:00+00:00"
    }
}
 

Example response (200, Not connected):


{
    "data": {
        "connected": false
    }
}
 

Request      

GET api/settings/stripe/status

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get Stripe Tax readiness status.

requires authentication

Reports whether the connected Stripe account can actually compute tax: head office and default tax code set on Tax Settings, plus at least one active tax registration. Returns a degraded (status "unknown", not ready) shape rather than erroring when Stripe is briefly unavailable.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/stripe/tax-status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/stripe/tax-status"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Ready):


{
    "data": {
        "connected": true,
        "settings_status": "active",
        "head_office_set": true,
        "default_tax_code_set": true,
        "active_registrations_count": 2,
        "ready": true
    }
}
 

Example response (200, Not connected):


{
    "data": {
        "connected": false,
        "settings_status": "unknown",
        "head_office_set": false,
        "default_tax_code_set": false,
        "active_registrations_count": 0,
        "ready": false
    }
}
 

Request      

GET api/settings/stripe/tax-status

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Disconnect Stripe Connect.

requires authentication

Deauthorizes the connected Stripe account and clears the connection from the company record. Proceeds even if the Stripe deauthorization API call fails.

Example request:
curl --request POST \
    "https://tidybill.app/api/settings/stripe/disconnect" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/stripe/disconnect"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "message": "Stripe account disconnected."
    }
}
 

Request      

POST api/settings/stripe/disconnect

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

API Tokens

List API tokens.

requires authentication

Returns all personal access tokens for the authenticated user. The token value is never returned after creation.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/api-tokens" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/api-tokens"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "name": "My Token",
            "last_used_at": "2026-04-01T10:00:00Z",
            "created_at": "2026-03-01T10:00:00Z"
        }
    ]
}
 

Request      

GET api/api-tokens

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Create an API token.

requires authentication

Requires a Pro plan. The token field is only returned on creation and cannot be retrieved again.

Example request:
curl --request POST \
    "https://tidybill.app/api/api-tokens" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"CI Deploy Token\"
}"
const url = new URL(
    "https://tidybill.app/api/api-tokens"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "CI Deploy Token"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "data": {
        "id": 2,
        "name": "CI Deploy Token",
        "token": "1|abc123plaintext",
        "created_at": "2026-04-05T08:00:00Z"
    }
}
 

Example response (403):


{
    "message": "API access requires a Pro plan. Please upgrade."
}
 

Request      

POST api/api-tokens

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

A descriptive name for the token. Example: CI Deploy Token

Revoke an API token.

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/api-tokens/architecto" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/api-tokens/architecto"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/api-tokens/{tokenId}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

tokenId   string     

Example: architecto

Invitations

Get invitation details.

Returns the company name, role, invitee email, and inviter name for the given invitation token. Returns 404 if the token is not found, 410 if expired, and 422 if already accepted.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invitations/abc123token/details" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invitations/abc123token/details"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "company_name": "Acme Corp",
        "role": "member",
        "email": "jane@example.com",
        "inviter": "John Smith"
    }
}
 

Example response (410):


{
    "message": "This invitation has expired."
}
 

Example response (422):


{
    "message": "This invitation has already been accepted."
}
 

Request      

GET api/invitations/{token}/details

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

token   string     

The invitation token. Example: abc123token

Accept an invitation.

requires authentication

Adds the authenticated user to the company with the invited role and marks the invitation as accepted. Runs inside a transaction. Returns the company ID on success.

Example request:
curl --request POST \
    "https://tidybill.app/api/invitations/abc123token/accept" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invitations/abc123token/accept"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "Invitation accepted.",
    "data": {
        "company_id": 5
    }
}
 

Example response (200, Already a member):


{
    "message": "You are already a member of this company.",
    "data": {
        "company_id": 5
    }
}
 

Example response (410):


{
    "message": "This invitation has expired."
}
 

Example response (422):


{
    "message": "This invitation has already been accepted."
}
 

Request      

POST api/invitations/{token}/accept

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

token   string     

The invitation token. Example: abc123token

Client Portal

Get invoice for client portal.

Public endpoint accessed via invoice UUID. Marks the invoice as viewed on first access. Also returns Stripe payment availability and bank account details if configured.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/portal/invoices/550e8400-e29b-41d4-a716-446655440000" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/portal/invoices/550e8400-e29b-41d4-a716-446655440000"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 42,
        "invoice_number": "INV-0042",
        "status": "sent",
        "total": 150000,
        "amount_due": 150000,
        "currency": "USD"
    },
    "payment_available": true,
    "bank_details": null
}
 

Request      

GET api/portal/invoices/{uuid}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

uuid   string     

The invoice UUID. Example: 550e8400-e29b-41d4-a716-446655440000

Download invoice PDF.

Returns the invoice as a PDF file. Public endpoint accessed via UUID.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/portal/invoices/550e8400-e29b-41d4-a716-446655440000/pdf" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/portal/invoices/550e8400-e29b-41d4-a716-446655440000/pdf"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, PDF file):


{
    "Content-Type": "application/pdf"
}
 

Request      

GET api/portal/invoices/{uuid}/pdf

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

uuid   string     

The invoice UUID. Example: 550e8400-e29b-41d4-a716-446655440000

Get quote for client portal.

Public endpoint accessed via quote UUID. Marks the quote as viewed on first access.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/portal/quotes/550e8400-e29b-41d4-a716-446655440001" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/portal/quotes/550e8400-e29b-41d4-a716-446655440001"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 1,
        "uuid": "9ab488f8-bd2e-4faa-98ae-514858d93761",
        "client_id": 1,
        "quote_number": "QUO-66650",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "expiry_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "accepted_at": null,
        "declined_at": null,
        "converted_to_invoice_id": null,
        "converted_to_project_id": null,
        "pdf_path": null,
        "created_at": "2026-10-30T14:13:53.000000Z",
        "updated_at": "2026-10-30T14:13:53.000000Z",
        "deleted_at": null
    }
}
 

Request      

GET api/portal/quotes/{uuid}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

uuid   string     

The quote UUID. Example: 550e8400-e29b-41d4-a716-446655440001

Download quote PDF.

Returns the quote as a PDF file. Public endpoint accessed via UUID.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/portal/quotes/550e8400-e29b-41d4-a716-446655440001/pdf" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/portal/quotes/550e8400-e29b-41d4-a716-446655440001/pdf"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, PDF file):


{
    "Content-Type": "application/pdf"
}
 

Request      

GET api/portal/quotes/{uuid}/pdf

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

uuid   string     

The quote UUID. Example: 550e8400-e29b-41d4-a716-446655440001

Accept a quote.

Transitions the quote to the accepted status. Public endpoint accessed via UUID.

Example request:
curl --request POST \
    "https://tidybill.app/api/portal/quotes/550e8400-e29b-41d4-a716-446655440001/accept" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/portal/quotes/550e8400-e29b-41d4-a716-446655440001/accept"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 2,
        "uuid": "d1844e44-7c34-497d-8a7e-be8c94cb8cc0",
        "client_id": 2,
        "quote_number": "QUO-89023",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "expiry_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "accepted_at": null,
        "declined_at": null,
        "converted_to_invoice_id": null,
        "converted_to_project_id": null,
        "pdf_path": null,
        "created_at": "2026-10-30T14:13:53.000000Z",
        "updated_at": "2026-10-30T14:13:53.000000Z",
        "deleted_at": null
    }
}
 

Example response (422):


{
    "message": "Quote cannot be accepted in its current status."
}
 

Request      

POST api/portal/quotes/{uuid}/accept

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

uuid   string     

The quote UUID. Example: 550e8400-e29b-41d4-a716-446655440001

Decline a quote.

Transitions the quote to the declined status. Public endpoint accessed via UUID.

Example request:
curl --request POST \
    "https://tidybill.app/api/portal/quotes/550e8400-e29b-41d4-a716-446655440001/decline" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/portal/quotes/550e8400-e29b-41d4-a716-446655440001/decline"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "uuid": "e0b31de4-125f-4d31-9498-2fdfcbc2820e",
        "client_id": 3,
        "quote_number": "QUO-49225",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "expiry_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "accepted_at": null,
        "declined_at": null,
        "converted_to_invoice_id": null,
        "converted_to_project_id": null,
        "pdf_path": null,
        "created_at": "2026-10-30T14:13:53.000000Z",
        "updated_at": "2026-10-30T14:13:53.000000Z",
        "deleted_at": null
    }
}
 

Example response (422):


{
    "message": "Quote cannot be declined in its current status."
}
 

Request      

POST api/portal/quotes/{uuid}/decline

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

uuid   string     

The quote UUID. Example: 550e8400-e29b-41d4-a716-446655440001

Initiate portal payment.

Creates a Stripe Checkout session for the invoice (using the company's Connect account) or returns bank transfer details if Stripe is not connected. Public endpoint accessed via UUID.

Example request:
curl --request POST \
    "https://tidybill.app/api/portal/invoices/550e8400-e29b-41d4-a716-446655440000/checkout" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/portal/invoices/550e8400-e29b-41d4-a716-446655440000/checkout"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, Stripe checkout):


{
    "data": {
        "checkout_url": "https://checkout.stripe.com/pay/cs_live_xxx"
    }
}
 

Example response (200, Bank transfer):


{
    "data": {
        "payment_method": "bank_details",
        "bank_accounts": [
            {
                "name": "Main Account",
                "details": "BSB 123-456, Account 987654321"
            }
        ],
        "reference": "INV-0042",
        "amount": 150000,
        "currency": "USD"
    }
}
 

Example response (422):


{
    "message": "Invoice is not payable."
}
 

Example response (502):


{
    "message": "Payment service unavailable. Please try again later."
}
 

Request      

POST api/portal/invoices/{uuid}/checkout

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

uuid   string     

The invoice UUID. Example: 550e8400-e29b-41d4-a716-446655440000

Dashboard

Get dashboard stats.

requires authentication

Returns outstanding and overdue invoice totals (by currency), plus unbilled time entry hours and estimated value for the current company.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/dashboard/stats" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/dashboard/stats"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "outstanding_by_currency": {
            "USD": 250000
        },
        "overdue_by_currency": {
            "USD": 75000
        },
        "unbilled_hours": 12.5,
        "unbilled_amount_by_currency": {
            "USD": 187500
        }
    }
}
 

Request      

GET api/dashboard/stats

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get revenue chart data.

requires authentication

Returns monthly revenue grouped by currency for the last 12 months.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/dashboard/revenue-chart" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/dashboard/revenue-chart"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "month": "May 2025",
            "revenue_by_currency": {
                "USD": 120000
            }
        },
        {
            "month": "Apr 2026",
            "revenue_by_currency": {
                "USD": 180000
            }
        }
    ]
}
 

Request      

GET api/dashboard/revenue-chart

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get recent activity.

requires authentication

Returns the 10 most recently updated non-cancelled, non-archived invoices.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/dashboard/recent-activity" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/dashboard/recent-activity"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "type": "invoice",
            "id": 42,
            "description": "Invoice INV-0042 to Acme Corp",
            "status": "sent",
            "amount": 150000,
            "date": "2026-04-04T09:00:00Z"
        }
    ]
}
 

Request      

GET api/dashboard/recent-activity

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get accounts receivable aging.

requires authentication

Returns outstanding invoice totals bucketed by age (0-30, 31-60, 61-90, 91+ days), grouped by currency.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/dashboard/aging" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/dashboard/aging"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "USD": {
            "overdue_total": 75000,
            "outstanding_total": 175000,
            "total": 250000,
            "buckets": [
                {
                    "label": "0-30 Days",
                    "amount": 100000
                },
                {
                    "label": "31-60 Days",
                    "amount": 75000
                },
                {
                    "label": "61-90 Days",
                    "amount": 50000
                },
                {
                    "label": "91+ Days",
                    "amount": 25000
                }
            ]
        }
    }
}
 

Request      

GET api/dashboard/aging

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get unbilled hours by client.

requires authentication

Returns the top 10 clients with unbilled billable time entries, ordered by total unbilled hours.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/dashboard/unbilled-by-client" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/dashboard/unbilled-by-client"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "total_hours": 34.5,
        "clients": [
            {
                "client_id": 7,
                "client_name": "Acme Corp",
                "hours": 18,
                "seconds": 64800
            },
            {
                "client_id": 3,
                "client_name": "Globex",
                "hours": 16.5,
                "seconds": 59400
            }
        ]
    }
}
 

Request      

GET api/dashboard/unbilled-by-client

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get revenue by client.

requires authentication

Returns the top 10 clients by total invoiced amount (year to date), grouped by currency.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/dashboard/revenue-by-client" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/dashboard/revenue-by-client"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "year": 2026,
        "clients": [
            {
                "client_id": 7,
                "client_name": "Acme Corp",
                "currency": "USD",
                "total": 480000
            },
            {
                "client_id": 3,
                "client_name": "Globex",
                "currency": "USD",
                "total": 210000
            }
        ]
    }
}
 

Request      

GET api/dashboard/revenue-by-client

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Activity Log

List all activity for the company

requires authentication

Returns paginated activity across all entity types. Optionally filter by subject_type.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/activity-log/global?subject_type=invoice&per_page=25&from=2026-04-01&to=2026-04-06&search=INV-001&causer_id=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/activity-log/global"
);

const params = {
    "subject_type": "invoice",
    "per_page": "25",
    "from": "2026-04-01",
    "to": "2026-04-06",
    "search": "INV-001",
    "causer_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "description": "created",
            "event": "created",
            "causer_name": "John",
            "subject_type": "invoice",
            "subject_id": 1,
            "subject_label": "INV-001",
            "properties": {},
            "created_at": "2026-04-05T00:00:00+00:00"
        }
    ],
    "meta": {
        "current_page": 1,
        "last_page": 1,
        "total": 1
    }
}
 

Request      

GET api/activity-log/global

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

subject_type   string  optional    

Filter by subject type (invoice, quote, credit, recurring-invoice, client). Example: invoice

per_page   integer  optional    

Number of results per page (max 50). Example: 25

from   string  optional    

Filter from date (Y-m-d). Example: 2026-04-01

to   string  optional    

Filter to date (Y-m-d). Example: 2026-04-06

search   string  optional    

Search descriptions and properties. Example: INV-001

causer_id   integer  optional    

Filter by user ID. Example: 1

List activity log entries

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/activity-log?subject_type=invoice&subject_id=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"subject_type\": \"architecto\",
    \"subject_id\": 16
}"
const url = new URL(
    "https://tidybill.app/api/activity-log"
);

const params = {
    "subject_type": "invoice",
    "subject_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "subject_type": "architecto",
    "subject_id": 16
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "description": "created",
            "event": "created",
            "causer_name": "John",
            "properties": {},
            "created_at": "2026-04-05T00:00:00+00:00"
        }
    ],
    "meta": {
        "current_page": 1,
        "last_page": 1,
        "total": 1
    }
}
 

Example response (422, Invalid subject type):



 

Request      

GET api/activity-log

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

subject_type   string     

The subject type (invoice, quote, credit, recurring-invoice). Example: invoice

subject_id   integer     

The subject ID. Example: 1

Body Parameters

subject_type   string     

Example: architecto

subject_id   integer     

Example: 16

Connections

GET api/connections/incoming

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/connections/incoming" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/connections/incoming"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/connections/incoming

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/connections/incoming/{connection_id}/counterparts

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/connections/incoming/16/counterparts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/connections/incoming/16/counterparts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/connections/incoming/{connection_id}/counterparts

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

connection_id   integer     

The ID of the connection. Example: 16

POST api/connections/incoming/{connection_id}/accept

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/connections/incoming/16/accept" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_id\": 16,
    \"counterpart_id\": 16
}"
const url = new URL(
    "https://tidybill.app/api/connections/incoming/16/accept"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_id": 16,
    "counterpart_id": 16
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/connections/incoming/{connection_id}/accept

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

connection_id   integer     

The ID of the connection. Example: 16

Body Parameters

company_id   integer     

Example: 16

counterpart_id   integer  optional    

Example: 16

POST api/connections/incoming/{connection_id}/decline

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/connections/incoming/16/decline" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/connections/incoming/16/decline"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/connections/incoming/{connection_id}/decline

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

connection_id   integer     

The ID of the connection. Example: 16

GET api/connections

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/connections" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/connections"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/connections

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/clients/{client_id}/disconnect

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/clients/16/disconnect" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16/disconnect"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/clients/{client_id}/disconnect

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

POST api/vendors/{vendor_id}/disconnect

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/vendors/16/disconnect" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/vendors/16/disconnect"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/vendors/{vendor_id}/disconnect

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

vendor_id   integer     

The ID of the vendor. Example: 16

Endpoints

GET api/onboarding/unsubscribe/{user_id}

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/onboarding/unsubscribe/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/onboarding/unsubscribe/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/onboarding/unsubscribe/{user_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

user_id   integer     

The ID of the user. Example: 16

GET api/account/delete-confirm/{user_id}

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/account/delete-confirm/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/account/delete-confirm/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/account/delete-confirm/{user_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

user_id   integer     

The ID of the user. Example: 16

POST api/account/delete-confirm/{user_id}

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/account/delete-confirm/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/account/delete-confirm/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/account/delete-confirm/{user_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

user_id   integer     

The ID of the user. Example: 16

GET api/account/keep/{user_id}

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/account/keep/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/account/keep/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/account/keep/{user_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

user_id   integer     

The ID of the user. Example: 16

GET api/imports/{source}/callback

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/imports/j2o/callback" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/imports/j2o/callback"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/imports/{source}/callback

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

source   string     

Example: j2o

POST api/account/keep

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/account/keep" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/account/keep"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/account/keep

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

DELETE api/tools/end-impersonation

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/tools/end-impersonation" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/tools/end-impersonation"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/tools/end-impersonation

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/announcements/active

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/announcements/active" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/announcements/active"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/announcements/active

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/announcements/{announcement_id}/dismiss

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/announcements/16/dismiss" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/announcements/16/dismiss"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/announcements/{announcement_id}/dismiss

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

announcement_id   integer     

The ID of the announcement. Example: 16

GET api/imports/{source}/connect

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/imports/j2o/connect" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/imports/j2o/connect"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/imports/{source}/connect

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

source   string     

Example: j2o

GET api/imports/{source}/current

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/imports/j2o/current" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/imports/j2o/current"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/imports/{source}/current

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

source   string     

Example: j2o

GET api/imports/{import}/preview

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/imports/564/preview" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/imports/564/preview"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/imports/{import}/preview

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

import   string     

The import. Example: 564

POST api/imports/{import}/start

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/imports/564/start" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"selected_resources\": [
        \"architecto\"
    ],
    \"reimport_existing\": true
}"
const url = new URL(
    "https://tidybill.app/api/imports/564/start"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "selected_resources": [
        "architecto"
    ],
    "reimport_existing": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/imports/{import}/start

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

import   string     

The import. Example: 564

Body Parameters

selected_resources   string[]  optional    
reimport_existing   boolean  optional    

Example: true

POST api/imports/{import}/select-organization

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/imports/564/select-organization" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"organization_id\": \"architecto\"
}"
const url = new URL(
    "https://tidybill.app/api/imports/564/select-organization"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "organization_id": "architecto"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/imports/{import}/select-organization

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

import   string     

The import. Example: 564

Body Parameters

organization_id   string     

Example: architecto

GET api/imports/{import}

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/imports/564" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/imports/564"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/imports/{import}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

import   string     

The import. Example: 564

DELETE api/admin/users/{user_id}

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/admin/users/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email_confirmation\": \"b\",
    \"reason\": \"n\"
}"
const url = new URL(
    "https://tidybill.app/api/admin/users/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email_confirmation": "b",
    "reason": "n"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/admin/users/{user_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

user_id   integer     

The ID of the user. Example: 16

Body Parameters

email_confirmation   string     

Must not be greater than 255 characters. Example: b

reason   string     

Must be at least 10 characters. Must not be greater than 500 characters. Example: n

DELETE api/admin/tools/announcements/{announcement_id}

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/admin/tools/announcements/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/admin/tools/announcements/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/admin/tools/announcements/{announcement_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

announcement_id   integer     

The ID of the announcement. Example: 16

POST api/invoices/preview

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/preview" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"issue_date\": \"2026-10-30T14:13:54\",
    \"due_date\": \"2026-10-30T14:13:54\",
    \"expiry_date\": \"2026-10-30T14:13:54\",
    \"currency\": \"bng\",
    \"discount_type\": \"fixed\",
    \"discount_value\": 16,
    \"notes\": \"n\",
    \"terms\": \"g\",
    \"footer\": \"z\",
    \"line_items\": [
        {
            \"id\": 16,
            \"description\": \"Et animi quos velit et fugiat.\",
            \"quantity\": 4326.41688,
            \"unit_price\": 4326.41688,
            \"tax_name\": \"m\",
            \"tax_rate\": 15,
            \"tax_category\": \"E\",
            \"sort_order\": 16,
            \"account_code\": \"n\",
            \"rebill_vendor_id\": 16,
            \"tax_details\": {
                \"unit_code\": \"ngzmiy\",
                \"tax_exemption_reason_code\": \"v\",
                \"tax_exemption_reason\": \"d\"
            }
        }
    ]
}"
const url = new URL(
    "https://tidybill.app/api/invoices/preview"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "issue_date": "2026-10-30T14:13:54",
    "due_date": "2026-10-30T14:13:54",
    "expiry_date": "2026-10-30T14:13:54",
    "currency": "bng",
    "discount_type": "fixed",
    "discount_value": 16,
    "notes": "n",
    "terms": "g",
    "footer": "z",
    "line_items": [
        {
            "id": 16,
            "description": "Et animi quos velit et fugiat.",
            "quantity": 4326.41688,
            "unit_price": 4326.41688,
            "tax_name": "m",
            "tax_rate": 15,
            "tax_category": "E",
            "sort_order": 16,
            "account_code": "n",
            "rebill_vendor_id": 16,
            "tax_details": {
                "unit_code": "ngzmiy",
                "tax_exemption_reason_code": "v",
                "tax_exemption_reason": "d"
            }
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/invoices/preview

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

client_id   string  optional    

Must match an existing stored value.

issue_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:54

due_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:54

expiry_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:54

currency   string  optional    

Must be 3 characters. Example: bng

discount_type   string  optional    

Example: fixed

Must be one of:
  • percentage
  • fixed
discount_value   integer  optional    

Example: 16

notes   string  optional    

Must not be greater than 2000 characters. Example: n

terms   string  optional    

Must not be greater than 2000 characters. Example: g

footer   string  optional    

Must not be greater than 500 characters. Example: z

line_items   object[]  optional    

Must not have more than 500 items.

id   integer  optional    

Example: 16

description   string  optional    

Must not be greater than 1000 characters. Example: Et animi quos velit et fugiat.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

service_id   string  optional    

Must match an existing stored value.

tax_name   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate   number  optional    

Must be at least 0. Must not be greater than 100. Example: 15

tax_category   string  optional    

Example: E

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

rebill_vendor_id   integer  optional    

Must match an existing stored value. Example: 16

tax_details   object  optional    
unit_code   string  optional    

Must not be greater than 10 characters. Example: ngzmiy

tax_exemption_reason_code   string  optional    

Must not be greater than 50 characters. Example: v

tax_exemption_reason   string  optional    

Must not be greater than 500 characters. Example: d

POST api/quotes/preview

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/quotes/preview" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"issue_date\": \"2026-10-30T14:13:54\",
    \"due_date\": \"2026-10-30T14:13:54\",
    \"expiry_date\": \"2026-10-30T14:13:54\",
    \"currency\": \"bng\",
    \"discount_type\": \"percentage\",
    \"discount_value\": 16,
    \"notes\": \"n\",
    \"terms\": \"g\",
    \"footer\": \"z\",
    \"line_items\": [
        {
            \"id\": 16,
            \"description\": \"Et animi quos velit et fugiat.\",
            \"quantity\": 4326.41688,
            \"unit_price\": 4326.41688,
            \"tax_name\": \"m\",
            \"tax_rate\": 15,
            \"tax_category\": \"S\",
            \"sort_order\": 16,
            \"account_code\": \"n\",
            \"rebill_vendor_id\": 16,
            \"tax_details\": {
                \"unit_code\": \"ngzmiy\",
                \"tax_exemption_reason_code\": \"v\",
                \"tax_exemption_reason\": \"d\"
            }
        }
    ]
}"
const url = new URL(
    "https://tidybill.app/api/quotes/preview"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "issue_date": "2026-10-30T14:13:54",
    "due_date": "2026-10-30T14:13:54",
    "expiry_date": "2026-10-30T14:13:54",
    "currency": "bng",
    "discount_type": "percentage",
    "discount_value": 16,
    "notes": "n",
    "terms": "g",
    "footer": "z",
    "line_items": [
        {
            "id": 16,
            "description": "Et animi quos velit et fugiat.",
            "quantity": 4326.41688,
            "unit_price": 4326.41688,
            "tax_name": "m",
            "tax_rate": 15,
            "tax_category": "S",
            "sort_order": 16,
            "account_code": "n",
            "rebill_vendor_id": 16,
            "tax_details": {
                "unit_code": "ngzmiy",
                "tax_exemption_reason_code": "v",
                "tax_exemption_reason": "d"
            }
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/quotes/preview

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

client_id   string  optional    

Must match an existing stored value.

issue_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:54

due_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:54

expiry_date   string  optional    

Must be a valid date. Example: 2026-10-30T14:13:54

currency   string  optional    

Must be 3 characters. Example: bng

discount_type   string  optional    

Example: percentage

Must be one of:
  • percentage
  • fixed
discount_value   integer  optional    

Example: 16

notes   string  optional    

Must not be greater than 2000 characters. Example: n

terms   string  optional    

Must not be greater than 2000 characters. Example: g

footer   string  optional    

Must not be greater than 500 characters. Example: z

line_items   object[]  optional    

Must not have more than 500 items.

id   integer  optional    

Example: 16

description   string  optional    

Must not be greater than 1000 characters. Example: Et animi quos velit et fugiat.

quantity   number     

Must not be one of 0. Example: 4326.41688

unit_price   number     

Example: 4326.41688

service_id   string  optional    

Must match an existing stored value.

tax_name   string  optional    

Must not be greater than 50 characters. Example: m

tax_rate   number  optional    

Must be at least 0. Must not be greater than 100. Example: 15

tax_category   string  optional    

Example: S

Must be one of:
  • S
  • Z
  • E
  • AE
  • K
  • G
  • O
sort_order   integer  optional    

Example: 16

account_code   string  optional    

Must not be greater than 32 characters. Example: n

rebill_vendor_id   integer  optional    

Must match an existing stored value. Example: 16

tax_details   object  optional    
unit_code   string  optional    

Must not be greater than 10 characters. Example: ngzmiy

tax_exemption_reason_code   string  optional    

Must not be greater than 50 characters. Example: v

tax_exemption_reason   string  optional    

Must not be greater than 500 characters. Example: d

GET api/invoices/{invoice_id}/preview

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices/16/preview" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/preview"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/invoices/{invoice_id}/preview

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

GET api/quotes/{quote_id}/preview

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/quotes/16/preview" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/quotes/16/preview"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/quotes/{quote_id}/preview

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

quote_id   integer     

The ID of the quote. Example: 16

Update a recorded payment.

requires authentication

Recalculates the invoice's amount paid, amount due and status from the changed amount.

Example request:
curl --request PUT \
    "https://tidybill.app/api/invoices/16/payments/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 1,
    \"payment_date\": \"2026-10-30T14:13:59\",
    \"payment_method\": \"card\",
    \"reference\": \"n\",
    \"notes\": \"g\",
    \"send_notification\": true
}"
const url = new URL(
    "https://tidybill.app/api/invoices/16/payments/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "amount": 1,
    "payment_date": "2026-10-30T14:13:59",
    "payment_method": "card",
    "reference": "n",
    "notes": "g",
    "send_notification": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 17,
        "uuid": "e50a71ce-176f-4220-9308-637d5550260b",
        "client_id": 47,
        "recurring_invoice_id": null,
        "invoice_number": "INV-23164",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Ernser Group",
            "legal_name": null,
            "email": "idickens@runte.com",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

PUT api/invoices/{invoice_id}/payments/{payment_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

payment_id   integer     

The ID of the payment. Example: 16

invoice   integer     

The invoice ID. Example: 1

payment   integer     

The payment ID. Example: 1

Body Parameters

amount   integer     

Must be at least 1. Must not be greater than 999999999. Example: 1

payment_date   string     

Must be a valid date. Example: 2026-10-30T14:13:59

payment_method   string  optional    

Example: card

Must be one of:
  • bank_transfer
  • card
  • cash
  • cheque
  • paypal
  • ach
  • 2checkout
  • other
reference   string  optional    

Must not be greater than 255 characters. Example: n

notes   string  optional    

Must not be greater than 2000 characters. Example: g

send_notification   boolean  optional    

Example: true

Delete a recorded payment.

requires authentication

Reverses the payment on the invoice and reopens it when a balance becomes due.

Example request:
curl --request DELETE \
    "https://tidybill.app/api/invoices/16/payments/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/payments/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 18,
        "uuid": "7faaa015-b92c-4d86-a105-0c1dcdf8fe0f",
        "client_id": 48,
        "recurring_invoice_id": null,
        "invoice_number": "INV-45193",
        "status": "draft",
        "is_archived": false,
        "status_label": "Draft",
        "status_color": "gray",
        "issue_date": "2026-10-30",
        "due_date": "2026-11-29",
        "currency": "USD",
        "subtotal": 0,
        "tax_total": 0,
        "discount_type": null,
        "discount_value": null,
        "discount_total": 0,
        "total": 0,
        "amount_paid": 0,
        "amount_due": 0,
        "notes": null,
        "terms": null,
        "footer": null,
        "sent_at": null,
        "viewed_at": null,
        "paid_at": null,
        "reported_paid_at": null,
        "reported_paid_amount": null,
        "late_fee_amount": 0,
        "late_fee_applied_at": null,
        "reminders_sent": 0,
        "company": {
            "name": "Baumbach Ltd",
            "legal_name": null,
            "email": "ferne52@okeefe.net",
            "phone": null,
            "address": null,
            "tax_number": null,
            "logo_path": null
        },
        "created_at": "2026-10-30T14:13:59.000000Z",
        "updated_at": "2026-10-30T14:13:59.000000Z",
        "deleted_at": null
    }
}
 

Request      

DELETE api/invoices/{invoice_id}/payments/{payment_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

payment_id   integer     

The ID of the payment. Example: 16

invoice   integer     

The invoice ID. Example: 1

payment   integer     

The payment ID. Example: 1

GET api/invoices/{invoice_id}/einvoice-status

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices/16/einvoice-status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/einvoice-status"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/invoices/{invoice_id}/einvoice-status

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

GET api/invoices/{invoice_id}/einvoice-xml

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices/16/einvoice-xml" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/einvoice-xml"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/invoices/{invoice_id}/einvoice-xml

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

POST api/invoices/{invoice_id}/einvoice-preview

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/einvoice-preview" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/einvoice-preview"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/invoices/{invoice_id}/einvoice-preview

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

GET api/invoices/{invoice_id}/notes

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices/16/notes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/notes"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/invoices/{invoice_id}/notes

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

POST api/invoices/{invoice_id}/notes

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/invoices/16/notes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"body\": \"b\"
}"
const url = new URL(
    "https://tidybill.app/api/invoices/16/notes"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "body": "b"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/invoices/{invoice_id}/notes

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

Body Parameters

body   string     

Must not be greater than 2000 characters. Example: b

DELETE api/invoice-notes/{note_id}

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/invoice-notes/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoice-notes/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/invoice-notes/{note_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

note_id   integer     

The ID of the note. Example: 16

GET api/invoices/{invoice_id}/reminder-logs

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/invoices/16/reminder-logs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/invoices/16/reminder-logs"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/invoices/{invoice_id}/reminder-logs

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

invoice_id   integer     

The ID of the invoice. Example: 16

GET api/companies/{company_id}/einvoice-settings

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/companies/16/einvoice-settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/einvoice-settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/companies/{company_id}/einvoice-settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

PUT api/companies/{company_id}/einvoice-settings

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/companies/16/einvoice-settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"enabled\": true,
    \"vat_id\": \"b\",
    \"format\": \"zugferd_en16931\",
    \"electronic_address_scheme\": \"ngzmiy\",
    \"electronic_address\": \"v\",
    \"tax_registration_number\": \"d\"
}"
const url = new URL(
    "https://tidybill.app/api/companies/16/einvoice-settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "enabled": true,
    "vat_id": "b",
    "format": "zugferd_en16931",
    "electronic_address_scheme": "ngzmiy",
    "electronic_address": "v",
    "tax_registration_number": "d"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/companies/{company_id}/einvoice-settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Body Parameters

enabled   boolean  optional    

Example: true

vat_id   string  optional    

Must not be greater than 50 characters. Example: b

format   string  optional    

Example: zugferd_en16931

Must be one of:
  • zugferd_en16931
  • ubl_peppol_bis3
electronic_address_scheme   string  optional    

Must not be greater than 10 characters. Example: ngzmiy

electronic_address   string  optional    

Must not be greater than 100 characters. Example: v

tax_registration_number   string  optional    

Must not be greater than 50 characters. Example: d

GET api/companies/{company_id}/accounting-settings

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/companies/16/accounting-settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/accounting-settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/companies/{company_id}/accounting-settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

PUT api/companies/{company_id}/accounting-settings

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/companies/16/accounting-settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"tool\": \"sage\",
    \"accounting_region\": \"bngzmiyv\",
    \"default_sales_account_code\": \"d\",
    \"default_tax_payable_account_code\": \"l\",
    \"default_ar_account_code\": \"j\",
    \"default_discount_account_code\": \"n\",
    \"tax_code_overrides\": [
        \"i\"
    ]
}"
const url = new URL(
    "https://tidybill.app/api/companies/16/accounting-settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "tool": "sage",
    "accounting_region": "bngzmiyv",
    "default_sales_account_code": "d",
    "default_tax_payable_account_code": "l",
    "default_ar_account_code": "j",
    "default_discount_account_code": "n",
    "tax_code_overrides": [
        "i"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/companies/{company_id}/accounting-settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Body Parameters

tool   string  optional    

Example: sage

Must be one of:
  • xero
  • qbo
  • pastel
  • sage
  • other
accounting_region   string  optional    

Must not be greater than 8 characters. Example: bngzmiyv

default_sales_account_code   string  optional    

Must not be greater than 32 characters. Example: d

default_tax_payable_account_code   string  optional    

Must not be greater than 32 characters. Example: l

default_ar_account_code   string  optional    

Must not be greater than 32 characters. Example: j

default_discount_account_code   string  optional    

Must not be greater than 32 characters. Example: n

tax_code_overrides   string[]  optional    

Must not be greater than 64 characters.

GET api/exports/accounting

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/exports/accounting" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"format\": \"qbo_sales\",
    \"date_from\": \"2022-11-24\",
    \"date_to\": \"2052-11-22\",
    \"client_id\": 16,
    \"status\": \"draft\"
}"
const url = new URL(
    "https://tidybill.app/api/exports/accounting"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "format": "qbo_sales",
    "date_from": "2022-11-24",
    "date_to": "2052-11-22",
    "client_id": 16,
    "status": "draft"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/exports/accounting

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

format   string     

Example: qbo_sales

Must be one of:
  • xero_sales
  • qbo_sales
  • canonical_sales
  • canonical_journal
date_from   string     

Must be a valid date. Must be a date after or equal to 2000-01-01. Must be a date before or equal to date_to. Example: 2022-11-24

date_to   string     

Must be a valid date. Must be a date before or equal to 2027-10-30. Must be a date after or equal to date_from. Example: 2052-11-22

client_id   integer  optional    

Must match an existing stored value. Example: 16

status   string  optional    

Example: draft

Must be one of:
  • draft
  • sent
  • viewed
  • partial
  • paid
  • overdue
  • cancelled

GET api/exports/period-pack

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/exports/period-pack" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"format\": \"qbo_sales\",
    \"date_from\": \"2022-11-24\",
    \"date_to\": \"2052-11-22\",
    \"include_xml\": false,
    \"include_pdfs\": false
}"
const url = new URL(
    "https://tidybill.app/api/exports/period-pack"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "format": "qbo_sales",
    "date_from": "2022-11-24",
    "date_to": "2052-11-22",
    "include_xml": false,
    "include_pdfs": false
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/exports/period-pack

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

format   string     

Example: qbo_sales

Must be one of:
  • xero_sales
  • qbo_sales
  • canonical_sales
  • canonical_journal
date_from   string     

Must be a valid date. Must be a date after or equal to 2000-01-01. Must be a date before or equal to date_to. Example: 2022-11-24

date_to   string     

Must be a valid date. Must be a date before or equal to 2027-10-30. Must be a date after or equal to date_from. Example: 2052-11-22

include_xml   boolean  optional    

Example: false

include_pdfs   boolean  optional    

Example: false

GET api/clients/{client_id}/einvoice-settings

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/clients/16/einvoice-settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/clients/16/einvoice-settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/clients/{client_id}/einvoice-settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

PUT api/clients/{client_id}/einvoice-settings

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/clients/16/einvoice-settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"enabled\": true,
    \"vat_id\": \"b\",
    \"tax_registration_number\": \"n\",
    \"electronic_address_scheme\": \"gzmiyv\",
    \"electronic_address\": \"d\",
    \"buyer_reference_default\": \"l\"
}"
const url = new URL(
    "https://tidybill.app/api/clients/16/einvoice-settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "enabled": true,
    "vat_id": "b",
    "tax_registration_number": "n",
    "electronic_address_scheme": "gzmiyv",
    "electronic_address": "d",
    "buyer_reference_default": "l"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/clients/{client_id}/einvoice-settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

client_id   integer     

The ID of the client. Example: 16

Body Parameters

enabled   boolean  optional    

Example: true

vat_id   string  optional    

Must not be greater than 50 characters. Example: b

tax_registration_number   string  optional    

Must not be greater than 50 characters. Example: n

electronic_address_scheme   string  optional    

Must not be greater than 10 characters. Example: gzmiyv

electronic_address   string  optional    

Must not be greater than 100 characters. Example: d

buyer_reference_default   string  optional    

Must not be greater than 100 characters. Example: l

GET api/settings/reminders

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/settings/reminders" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/reminders"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/settings/reminders

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/settings/reminders

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/settings/reminders" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"is_active\": true,
    \"is_recurring\": false,
    \"reminder_number\": 16,
    \"days_offset\": 22
}"
const url = new URL(
    "https://tidybill.app/api/settings/reminders"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "is_active": true,
    "is_recurring": false,
    "reminder_number": 16,
    "days_offset": 22
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/settings/reminders

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

is_active   boolean  optional    

Example: true

is_recurring   boolean  optional    

Example: false

reminder_number   integer     

Must be at least 1. Must not be greater than 20. Example: 16

days_offset   integer     

Must be at least -30. Must not be greater than 90. Example: 22

interval_days   string  optional    

PUT api/settings/reminders/{reminder_id}

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/settings/reminders/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"is_active\": false,
    \"is_recurring\": false,
    \"reminder_number\": 16,
    \"days_offset\": 22
}"
const url = new URL(
    "https://tidybill.app/api/settings/reminders/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "is_active": false,
    "is_recurring": false,
    "reminder_number": 16,
    "days_offset": 22
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/settings/reminders/{reminder_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

reminder_id   integer     

The ID of the reminder. Example: 16

Body Parameters

is_active   boolean  optional    

Example: false

is_recurring   boolean  optional    

Example: false

reminder_number   integer  optional    

Must be at least 1. Must not be greater than 20. Example: 16

days_offset   integer  optional    

Must be at least -30. Must not be greater than 90. Example: 22

interval_days   string  optional    

DELETE api/settings/reminders/{reminder_id}

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/settings/reminders/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/settings/reminders/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/settings/reminders/{reminder_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

reminder_id   integer     

The ID of the reminder. Example: 16

GET api/reports/saved-views

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/reports/saved-views" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/reports/saved-views"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/reports/saved-views

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/reports/saved-views

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/reports/saved-views" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"report_key\": \"b\",
    \"name\": \"n\",
    \"filters\": []
}"
const url = new URL(
    "https://tidybill.app/api/reports/saved-views"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "report_key": "b",
    "name": "n",
    "filters": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/reports/saved-views

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

report_key   string     

Must not be greater than 64 characters. Example: b

name   string     

Must not be greater than 120 characters. Example: n

filters   object     

DELETE api/reports/saved-views/{savedView_id}

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/reports/saved-views/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/reports/saved-views/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/reports/saved-views/{savedView_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

savedView_id   integer     

The ID of the savedView. Example: 16

GET api/reports/{key}

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/reports/architecto" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/reports/architecto"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/reports/{key}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

key   string     

Example: architecto

GET api/reports/{key}/export/{format}

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/reports/architecto/export/architecto" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/reports/architecto/export/architecto"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/reports/{key}/export/{format}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

key   string     

Example: architecto

format   string     

Example: architecto

GET api/test/einvoice/extract-xml

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/test/einvoice/extract-xml" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/test/einvoice/extract-xml"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/test/einvoice/extract-xml

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Expense Categories

GET api/companies/{company_id}/expense-categories

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/companies/16/expense-categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/expense-categories"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/companies/{company_id}/expense-categories

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

POST api/companies/{company_id}/expense-categories

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/companies/16/expense-categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"description\": \"Et animi quos velit et fugiat.\",
    \"account_code\": \"d\",
    \"default_tax_name\": \"l\",
    \"default_tax_rate\": 19
}"
const url = new URL(
    "https://tidybill.app/api/companies/16/expense-categories"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "description": "Et animi quos velit et fugiat.",
    "account_code": "d",
    "default_tax_name": "l",
    "default_tax_rate": 19
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/companies/{company_id}/expense-categories

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Body Parameters

name   string     

Must not be greater than 100 characters. Example: b

description   string  optional    

Must not be greater than 1000 characters. Example: Et animi quos velit et fugiat.

account_code   string  optional    

Must not be greater than 32 characters. Example: d

default_tax_name   string  optional    

Must not be greater than 50 characters. Example: l

default_tax_rate   integer  optional    

Must be at least 0. Must not be greater than 100000. Example: 19

POST api/companies/{company_id}/expense-categories/reorder

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/companies/16/expense-categories/reorder" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ]
}"
const url = new URL(
    "https://tidybill.app/api/companies/16/expense-categories/reorder"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/companies/{company_id}/expense-categories/reorder

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

Body Parameters

ids   integer[]  optional    

PUT api/companies/{company_id}/expense-categories/{category_id}

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/companies/16/expense-categories/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"sort_order\": 39,
    \"archived\": false,
    \"description\": \"Animi quos velit et fugiat.\",
    \"account_code\": \"d\",
    \"default_tax_name\": \"l\",
    \"default_tax_rate\": 19
}"
const url = new URL(
    "https://tidybill.app/api/companies/16/expense-categories/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "sort_order": 39,
    "archived": false,
    "description": "Animi quos velit et fugiat.",
    "account_code": "d",
    "default_tax_name": "l",
    "default_tax_rate": 19
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/companies/{company_id}/expense-categories/{category_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

category_id   integer     

The ID of the category. Example: 16

Body Parameters

name   string  optional    

Must not be greater than 100 characters. Example: b

sort_order   integer  optional    

Must be at least 0. Example: 39

archived   boolean  optional    

Example: false

description   string  optional    

Must not be greater than 1000 characters. Example: Animi quos velit et fugiat.

account_code   string  optional    

Must not be greater than 32 characters. Example: d

default_tax_name   string  optional    

Must not be greater than 50 characters. Example: l

default_tax_rate   integer  optional    

Must be at least 0. Must not be greater than 100000. Example: 19

DELETE api/companies/{company_id}/expense-categories/{category_id}

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/companies/16/expense-categories/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/companies/16/expense-categories/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/companies/{company_id}/expense-categories/{category_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

company_id   integer     

The ID of the company. Example: 16

category_id   integer     

The ID of the category. Example: 16

Vendors

Export vendors as CSV or PDF.

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/vendors/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/vendors/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/vendors/export

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Bulk action on vendors

requires authentication

Supported actions: archive, unarchive, delete, restore. Returns the count of affected records.

Example request:
curl --request POST \
    "https://tidybill.app/api/vendors/bulk-action" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ],
    \"action\": \"restore\"
}"
const url = new URL(
    "https://tidybill.app/api/vendors/bulk-action"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ],
    "action": "restore"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "affected": 3
    }
}
 

Request      

POST api/vendors/bulk-action

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

ids   integer[]  optional    
action   string     

Example: restore

Must be one of:
  • archive
  • unarchive
  • delete
  • restore

Restore a deleted vendor

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/vendors/16/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/vendors/16/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {}
}
 

Request      

POST api/vendors/{vendor_id}/restore

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

vendor_id   integer     

The ID of the vendor. Example: 16

List vendors

requires authentication

Supports name/email search and archived state filtering. Results are paginated and include active/archived counts in the meta.

Example request:
curl --request GET \
    --get "https://tidybill.app/api/vendors" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/vendors"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "name": "Price Ltd",
            "email": "dare.emelie@example.com",
            "phone": "+14324666067",
            "address": "26432 Leuschke Throughway Apt. 227",
            "notes": null,
            "is_archived": false,
            "created_at": "2026-10-30T14:14:02.000000Z",
            "updated_at": "2026-10-30T14:14:02.000000Z",
            "deleted_at": null
        },
        {
            "id": 2,
            "name": "Nitzsche-Ankunding",
            "email": "verlie08@example.net",
            "phone": "+1-747-759-6197",
            "address": "11084 Palma Stream Apt. 368",
            "notes": null,
            "is_archived": false,
            "created_at": "2026-10-30T14:14:02.000000Z",
            "updated_at": "2026-10-30T14:14:02.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/vendors

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get a vendor

requires authentication

Example request:
curl --request GET \
    --get "https://tidybill.app/api/vendors/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/vendors/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 3,
        "name": "Price Ltd",
        "email": "dare.emelie@example.com",
        "phone": "+14324666067",
        "address": "26432 Leuschke Throughway Apt. 227",
        "notes": null,
        "is_archived": false,
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z",
        "deleted_at": null
    }
}
 

Request      

GET api/vendors/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the vendor. Example: 16

Create a vendor

requires authentication

Example request:
curl --request POST \
    "https://tidybill.app/api/vendors" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\",
    \"phone\": \"i\",
    \"address\": \"y\",
    \"notes\": \"v\",
    \"is_archived\": true
}"
const url = new URL(
    "https://tidybill.app/api/vendors"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "email": "zbailey@example.net",
    "phone": "i",
    "address": "y",
    "notes": "v",
    "is_archived": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 4,
        "name": "Dach-Gaylord",
        "email": "lafayette.considine@example.com",
        "phone": "+1-626-249-0432",
        "address": "44902 McLaughlin Mountain Suite 052",
        "notes": null,
        "is_archived": false,
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z",
        "deleted_at": null
    }
}
 

Request      

POST api/vendors

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

Must not be greater than 255 characters. Example: b

email   string  optional    

Must be a valid email address. Must not be greater than 255 characters. Example: zbailey@example.net

phone   string  optional    

Must not be greater than 50 characters. Example: i

address   string  optional    

Must not be greater than 5000 characters. Example: y

notes   string  optional    

Must not be greater than 5000 characters. Example: v

is_archived   boolean  optional    

Example: true

Update a vendor

requires authentication

Example request:
curl --request PUT \
    "https://tidybill.app/api/vendors/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\",
    \"phone\": \"i\",
    \"address\": \"y\",
    \"notes\": \"v\",
    \"is_archived\": false
}"
const url = new URL(
    "https://tidybill.app/api/vendors/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "b",
    "email": "zbailey@example.net",
    "phone": "i",
    "address": "y",
    "notes": "v",
    "is_archived": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 5,
        "name": "Dach-Gaylord",
        "email": "lafayette.considine@example.com",
        "phone": "+1-626-249-0432",
        "address": "44902 McLaughlin Mountain Suite 052",
        "notes": null,
        "is_archived": false,
        "created_at": "2026-10-30T14:14:02.000000Z",
        "updated_at": "2026-10-30T14:14:02.000000Z",
        "deleted_at": null
    }
}
 

Request      

PUT api/vendors/{id}

PATCH api/vendors/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the vendor. Example: 16

Body Parameters

name   string  optional    

Must not be greater than 255 characters. Example: b

email   string  optional    

Must be a valid email address. Must not be greater than 255 characters. Example: zbailey@example.net

phone   string  optional    

Must not be greater than 50 characters. Example: i

address   string  optional    

Must not be greater than 5000 characters. Example: y

notes   string  optional    

Must not be greater than 5000 characters. Example: v

is_archived   boolean  optional    

Example: false

Delete a vendor

requires authentication

Example request:
curl --request DELETE \
    "https://tidybill.app/api/vendors/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://tidybill.app/api/vendors/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, No content):

Empty response
 

Request      

DELETE api/vendors/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the vendor. Example: 16