Block · Schema

Payment

Represents a payment processed by Square.

CommerceCryptocurrencyE-CommerceFintechPaymentsPoint-of-SaleSquare

Properties

Name Type Description
id string Unique ID for this payment.
status string Indicates whether the payment is APPROVED, COMPLETED, CANCELED, or FAILED.
source_type string The source type for this payment.
amount_money object
total_money object
location_id string The ID of the location associated with the payment.
created_at string The timestamp of when the payment was created.
updated_at string The timestamp of when the payment was last updated.
View JSON Schema on GitHub

JSON Schema

block-payment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/block/main/json-schema/block-payment-schema.json",
  "title": "Payment",
  "description": "Represents a payment processed by Square.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique ID for this payment.",
      "example": "GQTFp1ZlXdpoW4o6eGiZhbjosiDFf"
    },
    "status": {
      "type": "string",
      "description": "Indicates whether the payment is APPROVED, COMPLETED, CANCELED, or FAILED.",
      "enum": ["APPROVED", "COMPLETED", "CANCELED", "FAILED"],
      "example": "COMPLETED"
    },
    "source_type": {
      "type": "string",
      "description": "The source type for this payment.",
      "example": "CARD"
    },
    "amount_money": {
      "$ref": "#/$defs/Money"
    },
    "total_money": {
      "$ref": "#/$defs/Money"
    },
    "location_id": {
      "type": "string",
      "description": "The ID of the location associated with the payment.",
      "example": "L1234567890"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the payment was created.",
      "example": "2026-01-15T10:00:00Z"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the payment was last updated.",
      "example": "2026-01-15T10:00:05Z"
    }
  },
  "$defs": {
    "Money": {
      "type": "object",
      "description": "Represents an amount of money in a specific currency.",
      "properties": {
        "amount": {
          "type": "integer",
          "description": "Amount in the smallest denomination of the currency.",
          "example": 1500
        },
        "currency": {
          "type": "string",
          "description": "3-letter ISO 4217 currency code.",
          "example": "USD"
        }
      }
    }
  }
}

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/block-payment"
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.