Skip to content

Payment Gateway · Beta

LawPay
API integration

Ship Payment Gateway features without building the integration. Full LawPay API access via Proxy and 80+ MCP-ready tools for AI agents — extend models and mappings to fit your product.

Built for specific customer use cases. Issues are resolved quickly.

Talk to us
LawPay

Use Cases

Why integrate with LawPay

Common scenarios for SaaS companies building LawPay integrations for their customers.

01

Embed ABA-compliant payments in LegalTech platforms

Legal practice management, CRM, and billing SaaS companies can offer native payment processing that respects IOLTA trust vs. operating account separation — a non-negotiable for law firm clients. Truto handles the auth and API quirks so you can ship a compliant payment experience without becoming a payments team.

02

Automate retainer collection and replenishment

Give law firm users the ability to vault client cards and ACH details once, then automatically charge them when trust balances drop below a threshold. This removes manual billing work and reduces the write-off risk firms face on unearned fees.

03

Offer structured payment plans for bankruptcy and defense practices

SaaS platforms serving bankruptcy, criminal defense, and immigration attorneys can build multi-month payment schedules directly into their workflows. Firms get predictable revenue, and clients get accessible financing without the SaaS having to build scheduling logic from scratch.

04

Deliver closed-loop invoicing with document substantiation

Push detailed invoices with PDF time logs and expense breakdowns from your SaaS into LawPay, generate a hosted pay link, and reconcile ledgers when the payment settles. This turns your product into the single source of truth for billing without manual status updates.

05

Reduce PCI scope for your platform

By using LawPay's tokenization flow via Truto, your SaaS never touches raw card or bank account data. You get to offer payments as a first-class feature while keeping your compliance surface area small.

What You Can Build

Ship these features with Truto + LawPay

Concrete product features your team can ship faster by leveraging Truto’s LawPay integration instead of building from scratch.

01

Trust vs. operating account routing

Let firms designate per-charge whether funds land in their IOLTA trust account or operating account using LawPay bank account configuration, ensuring compliance on every transaction.

02

Tokenized card and ACH vaulting

Securely capture payment methods via LawPay tokens and store them as reusable contact payment methods, cards, or bank accounts for one-click future billing.

03

Hosted pay-now links in your emails and portal

Generate per-contact secure URLs via contact hashes and info request hashes to embed in your SaaS's invoice emails, SMS reminders, or client portal.

04

Recurring payment plan builder

Ship a UI where firm admins configure installment schedules, preview the plan, and handle failures by skipping or retrying individual occurrences via the recurring charge occurrences endpoints.

05

Invoice sync with PDF attachments

Create LawPay invoices from your SaaS's billing module and attach up to 10MB of supporting PDFs — time entries, receipts, court filings — directly to the contact record.

06

Automated reconciliation via transaction polling

Poll transactions and payments to detect settled charges, refunds, and voids, then automatically update your SaaS's ledger and case status without manual bookkeeping.

07

In-person signature capture for retainers

From a mobile app, submit a captured client signature against a transaction ID to strengthen chargeback defense on large in-person retainer payments.

SuperAI

LawPay AI agent tools

Comprehensive AI agent toolset with fine-grained control. Integrates with MCP clients like Cursor and Claude, or frameworks like LangChain.

law_pay_ach_accounts_replace

Update eCheck Account. A Merchant may update the name, primary status, and policy configuration of an ach_account by sending a PUT or PATCH request to /v1/ach-accounts/{accountId} . A PUT request requires the complete contents of the ach_account to be sent in the JSON request, whereas PATCH requests can send just the JSON elements that should be changed. The updated ach_account is returned. PUT replaces the whole record (send every field); use update (PATCH) to change some fields. Payment Gateway API (secret key). Required: ach_account_id.

update_a_law_pay_ach_account_by_id

Update eCheck Account. A Merchant may update the name, primary status, and policy configuration of an ach_account by sending a PUT or PATCH request to /v1/ach-accounts/{accountId} . A PUT request requires the complete contents of the ach_account to be sent in the JSON request, whereas PATCH requests can send just the JSON elements that should be changed. The updated ach_account is returned. Payment Gateway API (secret key). Required: id.

get_single_law_pay_bank_account_surcharge_by_id

Get Surcharge. Retrieves the surcharge rate and fee for the specified bank account, using a public key and basic authentication. This includes rates and fees for card, bank, and loan types, when available. If a bank account has more than one of the same type, the first one is returned. If the merchant does not have surcharge enabled, a null set is returned. If an amount is specified, the response includes: amount . Payment Gateway API (public key). Required: id.

list_all_law_pay_bank_accounts

Get Bank Accounts. Retrieves a list of each BankAccount for the current user’s organization. Needs an OAuth 2.0 connection (Bearer token).

create_a_law_pay_bank

Store a Bank. If you want to save payment details for future use, create a PaymentMethod rather than a saved card or saved bank. PaymentMethods can be used in our Card Vault and are associated with a particular payer (a Contact). A Merchant creates a saved bank on behalf of a user by POSTing the bank details to /v1/banks . Alternatively, a previously created token ID can be provided to convert the token into a saved Bank. Payment Gateway API (secret key). Required: name, given_name, surname.

delete_a_law_pay_bank_by_id

Delete a Bank. A previously saved bank can be deleted by sending a DELETE to /v1/banks/{bankId} , substituting the ID of the bank. The Gateway responds with the JSON representation of the deleted bank with sensitive properties masked. After deletion, the bank ID can no longer be used to perform payments. Payment Gateway API (secret key). Required: id.

get_single_law_pay_bank_by_id

Get a Bank. A previously saved bank can be retrieved by sending a GET to /v1/banks/{bankId} , substituting the ID of the Bank. The Gateway responds with the JSON representation of the bank with sensitive properties masked. Payment Gateway API (secret key). Required: id.

list_all_law_pay_banks

List Banks. The list of banks saved for a merchant are retrieved via a GET request to /v1/banks . The API supports pagination over the result set by allowing the client to specify the number of results per logical "page" and the page to view. Payment Gateway API (secret key). Truto pages it (limit = page size, 20 by default, at most 100); records at results.

update_a_law_pay_bank_by_id

Update a Bank. A Merchant can update a saved bank on behalf of a user by PATCHing the bank details to /v1/banks/{bankId} . When updating the routing number or account number, PATCH the bank using a token that contains the updated data. Payment Gateway API (secret key). Required: id.

create_a_law_pay_card

Store a Card. If you want to save payment details for future use, create a PaymentMethod rather than a saved card or saved bank. PaymentMethods can be used in our Card Vault and are associated with a particular payer (a Contact). A merchant creates a saved card on behalf of a user, for use in future payments, by POSTing the card details to /v1/cards . Payment Gateway API (secret key). Required: number, exp_month, exp_year.

delete_a_law_pay_card_by_id

Delete a Card. A previously saved card can be deleted by sending a DELETE to /v1/cards/{cardId} , substituting the ID of the card. The Gateway responds with the JSON representation of the deleted card with sensitive properties masked. After deletion, the card ID can no longer be used to perform payments. Payment Gateway API (secret key). Required: id.

get_single_law_pay_card_by_id

Get a Card. A previously saved card can be retrieved by sending a GET to /v1/cards/{cardId} , substituting the ID of the card. The Gateway responds with the JSON representation of the card with sensitive properties masked. Payment Gateway API (secret key). Required: id.

list_all_law_pay_cards

List Cards. The list of cards saved for a merchant are retrieved via a GET request to /v1/cards . The API supports pagination over the result set by allowing the client to specify the number of results per logical "page" and the page to view. Payment Gateway API (secret key). Truto pages it (limit = page size, 20 by default, at most 100); records at results.

update_a_law_pay_card_by_id

Update a Card. A Merchant can update any details in a saved card on behalf of a user by PATCHing the updated card details to /v1/cards/{cardId} . When updating the card number, expiration month, or expiration year, PATCH the card using a token that contains the updated data. Payment Gateway API (secret key). Required: id.

list_all_law_pay_charge_holds

Authorization Holds. If you create authorization-only charges (charges with auto_capture: false ), you'll need to issue separate requests to settle those transactions using the Capture API. Use this endpoint to retrieve a list of all unsettled authorization-only charges associated with an authenticated merchant. Authorization-only charges may be returned for a specific merchant account or from all the merchant's accounts. Payment Gateway API (secret key). Truto pages it (limit = page size, 20 by default, at most 100); records at results.

law_pay_charges_capture

Capture. Merchants use the capture API to control the settlement of authorization-only Charges (those Charges created with auto_capture: false ), which initiates the transfer of funds from the credit card holder's bank to the Merchant's account. This feature is only available for credit card transactions, and must be enabled by the Tenant on a per-account basis. Payment Gateway API (secret key). Required: charge_id.

create_a_law_pay_charge

Charges. The /v1/charges API submits a payment request from a customer using the payment method included in the request. The payment method can be a card or bank or the ID of a PaymentMethod , saved card , saved bank , or one-time token. The operation performs an authorize for the funds specified and returns the Charge in the response. Payment Gateway API (secret key).

