Clio API AtlasHomeManage APIGrow APIAccounting APIPlatform APIPayments deep-dive
Clio Manage · Clio Payments

The Clio Payments API, on one page

Clio keeps this API spread over a guide, an API reference, a webhooks guide and four shared rules pages, with no index. This page collects all of it: every endpoint, every field, every limit.

Overview

Overview

Your app creates a link to a Clio-hosted payment page and gives it to a client. The client pays there. Your app then reads the payment back. Clio handles the card form and the money.

Pay an invoice

A link tied to one bill. It can cover an invoice or a trust request. The client may pay part or all of it.

subject.type = "Bill"

Pay a contact’s open balance

A link tied to a contact who has outstanding invoices. Their balance gets paid down.

subject.type = "Contact"

Take a direct payment

Money goes straight to a bank account, as revenue or as an unallocated balance to apply later.

subject.type = "BankAccount"

Quick start

Quick start

The shortest path from nothing to a paid link.

  1. Get the scope.The user must accept clio_payments during OAuth. Authorize at https://app.clio.com/oauth/authorize, exchange the code at https://app.clio.com/oauth/token.
  2. Find a bank account that can take payments.Call the Bank Accounts endpoint and look for clio_payments_enabled to be true. Use that account’s id as destination_account.
  3. Create the link.POST /clio_payments/links.json with currency, duration, destination_account and a subject. Send back the url to your client.
  4. Watch for payment.Subscribe a webhook to clio_payments_payment, or poll GET /clio_payments/payments.json.
  5. Check the invoice.Read the bill’s state and balance from the Bills endpoint to see what is paid and what is still open.
curl · which invoices are still open
curl "https://app.clio.com/api/v4/bills?fields=id,number,state,due_at,balance&state=awaiting_payment" \
  -H "Authorization: Bearer <access_token>"
Bill states you will see: draft, awaiting_payment, paid, void. balance is what is still owed. To see payments on one bill, ask for bills{id,payments{id,amount,state}}.
All endpoints

All endpoints

Six calls in two groups. Base URL for the US region is https://app.clio.com/api/v4. Click a row to jump to it.

Rules and limits

Rules and limits

These come from the guide page. Most “why did my request fail” questions end here.

90 daysLongest a link can stay active. duration max is 7,776,000 seconds.
50 × usersMost active links on the account at once.
50 × usersMost links you can create in any 24 hours.
Single useA link expires the moment it is paid.

Who can collect, and in what money

Scope
The authenticating user must accept clio_payments.
Account
The account must have Clio Payments turned on.
Bank account
Must be connected to Clio Payments. Check the clio_payments_enabled field on the bank account: true means it is connected.
Currency
Only the account’s own currency. United States: USD. Canada: CAD. United Kingdom: GBP. Use an ISO 4217 code.
Redirect URL
redirect_url must match one of the payment-link base URLs saved in your app’s settings in the developer portal.
Visibility
The payments endpoint only returns payments made through links your app created.

What each link type needs

Pay invoice / trust request
Required: currency, destination_account, duration, subject with type Bill. Optional: amount (if left out the client picks, up to the full amount), email_address, redirect_url.
Pay a contact’s balance
Same fields as above, with subject.type = "Contact" and the contact’s id.
Direct payment
Required: currency, description (max 255 characters), duration, subject with type BankAccount. Optional: amount, destination_contact, email_address, is_allocated_as_revenue, redirect_url. With no contact and an unallocated balance, you tie the payment to a contact later inside Clio Manage.
Endpoints · payments

Payments

Read what clients actually paid. Tag in the reference: Clio Payments Payments. There is no create, update or delete here: payments can not be deleted.

GET/api/v4/clio_payments/payments.jsonClioPaymentsPayment#index

List payments

List payments made through links your app created. Payments from other sources do not show up here.

Parameters

Name
Type
Details
X-API-VERSION
header string

The API minor version. Default: latest version.

bill_id
query integer · int64

Filter payment records to those that are allocated to the specified bill.

contact_id
query integer · int64

Filter payment records to those that are assigned to the specified contact.

fields
query string

The fields to be returned. See response samples for what fields are available. For more information see the fields section.

ids[]
query integer · int64

Filter payment records to those having the specified unique identifiers.

limit
query integer · int32

A limit on the number of payment records to be returned. Limit can range between 1 and 200. Default: 200.

page_token
query string

A token specifying which page to return.

state
query string

Filter payment records to those in a given state.

curl
curl "https://app.clio.com/api/v4/clio_payments/payments.json?state=completed&fields=id,amount,state,confirmation_number,contact{id,name}" \
  -H "Authorization: Bearer <access_token>"

Responses meanings in plain words are ours

  • 200Ok
  • 400Bad request — Something in the request is invalid, such as an unknown field name in fields.
  • 401Unauthorized — The access token is missing, expired or revoked.
  • 403Forbidden — The user did not grant the clio_payments scope, or Clio Payments is not enabled for the account.
  • 429Too many requests — Rate limit hit. Wait the number of seconds in the Retry-After header.
GET/api/v4/clio_payments/payments/{id}.jsonClioPaymentsPayment#show

Get one payment

Fetch one payment, including its state, confirmation number and where the money was allocated.

Parameters

Name
Type
Details
IF-MODIFIED-SINCE
header string · date

The server will send the requested resource with a 200 status, but only if it has been modified after the given date. (Expects an RFC 2822 timestamp).

IF-NONE-MATCH
header string

The server will send the requested resource with a 200 status, but only if the existing resource's ETag doesn't match any of the values listed.

X-API-VERSION
header string

The API minor version. Default: latest version.

fields
query string

The fields to be returned. See response samples for what fields are available. For more information see the fields section.

id required
path integer · int64

The unique identifier for the payment.

Responses meanings in plain words are ours

  • 200Ok
  • 304Not modified — Your IF-NONE-MATCH / IF-MODIFIED-SINCE matched. Use your cached copy.
  • 400Bad request — Something in the request is invalid, such as an unknown field name in fields.
  • 401Unauthorized — The access token is missing, expired or revoked.
  • 403Forbidden — The user did not grant the clio_payments scope, or Clio Payments is not enabled for the account.
  • 404Not found — The record does not exist, or your app can not see it.
  • 429Too many requests — Rate limit hit. Wait the number of seconds in the Retry-After header.
Field reference

Field reference

Ask only for what you need with ?fields=. Without it you get just id and etag.

Payment link fields

Name
Type
Details
active
boolean

Whether or not the payment link is active.

amount
number · double

The defined amount of the payment link, if set.

created_at
string · date-time

The time the payment link was created (as a ISO-8601 timestamp)

currency
string

The currency the payment link will collect.

description
string

The defined description of the payment link, if set.

email_address
string

The email address to pre-fill the field on the payment link, if set.

etag
string

ETag for the payment link

expires_at
string · date-time

The ISO 8601 date and time the payment link will expire.

id
integer · int64

Unique identifier for the payment link

is_allocated_as_revenue
boolean

Whether the payment link is allocated as revenue.

redirect_url
string

The URL to redirect the client to after the payment has been made.

url
string

The URL of the payment link.

Nested records you can ask for

  • bank_accountThe link’s subject, when it is a direct payment.
  • billThe link’s subject, when it pays an invoice or trust request.
  • clio_payments_paymentThe payment that was made through this link.
  • contactThe link’s subject, when it pays a contact’s open balance.
  • destination_accountThe bank account the money is deposited into.
  • destination_contactThe contact a direct payment is tied to.

Payment fields

Name
Type
Details
amount
number · double

The amount of the payment.

confirmation_number
string

The confirmation number of the payment.

created_at
string · date-time

The time the payment was created (as a ISO-8601 timestamp)

currency
string

The currency the payment was processed in.

deposit_as_revenue
boolean

Whether the payment was deposited as revenue.

description
string

The description of the payment.

email_address
string

The email address of the client.

id
integer · int64

Unique identifier for the payment

state
string

The state of the payment (authorized, completed, failed, etc).

pendingauthorizedcompletedvoidedfailedcanceledrequires_confirmationcompleted_requiring_allocation
updated_at
string · date-time

The time the payment was last updated (as a ISO-8601 timestamp)

Nested records you can ask for

  • bank_transactionThe bank transaction for the payment. Absent until the payment is tied to a contact or matter.
  • clio_payments_linkThe link the payment came through.
  • contactThe contact the payment belongs to.
  • destination_accountThe bank account the money went into.
  • userThe Clio user who created the link.
  • allocationsHow the payment was split across bills.
  • billsBills the payment is, or will be, applied to.
  • mattersMatters the payment is, or will be, applied to.
Nested records take their own field list in curly brackets, one level deep: fields=id,amount,contact{id,name}. A second level of nesting returns a 400.
Payment states

Payment states

The state field on a payment. Filter with ?state=completed. The one-line meanings are our plain-English reading; Clio lists only the names.

  • pendingStarted, not yet processed.
  • authorizedCard approved, money not yet captured.
  • completedPaid and settled.
  • voidedCancelled before it settled.
  • failedThe attempt did not go through.
  • canceledThe client or Clio stopped it.
  • requires_confirmationWaiting on an extra confirmation step.
  • completed_requiring_allocationPaid, but not yet matched to a bill or matter.
Webhooks

Webhooks

Get told when a payment changes instead of polling.

Model
clio_payments_payment
Scope needed
clio_payments plus the webhooks scope, both granted at authorization.
Events
created and updated only. There is no deleted event because payments can not be deleted.
Guide
The full Webhooks guide covers creating a webhook, checking signatures and handling failed deliveries.
Shared API rules

Shared API rules

These apply to every Clio Manage call, Payments included. Each has its own page in Clio’s docs.

Rate limits

Per access token. Default 50 requests a minute at peak hours, more off-peak. Watch X-RateLimit-Remaining. On a 429, wait Retry-After seconds. Peak: US/CA 4 AM to 7 PM Pacific, weekdays.

Paging

Up to 200 records per call (limit). Follow meta.paging.next. Cursor paging is the default and has no cap. Offset paging stops at 10,000 records.

ETags

Send IF-NONE-MATCH on reads to get a 304 when nothing changed. Send IF-MATCH on PATCH to avoid overwriting newer data (412 if it moved).

Fields

Pick your fields with fields=a,b,c. Bad names give a 400. Nest one level: contact{id,name}.

Versions

Optional X-API-VERSION header, like 4.0.4. Leave it off for the latest. An invalid or retired value returns 410.

Regions

Four data regions with their own hosts. Swap the host in every URL.

Region base URLs

US region
https://app.clio.com/api/v4
Europe region
https://eu.app.clio.com/api/v4
Canada region
https://ca.app.clio.com/api/v4
Australia region
https://au.app.clio.com/api/v4
Docs vs. spec

Where Clio’s docs and spec disagree

Two spots to know about. We have not tested either against the live API (no Clio account was used for this page), so treat the working answer as a starting point.

1. The list URL. The guide page says GET /api/v4/clio_payment_links. The API reference says GET /api/v4/clio_payments/links.json. This page uses the reference, because it also matches the create call. If the first one fails, try the other.
2. Is description required? The guide says it is required only for direct payments. The reference marks it required on every create call. Safe move: always send a short description.
Sources

Sources

Everything here was read from these public Clio pages. No login was used.