{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rutter/json-schema/rutter-get-store-response-schema.json",
  "title": "GetStoreResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rutter-store-api-openapi.yml#/components/schemas/GetStoreResponse",
  "type": "object",
  "properties": {
    "store": {
      "$ref": "#/$defs/Store",
      "type": [
        "null"
      ]
    },
    "connection": {
      "$ref": "#/$defs/Connection"
    }
  },
  "required": [
    "store"
  ],
  "$defs": {
    "Connection": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The UUID of the connection. Generated by Rutter."
        },
        "orgId": {
          "type": "string",
          "format": "uuid",
          "description": "Your organization id."
        },
        "platform": {
          "$ref": "#/$defs/Platform"
        }
      },
      "required": [
        "id",
        "orgId",
        "platform"
      ]
    },
    "Platform": {
      "type": "string",
      "enum": [
        "AMAZON",
        "EBAY",
        "ETSY",
        "FNAC",
        "WALMART",
        "SHOPEE",
        "LAZADA",
        "MERCADOLIBRE",
        "ALIBABA",
        "WAYFAIR",
        "SHEIN",
        "NOON",
        "SHOPLINE",
        "PRESTASHOP",
        "SHOPIFY",
        "MAGENTO",
        "WOO_COMMERCE",
        "SQUARESPACE",
        "WIX",
        "SHOPER",
        "SHOPLAZZA",
        "BIG_COMMERCE",
        "SALLA",
        "ZID",
        "TIKTOKSHOP",
        "COMMERCELAYER",
        "WEBFLOW",
        "GUMROAD",
        "ECWID",
        "PAYPAL",
        "SQUARE",
        "STRIPE",
        "CLOVER",
        "MOLLIE",
        "PAYNL",
        "AUTHORIZENET",
        "RECHARGE",
        "CHARGIFY",
        "CHARGEBEE",
        "RECURLY",
        "KASHFLOW",
        "SAGE_INTACCT",
        "SAGE_INTACCT_V2",
        "DYNAMICS365",
        "DYNAMICS365FO",
        "ZOHOBOOKS",
        "EXACTONLINE",
        "FREEAGENT",
        "QUICKBOOKS",
        "QUICKBOOKS_DESKTOP",
        "FRESHBOOKS",
        "XERO",
        "SAGE_BUSINESS_CLOUD",
        "SAGE_50",
        "VISTA",
        "NETSUITE",
        "WAVE",
        "DUALENTRY",
        "CAMPFIRE",
        "RILLET",
        "SOFTLEDGER",
        "VISMA",
        "SPIRIS",
        "LEXWARE",
        "MONEYBIRD",
        "SAGE200CLOUD",
        "MX",
        "PLAID",
        "TELLER",
        "RAMP",
        "ODOO",
        "ACUMATICA",
        "FULFIL",
        "TALLY",
        "SAPBUSINESSONE",
        "SAPS4HANA",
        "WORKDAY",
        "ANFIX",
        "ORACLEFUSION",
        "HOLDED",
        "MYOBBUSINESS",
        "FORTNOX",
        "GOOGLE",
        "FACEBOOK",
        "TIKTOK",
        "INTUIT_BANK_FEEDS",
        "PLAID_BANK_FEEDS",
        "SAGE",
        "SAGE_BANK_FEEDS",
        "YODLEE_BANK_FEEDS",
        "QUICKBOOKS_HRIS",
        "BAMBOO_HR",
        "GUSTO",
        "DEEL",
        "RIPPLING"
      ],
      "description": "The underlying platform."
    },
    "Store": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The Rutter generated unique ID of the store.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "NOON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "STRIPE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "platform_id": {
          "type": "string",
          "description": "The platform's unique identifier for the store. Supported for Amazon and Shopify.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "NOON": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "TIKTOKSHOP": {},
            "WAYFAIR": {}
          }
        },
        "store_name": {
          "type": "string",
          "description": "The unique identifier or brand name of the store.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "NOON": {},
            "SALLA": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "STRIPE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "url": {
          "type": "string",
          "description": "The consumer facing URL of the store.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SALLA": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "STRIPE": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "default_currency": {
          "type": [
            "string",
            "null"
          ],
          "description": "The [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code of the store.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SALLA": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "STRIPE": {},
            "ZID": {}
          }
        },
        "email": {
          "type": "string",
          "description": "The email of the primary contact of the store.",
          "x-rutter-platforms": {
            "BIG_COMMERCE": {},
            "SALLA": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "STRIPE": {},
            "ZID": {}
          }
        },
        "locales": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Every locale enabled on the store, including the primary one.",
              "x-rutter-platforms": {
                "SHOPIFY": {}
              }
            },
            "primary": {
              "type": [
                "string",
                "null"
              ],
              "description": "The primary locale of the store, for example `en-US` or `pt-BR`.",
              "x-rutter-platforms": {
                "SHOPIFY": {}
              }
            }
          },
          "required": [
            "enabled",
            "primary"
          ],
          "additionalProperties": false,
          "description": "The locales configured on the store. Supported for Shopify.",
          "x-rutter-platforms": {
            "SHOPIFY": {}
          }
        },
        "platform_data": {
          "type": "object",
          "additionalProperties": {},
          "description": "The raw platform data corresponding to the Rutter object."
        }
      },
      "required": [
        "id",
        "store_name",
        "url",
        "default_currency"
      ]
    }
  }
}