Skip to main content
https://.thoughtindustries.com

Show Credit Actions

Returns a paginated list of credit actions for a specific credit account, filtered by client and action type

Returns a paginated list of credit actions for a specific credit account, filtered by client and action type.

GEThttps://example.thoughtindustries.com/incoming/v2/clients/:id/creditAccount/:creditAccountId/creditActions

Example request

curl "https://example.thoughtindustries.com/incoming/v2/clients/:id/creditAccount/:creditAccountId/creditActions" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
idstringYespathThe id identifier.
creditAccountIduuidYespathThe creditAccountId identifier.
clientIduuidYesqueryThe UUID of the client whose credit actions to retrieve.
actionTypestringYesqueryThe type of credit action to filter results by (e.g., debit, credit).
cursorstringNoqueryOpaque cursor for the next page of results. Omit to fetch the first page.

Example response

{
  "clientId": "00000000-0000-0000-0000-000000000000",
  "creditAccountId": "00000000-0000-0000-0000-000000000000",
  "creditActions": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "initiator": "string",
      "action": "string",
      "amount": 0,
      "targetType": "string",
      "target": "string",
      "creditAccountName": "string",
      "source": "string",
      "sourceType": "string",
      "timestamp": "2024-01-01T00:00:00.000Z"
    }
  ],
  "pageInfo": {
    "perPage": 0,
    "cursor": "string",
    "total": 0,
    "hasMore": true
  }
}

Response fields

FieldTypeDescription
clientIduuidIdentifier of the client.
creditAccountIduuidIdentifier of the credit account.
creditActionsobject[]Array of credit action records for the current page.
creditActions.iduuidIdentifier of the credit action.
creditActions.initiatorstringWho or what initiated the action.
creditActions.actionstringThe type of credit action performed.
creditActions.amountnumberCredit amount involved in the action.
creditActions.targetTypestringType of the target the action applied to.
creditActions.targetstringIdentifier or name of the target.
creditActions.creditAccountNamestringName of the credit account.
creditActions.sourcestringSource of the action.
creditActions.sourceTypestringType of the source.
creditActions.timestampISO 8601 timestampTimestamp when the action occurred.
pageInfoobjectCursor-based pagination metadata for the result set.
pageInfo.perPageintegerNumber of records returned per page.
pageInfo.cursorstringOpaque cursor to pass on the next request. Present when hasMore is true.
pageInfo.totalintegerTotal number of records matching the query.
pageInfo.hasMorebooleanWhether additional pages of results are available.