Skip to content

List refunds

Request

Retrieve refunds for the location using cursor pagination. Optional filters: posted-on date range (startDate, endDate on postedOn), patient ID, payment ID, and invoice ID.

Security
PartnerApiKey and PartnerOAuth
Path
accountIdinteger, (int64)required

Account identifier

locationIdinteger, (int64)required

Location identifier

Query
patientIdinteger, (int64)

Filter by patient ID

Example:patientId=1234
paymentIdinteger, (int64)

Filter by payment ID

Example:paymentId=1234
invoiceIdinteger, (int64)

Filter by invoice ID

Example:invoiceId=1234
startDatestring

Start of date range filter on posted time (postedOn). ISO 8601 format.

Example:startDate=2025-01-01T00:00:00Z
endDatestring

End of date range filter on posted time (postedOn). ISO 8601 format.

Example:endDate=2025-01-31T23:59:59Z
sortBystring(?i)POSTED_ON|AMOUNT

Sort by field

Default:"POSTED_ON"
Enum:"POSTED_ON""AMOUNT"
sortDirstring(?i)ASC|DESC

Sort direction

Default:"DESC"
Enum:"ASC""DESC"
cursorstring, [ 0 .. 2048 ] characters

Pagination cursor from previous response

limitinteger, (int32), [ 1 .. 1000 ]

Number of results per page (max 1000)

Default:20
Example:limit=20
curl -i -X GET \
  'https://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/refund?patientId=1234&paymentId=1234&invoiceId=1234&startDate=2025-01-01T00%3A00%3A00Z&endDate=2025-01-31T23%3A59%3A59Z&sortBy=POSTED_ON&sortDir=ASC&cursor=string&limit=20' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

Refunds retrieved successfully

Bodyapplication/json
nextCursorstring

Opaque cursor for the next page. Null if no more results.

refundsArray of objects(RefundDTO)

Refunds in this page

Response
{ "nextCursor": "string", "refunds": [ {} ] }