{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paysimple/json-schema/paysimple-get-order-id-response-schema.json",
  "title": "GetOrderIdResponse",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/paysimple-openapi-generated.yml#/components/schemas/GetOrderIdResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "description": "Order details object."
    },
    "data.id": {
      "type": "string",
      "description": "Unique identifier of order."
    },
    "data.order_number": {
      "type": "string",
      "description": "Display number of order."
    },
    "data.created_at": {
      "type": "string",
      "description": "Date and time order created."
    },
    "data.sale_type": {
      "type": "string",
      "description": "PaySimple system from which the order was created."
    },
    "data.customer": {
      "type": "object",
      "description": "PaySimple Customer."
    },
    "data.customer.id": {
      "type": "integer",
      "description": "Unique identifier of customer."
    },
    "data.customer.first_name": {
      "type": "string",
      "description": "First name of customer."
    },
    "data.customer.last_name": {
      "type": "string",
      "description": "Last name of customer."
    },
    "data.customer.email": {
      "type": "string",
      "description": "Email of customer."
    },
    "data.customer.addresses": {
      "type": "array",
      "description": "Shipping or service addresses collected at checkout."
    },
    "data.order_status": {
      "type": "string",
      "description": "Current state of order."
    },
    "data.payment_status": {
      "type": "string",
      "description": "State of the last payment made against the order."
    },
    "data.items": {
      "type": "array",
      "description": "Order line items."
    },
    "data.transactions": {
      "type": "array",
      "description": "Payments and refunds made on order."
    },
    "data.order_fees": {
      "type": "array",
      "description": "Order level fees charged."
    },
    "data.taxes": {
      "type": "array",
      "description": "Taxes applied to the order."
    },
    "data.amount_tax": {
      "type": "number",
      "description": "Total tax amount charged."
    },
    "data.amount_tip": {
      "type": "number",
      "description": "Total tip amount charged."
    },
    "data.amount_subtotal": {
      "type": "number",
      "description": "Total amount charged, not including tax."
    },
    "data.amount_total": {
      "type": "number",
      "description": "Total amount of order."
    },
    "data.amount_paid": {
      "type": "number",
      "description": "Amount of amount_total that has been paid."
    },
    "data.amount_due": {
      "type": "number",
      "description": "Balance due on order."
    },
    "data.amount_refunded": {
      "type": "number",
      "description": "Amount of payments that have been refunded to the customer."
    }
  }
}