Shift4 Payments · JSON Structure

Shift4 Charge Structure

The Shift4 Charge object: a single payment authorization or capture against a card or payment method. Sourced from the official shift4-java SDK and dev.shift4.com/docs/api.

Type: object Properties: 19
PaymentsFintechCommerceCheckout

Charge is a JSON Structure definition published by Shift4 Payments, describing 19 properties.

Properties

id clientObjectId created amount amountRefunded currency description status type captured refunded disputed customerId subscriptionId merchantAccountId metadata failureCode failureIssuerDeclineCode failureMessage

Meta-schema:

JSON Structure

Raw ↑
{
  "name": "Charge",
  "description": "The Shift4 Charge object: a single payment authorization or capture against a card or payment method. Sourced from the official shift4-java SDK and dev.shift4.com/docs/api.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the charge (prefix: char_).",
      "example": "char_8a4cb45e8a2c4adcb6d23f72b3b3a5d2"
    },
    "clientObjectId": {
      "type": "string",
      "description": "Optional client-supplied idempotency identifier."
    },
    "created": {
      "type": "integer",
      "description": "Unix timestamp (seconds) when the charge was created.",
      "example": 1746489600
    },
    "amount": {
      "type": "integer",
      "description": "Amount in the smallest currency unit (e.g., cents)."
    },
    "amountRefunded": {
      "type": "integer",
      "description": "Total amount refunded across all refunds."
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code.",
      "example": "USD"
    },
    "description": {
      "type": "string",
      "description": "Human-readable description."
    },
    "status": {
      "type": "string",
      "description": "Lifecycle status of the charge.",
      "enum": ["SUCCESSFUL", "FAILED", "PENDING"]
    },
    "type": {
      "type": "string",
      "description": "Transaction type for scheme reporting.",
      "enum": ["FIRST_RECURRING", "SUBSEQUENT_RECURRING", "CARDHOLDER_INITIATED", "MERCHANT_INITIATED"]
    },
    "captured": { "type": "boolean", "description": "True if the charge has been captured." },
    "refunded": { "type": "boolean", "description": "True if fully refunded." },
    "disputed": { "type": "boolean", "description": "True if a dispute exists." },
    "customerId": { "type": "string", "description": "Associated customer identifier." },
    "subscriptionId": { "type": "string", "description": "Associated subscription, if recurring." },
    "merchantAccountId": { "type": "string", "description": "Merchant account that processed the charge." },
    "metadata": { "type": "object", "description": "Custom string key-value metadata." },
    "failureCode": { "type": "string", "description": "Shift4 failure code, if status is FAILED." },
    "failureIssuerDeclineCode": { "type": "string", "description": "Issuer decline code." },
    "failureMessage": { "type": "string", "description": "Human-readable failure description." }
  }
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/shift4-charge-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

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

Get an API key

Free tier, no email required.

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