{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://shopify.dev/ucp/shop-pay-handler/2026-01-23/shop_pay.json",
  "title": "Shop Pay Payment Instrument",
  "description": "Payment instrument structure for Shop Pay. Extends the base payment instrument with Shop Pay-specific credential types.",
  "allOf": [
    { "$ref": "https://ucp.dev/2026-01-23/schemas/shopping/types/payment_instrument.json" }
  ],
  "properties": {
    "type": {
      "const": "shop_pay",
      "description": "The payment instrument type identifier for Shop Pay."
    },
    "credential": {
      "$ref": "shop_pay_credential.json"
    },
    "display": {
      "type": "object",
      "description": "Display information for this Shop Pay instrument.",
      "properties": {
        "email": {
          "type": "string",
          "format": "email",
          "description": "The buyer's email address associated with the Shop Pay account."
        }
      }
    }
  }
}