law_pay_charges_refund

Refunds. A refund returns funds to a customer's account for a specified Charge, up to six months after the Charge. Multiple refunds may be performed up to the total amount authorized. Refunds can be applied to any auto-capture Charges for which the status is either AUTHORIZED or COMPLETED . Non-auto-capture Charges must be COMPLETED by a capture before refunds may be applied. Payment Gateway API (secret key). Required: charge_id.

law_pay_charges_schedule

Schedule a Charge. Merchants can use this endpoint to create a recurring charge that uses the same details as a previously processed payment (e.g., payment method, customer information). Payment Gateway API (secret key). Required: charge_id.

create_a_law_pay_contact_attachment

Upload Files to be Attached. Uploads one or more files, which can then be attached to an invoice. Each merchant can have up to 10MB of unattached uploaded files. The following types of files can be uploaded and attached: PDF Documents/text: Word (DOC, DOCX), TXT, RTF Spreadsheets: Excel (XLS, XLSX), CSV Images: JPG, PNG, TIF, GIF An unattached uploaded file is kept in the system for 24 hours. Needs an OAuth 2.0 connection (Bearer token). Required: contact_id, file.

delete_a_law_pay_contact_attachment_by_id

Delete Uploaded File. Deletes the specified uploaded file. After a file has been attached to an invoice, it can no longer be deleted using this endpoint. URI parameters Parameter Description contact_id The system-generated ID of an organization; in this case, this is the merchant that owns the attachment. Needs an OAuth 2.0 connection (Bearer token). Required: id, contact_id.

get_single_law_pay_contact_attachment_by_id

View Uploaded File Status. Retrieves details about an uploaded file, before it is attached to an invoice. Use this endpoint to verify that an upload is complete. An uploaded file can be in one of the following processing states: processing . The attachment/file is being scanned. completed . The attachment/file has been scanned successfully. failed . The attachment/file has been flagged as dangerous and will be purged from the system. Needs an OAuth 2.0 connection (Bearer token). Required: id, contact_id.

list_all_law_pay_contact_attachments

Get Uploaded Files. Retrieves a list of uploaded files that can be attached to an invoice. After a file has been attached to an invoice, information about it can no longer be retrieved using this endpoint; instead, you must view the Invoice . URI parameters Parameter Description contact_id The system-generated ID of an organization; in this case, this is the merchant that owns the attachment. Needs an OAuth 2.0 connection (Bearer token). Required: contact_id.

create_a_law_pay_contact_hash

Create Contact Hash. Creates a ContactHash for the specified Contact. This includes a URL for the payment portal that is unique to the specified Contact. You can send this URL to the user so they can view and pay their Invoices. The ContactHash expires after 90 days. If a user needs to access the URL after that point, you must create a new ContactHash. Needs an OAuth 2.0 connection (Bearer token). Required: contact_id.

list_all_law_pay_contact_info_requests

Get InfoRequests for Contact. Retrieves a list that contains each InfoRequest for the specified contact. URI parameters Parameter Description contact_id The system-generated ID of a specific Contact. (ID prefix = p_ or org_ ) (required) Query parameters Parameter Type Description order_by Array of String The list of fields to sort by, prefixed with - for descending. To include multiple fields, separate them with a comma. Needs an OAuth 2.0 connection (Bearer token). Required: contact_id. Truto pages it (limit = page size, 20 by default, at most 100); records at results.

create_a_law_pay_contact_payment_method

Create PaymentMethod. Before you begin, see the related developer documentation , which contains a list of all the steps required before you create a PaymentMethod. Creates a PaymentMethod associated with the specified Contact . To display in Card Vault, the PaymentMethod's Contact must have the tag: default. URI parameters Parameter Description contact_id The system-generated ID of a specific Contact. Needs an OAuth 2.0 connection (Bearer token). Required: contact_id, payment_type, one_time_token, saved_payment_token, test_mode.

delete_a_law_pay_contact_payment_method_by_id

Delete PaymentMethod. Deletes the specified PaymentMethod . URI parameters Parameter Description contact_id The system-generated ID of a specific Contact. (ID prefix = p_ or org_ ) (required) payment_method_id The system-generated ID of a specific PaymentMethod. Needs an OAuth 2.0 connection (Bearer token). Required: id, contact_id.

get_single_law_pay_contact_payment_method_by_id

Get PaymentMethod. Retrieves the specified PaymentMethod for the specified contact. URI parameters Parameter Description contact_id The system-generated ID of a specific Contact. (ID prefix = p_ or org_ ) (required) payment_method_id The system-generated ID of a specific PaymentMethod. Needs an OAuth 2.0 connection (Bearer token). Required: id, contact_id.

