{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/consequential-io/json-schema/consequential-io-post-partner-connect-response-schema.json",
  "title": "PostPartnerConnectResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/consequential-io-openapi-generated.yml#/components/schemas/PostPartnerConnectResponse",
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string",
      "description": "Short‑lived JWT (10 minutes)"
    },
    "token_type": {
      "type": "string",
      "description": "Bearer"
    },
    "expires_in": {
      "type": "integer",
      "description": "Expiration in seconds (600)"
    },
    "tenant_id": {
      "type": "string",
      "description": "Tenant’s public identifier"
    },
    "onboarding_status": {
      "type": "string",
      "description": "CREATED, ONBOARDING, or ACTIVE"
    },
    "redirect_url": {
      "type": "string",
      "description": "URL to open in the merchant’s browser"
    },
    "is_new_tenant": {
      "type": "boolean",
      "description": "Whether this call just created the tenant"
    }
  }
}