ChargeDesk · Schema

Charge

A payment charge record in ChargeDesk

PaymentsBillingSubscriptionChargesRefundsCustomer ManagementPayment GatewayHelpdesk IntegrationREST API

Properties

Name Type Description
id string Unique charge identifier
object string
status string Current status of the charge
amount number Charge amount in the specified currency
currency string 3-letter ISO 4217 currency code
amount_refunded number Total amount that has been refunded
description string Human-readable description of the charge
transaction_id string Transaction ID from the payment gateway
last_4_digits string Last 4 digits of the payment card
customer object Customer associated with this charge
product object Product associated with this charge
subscription object Subscription this charge belongs to
lines array Line items included in the charge
metadata object Arbitrary key-value metadata
occurred string When the charge occurred
pay_link string Payment link URL for payment requests
View JSON Schema on GitHub

JSON Schema

charge.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.chargedesk.com/v1/schema/charge",
  "title": "Charge",
  "description": "A payment charge record in ChargeDesk",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique charge identifier"
    },
    "object": {
      "type": "string",
      "const": "charge"
    },
    "status": {
      "type": "string",
      "description": "Current status of the charge",
      "enum": [
        "pending",
        "paid",
        "partially refunded",
        "refunded",
        "failed",
        "authorized",
        "void",
        "invoiced",
        "invoice canceled",
        "unpaid",
        "past due",
        "subscription pending",
        "disputed",
        "trial",
        "credit",
        "uncollectible",
        "open",
        "draft",
        "unclaimed"
      ]
    },
    "amount": {
      "type": "number",
      "description": "Charge amount in the specified currency"
    },
    "currency": {
      "type": "string",
      "description": "3-letter ISO 4217 currency code",
      "minLength": 3,
      "maxLength": 3
    },
    "amount_refunded": {
      "type": "number",
      "description": "Total amount that has been refunded",
      "minimum": 0
    },
    "description": {
      "type": "string",
      "description": "Human-readable description of the charge"
    },
    "transaction_id": {
      "type": "string",
      "description": "Transaction ID from the payment gateway"
    },
    "last_4_digits": {
      "type": "string",
      "description": "Last 4 digits of the payment card",
      "pattern": "^[0-9]{4}$"
    },
    "customer": {
      "type": "object",
      "description": "Customer associated with this charge",
      "properties": {
        "id": { "type": "string" },
        "email": { "type": "string", "format": "email" },
        "name": { "type": "string" }
      }
    },
    "product": {
      "type": "object",
      "description": "Product associated with this charge",
      "properties": {
        "id": { "type": "string" },
        "name": { "type": "string" }
      }
    },
    "subscription": {
      "type": "object",
      "description": "Subscription this charge belongs to",
      "properties": {
        "id": { "type": "string" }
      }
    },
    "lines": {
      "type": "array",
      "description": "Line items included in the charge",
      "items": {
        "type": "object",
        "properties": {
          "id": { "type": "string" },
          "description": { "type": "string" },
          "amount": { "type": "number" },
          "quantity": { "type": "integer", "minimum": 1 },
          "currency": { "type": "string" }
        }
      }
    },
    "metadata": {
      "type": "object",
      "description": "Arbitrary key-value metadata",
      "additionalProperties": { "type": "string" }
    },
    "occurred": {
      "type": "string",
      "format": "date-time",
      "description": "When the charge occurred"
    },
    "pay_link": {
      "type": "string",
      "format": "uri",
      "description": "Payment link URL for payment requests"
    }
  },
  "required": ["amount", "currency"]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/charge"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.