Kit · Schema

Get a purchase Response

Email MarketingCreator EconomySubscribersAutomationNewslettersSequencesFormsBroadcasts

Properties

Name Type Description
purchase object
View JSON Schema on GitHub

JSON Schema

get_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/get_a_purchase_response.json",
  "title": "Get 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"
        },
        "currency": {
          "type": "string"
        },
        "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": {
                "nullable": true
              },
              "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"
  ]
}