{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ucp.vipps.no/ucp/2026-04-08/schemas/types/business_config.json",
  "title": "Vipps Business Config",
  "description": "Business (merchant) configuration for the no.vipps.ucp.payment_handler. Declared by businesses in their /.well-known/ucp profile under payment_handlers[].config.",
  "type": "object",
  "required": ["merchant_serial_number"],
  "properties": {
    "merchant_serial_number": {
      "type": "string",
      "description": "The merchant identifier (MSN) in the Vipps systems. Obtained when registering an ecommerce sales unit with Vipps.",
      "pattern": "^\\d{4,20}$"
    },
    "environment": {
      "type": "string",
      "enum": ["TEST", "PRODUCTION"],
      "default": "PRODUCTION",
      "description": "The Vipps environment. Use TEST for sandbox testing with test credentials, PRODUCTION for live payments. Defaults to PRODUCTION if not specified."
    }
  },
  "examples": [
    {
      "merchant_serial_number": "123456",
      "environment": "PRODUCTION"
    },
    {
      "merchant_serial_number": "123456",
      "environment": "TEST"
    }
  ]
}
