Payments

get_payments

Get list of payments for the authenticated user's organization

Parameters

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

searchstring

Search term for payment notes

relationsArray<string>

Relations to include (e.g., ["invoice", "organizationContact", "project", "recordedBy"])

statusstringPENDINGPROCESSINGCOMPLETEDFAILEDCANCELLEDREFUNDED

Filter by payment status

paymentMethodstringCREDIT_CARDDEBIT_CARDBANK_TRANSFERPAYPALSTRIPECASHCHECKOTHER

Filter by payment method

invoiceIdstring<uuid>

Filter by invoice ID

organizationContactIdstring<uuid>

Filter by organization contact ID

projectIdstring<uuid>

Filter by project ID

currencystringUSDEURGBPJPYCADAUDCHFCNY

Filter by currency

startDatestring

Filter payments from this date (ISO format)

endDatestring

Filter payments until this date (ISO format)

overdueboolean

Filter by overdue status

get_payment_count

Get payment count in the authenticated user's organization

Parameters

statusstringPENDINGPROCESSINGCOMPLETEDFAILEDCANCELLEDREFUNDED

Filter by payment status

paymentMethodstringCREDIT_CARDDEBIT_CARDBANK_TRANSFERPAYPALSTRIPECASHCHECKOTHER

Filter by payment method

currencystringUSDEURGBPJPYCADAUDCHFCNY

Filter by currency

overdueboolean

Filter by overdue status

startDatestring

Filter payments from this date (ISO format)

endDatestring

Filter payments until this date (ISO format)

get_payment

Get a specific payment by ID

Parameters

idstring<uuid>required

The payment ID

relationsArray<string>

Relations to include (e.g., ["invoice", "organizationContact", "project", "recordedBy"])

create_payment

Create a new payment in the authenticated user's organization

Body

application/json
payment_dataobjectrequired

The data for creating the payment

Show child attributes
amountnumberrequired

The amount (required)

currencystringrequired

The currency (required)

[key: string]any

update_payment

Update an existing payment

Parameters

idstring<uuid>required

The payment ID

payment_dataobjectrequired

The data for updating the payment

update_payment_status

Update the status of a payment

Parameters

idstring<uuid>required

The payment ID

statusstringPENDINGPROCESSINGCOMPLETEDFAILEDCANCELLEDREFUNDEDrequired

The new status for the payment

delete_payment

Delete a payment

Parameters

idstring<uuid>required

The payment ID

get_payments_by_invoice

Get payments for a specific invoice

Parameters

invoiceIdstring<uuid>required

The invoice ID

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

statusstringPENDINGPROCESSINGCOMPLETEDFAILEDCANCELLEDREFUNDED

Filter by payment status

relationsArray<string>

Relations to include

get_payments_by_client

Get payments for a specific client/organization contact

Parameters

organizationContactIdstring<uuid>required

The organization contact ID

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

statusstringPENDINGPROCESSINGCOMPLETEDFAILEDCANCELLEDREFUNDED

Filter by payment status

currencystringUSDEURGBPJPYCADAUDCHFCNY

Filter by currency

relationsArray<string>

Relations to include

get_payment_statistics

Get payment statistics for the authenticated user's organization

Parameters

startDatestring

Start date for statistics (ISO format)

endDatestring

End date for statistics (ISO format)

organizationContactIdstring<uuid>

Filter by specific client ID

projectIdstring<uuid>

Filter by specific project ID

currencystringUSDEURGBPJPYCADAUDCHFCNY

Filter by currency

process_payment

Process a payment (mark as completed)

Parameters

idstring<uuid>required

The payment ID

paymentDatestring

The payment date (ISO format)

refund_payment

Refund a payment

Parameters

idstring<uuid>required

The payment ID

refundAmountnumber

The refund amount (if partial refund)

reasonstring

Reason for refund

get_overdue_payments

Get overdue payments for the authenticated user's organization

Parameters

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

relationsArray<string>

Relations to include

currencystringUSDEURGBPJPYCADAUDCHFCNY

Filter by currency

search_payments

Search payments by notes, invoice number, or client name

Parameters

querystringrequired

Search query

limitnumber20

Maximum number of results

statusstringPENDINGPROCESSINGCOMPLETEDFAILEDCANCELLEDREFUNDED

Filter by payment status

paymentMethodstringCREDIT_CARDDEBIT_CARDBANK_TRANSFERPAYPALSTRIPECASHCHECKOTHER

Filter by payment method

currencystringUSDEURGBPJPYCADAUDCHFCNY

Filter by currency

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey