{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/payments-sub-merchant-schema.json",
  "title": "SubMerchant",
  "description": "SubMerchant schema from Adyen API",
  "type": "object",
  "properties": {
    "city": {
      "description": "The city of the sub-merchant's address.\n* Format: Alphanumeric\n* Maximum length: 13 characters",
      "type": "string"
    },
    "country": {
      "description": "The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. \n* Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3)\n* Fixed length: 3 characters",
      "type": "string"
    },
    "mcc": {
      "description": "The sub-merchant's 4-digit Merchant Category Code (MCC). \n* Format: Numeric\n* Fixed length: 4 digits",
      "type": "string"
    },
    "name": {
      "description": "The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement  that will appear in the card statement.\n* Format: Alphanumeric\n* Maximum length: 22 characters",
      "type": "string"
    },
    "taxId": {
      "description": "The tax ID of the sub-merchant.\n* Format: Numeric\n* Fixed length: 11 digits for the CPF or 14 digits for the CNPJ",
      "type": "string"
    }
  }
}