Smarfle Invoices API
The Invoices API from Smarfle — 2 operation(s) for invoices.
The Invoices API from Smarfle — 2 operation(s) for invoices.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/smarfle-com:smarfle-com-invoices-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Smarfle Invoices API
version: 1.0.0
description: 'Read and write your Smarfle customers, jobs, invoices and services, and subscribe to webhooks. Create an API key in Smarfle: Company Settings, Integrations, API. Every key belongs to one business and only ever sees that business''s data. Reads are free; each successful write (POST, PATCH, DELETE) is billed at $0.003 from your Smarfle wallet. Webhooks are free and instant.'
contact:
name: Smarfle support
url: https://www.smarfle.com/contact
email: founder@smarfle.com
termsOfService: https://www.smarfle.com/terms
servers:
- url: https://www.smarfle.com/api/v1
security:
- bearerAuth: []
tags:
- name: Invoices
paths:
/invoices:
get:
tags:
- Invoices
operationId: listInvoices
summary: List invoices, newest first
parameters:
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/cursor'
- $ref: '#/components/parameters/created_since'
- $ref: '#/components/parameters/updated_since'
- name: status
in: query
required: false
description: Invoice status.
schema:
type: string
enum:
- draft
- sent
- overdue
- paid
- name: customer_id
in: query
required: false
description: Invoices of one customer.
schema:
type: string
format: uuid
- name: job_id
in: query
required: false
description: Invoices of one job.
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
required:
- object
- data
- has_more
- next_cursor
properties:
object:
const: list
data:
type: array
items:
$ref: '#/components/schemas/Invoice'
has_more:
type: boolean
next_cursor:
type:
- string
- 'null'
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PlanRequired'
'429':
$ref: '#/components/responses/RateLimited'
/invoices/{id}:
get:
tags:
- Invoices
operationId: getInvoice
summary: Get an invoice with its line items
parameters:
- name: id
in: path
required: true
description: The invoice id.
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Invoice'
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PlanRequired'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
existing_id:
type: string
Invoice:
type: object
properties:
id:
type: string
format: uuid
object:
const: invoice
number:
type:
- string
- 'null'
status:
type: string
enum:
- draft
- sent
- overdue
- paid
customer_id:
type:
- string
- 'null'
job_id:
type:
- string
- 'null'
subtotal:
type:
- number
- 'null'
tax_rate:
type:
- number
- 'null'
tax_amount:
type:
- number
- 'null'
discount_amount:
type:
- number
- 'null'
tip_amount:
type:
- number
- 'null'
total:
type:
- number
- 'null'
currency:
const: usd
due_date:
type:
- string
- 'null'
format: date
paid_at:
type:
- string
- 'null'
format: date-time
paid_method:
type:
- string
- 'null'
refund_amount:
type:
- number
- 'null'
refunded_at:
type:
- string
- 'null'
format: date-time
items:
type: array
items:
type: object
properties:
description:
type:
- string
- 'null'
quantity:
type:
- number
- 'null'
unit_price:
type:
- number
- 'null'
total:
type:
- number
- 'null'
service_id:
type:
- string
- 'null'
created_at:
type: string
format: date-time
updated_at:
type:
- string
- 'null'
format: date-time
parameters:
cursor:
name: cursor
in: query
required: false
description: next_cursor from the previous page.
schema:
type: string
created_since:
name: created_since
in: query
required: false
description: Created at or after (ISO 8601).
schema:
type: string
format: date-time
updated_since:
name: updated_since
in: query
required: false
description: Changed at or after (ISO 8601).
schema:
type: string
format: date-time
limit:
name: limit
in: query
required: false
description: 1 to 100, default 25.
schema:
type: integer
minimum: 1
maximum: 100
default: 25
responses:
PlanRequired:
description: The trial or plan has ended, or the plan has no API.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InvalidRequest:
description: The request is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: More than 120 calls a minute for this key (or 600 for the business). Retry after a minute.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: No record with this id in this business.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing, invalid or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Authorization: Bearer smk_...'
externalDocs:
description: Guide
url: https://www.smarfle.com/docs/api