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).
pageintegerNoqueryThe page number to retrieve for paginated results.

Example response

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

Response fields

FieldTypeDescription
clientIduuidThe UUID of the client associated with the returned credit actions.
creditAccountIduuidThe UUID of the credit account associated with the returned credit actions.
creditActionsCreditAction[]The list of credit actions matching the specified filters.
creditActions.iduuidThe unique identifier of the credit action.
creditActions.clientuuidThe UUID of the client associated with this credit action.
creditActions.actionstringThe type of action performed (e.g., debit, credit).
creditActions.amountnumberThe number of credits involved in this action.
creditActions.targetuuidThe UUID of the entity receiving or affected by the credit action.
creditActions.targetTypestringThe type of entity identified by target (e.g., user, group).
creditActions.targetBalanceInnumberThe credit balance of the target account before the action was applied.
creditActions.targetBalanceOutnumberThe credit balance of the target account after the action was applied.
creditActions.initiatoruuidThe UUID of the entity that triggered the credit action.
creditActions.initiatorTypestringThe type of entity identified by initiator (e.g., user, system).
creditActions.creditAccountNamestringThe display name of the credit account associated with this action.
creditActions.sourceuuidThe UUID of the entity from which credits were drawn or transferred.
creditActions.sourceTypestringThe type of entity identified by source (e.g., account, group).
creditActions.sourceBalanceInnumberThe credit balance of the source account before the action was applied.
creditActions.sourceBalanceOutnumberThe credit balance of the source account after the action was applied.
creditActions.timestampISO 8601 timestampThe date and time when the credit action occurred, in ISO 8601 format.
creditActions.updatedAtISO 8601 timestampThe date and time when the credit action record was last updated, in ISO 8601 format.
pageInfoCursorPageInfoPagination metadata for the returned results.
pageInfo.perPageintegerThe number of credit actions returned per page.
pageInfo.cursorstringThe cursor value to use when requesting the next page of results.
pageInfo.totalintegerThe total number of credit actions matching the specified filters.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.