list_all_law_pay_contact_payment_methods

Get PaymentMethods. Retrieves a list that includes each PaymentMethod for the specified Contact. URI parameters Parameter Description contact_id The system-generated ID of a specific contact. Needs an OAuth 2.0 connection (Bearer token). Required: contact_id.

update_a_law_pay_contact_payment_method_by_id

Update PaymentMethod. Updates the specified PaymentMethod . URI parameters Parameter Description contact_id The system-generated ID of a specific Contact. (ID prefix = p_ or org_ ) (required) payment_method_id The system-generated ID of a specific PaymentMethod. Needs an OAuth 2.0 connection (Bearer token). Required: id, contact_id.

create_a_law_pay_contact

Create Contact. Creates a Contact using the properties included in the request. To create a Person , the request must include the type field set to person and at least one of the following fields: first_name , last_name , or email_address . To create an Organization , the request must include the type field set to organization and at least one of the following fields: name or email_address . Needs an OAuth 2.0 connection (Bearer token).

delete_a_law_pay_contact_by_id

Delete Contact. Deletes the specified Contact . URI parameters Parameter Description contact_id The system-generated ID of a specific contact. Needs an OAuth 2.0 connection (Bearer token). Required: id.

get_single_law_pay_contact_by_id

Get Contact. Retrieves the specified Contact . URI parameters Parameter Description contact_id The system-generated ID of a specific contact. Needs an OAuth 2.0 connection (Bearer token). Required: id.

law_pay_contacts_lookup_by_source_id

Get Contact by Source ID. Retrieves the specified Contact , using the specified source_id. The JSON for the Contact is returned, which does not include the source_id. Query parameters Parameter Description source_id The caller-generated ID of the specified contact, which uniquely identifies a contact in the caller's environment. Needs an OAuth 2.0 connection (Bearer token). Required: record_id.

list_all_law_pay_contacts

Search Contacts. Retrieves a list that includes each Contact that matches the search criteria provided. Query parameters Parameter Type Description q String The text filter to apply across all text fields. (optional) qf String The filters to apply against specific fields, in the format field:value . If a field is nested, the dot-separated path must be specified. Needs an OAuth 2.0 connection (Bearer token). Truto pages it (limit = page size, 20 by default, at most 100); records at results.

law_pay_contacts_make_payment

Make Payment. Creates a Payment for the invoices associated with the specified Contact and listed in the PaymentRequest. The amount is distributed to the oldest invoice first. URI parameters Parameter Description contact_id The system-generated ID of a specific contact. Needs an OAuth 2.0 connection (Bearer token). Required: contact_id.

update_a_law_pay_contact_by_id

Update Contact. Updates the specified Contact’s current parameter values with values that you provide. Any parameters that you do not specify in the PATCH will be left as-is. Needs an OAuth 2.0 connection (Bearer token). Required: id.

create_a_law_pay_credit

Credits. A credit allows you to return funds to a customer credit card or bank account independent of any existing Charges. Credits can be used to refund customers using payment methods that do not match the originating payment type, or to accommodate scenarios in which the original payment method is no longer available. The Credit API is disabled by default, and must be enabled by 8am on a per-account basis. Payment Gateway API (secret key).

get_single_law_pay_event_by_id

Get Event by ID. The content of an individual event is retrieved by performing a GET to /v1/events/{eventId} where eventId is the ID of the event. The Gateway returns a JSON event element identifying the type of event, when it was created, and the event data. Payment Gateway API (secret key). Required: id.

list_all_law_pay_events

List Events. The events associated with the authenticated Merchant are returned via a GET request to /v1/events . The API supports pagination over the result set by allowing the client to specify the number of results per logical "page" and the page to view. By default the Events are returned in reverse chronological order, such that the most recent Events appear first. Payment Gateway API (secret key). Truto pages it (limit = page size, 20 by default, at most 100); records at results.

list_all_law_pay_gateway_credentials

Request Gateway Credentials. This endpoint returns a list of the test and live accounts associated with the authenticated user’s merchant account. Included in this information are the necessary keys for making calls to the 8am Payment Gateway API. Save these credentials securely so your partner OAuth application can manage transactions on behalf of merchant users. Needs an OAuth 2.0 connection (Bearer token).

create_a_law_pay_info_request_hash

Create InfoRequest Hash. Creates an InfoRequestHash for the specified InfoRequest. The InfoRequestHash expires after 30 days. If a user needs to access the URL after that point, you must create a new InfoRequestHash. URI parameters Parameter Description inforequest_id The system-generated ID of a specific InfoRequest. Needs an OAuth 2.0 connection (Bearer token). Required: info_request_id.

