Triple Whale · Schema

Triple Whale Order

Schema for ingesting order data into Triple Whale via the Data-In API.

E-CommerceAnalyticsAttributionShopifyPixel TrackingROASDirect to ConsumerMarketing

Properties

Name Type Description
shop string The exact Shop URL matching the store in Triple Whale settings.
order_id string The unique identifier for the order.
platform string The sales platform where the order originated.
platform_account_id string The account ID associated with the platform.
created_at string ISO 8601 timestamp with timezone when the order was created.
currency string The currency code for the transaction.
customer object Details of the customer who placed the order.
order_revenue number Total revenue after adjustments. Must be non-negative.
total_discounts number Total discount amount including shipping discounts. Must be non-negative.
taxes number Total tax applied to the order. Must be non-negative.
shipping_price number Total shipping price paid by buyer.
status string Current fulfillment status of the order.
tags array Tags associated with the order.
discount_codes array Discount codes applied to the order.
line_items array Products included in the order.
refunds array Refunds applied to the order.
shipping_address object
void boolean Set to true to soft-delete this order record.
updated_at string ISO 8601 timestamp when the order was last updated.
View JSON Schema on GitHub

JSON Schema

triple-whale-order.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://triplewhale.com/schemas/order",
  "title": "Triple Whale Order",
  "description": "Schema for ingesting order data into Triple Whale via the Data-In API.",
  "type": "object",
  "required": ["shop", "order_id", "created_at", "currency", "customer", "order_revenue"],
  "properties": {
    "shop": {
      "type": "string",
      "description": "The exact Shop URL matching the store in Triple Whale settings.",
      "example": "madisonbraids.myshopify.com"
    },
    "order_id": {
      "type": "string",
      "description": "The unique identifier for the order.",
      "example": "order_12345"
    },
    "platform": {
      "type": "string",
      "description": "The sales platform where the order originated.",
      "default": "custom-msp",
      "example": "magento"
    },
    "platform_account_id": {
      "type": "string",
      "description": "The account ID associated with the platform.",
      "default": "custom-msp"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp with timezone when the order was created.",
      "example": "2022-06-15T19:26:30.000Z"
    },
    "currency": {
      "type": "string",
      "description": "The currency code for the transaction.",
      "example": "USD"
    },
    "customer": {
      "type": "object",
      "required": ["id"],
      "description": "Details of the customer who placed the order.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for the customer.",
          "example": "customer_123"
        },
        "email": {
          "type": "string",
          "description": "The customer's email address.",
          "example": "customer@example.com"
        },
        "phone": {
          "type": "string",
          "description": "The customer's phone number.",
          "example": "+1234567890"
        },
        "first_name": {
          "type": "string",
          "example": "John"
        },
        "last_name": {
          "type": "string",
          "example": "Doe"
        }
      }
    },
    "order_revenue": {
      "type": "number",
      "description": "Total revenue after adjustments. Must be non-negative.",
      "example": 150.75
    },
    "total_discounts": {
      "type": "number",
      "description": "Total discount amount including shipping discounts. Must be non-negative.",
      "example": 15.5
    },
    "taxes": {
      "type": "number",
      "description": "Total tax applied to the order. Must be non-negative.",
      "example": 8.25
    },
    "shipping_price": {
      "type": "number",
      "description": "Total shipping price paid by buyer.",
      "example": 15.0
    },
    "status": {
      "type": "string",
      "description": "Current fulfillment status of the order.",
      "example": "completed"
    },
    "tags": {
      "type": "array",
      "description": "Tags associated with the order.",
      "items": {"type": "string"},
      "example": ["holiday_sale", "staff_order"]
    },
    "discount_codes": {
      "type": "array",
      "description": "Discount codes applied to the order.",
      "items": {
        "type": "object",
        "properties": {
          "code": {"type": "string"},
          "amount": {"type": "number"},
          "type": {"type": "string", "enum": ["percentage", "fixed_amount"]}
        }
      }
    },
    "line_items": {
      "type": "array",
      "description": "Products included in the order.",
      "items": {
        "type": "object",
        "required": ["id", "quantity", "price", "variant_id", "product_id"],
        "properties": {
          "id": {"type": "string"},
          "name": {"type": "string"},
          "price": {"type": "number"},
          "quantity": {"type": "integer"},
          "product_id": {"type": "string"},
          "product_name": {"type": "string"},
          "variant_id": {"type": "string"},
          "variant_name": {"type": "string"},
          "sku": {"type": "string"}
        }
      }
    },
    "refunds": {
      "type": "array",
      "description": "Refunds applied to the order.",
      "items": {
        "type": "object",
        "required": ["refund_id", "refunded_at", "total_refund"],
        "properties": {
          "refund_id": {"type": "string"},
          "refunded_at": {"type": "string", "format": "date-time"},
          "total_refund": {"type": "number"},
          "total_tax_refund": {"type": "number"},
          "total_shipping_refund": {"type": "number"}
        }
      }
    },
    "shipping_address": {
      "type": "object",
      "properties": {
        "address_1": {"type": "string"},
        "address_2": {"type": "string"},
        "city": {"type": "string"},
        "zip": {"type": "string"},
        "country_code": {"type": "string"},
        "province_code": {"type": "string"}
      }
    },
    "void": {
      "type": "boolean",
      "description": "Set to true to soft-delete this order record.",
      "default": false
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the order was last updated."
    }
  }
}

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/triple-whale-order"
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.