Skip to main content
GET
Get Payment Items
This endpoint serves two usages on the same path. Pass paymentItemID to retrieve a single Payment Item. Omit paymentItemID to list payment items; you can optionally pass contractorID, contractorPaymentID, or serviceTypeID to filter that list. When paymentItemID is present, list filters (contractorID, contractorPaymentID, serviceTypeID) and pagination parameters are ignored. Listing responses include meta with next, previous, and totalCount.

Authorizations

Authorization
string
header
required

Query Parameters

paymentItemID
string

ID of the payment item to retrieve. When present, the endpoint returns that single payment item and list filters are ignored.

contractorID
string

When listing payment items (omit paymentItemID), filter to this contractor. Ignored when paymentItemID is present.

contractorPaymentID
string

When listing payment items (omit paymentItemID), filter to this contractor payment. Ignored when paymentItemID is present.

serviceTypeID
string

When listing payment items (omit paymentItemID), filter to items whose work_info.serviceTypeID matches this value. Ignored when paymentItemID is present.

limit
number

Number of payment items returned per page. Minimum 1, maximum 100. Defaults to 25. Ignored when paymentItemID is present.

Required range: 1 <= x <= 100
start_at
string

The pagination cursor to start at. Ignored when paymentItemID is present.

sort_by
string

Field to sort by when listing. Defaults to _id. Ignored when paymentItemID is present.

sort_direction
enum<string>

Sort direction when listing. Defaults to desc. Ignored when paymentItemID is present.

Available options:
asc,
desc

Response

200

success
boolean
testMode
boolean
data
any

A Payment Item object, or an array of Payment Item objects when listing

meta
object

Present when listing (paymentItemID omitted). Contains next, previous, and totalCount.