law_pay_info_requests_cancel

Cancel InfoRequest. Updates the specified InfoRequest to change its status and cancel it. URI parameters Parameter Description info_request_id The system-generated ID of a specific InfoRequest. Needs an OAuth 2.0 connection (Bearer token). Required: info_request_id.

create_a_law_pay_info_request

Create InfoRequest. Creates an InfoRequest for the Contact specified in the request body. The InfoRequest, sent via a link to our portal, can be sent to the Contact: By Us Ensure the Contact has at least one email address defined. This determines the address to which the request will be sent. Ensure the Contact has one tag defined: default. This ensures that when the new payment method is saved, it is available within the Card Vault. Needs an OAuth 2.0 connection (Bearer token). Required: message.

delete_a_law_pay_info_request_by_id

Delete InfoRequest. Deletes the specified InfoRequest . URI parameters Parameter Description info_request_id The system-generated ID of a specific InfoRequest. Needs an OAuth 2.0 connection (Bearer token). Required: id.

list_all_law_pay_info_requests

Search InfoRequests. Retrieves a list that contains each InfoRequest . Query parameters Parameter Type Description order_by Array of String The list of fields to sort by, prefixed with - for descending. To include multiple fields, separate them with a comma. For example, order_by=field1,-field2 . (optional) page Int32 The page number, starting at 1. The default value is 1 . Needs an OAuth 2.0 connection (Bearer token). Truto pages it (limit = page size, 20 by default, at most 100); records at results.

delete_a_law_pay_invoice_attachment_by_id

Delete Attachment. Removes the specified file from the its associated invoice and deletes it from the system. Needs an OAuth 2.0 connection (Bearer token). Required: id, invoice_id.

get_single_law_pay_invoice_attachment_by_id

Download Attachment. Retrieves the specified file attached to the specified invoice. Set the Accept header to application/octet-stream to download the file in its binary form. Needs an OAuth 2.0 connection (Bearer token). Sent with Accept: application/octet-stream, so LawPay returns the file itself. Required: id, invoice_id.

create_a_law_pay_invoice_message

Create Invoice Message. Creates an InvoiceMessage, which sends an email regarding the specified invoice. Use this to re-send a link to the payment portal, where users pay their invoices. URI Parameters Parameter Description invoice_id The system-generated ID of a specific invoice. Needs an OAuth 2.0 connection (Bearer token). Required: invoice_id, email_addresses, status, amount, direction, description, rate_per_quantity, quantity, rate_type, unallocated_amount, payment_type, contact_id, owner_id, currency, bank_account_id, test_mode, invoices.

create_a_law_pay_invoice

Create Invoice. Before you begin, see the related developer documentation , which contains a list of all the steps required before you create an invoice. Creates an Invoice using the properties included in the request. If you are creating an invoice for test purposes, set test_mode to true . You can upload files to the system. Needs an OAuth 2.0 connection (Bearer token). Required: invoice_date, currency, bank_account_id, contact_id.

delete_a_law_pay_invoice_by_id

Delete Invoice. Deletes the specified Invoice . URI parameters Parameter Description invoice_id The system-generated ID of a specific invoice. Needs an OAuth 2.0 connection (Bearer token). Required: id.

get_single_law_pay_invoice_by_id

Get Invoice. Retrieves the specified Invoice . URI parameters Parameter Description invoice_id The system-generated ID of a specific invoice. Needs an OAuth 2.0 connection (Bearer token). Required: id.

list_all_law_pay_invoices

Search Invoices. Retrieves a list that includes each Invoice that matches the search criteria provided. Query parameters Parameter Type Description q String The text filter to apply across all text fields. (optional) qf String The filters to apply against specific fields, in the format field:value . If a field is nested, the dot-separated path must be specified. Needs an OAuth 2.0 connection (Bearer token). Truto pages it (limit = page size, 20 by default, at most 100); records at results.

update_a_law_pay_invoice_by_id

Update Invoice. Updates the specified Invoice's current property values with values that you provide. Any properties that you do not specify in the PATCH will be left as-is. To add attachments to an invoice, you must specify an array with that includes the final list of attachments. To delete attachments from the invoice, include an empty attachments array in the PATCH. Needs an OAuth 2.0 connection (Bearer token). Required: id.

list_all_law_pay_merchant

Get Current Merchant. Returns the currently-authenticated merchant . This operation can be used to test authenticating to the Gateway using a Merchant's credentials. Note that the merchant and eCheck accounts returned are filtered based on whether a live or test-mode secret key was provided. Only TEST accounts are returned if a test-mode secret key is used, while a live-mode secret key only returns live accounts. Payment Gateway API (secret key).

law_pay_merchant_purge_test_data

Purge Test Data. Testing your integration via our API can result in a lot of data being generated associated with your account: payment methods, transactions, recurring charges, etc. This data can sometimes make it more difficult to verify that your integration is working as expected. Using the /v1/merchant/purge-test-data endpoint, you can discard all of your test data and return to a clean slate. Payment Gateway API (secret key).

law_pay_merchant_replace

Update Merchant. A Merchant may update their merchant name, contact information, and client policy constraints by sending a PUT or PATCH request to /v1/merchant . A PUT request requires the complete contents of the merchant to be sent in the JSON request, whereas PATCH requests can send just the JSON elements that should be changed. The updated Merchant is returned. PUT replaces the whole record (send every field); use update (PATCH) to change some fields. Payment Gateway API (secret key).

law_pay_merchant_modify

Update Merchant. A Merchant may update their merchant name, contact information, and client policy constraints by sending a PUT or PATCH request to /v1/merchant . A PUT request requires the complete contents of the merchant to be sent in the JSON request, whereas PATCH requests can send just the JSON elements that should be changed. The updated Merchant is returned. Payment Gateway API (secret key).

law_pay_oauth_tokens_introspect

Introspect Token. Retrieves information about the OAuth token provided in the request. This includes the merchant_id (the contact_id for the merchant user), which is required for managing attachments. Needs an OAuth 2.0 connection (Bearer token). Truto sends the connection's own token as the form field `token`.

list_all_law_pay_payments

Search Payments. Retrieves a list of each Payment that matches the search criteria provided. Query parameters Parameter Type Description start_date datetime Limits search results to payments made after the given date. Note: This does not work with q and qf filters. (optional) end_date datetime Limits search results to payments made before the given date. Note: This does not work with q and qf filters. Needs an OAuth 2.0 connection (Bearer token). Truto pages it (limit = page size, 20 by default, at most 100); records at results.

get_single_law_pay_recurring_charge_occurrence_by_id

Get Occurrence. An individual recurring_charge_occurrence is retrieved by performing a GET request to /v1/recurring/charges/{id}/occurrences/{occurrenceId} , where id is the ID of the owning recurring charge and occurrenceId is the ID of the occurrence to retrieve. Payment Gateway API (secret key). Required: id, recurring_charge_id.

law_pay_recurring_charge_occurrences_ignore

Ignore Occurrence. A Merchant may optionally mark an recurring_charge_occurrence of a recurring charge as ignored, provided the occurrence has not already been paid. This will prevent the Gateway from attempting to collect payment for this specific occurrence of the schedule. Payment Gateway API (secret key). Required: recurring_charge_id, occurrence_id.

list_all_law_pay_recurring_charge_occurrences

List Occurrences. The list of recurring_charge_occurrences for a recurring charge, including status information and associated transactions, is obtained by sending a GET request to /v1/recurring/charges/{id}/occurrences , substituting the recurring charge ID for id . The Gateway responds with a search_results instance containing the occurrences. Payment Gateway API (secret key). Required: recurring_charge_id. Truto pages it (limit = page size, 20 by default, at most 100); records at results.

law_pay_recurring_charge_occurrences_pay

Pay Occurrence. A Merchant may pre-pay an recurring_charge_occurrence (attempting to collect payment in advance of the scheduled due date, at which time the Gateway would automatically attempt to collect payment) or re-try a previously ignored or failed payment by issuing an empty POST to /v1/recurring/charges/{id}/occurrences/{occurrenceId}/pay , substituting the ID of the owning recurring charge for id and the ID of the occurrence. Payment Gateway API (secret key). Required: recurring_charge_id, occurrence_id.

law_pay_recurring_charges_cancel

Cancel Recurring Charge. A recurring charge may be cancelled at any time by the Merchant. Once cancelled, no further attempts are made to collect payments for the recurring charge and the status of the recurring charge is set to COMPLETED . The status_reason property is also set to user_canceled to indicate the recurring charge completed due to cancellation. Payment Gateway API (secret key). Required: recurring_charge_id.

create_a_law_pay_recurring_charge

Create Recurring Charge. A new recurring charge is created by POSTing a recurring_charge to /v1/recurring/charges . The Gateway schedules the first payment recurring_charge_occurrence and returns the new recurring charge in the response. Note: A recurring charge cannot be scheduled to start on the same day it is created. Doing so will result in a first_occurrence_due_immediately error being returned. Payment Gateway API (secret key).

delete_a_law_pay_recurring_charge_by_id

Delete Recurring Charge. A Merchant may delete a recurring charge by sending a DELETE to /v1/recurring/charges/{id} , substituting the ID of the recurring charge for id . Once deleted no further attempts are made to collect payments for the recurring charge and the recurring charge no longer appears when listing recurring charges for the Merchant. Payment Gateway API (secret key). Required: id.

get_single_law_pay_recurring_charge_by_id

Get Recurring Charge. A Merchant may retrieve an existing recurring_charge created through one of its own accounts by sending a GET request to /v1/recurring/charges/{id} where id is the ID of the recurring charge. The Gateway returns the JSON contents of the recurring charge. Note: Occurrences must be retrieved separately via their own API . Payment Gateway API (secret key). Required: id.

list_all_law_pay_recurring_charges

List Recurring Charges. The list of recurring_charges for a Merchant are retrieved via a GET request to /v1/recurring/charges . The API supports pagination over the result set by allowing the client to specify the number of results per logical "page" and the page to view. Payment Gateway API (secret key). Truto pages it (limit = page size, 20 by default, at most 100); records at results.

law_pay_recurring_charges_preview

Preview Recurring Charge. A Merchant can preview the affects of changing dates, the number of occurrences, or both before creating a recurring charge. A recurring_charge_projection is created by sending a GET request to /v1/recurring/charges/schedule and using query parameters to define the recurring charge preview that is returned. Payment Gateway API (secret key).

law_pay_recurring_charges_replace

Update Recurring Charge. A recurring charge may be updated by sending a PUT or PATCH request to /v1/recurring/charges/{id} , substituting id for the ID of the recurring charge. A PUT request requires the complete contents of the recurring charge to be sent in the JSON request, whereas PATCH requests can send just the JSON elements that should be changed. The choice of PUT vs PATCH depends on the manner of integration. PUT replaces the whole record (send every field); use update (PATCH) to change some fields. Payment Gateway API (secret key). Required: recurring_charge_id.

update_a_law_pay_recurring_charge_by_id

Update Recurring Charge. A recurring charge may be updated by sending a PUT or PATCH request to /v1/recurring/charges/{id} , substituting id for the ID of the recurring charge. A PUT request requires the complete contents of the recurring charge to be sent in the JSON request, whereas PATCH requests can send just the JSON elements that should be changed. The choice of PUT vs PATCH depends on the manner of integration. Payment Gateway API (secret key). Required: id.

get_single_law_pay_signature_by_id

Get Signature. A Merchant can retrieve a signature using its signatureID . Payment Gateway API (secret key). Required: id.

list_all_law_pay_system_status

System Status. Integrating systems can retrieve the current status of the Gateway by issuing a GET request to /status . The operation returns an enumeration indicating the basic status, as detailed in the table below. This operation, which requires no authentication, can be used to check connectivity to the Gateway as well as to identify potential problems that may impact payment processing. Payment Gateway API (secret key).

create_a_law_pay_token

Create a Token. A merchant system, having collected a customer's payment details, may exchange them for a one-time payment token by POSTing the payment details to /v1/tokens . One-time tokens expire five minutes after creation. Payment Gateway API (secret key). Required: type, number, exp_month, exp_year, cvv, routing_number, account_number, account_type, account_holder_type, postal_code.

get_single_law_pay_token_by_id

Get a Token. An existing payment token may be retrieved by performing a GET to /v1/tokens/{tokenId} where tokenId is the ID of a payment token created previously by the merchant. The API returns a JSON representation of the token , with all sensitive data masked. Payment Gateway API (secret key). Required: id.

get_single_law_pay_transaction_by_id

Get Transaction by ID. A Merchant may retrieve any transaction created through one of its own Accounts by performing a GET to /v1/transactions/{transactionId} , where transactionId is the ID of the transaction of interest. The Gateway returns the JSON for the transaction. The JSON type attribute indicates the kind of transaction ( charge or refund ). Charges returned via this API include any subsequent Refunds. Payment Gateway API (secret key). Required: id.

law_pay_transactions_lookup_by_source_id

Get Transaction by Source ID. A Merchant may retrieve any transaction created through one of its own Accounts by performing a GET to /v1/transactions/source-id?id={source_id} , where source_id is the source ID of the transaction of interest. The Gateway returns the JSON for the transaction, which does not include the source_id . The JSON type attribute indicates the kind of transaction ( charge or refund ). Payment Gateway API (secret key). Required: record_id.

list_all_law_pay_transactions

Search Transactions. The transactions associated with the authenticated merchant are returned via a GET request to /v1/transactions . Transactions may be returned for a specific account or from all the Merchant's accounts. The API supports pagination over the result set by allowing the client to specify the number of results per logical "page" and the page to view. Payment Gateway API (secret key). Truto pages it (limit = page size, 20 by default, at most 100); records at results.

law_pay_transactions_sign

Submit Signature. A Merchant may submit a cardholder's signature in association with a transactionID . The request takes a signature that can be captured directly using an 8am mobile app. Payment Gateway API (secret key). Required: transaction_id.

law_pay_transactions_void

Voids. Until an authorized transaction has been captured or settled, it may be voided, preventing any capture of funds from occurring and releasing any hold, by POSTing a request to /v1/transactions/{transactionId}/void . The updated transaction is returned in the response, its status changed to VOIDED . Charges, Refunds, and Credits may all be voided. Payment Gateway API (secret key). Required: transaction_id.

Why Truto

Why use Truto’s MCP server for LawPay

Other MCP servers give you a static tool list for one app. Truto gives you a managed, multi-tenant MCP infrastructure across 1150+ integrations.

01

Auto-generated, always up to date

Tools are dynamically generated from curated documentation — not hand-coded. As integrations evolve, tools stay current without manual maintenance.

02

Fine-grained access control

Scope each MCP server to read-only, write-only, specific methods, or tagged tool groups. Expose only what your AI agent needs — nothing more.

03

Multi-tenant by design

Each MCP server is scoped to a single connected account with its own credentials. The URL itself is the auth token — no shared secrets, no credential leaking across tenants.

04

Works with every MCP client

Standard JSON-RPC 2.0 protocol. Paste the URL into Claude, ChatGPT, Cursor, or any MCP-compatible agent framework — tools are discovered automatically.

05

Built-in auth, rate limits, and error handling

Tool calls execute through Truto’s proxy layer with automatic OAuth refresh, rate-limit handling, and normalized error responses. No raw API plumbing in your agent.

06

Expiring and auditable servers

Create time-limited MCP servers for contractors or automated workflows. Optional dual-auth requires both the URL and a Truto API token for high-security environments.

How It Works

From zero to integrated

Start with LawPay in a free sandbox, usually ready within one business day. No boilerplate, no maintenance burden.

01

Link your customer’s LawPay account

Use Truto’s frontend SDK to connect your customer’s LawPay account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

02

We handle authentication

Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

03

Call our API, we call LawPay

Truto’s Proxy API is a 1-to-1 mapping of the LawPay API. You call us, we call LawPay, and pass the response back in the same cycle.

04

Unified response format

Every response follows a single format across all integrations. We translate LawPay’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about LawPay on Truto

Authentication, rate limits, data freshness, and everything else you need to know before you integrate.

How do end users authenticate their LawPay account with our product?

LawPay uses OAuth, and Truto manages the full connection flow for your end users — including token exchange, storage, and refresh. Your users click connect, authorize their LawPay merchant account, and Truto returns a connection your app uses for all subsequent API calls.

Can we stay out of PCI scope when collecting card data?

Yes. Use the create token endpoint to exchange raw card or ACH data for a short-lived token (valid ~5 minutes), then pass that token into create charge or create payment method calls. Your servers never need to store or transmit raw PAN data.

Does the integration support both one-time and recurring payments?

Both are supported. You can create one-time charges with capture, void, and refund actions, or create recurring charges with schedule management — including previewing a plan, paying or ignoring specific occurrences, and cancelling the full series.

How do we keep our local ledger in sync with LawPay?

You can list and fetch transactions, payments, and events, and look up transactions by your own source ID to tie them back to records in your system. Combined with periodic polling of recurring charge occurrences, this lets you reconcile status changes like settled, refunded, or voided.

Can we attach supporting documents to invoices?

Yes. LawPay supports contact attachments and invoice attachments (up to 10MB), which is useful for appending time logs, court fee receipts, or expense breakdowns to the invoices your SaaS generates.

Does the integration distinguish between trust (IOLTA) and operating accounts?

Yes. You can list and manage bank accounts, ACH accounts, and their associated surcharges, and specify the destination account on charges and invoices. This is how you preserve ABA/IOLTA compliance for your law firm users.

Can we test the integration without creating real transactions?

LawPay provides test merchant environments, and the API exposes a purge test data action on the merchant resource so you can reset test state during development and QA.

LawPay

Get LawPay integrated into your app

Our team understands what it takes to make a LawPay integration successful. A short, crisp 30 minute call with folks who understand the problem.