> ## Documentation Index
> Fetch the complete documentation index at: https://docs.idmetagroup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# View Credits

> Check how many verification credits you have left for each verification type.

Use this endpoint to monitor your credit usage. It returns one entry for each verification type enabled on your account.

> [!NOTE]
>
> This endpoint works only when credit enforcement is enabled for your account. Otherwise it returns `403` with the error code `CREDIT_ENFORCEMENT_DISABLED`.

## How credits are calculated

| Field | Description |
| - | - |
| `totalCredit` | All credits granted for the verification type: the initial amount plus top-ups and refunds, minus manual reductions. |
| `used` | `totalCredit` minus `remaining`. |
| `remaining` | Credits you can still use. |
| `validUntil` | End of your access period, in your account's timezone. `null` if your access has no end date. |
| `accountType` | Your account status: `INACTIVE`, `ACTIVE`, `POC`, or `SANDBOX`. |


## OpenAPI

````yaml api-reference/processes/view-credits/view-credits.openapi.json GET /api/v3/verifications/credits
openapi: 3.0.3
info:
  title: IDmeta API - View Credits
  version: 1.0.0
servers:
  - url: https://{environment-subdomain}.idmetagroup.com
    description: Your environment (replace `{environment-subdomain}`)
    variables:
      environment-subdomain:
        default: integrate
        enum:
          - integrate
          - api.ph
        description: >-
          IDmeta environment subdomain. Use `api.ph` for
          portalph.idmetagroup.com and `integrate` for verify.idmetagroup.com.
security:
  - bearerAuth: []
paths:
  /api/v3/verifications/credits:
    get:
      tags:
        - Processes
      summary: View Credits
      description: >-
        Returns the total, used, and remaining credits for each verification
        type enabled on your account, along with the date your access is valid
        until.


        This endpoint is available only when credit enforcement is enabled for
        your account.
      operationId: getCreditsV3
      parameters:
        - name: Accept
          in: header
          required: false
          schema:
            type: string
            default: application/json
      responses:
        '200':
          description: Credit balances for each enabled verification type
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  clientId:
                    type: string
                    description: Your company's client ID.
                  accountType:
                    type: string
                    enum:
                      - INACTIVE
                      - ACTIVE
                      - POC
                      - SANDBOX
                    description: Your account's current status.
                  credits:
                    type: array
                    items:
                      type: object
                      properties:
                        verificationType:
                          type: string
                          description: Verification type the credits apply to.
                        totalCredit:
                          type: integer
                          description: >-
                            All credits granted for this verification type: the
                            initial amount plus top-ups and refunds, minus
                            manual reductions.
                        used:
                          type: integer
                          description: >-
                            Credits used so far (`totalCredit` minus
                            `remaining`).
                        remaining:
                          type: integer
                          description: Credits still available.
                        validUntil:
                          type: string
                          nullable: true
                          description: >-
                            End of your access period in your account's
                            timezone, or `null` if your access has no end date.
                  createdAt:
                    type: string
                    description: Response timestamp in UTC.
              examples:
                activeAccount:
                  summary: Active account with an access end date
                  value:
                    success: true
                    clientId: '{your_client_id}'
                    accountType: ACTIVE
                    credits:
                      - verificationType: philippines_driving_license
                        totalCredit: 1000
                        used: 250
                        remaining: 750
                        validUntil: '2026-12-31 23:59:59 +08:00'
                      - verificationType: philippines_prc
                        totalCredit: 500
                        used: 0
                        remaining: 500
                        validUntil: '2026-12-31 23:59:59 +08:00'
                    createdAt: 2026-11-16 08:41:00+0000
                noAccessEndDate:
                  summary: Account with no access end date
                  value:
                    success: true
                    clientId: '{your_client_id}'
                    accountType: POC
                    credits:
                      - verificationType: philippines_driving_license
                        totalCredit: 100
                        used: 100
                        remaining: 0
                        validUntil: null
                    createdAt: 2026-11-16 08:41:00+0000
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                  errors:
                    type: object
                    additionalProperties: true
              examples:
                unauthenticated:
                  summary: Missing or invalid API token
                  value:
                    success: false
                    message: Unauthenticated.
                    createdAt: 2026-11-16 08:41:00+0000
        '403':
          description: Credit enforcement is not enabled for this account
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                  errors:
                    type: object
                    additionalProperties: true
              examples:
                creditEnforcementDisabled:
                  summary: Credit enforcement is not enabled
                  value:
                    success: false
                    errorCode: CREDIT_ENFORCEMENT_DISABLED
                    message: Credit enforcement is not enabled for this account.
                    createdAt: 2026-11-16 08:41:00+0000
        '500':
          description: Unexpected server error. Try the request again later.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                  errors:
                    type: object
                    additionalProperties: true
                  createdAt:
                    type: string
              examples:
                internalError:
                  summary: Internal server error
                  value:
                    success: false
                    message: Internal Server Error
                    createdAt: 2026-11-16 08:41:00+0000
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Use `Bearer {your_api_token}` in the Authorization header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.