Skip to Content
API and MCPResources

Payments

Read the payments recorded on your account, across all invoices or for one invoice.

A payment is money recorded against an invoice, or a deposit recorded against an estimate. The payments endpoints are read-only. To record a payment, use POST /api/v1/invoices/{id}/payments — see Invoices.

curl "https://api.fieldcamp.ai/api/v1/payments?updated_since=2026-06-01T00:00:00Z" \
  -H "Authorization: Bearer $FIELDCAMP_API_KEY"

The key needs the payments:read scope.

Response fields

FieldDescription
idPayment ID.
recordIdThe payment's record identifier.
documentIdID of the invoice (or estimate) the payment belongs to.
documentA short summary of that document. Its object is invoice or estimate. null when the document no longer exists.
amountThe amount paid.
dateThe payment date.
methodPayment method as entered, for example Cash.
noteFree-text note.
paymentTypeCodeThe payment type code, when one was sent.
isOnlinePaymenttrue when the customer paid online.
isDepositPaymenttrue when the payment is a deposit.
createdAtISO-8601 timestamp.

The same shape is the record of a payment.recorded webhook event.

Filters and paging

  • invoiceId narrows the list to one document. documentId is accepted as the same filter.
  • updated_since (ISO-8601) returns only payments changed since that time.
  • The list is cursor paged: limit (1–100, default 50) and cursor set to meta.next.cursor from the previous response. meta.next is null on the last page.

Endpoints

GET/api/v1/payments

Authorization

BearerAuth
AuthorizationBearer <token>

JWT from POST /api/auth/login (response.data.token). Tokens do not expire.

In: header

Query Parameters

invoiceId?string

Only this invoice's (alias documentId).

limit?integer

1–100, default 50.

cursor?string

meta.next.cursor of the previous page.

updated_since?string

ISO-8601; only rows updated since.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/payments"
{  "success": true,  "code": "success.created",  "message": "Client created successfully",  "data": null}
GET/api/v1/payments/{id}

Authorization

BearerAuth
AuthorizationBearer <token>

JWT from POST /api/auth/login (response.data.token). Tokens do not expire.

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/payments/665f1c2ab3e4d5f6a7b8c9d0"
{  "success": true,  "code": "success.created",  "message": "Client created successfully",  "data": null}
GET/api/v1/invoices/{id}/payments

Authorization

BearerAuth
AuthorizationBearer <token>

JWT from POST /api/auth/login (response.data.token). Tokens do not expire.

In: header

Path Parameters

id*string

Query Parameters

limit?integer

1–100, default 50.

cursor?string

meta.next.cursor of the previous page.

updated_since?string

ISO-8601; only rows updated since.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/invoices/665f1c2ab3e4d5f6a7b8c9d0/payments"
{  "success": true,  "code": "success.created",  "message": "Client created successfully",  "data": null}
POST/api/v1/invoices/{id}/payments

Authorization

BearerAuth
AuthorizationBearer <token>

JWT from POST /api/auth/login (response.data.token). Tokens do not expire.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/invoices/665f1c2ab3e4d5f6a7b8c9d0/payments" \  -H "Content-Type: application/json" \  -d '{    "amount": 0  }'
{  "success": true,  "code": "success.created",  "message": "Client created successfully",  "data": null}

On this page