A payment a client made, with the invoices it paid, its fees, and its refund and dispute status. Returned by GET /gql/v1/payment/{id}, POST /gql/v1/payments, and POST /gql/v1/payments/search, in a payment or payments list; a get by ID returns at most one item, and an empty list when nothing matches. Field names are snake_case, including inside the nested payment object.
A payment is identified by its own AR transaction ID, payment_ar_tran_id. It doesn't carry the IDs of the client or the invoices it paid: use client_ref and invoice_numbers to find them, by searching clients on clientRef and invoices on invoiceNumber.
| Name | Type | Format | Nullable | Description | Example |
|---|---|---|---|---|---|
payment_ar_tran_id | integer | — | No | The payment's ID: the ID of its AR transaction. Use it with GET /gql/v1/payment/{id}. | 85394 |
ar_transaction_date | string | date-time (ISO 8601), no offset | No | When the payment was made. | "2026-08-24T21:51:18.834" |
client_name | string | — | Yes | Name of the client who paid. | "Acme Holdings LLC" |
client_ref | string | — | Yes | The client's human-facing reference. Search clients on clientRef to find the client. | "352411" |
invoice_numbers | string | comma-separated | Yes | Numbers of the invoices the payment paid, separated by , . Search invoices on invoiceNumber to find them. | "A0053742, A0053743" |
engagement_names | string | — | Yes | Names of the engagements the payment was taken for, separated by . . | "2026 Tax Return" |
payment_payment_method | string | — | Yes | How the client paid. Values include Credit Card, Debit Card, Bank Transfer, Check, Prepaid, and Unknown. | "Debit Card" |
payment_pp_id | string | — | Yes | The payment processor's reference for the payment. | "pi_3U7zDVIog7gyKVjp381hs4oG" |
paid_by_full_name | string | — | Yes | Who made the payment: the payer's name, or the staff member or contact who entered it. | "Jordan Lee" |
staff_admin_id | boolean | — | No | true when a staff member entered the payment on the client's behalf. | false |
notes | string | — | Yes | Notes on the payment's AR transaction. | "Paid at year-end meeting" |
status | string | — | No | The payment's status. Values include Completed, Failed, Refunded, Refund Pending, and Refund Failed. | "Completed" |
is_payment_success | boolean | — | No | true when the payment succeeded. | true |
is_posted | boolean | — | Yes | true once the payment is posted. | true |
is_partial_payment | boolean | — | Yes | true when the payment left part of an invoice unpaid. | false |
is_aiwyn_payment | boolean | — | Yes | true when the payment was taken through Aiwyn rather than recorded from another system. | true |
amount | number | decimal, firm currency | Yes | Total the client paid, including fees. | 101.00 |
principal | number | decimal, firm currency | Yes | The part of amount applied to invoices, without fees. | 100.00 |
total_bill_amount | number | decimal, firm currency | Yes | Total of the invoices the payment paid. null for a payment of an invoice add-on. | 100 |
total_processing_fee_amount | number | decimal, firm currency | Yes | Processing fees charged on the payment. | 0 |
total_late_fee_amount | number | decimal, firm currency | Yes | Late fees charged on the payment. | 0 |
total_international_fee_amount | number | decimal, firm currency | Yes | International fees charged on the payment. | 1.00 |
currency_code | string | ISO 4217 | Yes | Currency the client paid in. | "GBP" |
amount_in_currency | number | decimal, currency_code | Yes | amount in the currency the client paid in. | 80.8 |
principal_in_currency | number | decimal, currency_code | Yes | principal in the currency the client paid in. | 80.0 |
total_bill_amount_in_currency | number | decimal, currency_code | Yes | total_bill_amount in the currency the client paid in. | 80.0 |
total_processing_fee_amount_in_currency | number | decimal, currency_code | Yes | total_processing_fee_amount in the currency the client paid in. | 0 |
total_late_fee_amount_in_currency | number | decimal, currency_code | Yes | total_late_fee_amount in the currency the client paid in. | 0 |
total_international_fee_amount_in_currency | number | decimal, currency_code | Yes | total_international_fee_amount in the currency the client paid in. | 0.8 |
posted_to_bank_dt | string | date-time (ISO 8601) | Yes | When the payment was posted to the firm's bank account. | "2026-08-31T00:27:24.013+00:00" |
estimated_deposit_date | string | date-time (ISO 8601), no offset | Yes | When the funds are expected to reach the firm's bank account. | "2026-09-01T07:00:00" |
refund_status | string | comma-separated | Yes | Status of each refund on the payment, separated by , . Values include pending, succeeded, and AlreadyRefunded. | "succeeded" |
refund_date | string | MM/DD/YYYY, comma-separated | Yes | Date of each refund, separated by , . | "09/03/2026" |
dispute_status | string | comma-separated | Yes | Status of each dispute on the payment, separated by , . Values include PENDING and LOST. | "PENDING" |
dispute_refund_date | string | MM/DD/YYYY, comma-separated | Yes | Date funds were withdrawn for each lost dispute, separated by , . | "10/02/2026" |
card_type | string | — | Yes | Card brand for card payments, such as visa, or the bank name for bank payments, as the payment processor reports it. | "visa" |
last4 | string | — | Yes | Last four digits of the card or account used for the payment. | "4242" |
failure_reason | string | — | Yes | Why the payment failed. | null |
failed_at | string | date-time (ISO 8601) | Yes | When the payment failed. | null |
payment_confirmation_date | string | date-time (ISO 8601), no offset | Yes | When the payment was confirmed. Decides whether the payment counts as completed or still pending. | "2026-09-01T15:00:34.317714" |
payment_source | string | — | Yes | How the payment was made: MANUAL, AUTO_PAY, SCHEDULED, AUTO_DRAFT, PAYMENT_LINK, CLIENT_PORTAL, PRE_PAYMENT, or UNSPECIFIED. | "CLIENT_PORTAL" |
payment | object | PaymentRecord | No | Details from the payment record behind this row. | — |
| Name | Type | Format | Nullable | Description | Example |
|---|---|---|---|---|---|
application_fee_amount | number | decimal, firm currency | Yes | Application fee the payment processor charged on the payment. | null |
company_name | string | — | Yes | Company name of the payer. | null |
created_at | string | date-time (ISO 8601) | No | When the payment record was created. | "2026-09-01T15:00:34.317714+00:00" |
created_by_contact_id | integer | — | Yes | Contact who made the payment. | null |
created_by_staff_id | integer | — | Yes | Staff member who recorded the payment. | null |
firm_bank_account_id | integer | — | Yes | Firm bank account the payment was deposited into. Often empty, because not every firm records it. | null |
is_manual | boolean | — | Yes | true when the payment was recorded manually rather than taken through the payment processor. | false |
payor_name | string | — | Yes | Name of the payer. | null |
posted_to_bank | boolean | — | Yes | true once the payment is posted to the bank. | false |
refunded_amount | number | decimal, firm currency | Yes | Amount refunded. | null |
updated_at | string | date-time (ISO 8601) | No | When the payment record was last updated. | "2026-09-01T15:00:34.317714+00:00" |