{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/narmi/main/json-schema/narmi-merchant-schema.json",
  "title": "Merchant",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/narmi-merchants-api-openapi.yml#/components/schemas/Merchant",
  "type": "object",
  "properties": {
    "merchant_name": {
      "type": "string",
      "description": "The name of the merchant associated with the transaction.",
      "maxLength": 100
    },
    "website_url": {
      "type": "string",
      "format": "uri",
      "description": "The website URL of the merchant.",
      "maxLength": 255
    },
    "cancellation_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The cancellation URL of the merchant.",
      "maxLength": 255
    },
    "logo_url": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "contact_number": {
      "type": [
        "string",
        "null"
      ],
      "description": "The contact number of the merchant.",
      "maxLength": 20
    },
    "contact_email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email",
      "description": "The contact email of the merchant.",
      "maxLength": 100
    },
    "cancellation_instructions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "maxLength": 500
      },
      "description": "Instructions for cancelling a subscription with the merchant."
    }
  },
  "required": [
    "merchant_name",
    "website_url"
  ],
  "x-stoplight": {
    "id": "drdbt5axwltjc"
  }
}