# Track remaining credits

You can programmatically check on your account with the credits_remaining and usage resources.

Use the account/credits_remaining resource to track how many credits are left in your account.

Cost: 0 credits

Endpoint: GET /account/credits_remaining

## Header parameters:

  - `Accept` (string, required)
    Format of the response.
    Enum: "application/json", "*/*"

  - `Content-Type` (string, required)
    Format of the request.
    Enum: "application/json", "application/xml"

## Query parameters:

  - `format` (string)
    Specify the desired format of the response.
    Enum: "json", "xml"

  - `customer_id` (string, required)
    Required. The License Key issued by Melissa.
    Example: "{REPLACE-WITH-YOUR-LICENSE-KEY}"

  - `key` (string)
    The License Key issued by Melissa.

## Response 200 fields (application/json):

  - `response` (object)

  - `response.errors` (array)
    If the request encountered an error or errors, details about the error(s) will be contained in this field.

  - `response.messages` (array)
    Contains the resources matching the request query, if any.

  - `response.results` (object)
    Contains additional information about the outcome of a request that is not an error and not part of a query result.

  - `response.results.credit_balance` (number)

  - `response.results.overdraft_limit` (number)

  - `response.results.usable_batches` (array)

  - `response.results.usable_batches.credits_purchased` (number)

  - `response.results.usable_batches.credits_remaining` (number)

  - `response.results.usable_batches.created` (string)

  - `response.results.usable_batches.expiration_time` (string)

  - `response.results.usable_batches.cost` (string)

  - `response.results.usable_batches.discount` (string)

## Response 400 fields (application/json):

  - `response` (object)

  - `response.errors` (array)
    If the request encountered an error or errors, details about the error(s) will be contained in this field.
    Example: ["A detailed message about the error."]

  - `response.messages` (array)
    Contains the resources matching the request query, if any.

  - `response.results` (object)
    Contains additional information about the outcome of a request that is not an error and not part of a query result.


