Kit · Schema

Create a purchase Response

Email MarketingCreator EconomySubscribersAutomationNewslettersSequencesFormsBroadcastsWebhookMCPAgentsAuthenticationMarketing AutomationLanding PagesSegmentationEmail CampaignsSoftware-as-a-ServiceCommerce

Properties

Name Type Description
purchase object
View JSON Schema on GitHub

JSON Schema

create_a_purchase_response.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/convertkit/main/json-schema/create_a_purchase_response.json",
  "title": "Create a purchase Response",
  "x-tag": "Purchases",
  "type": "object",
  "properties": {
    "purchase": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "transaction_id": {
          "type": "string"
        },
        "subscriber_id": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        },
        "email_address": {
          "type": "string",
          "description": "The subscriber that the purchase belongs to"
        },
        "currency": {
          "type": "string",
          "description": "3 letter currency code (e.g. `USD`)"
        },
        "transaction_time": {
          "type": "string"
        },
        "subtotal": {
          "type": "number",
          "format": "float"
        },
        "discount": {
          "type": "number",
          "format": "float"
        },
        "tax": {
          "type": "number",
          "format": "float"
        },
        "total": {
          "type": "number",
          "format": "float"
        },
        "products": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "quantity": {
                "type": "integer",
                "description": "Product quantity"
              },
              "lid": {
                "type": "string",
                "description": "Each product should have a unique `lid` (i.e., line item identifier) for this purchase."
              },
              "unit_price": {
                "type": "number",
                "format": "float",
                "description": "Product price"
              },
              "sku": {
                "type": "string",
                "description": "Product sku"
              },
              "name": {
                "type": "string",
                "description": "Product name"
              },
              "pid": {
                "type": "string",
                "description": "This is your identifier for a product. Each product provided in the `products` array must have a unique pid. Variants of the same product should have the same pid."
              }
            },
            "required": [
              "quantity",
              "lid",
              "unit_price",
              "sku",
              "name",
              "pid"
            ]
          }
        }
      },
      "required": [
        "id",
        "transaction_id",
        "status",
        "email_address",
        "subscriber_id",
        "currency",
        "transaction_time",
        "subtotal",
        "discount",
        "tax",
        "total",
        "products"
      ]
    }
  },
  "required": [
    "purchase"
  ]
}

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/create_a_purchase_response"
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 email required.

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