{"openapi":"3.1.0","info":{"title":"yass-bundle-api","version":"3.0.0"},"paths":{"/pub/store/{store_id}/config":{"get":{"tags":["storefront-public"],"summary":"Store-level public config for storefront JS","description":"Return store-level feature flags and active landing product ids.\n\nArgs:\n    response: FastAPI response object for cache headers.\n    store_id: Validated store id from signed-query dependency.\n    config_service: BFF aggregation service for storefront bootstrap.\n\nReturns:\n    Combined public store config for mix-match bundles, kits, and BOGO.","operationId":"get_storefront_public_config_pub_store__store_id__config_get","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string","title":"Store Id"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}},{"name":"hmac","in":"query","required":true,"schema":{"type":"string","title":"Hmac"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorefrontPublicConfigDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pub/store/{store_id}/mix-match-bundle/by-product/{merchant_product_id}":{"get":{"tags":["mix-match-bundle-public"],"summary":"Picker config for a bundle landing product","description":"Return picker config for an active bundle virtual product (PRD §11.3).\n\nArgs:\n    merchant_product_id: Tiendanube landing product id from the PDP.\n    store_id: Validated store id from signed-query dependency.\n    public_read_service: DB-backed public read service.\n    response: FastAPI response object for cache headers.\n\nReturns:\n    Picker configuration for storefront JS.\n\nRaises:\n    HTTPException: ``404`` when no active bundle matches the product id.","operationId":"get_picker_config_by_product_pub_store__store_id__mix_match_bundle_by_product__merchant_product_id__get","parameters":[{"name":"merchant_product_id","in":"path","required":true,"schema":{"type":"integer","title":"Merchant Product Id"}},{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string","title":"Store Id"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}},{"name":"hmac","in":"query","required":true,"schema":{"type":"string","title":"Hmac"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickerBundleConfigDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pub/store/{store_id}/mix-match-bundles":{"get":{"tags":["mix-match-bundle-public"],"summary":"List active mix-match bundle picker configs","description":"List picker configs for all active bundles on a store.\n\nArgs:\n    store_id: Validated store id from signed-query dependency.\n    public_read_service: DB-backed public read service.\n    response: FastAPI response object for cache headers.\n\nReturns:\n    Active bundle picker configs for cart-side hints.","operationId":"list_active_picker_configs_pub_store__store_id__mix_match_bundles_get","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string","title":"Store Id"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}},{"name":"hmac","in":"query","required":true,"schema":{"type":"string","title":"Hmac"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PickerBundleConfigDTO"},"title":"Response List Active Picker Configs Pub Store  Store Id  Mix Match Bundles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pub/store/{store_id}/kit/by-product/{merchant_product_id}":{"get":{"tags":["kit-bundle-public"],"summary":"Picker config for a kit landing product","description":"Return picker config for an active kit virtual product (PRD §11.3).\n\nArgs:\n    merchant_product_id: Tiendanube landing product id from the PDP.\n    response: FastAPI response object for cache headers.\n    store_id: Validated store id from signed-query dependency.\n    public_read_service: DB-backed public read service.\n\nReturns:\n    Picker configuration for storefront JS.\n\nRaises:\n    HTTPException: ``404`` when no active kit matches the product id or\n        the kit is paused.","operationId":"get_picker_config_by_product_pub_store__store_id__kit_by_product__merchant_product_id__get","parameters":[{"name":"merchant_product_id","in":"path","required":true,"schema":{"type":"integer","title":"Merchant Product Id"}},{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string","title":"Store Id"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}},{"name":"hmac","in":"query","required":true,"schema":{"type":"string","title":"Hmac"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KitPickerConfigDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pub/store/{store_id}/categories/{category_id}/products":{"get":{"tags":["kit-bundle-public"],"summary":"Published products in a Tiendanube category","description":"Expand a category into published products for the kit picker (FEATURE_SPEC §6.1).\n\nArgs:\n    category_id: Tiendanube category id to expand.\n    response: FastAPI response object for cache headers.\n    store_id: Validated store id from signed-query dependency.\n    public_read_service: Public read service backed by the category gateway.\n\nReturns:\n    Published products currently in the category (may be empty).\n\nRaises:\n    HTTPException: ``404`` when kits are disabled; ``422`` when\n        ``category_id`` is not positive; ``502`` when Tiendanube fails.","operationId":"list_category_products_pub_store__store_id__categories__category_id__products_get","parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}},{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string","title":"Store Id"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}},{"name":"hmac","in":"query","required":true,"schema":{"type":"string","title":"Hmac"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryProductsDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pub/store/{store_id}/bogo/by-product/{merchant_product_id}":{"get":{"tags":["bogo-bundle-public"],"summary":"Surface config for a BOGO product page","description":"Return surface config for an active BOGO product page (PRD §11.3).\n\nArgs:\n    merchant_product_id: Tiendanube virtual product id (BXGY) or eligible\n        real product id (QB) from the PDP.\n    response: FastAPI response object for cache headers.\n    store_id: Validated store id from signed-query dependency.\n    public_read_service: DB-backed public read service.\n\nReturns:\n    Surface configuration for storefront JS.\n\nRaises:\n    HTTPException: ``404`` when no active BOGO bundle matches the product id\n        or the bundle is paused.","operationId":"get_surface_config_by_product_pub_store__store_id__bogo_by_product__merchant_product_id__get","parameters":[{"name":"merchant_product_id","in":"path","required":true,"schema":{"type":"integer","title":"Merchant Product Id"}},{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string","title":"Store Id"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}},{"name":"hmac","in":"query","required":true,"schema":{"type":"string","title":"Hmac"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BogoSurfaceConfigDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pub/store/{store_id}/product/{merchant_product_id}":{"get":{"tags":["store-public"],"summary":"Public product detail for the storefront picker","description":"Return a component product's detail for the injected storefront JS.\n\nMirrors Compre Junto's ``/pub/product/{id}`` lookup so the picker can render\nvariant selectors and prices (PRD §11.3).\n\nArgs:\n    merchant_product_id: Tiendanube product id of the component.\n    response: FastAPI response object for cache headers.\n    store_id: Validated store id from the signed-query dependency.\n    read_service: DB/gateway-backed storefront product reader.\n\nReturns:\n    The product projection consumed by the picker.\n\nRaises:\n    HTTPException: ``404`` when the product is missing or unpublished.","operationId":"get_storefront_product_pub_store__store_id__product__merchant_product_id__get","parameters":[{"name":"merchant_product_id","in":"path","required":true,"schema":{"type":"integer","title":"Merchant Product Id"}},{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string","title":"Store Id"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}},{"name":"hmac","in":"query","required":true,"schema":{"type":"string","title":"Hmac"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorefrontProductDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pub/storefront-session":{"get":{"tags":["storefront-session"],"summary":"Exchange a Tiendanube store id for a signed storefront query","description":"Mint the signed query a NubeSDK app needs to read its own configuration.\n\nArgs:\n    response: FastAPI response object for cache headers.\n    store: Tiendanube numeric store id (the merchant id).\n    store_service: Store lookup service.\n\nReturns:\n    The store's own id plus a freshly minted nonce and HMAC, in the shape\n    the ``/pub/store/{store_id}/…`` routes already validate.\n\nRaises:\n    HTTPException: ``404`` when the store is unknown or has no signing\n        secret. Both answer the same way on purpose: a caller probing store\n        ids should not be able to tell \"not ours\" from \"ours but not set\n        up\".","operationId":"create_storefront_session_pub_storefront_session_get","parameters":[{"name":"store","in":"query","required":true,"schema":{"type":"integer","description":"Tiendanube numeric store id, as the SDK reports it in `state.store.id` and as the script URL carries it in `?store=`.","title":"Store"},"description":"Tiendanube numeric store id, as the SDK reports it in `state.store.id` and as the script URL carries it in `?store=`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorefrontSessionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_v3_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPasswordCredentialsDTO"}}},"required":true},"responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"404":{"description":"NO_CREDENTIALS_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/auth/login-email-only":{"post":{"tags":["auth"],"summary":"Login With Email","operationId":"login_with_email_api_v3_auth_login_email_only_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailOnlyCredentialsDTO"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/auth/verify":{"post":{"tags":["auth"],"summary":"Verify","operationId":"verify_api_v3_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationDTO"}}},"required":true},"responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"404":{"description":"NO_CREDENTIALS_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/auth/renovate":{"post":{"tags":["auth"],"summary":"Renovate","operationId":"renovate_api_v3_auth_renovate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthDTO"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v3/integration/merchant/{merchant_store_id}/product/{bundle_product_id}":{"get":{"tags":["integration-client"],"summary":"Find By Product Id","description":"The following endpoint returns a basic composition of a bundle which contains the mapping between each bundle variant and which merchant product are related","operationId":"find_by_product_id_api_v3_integration_merchant__merchant_store_id__product__bundle_product_id__get","parameters":[{"name":"merchant_store_id","in":"path","required":true,"schema":{"type":"integer","title":"Merchant Store Id"}},{"name":"bundle_product_id","in":"path","required":true,"schema":{"type":"integer","title":"Bundle Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleDefinitionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/install/":{"get":{"tags":["auth"],"summary":"Register Store","operationId":"register_store_api_v3_install__get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/install/pre-register":{"post":{"tags":["auth"],"summary":"Pre Register","operationId":"pre_register_api_v3_install_pre_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreRegisterCredentials"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/install/reauthorize":{"post":{"tags":["auth"],"summary":"Reauthorize","operationId":"reauthorize_api_v3_install_reauthorize_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v3/bundle/{bundle_id}":{"get":{"tags":["bundle"],"summary":"Find By Id","operationId":"find_by_id_api_v3_bundle__bundle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["bundle"],"summary":"Delete Bundle","operationId":"delete_bundle_api_v3_bundle__bundle_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{"type":"boolean","title":"Response Delete Bundle Api V3 Bundle  Bundle Id  Delete"}}}},"401":{"description":"TOKEN_EXPIRED"},"404":{"description":"NO_CREDENTIALS_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["bundle"],"summary":"Update Bundle","operationId":"update_bundle_api_v3_bundle__bundle_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleUpdateIntentDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/bundle/":{"post":{"tags":["bundle"],"summary":"Create Bundle","operationId":"create_bundle_api_v3_bundle__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleCreationIntentDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"201":{"description":"Bundle creation process started"},"401":{"description":"TOKEN_EXPIRED"},"404":{"description":"NO_CREDENTIALS_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["bundle"],"summary":"Search Bundles","operationId":"search_bundles_api_v3_bundle__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"size","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Size"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_BundlePreviewDTO_"}}}},"401":{"description":"TOKEN_EXPIRED"},"404":{"description":"NO_CREDENTIALS_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/bundle/validate":{"put":{"tags":["bundle"],"summary":"Validate Bundle Composition","operationId":"validate_bundle_composition_api_v3_bundle_validate_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"query","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BundleItemDTO-Input"},"title":"Bundle Merchant Items"}}}},"responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleValidationResult"}}}},"401":{"description":"TOKEN_EXPIRED"},"404":{"description":"NO_CREDENTIALS_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/bundle/{bundle_id}/status":{"put":{"tags":["bundle"],"summary":"Change Bundle Status","operationId":"change_bundle_status_api_v3_bundle__bundle_id__status_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleStatusUpdateDTO"}}}},"responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{}}}},"401":{"description":"TOKEN_EXPIRED"},"404":{"description":"NO_CREDENTIALS_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/bundle/{bundle_id}/items":{"get":{"tags":["bundle"],"summary":"Get Bundle Items","operationId":"get_bundle_items_api_v3_bundle__bundle_id__items_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BundleItemDTO-Output"},"title":"Response Get Bundle Items Api V3 Bundle  Bundle Id  Items Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/bundle/{bundle_id}/sync":{"patch":{"tags":["bundle"],"summary":"Trigger Bundle Sync","operationId":"trigger_bundle_sync_api_v3_bundle__bundle_id__sync_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"200":{"description":"bundle sync started","content":{"application/json":{"schema":{}}}},"401":{"description":"TOKEN_EXPIRED"},"404":{"description":"NO_CREDENTIALS_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/mix-match-bundles":{"get":{"tags":["mix-match-bundle"],"summary":"List Mix Match Bundles","description":"List non-archived mix-match bundles for the authenticated store.\n\nArgs:\n    creds: Authenticated, feature-gated credentials.\n    service: Mix-match bundle admin service.\n\nReturns:\n    The store's bundles excluding ``ARCHIVED``.","operationId":"list_mix_match_bundles_api_v3_mix_match_bundles_get","responses":{"200":{"description":"Non-archived bundles for the store","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MixMatchBundleResponseDTO"},"type":"array","title":"Response List Mix Match Bundles Api V3 Mix Match Bundles Get"}}}},"403":{"description":"Feature disabled for store"}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["mix-match-bundle"],"summary":"Create Mix Match Bundle","description":"Create a draft mix-match bundle for the authenticated store.\n\nArgs:\n    body: Creation payload from the client.\n    creds: Authenticated, feature-gated credentials.\n    service: Mix-match bundle admin service.\n\nReturns:\n    The persisted draft bundle.\n\nRaises:\n    HTTPException: ``422`` when the bundle graph is invalid.","operationId":"create_mix_match_bundle_api_v3_mix_match_bundles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMixMatchBundleRequestDTO"}}},"required":true},"responses":{"201":{"description":"Draft bundle created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MixMatchBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"422":{"description":"Invalid bundle"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/mix-match-bundles/{bundle_id}":{"patch":{"tags":["mix-match-bundle"],"summary":"Update Mix Match Bundle","description":"Update editable fields of a draft/paused bundle.\n\nArgs:\n    bundle_id: Target bundle id.\n    body: Update payload; only non-``None`` fields are applied. When\n        ``components`` is provided, the full component graph is replaced.\n    creds: Authenticated, feature-gated credentials.\n    service: Mix-match bundle admin service.\n\nReturns:\n    The persisted, updated bundle.\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when the bundle is not editable.","operationId":"update_mix_match_bundle_api_v3_mix_match_bundles__bundle_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMixMatchBundleRequestDTO"}}}},"responses":{"200":{"description":"Bundle updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MixMatchBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Bundle not found"},"409":{"description":"Bundle not editable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["mix-match-bundle"],"summary":"Get Mix Match Bundle","description":"Load a single bundle owned by the authenticated store.\n\nArgs:\n    bundle_id: Target bundle id.\n    creds: Authenticated, feature-gated credentials.\n    service: Mix-match bundle admin service.\n\nReturns:\n    The bundle aggregate.\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store.","operationId":"get_mix_match_bundle_api_v3_mix_match_bundles__bundle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"200":{"description":"Bundle found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MixMatchBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Bundle not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/mix-match-bundles/{bundle_id}/publish":{"post":{"tags":["mix-match-bundle"],"summary":"Publish Mix Match Bundle","description":"Request asynchronous publication of a draft mix-match bundle.\n\nPublication first ensures the storefront script is registered with\nTiendanube. When that registration fails the bundle stays in its current\nstatus and the response carries a warning (``200``) so the merchant can\nretry; a successful enqueue returns ``202`` with status ``PUBLISHING``.\n\nArgs:\n    bundle_id: Target bundle id.\n    response: Response used to downgrade the status code when publish is\n        blocked by a recoverable storefront script failure.\n    creds: Authenticated, feature-gated credentials.\n    bundle_service: Mix-match bundle admin service for ownership checks.\n    publish_orchestrator: Coordinates script registration and publication.\n\nReturns:\n    The bundle status after the attempt, plus any retry warnings.\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when the bundle is not in ``DRAFT``;\n        ``422`` when publish invariants fail.","operationId":"publish_mix_match_bundle_api_v3_mix_match_bundles__bundle_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"202":{"description":"Publication requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishMixMatchBundleResponseDTO"}}}},"200":{"description":"Publish blocked; retry after warning"},"403":{"description":"Feature disabled for store"},"404":{"description":"Bundle not found"},"409":{"description":"Bundle not publishable"},"402":{"description":"Subscription expired or missing"},"422":{"description":"Invalid bundle"}}}},"/api/v3/mix-match-bundles/{bundle_id}/pause":{"post":{"tags":["mix-match-bundle"],"summary":"Pause Mix Match Bundle","description":"Request asynchronous pause of an active mix-match bundle.\n\nArgs:\n    bundle_id: Target bundle id.\n    creds: Authenticated, feature-gated credentials.\n    bundle_service: Mix-match bundle admin service for ownership checks.\n    publication_service: Publication orchestration service.\n\nReturns:\n    The bundle status after enqueueing pause (``PAUSING``).\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when the bundle is not in ``ACTIVE``.","operationId":"pause_mix_match_bundle_api_v3_mix_match_bundles__bundle_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"202":{"description":"Pause requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishMixMatchBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Bundle not found"},"409":{"description":"Bundle not pausable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/mix-match-bundles/{bundle_id}/resume":{"post":{"tags":["mix-match-bundle"],"summary":"Resume Mix Match Bundle","description":"Request asynchronous resume of a paused mix-match bundle.\n\nArgs:\n    bundle_id: Target bundle id.\n    creds: Authenticated, feature-gated credentials.\n    bundle_service: Mix-match bundle admin service for ownership checks.\n    publication_service: Publication orchestration service.\n\nReturns:\n    The bundle status after enqueueing resume (``RESUMING``).\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when the bundle is not in ``PAUSED``.","operationId":"resume_mix_match_bundle_api_v3_mix_match_bundles__bundle_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"202":{"description":"Resume requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishMixMatchBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Bundle not found"},"409":{"description":"Bundle not resumable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/mix-match-bundles/{bundle_id}/archive":{"post":{"tags":["mix-match-bundle"],"summary":"Archive Mix Match Bundle","description":"Archive a mix-match bundle.\n\nDraft bundles archive synchronously (``ARCHIVED``). Active or paused bundles\nenter ``ARCHIVING`` and are torn down asynchronously.\n\nArgs:\n    bundle_id: Target bundle id.\n    creds: Authenticated, feature-gated credentials.\n    bundle_service: Mix-match bundle admin service for ownership checks.\n    publication_service: Publication orchestration service.\n\nReturns:\n    The bundle status after the request (``ARCHIVED`` or ``ARCHIVING``).\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when archival is not allowed.","operationId":"archive_mix_match_bundle_api_v3_mix_match_bundles__bundle_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"202":{"description":"Archive requested or completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishMixMatchBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Bundle not found"},"409":{"description":"Bundle not archivable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/kits":{"post":{"tags":["kit-bundle"],"summary":"Create Kit","description":"Create a draft kit bundle for the authenticated store.\n\nArgs:\n    body: Creation payload from the client.\n    creds: Authenticated, feature-gated credentials.\n    service: Kit bundle admin service.\n\nReturns:\n    The persisted draft kit.\n\nRaises:\n    HTTPException: ``422`` when the kit graph is invalid.","operationId":"create_kit_api_v3_kits_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKitRequestDTO"}}}},"responses":{"201":{"description":"Draft kit created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KitResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"422":{"description":"Invalid kit"}}},"get":{"tags":["kit-bundle"],"summary":"List Kits","description":"List kit bundles for the authenticated store.\n\nArgs:\n    creds: Authenticated, feature-gated credentials.\n    service: Kit bundle admin service.\n    status_filter: Optional lifecycle status filter.\n    offset: Pagination offset.\n    limit: Maximum number of rows to return.\n\nReturns:\n    Paginated kits excluding archived rows by default.","operationId":"list_kits_api_v3_kits_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/KitBundleStatus"},{"type":"null"}],"title":"Status"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Kits listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_KitResponseDTO_"}}}},"403":{"description":"Feature disabled for store"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/kits/{kit_id}":{"get":{"tags":["kit-bundle"],"summary":"Get Kit","description":"Load a single kit owned by the authenticated store.\n\nArgs:\n    kit_id: Target kit id.\n    creds: Authenticated, feature-gated credentials.\n    service: Kit bundle admin service.\n\nReturns:\n    The requested kit aggregate.\n\nRaises:\n    HTTPException: ``404`` when the kit does not exist or is owned by\n        another store.","operationId":"get_kit_api_v3_kits__kit_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kit Id"}}],"responses":{"200":{"description":"Kit found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KitResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Kit not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["kit-bundle"],"summary":"Update Kit","description":"Update editable fields of a draft or paused kit.\n\nArgs:\n    kit_id: Target kit id.\n    body: Update payload; only non-``None`` fields are applied. When\n        ``elements`` is provided, the full element graph is replaced.\n    creds: Authenticated, feature-gated credentials.\n    service: Kit bundle admin service.\n\nReturns:\n    The persisted, updated kit.\n\nRaises:\n    HTTPException: ``404`` when the kit does not exist or is owned by\n        another store; ``409`` when the kit is not editable.","operationId":"update_kit_api_v3_kits__kit_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKitRequestDTO"}}}},"responses":{"200":{"description":"Kit updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KitResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Kit not found"},"409":{"description":"Kit not editable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["kit-bundle"],"summary":"Delete Kit","description":"Archive a draft kit (soft delete).\n\nArgs:\n    kit_id: Target kit id.\n    creds: Authenticated, feature-gated credentials.\n    service: Kit bundle admin service for ownership checks.\n    publication_service: Publication use cases for lifecycle transitions.\n\nReturns:\n    Empty response on success.\n\nRaises:\n    HTTPException: ``404`` when the kit does not exist or is owned by\n        another store; ``409`` when the kit is not in ``DRAFT``.","operationId":"delete_kit_api_v3_kits__kit_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kit Id"}}],"responses":{"204":{"description":"Draft kit deleted"},"403":{"description":"Feature disabled for store"},"404":{"description":"Kit not found"},"409":{"description":"Kit not deletable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/kits/{kit_id}/publish":{"post":{"tags":["kit-bundle"],"summary":"Publish Kit","description":"Request asynchronous publication of a draft kit.\n\nArgs:\n    kit_id: Target kit id.\n    creds: Authenticated, feature-gated credentials.\n    service: Kit bundle admin service for ownership checks.\n    publication_service: Publication use cases for lifecycle transitions.\n\nReturns:\n    The kit status after the publish request (``PUBLISHING``).\n\nRaises:\n    HTTPException: ``404`` when the kit does not exist or is owned by\n        another store; ``409`` when the kit is not in ``DRAFT``;\n        ``422`` when publish invariants fail.","operationId":"publish_kit_api_v3_kits__kit_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kit Id"}}],"responses":{"202":{"description":"Publication requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishKitResponseDTO"}}}},"402":{"description":"Subscription expired or missing"},"403":{"description":"Feature disabled or kit quota exceeded"},"404":{"description":"Kit not found"},"409":{"description":"Kit not publishable"},"422":{"description":"Invalid kit"}}}},"/api/v3/kits/{kit_id}/pause":{"post":{"tags":["kit-bundle"],"summary":"Pause Kit","description":"Request asynchronous pause of an active kit.\n\nArgs:\n    kit_id: Target kit id.\n    creds: Authenticated, feature-gated credentials.\n    service: Kit bundle admin service for ownership checks.\n    publication_service: Publication use cases for lifecycle transitions.\n\nReturns:\n    The kit status after the pause request (``PAUSING``).\n\nRaises:\n    HTTPException: ``404`` when the kit does not exist or is owned by\n        another store; ``409`` when the kit is not in ``ACTIVE``.","operationId":"pause_kit_api_v3_kits__kit_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kit Id"}}],"responses":{"202":{"description":"Pause requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishKitResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Kit not found"},"409":{"description":"Kit not pausable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/kits/{kit_id}/resume":{"post":{"tags":["kit-bundle"],"summary":"Resume Kit","description":"Request asynchronous resume of a paused kit.\n\nArgs:\n    kit_id: Target kit id.\n    creds: Authenticated, feature-gated credentials.\n    service: Kit bundle admin service for ownership checks.\n    publication_service: Publication use cases for lifecycle transitions.\n\nReturns:\n    The kit status after the resume request (``RESUMING``).\n\nRaises:\n    HTTPException: ``404`` when the kit does not exist or is owned by\n        another store; ``409`` when the kit is not in ``PAUSED``;\n        ``422`` when publish invariants fail after paused edits.","operationId":"resume_kit_api_v3_kits__kit_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kit Id"}}],"responses":{"202":{"description":"Resume requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishKitResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Kit not found"},"409":{"description":"Kit not resumable"},"422":{"description":"Publish invariants failed"}}}},"/api/v3/kits/{kit_id}/archive":{"post":{"tags":["kit-bundle"],"summary":"Archive Kit","description":"Request archival of a kit bundle.\n\nArgs:\n    kit_id: Target kit id.\n    creds: Authenticated, feature-gated credentials.\n    service: Kit bundle admin service for ownership checks.\n    publication_service: Publication use cases for lifecycle transitions.\n\nReturns:\n    The kit status after the archive request (``ARCHIVED`` or ``ARCHIVING``).\n\nRaises:\n    HTTPException: ``404`` when the kit does not exist or is owned by\n        another store; ``409`` when archival is not allowed from the\n        current status.","operationId":"archive_kit_api_v3_kits__kit_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kit Id"}}],"responses":{"202":{"description":"Archive requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishKitResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Kit not found"},"409":{"description":"Kit not archivable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/bogo-bundles":{"post":{"tags":["bogo-bundle"],"summary":"Create Bogo Bundle","description":"Create a draft BOGO bundle for the authenticated store.\n\nArgs:\n    body: Creation payload from the client.\n    creds: Authenticated, feature-gated credentials.\n    service: BOGO bundle admin service.\n\nReturns:\n    The persisted draft bundle.\n\nRaises:\n    HTTPException: ``422`` when the bundle graph is invalid.","operationId":"create_bogo_bundle_api_v3_bogo_bundles_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBogoBundleRequestDTO"}}}},"responses":{"201":{"description":"Draft BOGO bundle created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BogoBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"422":{"description":"Invalid bundle"}}},"get":{"tags":["bogo-bundle"],"summary":"List Bogo Bundles","description":"List BOGO bundles for the authenticated store.\n\nArgs:\n    creds: Authenticated, feature-gated credentials.\n    service: BOGO bundle admin service.\n    status_filter: Optional lifecycle status filter.\n    mode_filter: Optional BOGO mode filter.\n    offset: Pagination offset.\n    limit: Maximum number of rows to return.\n\nReturns:\n    Paginated bundles excluding archived rows by default.","operationId":"list_bogo_bundles_api_v3_bogo_bundles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BogoBundleStatus"},{"type":"null"}],"title":"Status"}},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BogoMode"},{"type":"null"}],"title":"Mode"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"BOGO bundles listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_BogoBundleResponseDTO_"}}}},"403":{"description":"Feature disabled for store"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/bogo-bundles/{bogo_id}":{"get":{"tags":["bogo-bundle"],"summary":"Get Bogo Bundle","description":"Load a single BOGO bundle owned by the authenticated store.\n\nArgs:\n    bogo_id: Target bundle id.\n    creds: Authenticated, feature-gated credentials.\n    service: BOGO bundle admin service.\n\nReturns:\n    The requested bundle aggregate.\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store.","operationId":"get_bogo_bundle_api_v3_bogo_bundles__bogo_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bogo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bogo Id"}}],"responses":{"200":{"description":"BOGO bundle found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BogoBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"BOGO bundle not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["bogo-bundle"],"summary":"Update Bogo Bundle","description":"Update editable fields of a draft or paused BOGO bundle.\n\nArgs:\n    bogo_id: Target bundle id.\n    body: Update payload; only non-``None`` fields are applied.\n    creds: Authenticated, feature-gated credentials.\n    service: BOGO bundle admin service.\n\nReturns:\n    The persisted, updated bundle.\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when the bundle is not editable.","operationId":"update_bogo_bundle_api_v3_bogo_bundles__bogo_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bogo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bogo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBogoBundleRequestDTO"}}}},"responses":{"200":{"description":"BOGO bundle updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BogoBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"BOGO bundle not found"},"409":{"description":"BOGO bundle not editable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["bogo-bundle"],"summary":"Delete Bogo Bundle","description":"Archive a draft BOGO bundle (soft delete).\n\nArgs:\n    bogo_id: Target bundle id.\n    creds: Authenticated, feature-gated credentials.\n    service: BOGO bundle admin service for ownership checks.\n    publication_service: Publication use cases for lifecycle transitions.\n\nReturns:\n    Empty response on success.\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when the bundle is not in ``DRAFT``.","operationId":"delete_bogo_bundle_api_v3_bogo_bundles__bogo_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bogo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bogo Id"}}],"responses":{"204":{"description":"Draft BOGO bundle deleted"},"403":{"description":"Feature disabled for store"},"404":{"description":"BOGO bundle not found"},"409":{"description":"BOGO bundle not deletable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/bogo-bundles/{bogo_id}/publish":{"post":{"tags":["bogo-bundle"],"summary":"Publish Bogo Bundle","description":"Request asynchronous publication of a draft BOGO bundle.\n\nArgs:\n    bogo_id: Target bundle id.\n    creds: Authenticated, feature-gated credentials.\n    service: BOGO bundle admin service for ownership checks.\n    publication_service: Publication use cases for lifecycle transitions.\n\nReturns:\n    The bundle status after the publish request (``PUBLISHING``).\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when the bundle is not in ``DRAFT``;\n        ``422`` when publish invariants fail.","operationId":"publish_bogo_bundle_api_v3_bogo_bundles__bogo_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bogo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bogo Id"}}],"responses":{"202":{"description":"Publication requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishBogoBundleResponseDTO"}}}},"402":{"description":"No active subscription"},"403":{"description":"Feature disabled or BOGO publish quota exceeded"},"404":{"description":"BOGO bundle not found"},"409":{"description":"BOGO bundle not publishable"},"422":{"description":"Invalid BOGO bundle"}}}},"/api/v3/bogo-bundles/{bogo_id}/pause":{"post":{"tags":["bogo-bundle"],"summary":"Pause Bogo Bundle","description":"Request asynchronous pause of an active BOGO bundle.\n\nArgs:\n    bogo_id: Target bundle id.\n    creds: Authenticated, feature-gated credentials.\n    service: BOGO bundle admin service for ownership checks.\n    publication_service: Publication use cases for lifecycle transitions.\n\nReturns:\n    The bundle status after the pause request (``PAUSING``).\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when the bundle is not in ``ACTIVE``.","operationId":"pause_bogo_bundle_api_v3_bogo_bundles__bogo_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bogo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bogo Id"}}],"responses":{"202":{"description":"Pause requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishBogoBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"BOGO bundle not found"},"409":{"description":"BOGO bundle not pausable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/bogo-bundles/{bogo_id}/resume":{"post":{"tags":["bogo-bundle"],"summary":"Resume Bogo Bundle","description":"Request asynchronous resume of a paused BOGO bundle.\n\nArgs:\n    bogo_id: Target bundle id.\n    creds: Authenticated, feature-gated credentials.\n    service: BOGO bundle admin service for ownership checks.\n    publication_service: Publication use cases for lifecycle transitions.\n\nReturns:\n    The bundle status after the resume request (``RESUMING``).\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when the bundle is not in ``PAUSED``.","operationId":"resume_bogo_bundle_api_v3_bogo_bundles__bogo_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bogo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bogo Id"}}],"responses":{"202":{"description":"Resume requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishBogoBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"BOGO bundle not found"},"409":{"description":"BOGO bundle not resumable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/bogo-bundles/{bogo_id}/archive":{"post":{"tags":["bogo-bundle"],"summary":"Archive Bogo Bundle","description":"Request archive of a BOGO bundle.\n\nDraft bundles archive synchronously (``ARCHIVED``). Active or paused bundles\nenter ``ARCHIVING`` and are torn down asynchronously.\n\nArgs:\n    bogo_id: Target bundle id.\n    creds: Authenticated, feature-gated credentials.\n    service: BOGO bundle admin service for ownership checks.\n    publication_service: Publication use cases for lifecycle transitions.\n\nReturns:\n    The bundle status after the archive request (``ARCHIVED`` or\n    ``ARCHIVING``).\n\nRaises:\n    HTTPException: ``404`` when the bundle does not exist or is owned by\n        another store; ``409`` when archival is not allowed from the current\n        status.","operationId":"archive_bogo_bundle_api_v3_bogo_bundles__bogo_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bogo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bogo Id"}}],"responses":{"202":{"description":"Archive requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishBogoBundleResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"BOGO bundle not found"},"409":{"description":"BOGO bundle not archivable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/offer-opportunities":{"get":{"tags":["offer-opportunities"],"summary":"List Offer Opportunities","description":"List ranked Offer Opportunities for the authenticated store.","operationId":"list_offer_opportunities_api_v3_offer_opportunities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"default":20,"title":"Limit"}},{"name":"in_stock_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"In Stock Only"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OpportunitySortBy","default":"opportunity_score"}},{"name":"sort_order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortOrder","default":"desc"}},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OpportunityLabel"},{"type":"null"}],"title":"Label"}},{"name":"include_dismissed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Dismissed"}}],"responses":{"200":{"description":"Paginated Offer Opportunities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityListResponseDTO"}}}},"403":{"description":"Feature disabled for store"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/offer-opportunities/enabled":{"get":{"tags":["offer-opportunities"],"summary":"Offer Opportunities Enabled","description":"Probe merchant visibility without loading opportunity rows.\n\nArgs:\n    creds (UserCredentials): Authenticated, feature-gated credentials.\n\nReturns:\n    OfferOpportunitiesEnabledDTO: ``enabled=true`` when the merchant app\n    may show Opportunities.","operationId":"offer_opportunities_enabled_api_v3_offer_opportunities_enabled_get","responses":{"200":{"description":"Offer Opportunities visible to merchant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferOpportunitiesEnabledDTO"}}}},"403":{"description":"Feature disabled for store"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/offer-opportunities/{opportunity_id}":{"get":{"tags":["offer-opportunities"],"summary":"Get Offer Opportunity","description":"Load one Offer Opportunity for the authenticated store.","operationId":"get_offer_opportunity_api_v3_offer_opportunities__opportunity_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}}],"responses":{"200":{"description":"Offer Opportunity detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferOpportunityDetailDTO"}}}},"403":{"description":"Feature disabled for store"},"404":{"description":"Opportunity not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/offer-opportunities/{opportunity_id}/dismiss":{"post":{"tags":["offer-opportunities"],"summary":"Dismiss Offer Opportunity","description":"Record a dismiss with merchant feedback.\n\nArgs:\n    opportunity_id: Derived opportunity id.\n    body: Dismiss reason and optional comment.\n    creds: Authenticated, feature-gated credentials.\n    action_service: Merchant action use cases.\n\nReturns:\n    Response: Empty 204 body on success.\n\nRaises:\n    HTTPException: ``404`` when the opportunity is absent in-store;\n        ``409`` when dismiss is not allowed.","operationId":"dismiss_offer_opportunity_api_v3_offer_opportunities__opportunity_id__dismiss_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissOpportunityRequestDTO"}}}},"responses":{"204":{"description":"Opportunity dismissed"},"403":{"description":"Feature disabled for store"},"404":{"description":"Opportunity not found"},"409":{"description":"Already dismissed or linked to a created offer"},"422":{"description":"Invalid dismiss feedback"}}}},"/api/v3/offer-opportunities/{opportunity_id}/start-draft":{"post":{"tags":["offer-opportunities"],"summary":"Start Draft Offer Opportunity","description":"Record a draft-started action and return the pre-filled editor path.\n\nArgs:\n    opportunity_id: Derived opportunity id.\n    body: Chosen offer target type.\n    creds: Authenticated, feature-gated credentials.\n    action_service: Merchant action use cases.\n    store_feature_service: Per-target feature flag checks.\n\nReturns:\n    StartDraftResponseDTO: Recorded offer type and merchant editor path.\n\nRaises:\n    HTTPException: ``403`` when the target type is disabled; ``404`` when\n        the opportunity is absent in-store; ``409`` when start-draft is\n        not allowed.","operationId":"start_draft_offer_opportunity_api_v3_offer_opportunities__opportunity_id__start_draft_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDraftRequestDTO"}}}},"responses":{"200":{"description":"Draft started and editor path returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDraftResponseDTO"}}}},"403":{"description":"Feature disabled for store or target offer type"},"404":{"description":"Opportunity not found"},"409":{"description":"Already dismissed or linked to a created offer"},"422":{"description":"Invalid offer type"}}}},"/api/v3/offer-opportunities/{opportunity_id}/link-offer":{"post":{"tags":["offer-opportunities"],"summary":"Link Offer To Opportunity","description":"Attach a created offer id to an existing draft-started action.\n\nArgs:\n    opportunity_id: Derived opportunity id.\n    body: Created offer id and type from the editor submit.\n    creds: Authenticated, feature-gated credentials.\n    action_service: Merchant action use cases.\n\nReturns:\n    Response: Empty 204 body on success.\n\nRaises:\n    HTTPException: ``404`` when the opportunity is absent in-store;\n        ``409`` when link-offer is not allowed; ``422`` when the offer\n        id is not owned by the store.","operationId":"link_offer_to_opportunity_api_v3_offer_opportunities__opportunity_id__link_offer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOfferRequestDTO"}}}},"responses":{"204":{"description":"Offer linked to opportunity"},"403":{"description":"Feature disabled for store"},"404":{"description":"Opportunity not found"},"409":{"description":"No draft-started action or opportunity dismissed"},"422":{"description":"Invalid offer type or offer not owned by store"}}}},"/api/v3/publication-links":{"get":{"tags":["publication-links"],"summary":"List Publication Links","operationId":"list_publication_links_api_v3_publication_links_get","responses":{"200":{"description":"Publication links for the store","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PublicationLinkSummaryDTO"},"type":"array","title":"Response List Publication Links Api V3 Publication Links Get"}}}},"404":{"description":"Feature disabled for store"}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["publication-links"],"summary":"Create Publication Link Draft","operationId":"create_publication_link_draft_api_v3_publication_links_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavePublicationLinkDraftRequestDTO"}}},"required":true},"responses":{"201":{"description":"Draft publication link created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationLinkDTO"}}}},"404":{"description":"Feature disabled for store"},"409":{"description":"Publication already linked"},"422":{"description":"Invalid mapping"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/publication-links/{link_id}":{"put":{"tags":["publication-links"],"summary":"Update Publication Link Draft","operationId":"update_publication_link_draft_api_v3_publication_links__link_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavePublicationLinkDraftRequestDTO"}}}},"responses":{"200":{"description":"Draft publication link updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationLinkDTO"}}}},"404":{"description":"Feature disabled or not found"},"409":{"description":"Publication already linked"},"422":{"description":"Invalid mapping"}}},"delete":{"tags":["publication-links"],"summary":"Delete Publication Link","operationId":"delete_publication_link_api_v3_publication_links__link_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"responses":{"204":{"description":"Publication link deleted"},"404":{"description":"Feature disabled or not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["publication-links"],"summary":"Get Publication Link","operationId":"get_publication_link_api_v3_publication_links__link_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"responses":{"200":{"description":"Publication link returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationLinkDetailDTO"}}}},"404":{"description":"Feature disabled or not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/publication-links/catalog/publications":{"get":{"tags":["publication-links"],"summary":"Search Publication Catalog","operationId":"search_publication_catalog_api_v3_publication_links_catalog_publications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Category Id"}},{"name":"in_stock_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"In Stock Only"}}],"responses":{"200":{"description":"Eligible publication products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PublicationCatalogProductDTO_"}}}},"404":{"description":"Feature disabled for store"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/publication-links/catalog/linked-variants":{"get":{"tags":["publication-links"],"summary":"Search Linked Variant Catalog","operationId":"search_linked_variant_catalog_api_v3_publication_links_catalog_linked_variants_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"publication_product_id","in":"query","required":true,"schema":{"type":"integer","title":"Publication Product Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}},{"name":"product_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Ids"}}],"responses":{"200":{"description":"Eligible linked catalog variants","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LinkedCatalogProductDTO_"}}}},"404":{"description":"Feature disabled for store"},"422":{"description":"Unknown publication"}}}},"/api/v3/publication-links/{link_id}/activate":{"post":{"tags":["publication-links"],"summary":"Activate Publication Link","operationId":"activate_publication_link_api_v3_publication_links__link_id__activate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"responses":{"200":{"description":"Publication link activated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivatePublicationLinkResponseDTO"}}}},"402":{"description":"Store not entitled"},"404":{"description":"Feature disabled or not found"},"422":{"description":"Invalid activate"}}}},"/api/v3/publication-links/{link_id}/pause":{"post":{"tags":["publication-links"],"summary":"Pause Publication Link","operationId":"pause_publication_link_api_v3_publication_links__link_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"responses":{"200":{"description":"Publication link paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationLinkDTO"}}}},"404":{"description":"Feature disabled or not found"},"422":{"description":"Invalid pause"}}}},"/api/v3/publication-links/{link_id}/resume":{"post":{"tags":["publication-links"],"summary":"Resume Publication Link","operationId":"resume_publication_link_api_v3_publication_links__link_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"responses":{"200":{"description":"Publication link resumed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationLinkDTO"}}}},"402":{"description":"Store not entitled"},"404":{"description":"Feature disabled or not found"},"422":{"description":"Invalid resume"}}}},"/api/v3/publication-links/{link_id}/sync":{"post":{"tags":["publication-links"],"summary":"Sync Publication Link","operationId":"sync_publication_link_api_v3_publication_links__link_id__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"responses":{"200":{"description":"Publication link stock rewritten","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationLinkDTO"}}}},"402":{"description":"Store not entitled"},"404":{"description":"Feature disabled or not found"},"422":{"description":"Link is not active"}}}},"/api/v3/publication-links/{link_id}/composition-preview":{"post":{"tags":["publication-links"],"summary":"Preview Publication Composition","operationId":"preview_publication_composition_api_v3_publication_links__link_id__composition_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompositionPreviewRequestDTO"}}}},"responses":{"200":{"description":"Derived stock for draft composition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompositionPreviewResponseDTO"}}}},"404":{"description":"Feature disabled or not found"},"422":{"description":"Invalid composition"}}}},"/api/v3/store/products/batch":{"post":{"tags":["auth"],"summary":"Get Store Products By Ids","description":"Load localized metadata for up to ten store products.\n\nMissing products and individual upstream failures are omitted so stale\nbundle references can still be edited using their product-id fallback.","operationId":"get_store_products_by_ids_api_v3_store_products_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchStoreProductsRequestDTO"}}},"required":true},"responses":{"200":{"description":"Product metadata found","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BatchStoreProductDTO"},"type":"array","title":"Response Get Store Products By Ids Api V3 Store Products Batch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v3/store/products":{"get":{"tags":["auth"],"summary":"Search Store Product","operationId":"search_store_product_api_v3_store_products_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"offset","in":"query","required":true,"schema":{"type":"integer","title":"Offset"}},{"name":"limit","in":"query","required":true,"schema":{"type":"integer","title":"Limit"}}],"responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_StoreProductDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/store/categories":{"get":{"tags":["auth"],"summary":"List Store Categories","description":"List Tiendanube categories for the authenticated merchant store.\n\nArgs:\n    offset: Pagination offset from the admin client.\n    limit: Page size from the admin client.\n    creds: Authenticated user credentials.\n    merchant_gateway: Tiendanube merchant gateway.\n    store_service: Store lookup service.\n\nReturns:\n    Paginated localized category list for admin pickers.","operationId":"list_store_categories_api_v3_store_categories_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":true,"schema":{"type":"integer","title":"Offset"}},{"name":"limit","in":"query","required":true,"schema":{"type":"integer","title":"Limit"}}],"responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_StoreCategoryDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/user/":{"patch":{"tags":["user"],"summary":"Update User","operationId":"update_user_api_v3_user__patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"204":{"description":"expected result"},"401":{"description":"TOKEN_EXPIRED"},"404":{"description":"NO_USER_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v3/user/me":{"get":{"tags":["user"],"summary":"Get Logged In User","operationId":"get_logged_in_user_api_v3_user_me_get","responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDTO"}}}},"401":{"description":"TOKEN_EXPIRED"}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["user"],"summary":"Delete Account","operationId":"delete_account_api_v3_user_me_delete","responses":{"200":{"description":"Account deleted successfully","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Delete Account Api V3 User Me Delete"}}}},"401":{"description":"TOKEN_EXPIRED"},"404":{"description":"NO_USER_FOUND"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/cancellation/":{"delete":{"tags":["cancellation"],"summary":"Cancel Subscription","operationId":"cancel_subscription_api_v3_cancellation__delete","responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{"type":"boolean","title":"Response Cancel Subscription Api V3 Cancellation  Delete"}}}},"401":{"description":"TOKEN_EXPIRED"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/subscriptions/":{"post":{"tags":["subscriptions"],"summary":"Create Subscription","description":"Create subscription synchronously and return the subscription status.","operationId":"create_subscription_api_v3_subscriptions__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubscriptionDTO"}}},"required":true},"responses":{"201":{"description":"Subscription created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubscriptionInitDTO"}}}},"400":{"description":"SUBSCRIPTION_CREATION_FAILED or CARD_TOKEN_REQUIRED"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v3/subscriptions/paddle/checkout":{"post":{"tags":["subscriptions"],"summary":"Create Paddle Checkout","description":"Start a Paddle-billed subscription: PENDING anchor + checkout config.\n\nUnlike ``POST /subscriptions/``, this does not create the subscription\nsynchronously — Paddle's hosted checkout collects payment client-side and\nconfirms via webhook (``POST /webhooks/paddle``). The frontend opens\n``Paddle.Checkout`` with the returned config, then polls\n``GET /subscriptions/store/{store_id}/status`` for activation.","operationId":"create_paddle_checkout_api_v3_subscriptions_paddle_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaddleCheckoutDTO"}}},"required":true},"responses":{"201":{"description":"Paddle checkout config created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaddleCheckoutConfigDTO"}}}},"400":{"description":"PADDLE_CHECKOUT_FAILED"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v3/subscriptions/store/{store_id}/billing-provider":{"get":{"tags":["subscriptions"],"summary":"Get Billing Provider","description":"Which checkout the frontend should render for this store (MP or Paddle).","operationId":"get_billing_provider_api_v3_subscriptions_store__store_id__billing_provider_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"responses":{"200":{"description":"Resolved billing provider","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProviderDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/subscriptions/store/{store_id}/cancel":{"post":{"tags":["subscriptions"],"summary":"Cancel Subscription","description":"Cancel a subscription by store ID.","operationId":"cancel_subscription_api_v3_subscriptions_store__store_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"responses":{"200":{"description":"Subscription cancelled successfully","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Cancel Subscription Api V3 Subscriptions Store  Store Id  Cancel Post"}}}},"404":{"description":"SUBSCRIPTION_NOT_FOUND"},"400":{"description":"SUBSCRIPTION_CANCELLATION_FAILED"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/subscriptions/store/{store_id}/status":{"get":{"tags":["subscriptions"],"summary":"Get Subscription Status","description":"Get subscription status for a store.","operationId":"get_subscription_status_api_v3_subscriptions_store__store_id__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"responses":{"200":{"description":"Subscription status retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatusDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/subscriptions/plans":{"get":{"tags":["subscriptions"],"summary":"Get All Plans","description":"Get all available subscription plans.","operationId":"get_all_plans_api_v3_subscriptions_plans_get","responses":{"200":{"description":"Available plans retrieved","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PlanDTO"},"type":"array","title":"Response Get All Plans Api V3 Subscriptions Plans Get"}}}}}}},"/api/v3/subscriptions/plans/active":{"get":{"tags":["subscriptions"],"summary":"Get Active Plans","description":"Get all active subscription plans.","operationId":"get_active_plans_api_v3_subscriptions_plans_active_get","responses":{"200":{"description":"Active plans retrieved","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PlanDTO"},"type":"array","title":"Response Get Active Plans Api V3 Subscriptions Plans Active Get"}}}}}}},"/api/v3/subscriptions/plans/{plan_id}":{"get":{"tags":["subscriptions"],"summary":"Get Plan By Id","description":"Get plan by ID.","operationId":"get_plan_by_id_api_v3_subscriptions_plans__plan_id__get","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}}],"responses":{"200":{"description":"Plan found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanDTO"}}}},"404":{"description":"PLAN_NOT_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/subscriptions/plans/external/{external_ref}":{"get":{"tags":["subscriptions"],"summary":"Get Plan By External Ref","description":"Get plan by external reference.","operationId":"get_plan_by_external_ref_api_v3_subscriptions_plans_external__external_ref__get","parameters":[{"name":"external_ref","in":"path","required":true,"schema":{"type":"string","title":"External Ref"}}],"responses":{"200":{"description":"Plan found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanDTO"}}}},"404":{"description":"PLAN_NOT_FOUND"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/usage-metrics/stores/{store_id}/current-cycle":{"get":{"tags":["usage-metrics"],"summary":"Get current subscription cycle metrics","description":"Retrieve the number of orders processed in the current subscription cycle for a store.","operationId":"get_current_cycle_metrics_api_v3_usage_metrics_stores__store_id__current_cycle_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentCycleMetricsDTO"}}}},"404":{"description":"Store not found or no active subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDTO"}}}},"500":{"description":"Metric calculation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/usage-metrics/stores/{store_id}/last-30-days":{"get":{"tags":["usage-metrics"],"summary":"Get last 30 days metrics","description":"Retrieve comprehensive metrics for the last 30 days including revenue, orders, product updates, and mean order value.","operationId":"get_last_30_days_metrics_api_v3_usage_metrics_stores__store_id__last_30_days_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Last30DaysMetricsDTO"}}}},"500":{"description":"Metric calculation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/usage-metrics/stores/{store_id}/custom-period":{"get":{"tags":["usage-metrics"],"summary":"Get custom period metrics","description":"Retrieve comprehensive metrics for a custom period including revenue, orders, product updates, and mean order value.","operationId":"get_custom_period_metrics_api_v3_usage_metrics_stores__store_id__custom_period_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"period_start","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Period Start"}},{"name":"period_end","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Period End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Last30DaysMetricsDTO"}}}},"500":{"description":"Metric calculation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/usage-metrics/stores/{store_id}/order-events":{"post":{"tags":["usage-metrics"],"summary":"Record an order event","description":"Record that an order has been processed for metrics tracking. This endpoint is typically called by internal systems.","operationId":"record_order_event_api_v3_usage_metrics_stores__store_id__order_events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderEventCreateDTO"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderEventResponseDTO"}}}},"400":{"description":"Invalid order data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDTO"}}}},"409":{"description":"Order event already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDTO"}}}},"500":{"description":"Failed to record order event","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["usage-metrics"],"summary":"Get all order events for a store within a period.","description":"Get all order events for a store within a period.","operationId":"get_store_order_events_api_v3_usage_metrics_stores__store_id__order_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date","title":"From Date"}},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","format":"date","title":"To Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderEventResponseDTO"},"title":"Response Get Store Order Events Api V3 Usage Metrics Stores  Store Id  Order Events Get"}}}},"404":{"description":"Store not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDTO"}}}},"500":{"description":"Failed to get order events","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/webhooks/tn/":{"post":{"summary":"Process Incoming Webhook","operationId":"process_incoming_webhook_api_v3_webhooks_tn__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TiendaNubeWebhookEvent"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/webhooks/paddle/":{"post":{"summary":"Process Paddle Webhook","description":"Receive and apply Paddle billing webhooks.\n\nVerifies the ``Paddle-Signature`` header against the RAW body (must be\nread before any parsing — the signature covers the exact bytes Paddle\nsent), then normalises and delegates to\n``ISubscriptionService.handle_billing_webhook``.\n\nOnly a 2xx marks the delivery \"done\" on Paddle's side — anything else is\nretried (60 attempts over ~3 days on live). Returns 200 for events we\nintentionally ignore (unhandled event type), but a *non*-2xx if handling\na recognised event raises, so Paddle retries instead of us silently\nlosing the event. Handlers are idempotent, so a retry is safe. (Verified\nagainst the paddle:webhooks skill's \"Common pitfalls\" — returning 2xx on\na failure is the one mistake that permanently loses events.)","operationId":"process_paddle_webhook_api_v3_webhooks_paddle__post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v3/tn/discounts/callback":{"post":{"tags":["tn-discount-callback"],"summary":"Tiendanube discount callback","description":"Evaluate a Tiendanube cart and return discount commands (PRD §10).\n\nArgs:\n    payload: Cart payload from Tiendanube.\n    background_tasks: FastAPI task collector for non-blocking cache warm.\n    store_id_query: Store id from the signed query string.\n    nonce: Random nonce from the signed query string.\n    hmac: HMAC digest from the signed query string.\n    orchestrator: Callback orchestrator with end-to-end TN budget guard.\n    mix_match_cache_refresh_service: Service used to warm active bundles on cache miss.\n    kit_cache_refresh_service: Service used to warm active kits on cache miss.\n    bogo_cache_refresh_service: Service used to warm active BOGO bundles on cache miss.\n    mix_match_telemetry: Structured ops telemetry recorder.\n    plan_guard: Plan guard used for deferred mix-match quota proximity notifications.\n    kit_plan_guard: Plan guard used for deferred kit quota proximity notifications.\n    bogo_plan_guard: Plan guard used for deferred BOGO quota proximity notifications.\n\nReturns:\n    ``CallbackCommands`` when discounts apply, otherwise an empty response.\n\nRaises:\n    HTTPException: Propagated from signed-query validation failures.","operationId":"handle_discount_callback_api_v3_tn_discounts_callback_post","parameters":[{"name":"store_id","in":"query","required":true,"schema":{"type":"string","title":"Store Id"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}},{"name":"hmac","in":"query","required":true,"schema":{"type":"string","title":"Hmac"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TnDiscountCallbackPayloadDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackCommands"}}}},"204":{"description":"No discount action needed"},"310":{"description":"Store uninstalled"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/notifications/":{"get":{"tags":["notifications"],"summary":"List Current Users Notifications","operationId":"list_current_users_notifications_api_v3_notifications__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":true,"schema":{"type":"integer","title":"Offset"}},{"name":"limit","in":"query","required":true,"schema":{"type":"integer","title":"Limit"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"enum":["info","warning","error","critical"],"type":"string"},{"type":"null"}],"title":"Severity"}}],"responses":{"200":{"description":"expected result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_NotificationDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/notifications/{notification_id}/read":{"patch":{"tags":["notifications"],"summary":"Read Notification","operationId":"read_notification_api_v3_notifications__notification_id__read_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/dashboard/latest-processed-orders":{"get":{"tags":["dashboard"],"summary":"Get Latest Processed Orders","operationId":"get_latest_processed_orders_api_v3_dashboard_latest_processed_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"bundle_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Bundle Id"}},{"name":"merchant_order_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Merchant Order Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProcessedOrderDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/dashboard/recent-activity":{"get":{"tags":["dashboard"],"summary":"Get Recent Activity","operationId":"get_recent_activity_api_v3_dashboard_recent_activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":15,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DashboardActivityItemDTO"},"title":"Response Get Recent Activity Api V3 Dashboard Recent Activity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/dashboard/bundles/{bundle_id}/stock-updates":{"get":{"tags":["dashboard"],"summary":"Get Bundle Stock Updates","operationId":"get_bundle_stock_updates_api_v3_dashboard_bundles__bundle_id__stock_updates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_StockUpdateDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/dashboard/store-orders":{"get":{"tags":["dashboard"],"summary":"Get Store Orders","operationId":"get_store_orders_api_v3_dashboard_store_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Per Page"}},{"name":"order_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OrderStatusEnum"},{"type":"null"}],"title":"Order Status"}},{"name":"created_at_min","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At Min"}},{"name":"created_at_max","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At Max"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_StoreOrderDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/dashboard/popular-bundles":{"get":{"tags":["dashboard"],"summary":"Get Popular Bundles","operationId":"get_popular_bundles_api_v3_dashboard_popular_bundles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PopularBundleDTO"},"title":"Response Get Popular Bundles Api V3 Dashboard Popular Bundles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/me":{"get":{"tags":["admin"],"summary":"Admin Me","operationId":"admin_me_api_v3_admin_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminMeDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/admin/mcp/setup":{"get":{"tags":["admin"],"summary":"Get Mcp Setup","description":"Return the public MCP URL derived from ``settings.base_url``.\n\nArgs:\n    _creds: Authenticated Admin. Unused beyond the allow-list check.\n\nReturns:\n    McpSetupDTO: Streamable HTTP URL Cursor should use, and whether the\n        MCP server is mounted in this environment.","operationId":"get_mcp_setup_api_v3_admin_mcp_setup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpSetupDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/admin/overview/kpis":{"get":{"tags":["admin"],"summary":"Get Overview Kpis","operationId":"get_overview_kpis_api_v3_admin_overview_kpis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminKpisDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/admin/overview/subscription-growth":{"get":{"tags":["admin"],"summary":"Get Overview Subscription Growth","operationId":"get_overview_subscription_growth_api_v3_admin_overview_subscription_growth_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"range","in":"query","required":false,"schema":{"type":"string","default":"6M","title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionGrowthDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/overview/recent-activity":{"get":{"tags":["admin"],"summary":"Get Overview Recent Activity","operationId":"get_overview_recent_activity_api_v3_admin_overview_recent_activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityItemDTO"},"title":"Response Get Overview Recent Activity Api V3 Admin Overview Recent Activity Get"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/overview/top-accounts":{"get":{"tags":["admin"],"summary":"Get Overview Top Accounts","operationId":"get_overview_top_accounts_api_v3_admin_overview_top_accounts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TopAccountDTO"},"title":"Response Get Overview Top Accounts Api V3 Admin Overview Top Accounts Get"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/":{"get":{"tags":["admin","accounts"],"summary":"List Accounts","operationId":"list_accounts_api_v3_admin_accounts__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Pagesize"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"subscriptionType","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriptiontype"}},{"name":"minRevenue","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minrevenue"}},{"name":"maxRevenue","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maxrevenue"}},{"name":"minBundles","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minbundles"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AccountStatus"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_MerchantAccountDTO_"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/summary":{"get":{"tags":["admin","accounts"],"summary":"Get Accounts Summary","operationId":"get_accounts_summary_api_v3_admin_accounts_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantAccountsSummaryDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/admin/accounts/plans":{"get":{"tags":["admin","accounts"],"summary":"List Account Plans","description":"List active subscription plans for the admin Manage Plan form.","operationId":"list_account_plans_api_v3_admin_accounts_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SubscriptionPlanOptionDTO"},"type":"array","title":"Response List Account Plans Api V3 Admin Accounts Plans Get"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/admin/accounts/export":{"get":{"tags":["admin","accounts"],"summary":"Export Accounts To Cv","operationId":"export_accounts_to_cv_api_v3_admin_accounts_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"subscriptionType","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriptiontype"}},{"name":"minRevenue","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minrevenue"}},{"name":"maxRevenue","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maxrevenue"}},{"name":"minBundles","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minbundles"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/{store_id}":{"get":{"tags":["admin","accounts"],"summary":"Get Account","operationId":"get_account_api_v3_admin_accounts__store_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantAccountDetailDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/{store_id}/bundles":{"get":{"tags":["admin","accounts"],"summary":"List Account Bundles","operationId":"list_account_bundles_api_v3_admin_accounts__store_id__bundles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_StoreBundleSummaryDTO_"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/{store_id}/features":{"get":{"tags":["admin","admin-store-features"],"summary":"List Store Features","description":"List all known store features and their effective status.","operationId":"list_store_features_api_v3_admin_accounts__store_id__features_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreFeaturesResponseDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/{store_id}/features/{feature_key}":{"get":{"tags":["admin","admin-store-features"],"summary":"Get Store Feature","description":"Return effective status for one store feature.","operationId":"get_store_feature_api_v3_admin_accounts__store_id__features__feature_key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"feature_key","in":"path","required":true,"schema":{"type":"string","title":"Feature Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreFeatureDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","admin-store-features"],"summary":"Set Store Feature","description":"Enable or disable a store feature flag.","operationId":"set_store_feature_api_v3_admin_accounts__store_id__features__feature_key__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"feature_key","in":"path","required":true,"schema":{"type":"string","title":"Feature Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetStoreFeatureRequestDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetStoreFeatureResponseDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/{store_id}/merchant-order-sync":{"get":{"tags":["admin","admin-merchant-order-sync"],"summary":"Get Merchant Order Sync Status","description":"Return persisted merchant order sync watermarks for a store.","operationId":"get_merchant_order_sync_status_api_v3_admin_accounts__store_id__merchant_order_sync_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncCursorDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","admin-merchant-order-sync"],"summary":"Trigger Merchant Order Sync","description":"Run merchant order archive backfill or incremental sync for one store.","operationId":"trigger_merchant_order_sync_api_v3_admin_accounts__store_id__merchant_order_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"mode","in":"query","required":false,"schema":{"$ref":"#/components/schemas/MerchantOrderSyncMode","default":"auto"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerMerchantOrderSyncResponseDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/{store_id}/offer-opportunities/settings":{"get":{"tags":["admin","admin-offer-opportunities"],"summary":"Get Account Offer Opportunity Rollout","description":"Return processing vs merchant-visibility flags for a store.\n\nArgs:\n    store_id (uuid.UUID): Merchant store to inspect.\n    store_service (IStoreService): Store lookup used for the 404 guard.\n    rollout_service (OpportunityRolloutService): Rollout flag reads.\n\nReturns:\n    OfferOpportunityRolloutDTO: Processing and merchant-visibility flags.\n\nRaises:\n    HTTPException: ``404`` when the store does not exist.","operationId":"get_account_offer_opportunity_rollout_api_v3_admin_accounts__store_id__offer_opportunities_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferOpportunityRolloutDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","admin-offer-opportunities"],"summary":"Set Account Offer Opportunity Merchant Visible","description":"Show or hide Offer Opportunities in the merchant app.\n\nProcessing (``store_feature``) is unchanged. Visibility cannot be turned\non while processing is off.\n\nArgs:\n    store_id (uuid.UUID): Merchant store to update.\n    payload (SetOfferOpportunityMerchantVisibleRequestDTO): Desired\n        visibility.\n    creds (AdminCredentials): Acting admin, recorded as ``updated_by``.\n    store_service (IStoreService): Store lookup used for the 404 guard.\n    rollout_service (OpportunityRolloutService): Rollout flag writes.\n\nReturns:\n    OfferOpportunityRolloutDTO: Flags after the write.\n\nRaises:\n    HTTPException: ``404`` when the store does not exist; ``422`` when\n        visibility is requested while processing is off.","operationId":"set_account_offer_opportunity_merchant_visible_api_v3_admin_accounts__store_id__offer_opportunities_settings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetOfferOpportunityMerchantVisibleRequestDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferOpportunityRolloutDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/{store_id}/offer-opportunities":{"get":{"tags":["admin","admin-offer-opportunities"],"summary":"List Account Offer Opportunities","description":"List Offer Opportunities for a merchant store.\n\nOperators can read this surface regardless of the merchant feature flag.\nDismissed rows are included by default so ops can see the full set.\n\nArgs:\n    store_id (uuid.UUID): Merchant store to inspect.\n    store_service (IStoreService): Store lookup used for the 404 guard.\n    read_service (OpportunityReadService): Slice 3 read orchestration.\n    page (int): 1-based page number.\n    page_size (int): Page size, capped at 50.\n    in_stock_only (bool): When true, keep only in-stock pairs.\n    sort_by (OpportunitySortBy): Ranking key.\n    sort_order (SortOrder): Ranking direction.\n    label (OpportunityLabel | None): Optional badge filter.\n    include_dismissed (bool): When true, include currently dismissed rows.\n\nReturns:\n    OpportunityListResponseDTO: Paginated opportunities plus eligibility meta.\n\nRaises:\n    HTTPException: ``404`` when the store does not exist; ``422`` when the\n        sort or label arguments are invalid.","operationId":"list_account_offer_opportunities_api_v3_admin_accounts__store_id__offer_opportunities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Pagesize"}},{"name":"inStockOnly","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Instockonly"}},{"name":"sortBy","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OpportunitySortBy","default":"opportunity_score"}},{"name":"sortOrder","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortOrder","default":"desc"}},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OpportunityLabel"},{"type":"null"}],"title":"Label"}},{"name":"includeDismissed","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Includedismissed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityListResponseDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/{store_id}/subscription/extend":{"post":{"tags":["admin","admin-subscription"],"summary":"Extend Subscription","description":"Extend a store's subscription expiration date.\n\nArgs:\n    store_id: Store identifier.\n    payload: Request body with the new ``validUntil`` datetime.\n    subscription_service: Injected subscription service.\n\nReturns:\n    dict[str, bool]: ``{\"ok\": True}`` on success.\n\nRaises:\n    HTTPException: 404 if the store has no subscription.","operationId":"extend_subscription_api_v3_admin_accounts__store_id__subscription_extend_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtendSubscriptionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Extend Subscription Api V3 Admin Accounts  Store Id  Subscription Extend Post"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/{store_id}/subscription/plan":{"post":{"tags":["admin","admin-subscription"],"summary":"Change Subscription Plan","description":"Replace the plan on a store's current subscription (admin override).\n\nArgs:\n    store_id: Store identifier.\n    payload: Request body with the new ``planId``.\n    subscription_service: Injected subscription service.\n\nReturns:\n    SubscriptionDTO: The updated subscription.\n\nRaises:\n    HTTPException: 404 if the subscription or plan does not exist.","operationId":"change_subscription_plan_api_v3_admin_accounts__store_id__subscription_plan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeSubscriptionPlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/accounts/{store_id}/subscription/provider":{"post":{"tags":["admin","admin-subscription"],"summary":"Set Billing Provider","description":"Set/clear the manual billing-provider override for a store.\n\nAdmin escape hatch for stores MercadoPago's Argentina-only collector\ncan't bill (see docs/paddle-integration-spec.md §3). 'auto' clears the\noverride; the resulting resolution then falls back to country-based\nrouting (AR → MercadoPago, everything else → Paddle).\n\nArgs:\n    store_id: Store to update.\n    payload: Request body with the new provider (or \"auto\" to clear).\n    subscription_service: Injected subscription service.\n\nReturns:\n    BillingProviderStateDTO: The override now stored and what it\n    currently resolves to.\n\nRaises:\n    HTTPException: 404 if the store does not exist.","operationId":"set_billing_provider_api_v3_admin_accounts__store_id__subscription_provider_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetBillingProviderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProviderStateDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/analytics/subscriptions":{"get":{"tags":["admin","analytics"],"summary":"Analytics Subscriptions","operationId":"analytics_subscriptions_api_v3_admin_analytics_subscriptions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"range","in":"query","required":false,"schema":{"type":"string","default":"1Y","title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsSeriesDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/analytics/orders":{"get":{"tags":["admin","analytics"],"summary":"Analytics Orders","operationId":"analytics_orders_api_v3_admin_analytics_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"range","in":"query","required":false,"schema":{"type":"string","default":"1Y","title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsSeriesDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/analytics/bundles":{"get":{"tags":["admin","analytics"],"summary":"Analytics Bundles","operationId":"analytics_bundles_api_v3_admin_analytics_bundles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","default":"1Y","title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GlobalPopularBundleDTO"},"title":"Response Analytics Bundles Api V3 Admin Analytics Bundles Get"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/bundles-analytics/account/{account_id}":{"get":{"tags":["admin","bundles"],"summary":"Get Account Bundles Top Performers","operationId":"get_account_bundles_top_performers_api_v3_admin_bundles_analytics_account__account_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_BundleAnalyticsAggregateDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/job-queues/":{"get":{"tags":["admin","job-queues"],"summary":"List Job Queue Preview","operationId":"list_job_queue_preview_api_v3_admin_job_queues__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_JobQueueStatsDTO_"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/job-queues/stats":{"get":{"tags":["admin","job-queues"],"summary":"Get Global Job Queue Stats","operationId":"get_global_job_queue_stats_api_v3_admin_job_queues_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalJobQueueStatsDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"}},"security":[{"HTTPBearer":[]}]}},"/api/v3/admin/job-queues/{merchant_id}/stats":{"get":{"tags":["admin","job-queues"],"summary":"Get Merchant Job Queue Stats","operationId":"get_merchant_job_queue_stats_api_v3_admin_job_queues__merchant_id__stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"merchant_id","in":"path","required":true,"schema":{"type":"string","title":"Merchant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueueStatsDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/job-queues/{merchant_id}/jobs":{"get":{"tags":["admin","job-queues"],"summary":"Get Merchant Job Queue Jobs","operationId":"get_merchant_job_queue_jobs_api_v3_admin_job_queues__merchant_id__jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"merchant_id","in":"path","required":true,"schema":{"type":"string","title":"Merchant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobDTO"},"title":"Response Get Merchant Job Queue Jobs Api V3 Admin Job Queues  Merchant Id  Jobs Get"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/logs/":{"get":{"tags":["admin","admin-logs"],"summary":"List Logs","description":"Return a filtered page of admin log entries.\n\nArgs:\n    page: One-based page number.\n    page_size: Maximum rows per page.\n    severity: Optional severity filter (e.g. ``INFO``, ``WARNING``).\n    source: Optional source filter (e.g. ``core``).\n    store_id: Optional store filter — used by the per-account Event\n        History card.\n    logs_service: Injected admin logs service.\n\nReturns:\n    Page[LogEntryDTO]: Paginated log entries.","operationId":"list_logs_api_v3_admin_logs__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Pagesize"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"storeId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Storeid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LogEntryDTO_"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/mcp/oauth/approve":{"post":{"tags":["admin","admin-mcp-oauth"],"summary":"Approve Mcp Oauth","description":"Confirm a pending MCP Authorization and mint an authorization code.\n\nArgs:\n    body: Connect page payload with the pending request id.\n    creds: Authenticated Admin from the merchant session JWT.\n\nReturns:\n    McpOAuthRedirectResponseDTO: Loopback redirect URL with ``code`` and\n        ``state`` for the MCP client.\n\nRaises:\n    HTTPException: 400 when ``rid`` is unknown or expired.","operationId":"approve_mcp_oauth_api_v3_admin_mcp_oauth_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpOAuthRidRequestDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpOAuthRedirectResponseDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v3/admin/mcp/oauth/deny":{"post":{"tags":["admin","admin-mcp-oauth"],"summary":"Deny Mcp Oauth","description":"Reject a pending MCP Authorization with ``access_denied``.\n\nArgs:\n    body: Connect page payload with the pending request id.\n    creds: Authenticated Admin from the merchant session JWT.\n\nReturns:\n    McpOAuthRedirectResponseDTO: Client redirect URL with ``error`` and\n        ``state``.\n\nRaises:\n    HTTPException: 400 when ``rid`` is unknown or expired.","operationId":"deny_mcp_oauth_api_v3_admin_mcp_oauth_deny_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpOAuthRidRequestDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpOAuthRedirectResponseDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v3/admin/telemetry/stores/{store_id}/summary":{"get":{"tags":["admin","telemetry"],"summary":"Get Store Telemetry Summary","description":"Return rollup-backed telemetry summary for one store.","operationId":"get_store_telemetry_summary_api_v3_admin_telemetry_stores__store_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Store Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelemetryStoreSummaryDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/admin/telemetry/platform/summary":{"get":{"tags":["admin","telemetry"],"summary":"Get Platform Telemetry Summary","description":"Return platform-wide telemetry summary (``store_id IS NULL`` rollups).","operationId":"get_platform_telemetry_summary_api_v3_admin_telemetry_platform_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","title":"To"}},{"name":"topStoresLimit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":50,"minimum":1},{"type":"null"}],"title":"Topstoreslimit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelemetryPlatformSummaryDTO"}}}},"401":{"description":"TOKEN_EXPIRED"},"403":{"description":"NOT_ADMIN"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"tags":["system"],"summary":"Redirect to /docs","description":"Redirect to /docs","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ping":{"get":{"tags":["system"],"summary":"heart beat","description":"returns Pong","operationId":"heartbeat_ping_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","title":"Response Heartbeat Ping Get"}}}}}}}},"components":{"schemas":{"AccountStatus":{"type":"string","enum":["active","expiring_soon","expired","no_subscription"],"title":"AccountStatus","description":"Lifecycle status of a merchant account as surfaced to admins."},"ActivatePublicationLinkResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"storeId":{"type":"string","format":"uuid","title":"Storeid"},"publicationProductId":{"type":"integer","title":"Publicationproductid"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/PublicationLinkStatus"},"minStockThreshold":{"type":"integer","title":"Minstockthreshold"},"variantMappings":{"items":{"$ref":"#/components/schemas/PublicationVariantMappingDTO"},"type":"array","title":"Variantmappings"},"createdOn":{"type":"string","format":"date-time","title":"Createdon"},"updatedOn":{"type":"string","format":"date-time","title":"Updatedon"},"unmappedVariantCount":{"type":"integer","title":"Unmappedvariantcount"}},"type":"object","required":["id","storeId","publicationProductId","name","status","minStockThreshold","variantMappings","createdOn","updatedOn","unmappedVariantCount"],"title":"ActivatePublicationLinkResponseDTO"},"ActivityItemDTO":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"$ref":"#/components/schemas/ActivityKind"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"severity":{"type":"string","title":"Severity"},"occurredAt":{"type":"string","format":"date-time","title":"Occurredat"}},"type":"object","required":["id","kind","title","body","severity","occurredAt"],"title":"ActivityItemDTO"},"ActivityKind":{"type":"string","enum":["subscription_created","system_notification","user_registered","order_processed"],"title":"ActivityKind","description":"Kind of activity item displayed in the admin Recent Activity feed."},"AdminKpisDTO":{"properties":{"totalOrdersToday":{"$ref":"#/components/schemas/KpiDeltaDTO"},"activeSubscriptions":{"$ref":"#/components/schemas/KpiDeltaDTO"},"mrr":{"$ref":"#/components/schemas/KpiDeltaDTO"},"payingCustomers":{"$ref":"#/components/schemas/KpiDeltaDTO"},"planBreakdown":{"additionalProperties":{"type":"integer"},"type":"object","title":"Planbreakdown"},"planPricesArs":{"additionalProperties":{"type":"number"},"type":"object","title":"Planpricesars"},"mrrUsd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mrrusd"},"arsUsdRate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Arsusdrate"}},"type":"object","required":["totalOrdersToday","activeSubscriptions","mrr","payingCustomers","planBreakdown","planPricesArs","mrrUsd","arsUsdRate"],"title":"AdminKpisDTO"},"AdminMeDTO":{"properties":{"userId":{"type":"string","format":"uuid","title":"Userid"},"email":{"type":"string","title":"Email"},"isAdmin":{"type":"boolean","title":"Isadmin","default":true}},"type":"object","required":["userId","email"],"title":"AdminMeDTO"},"AnalyticsSeriesDTO":{"properties":{"title":{"type":"string","title":"Title"},"unit":{"type":"string","title":"Unit"},"points":{"items":{"$ref":"#/components/schemas/TimeSeriesPointDTO"},"type":"array","title":"Points"},"secondaryKeys":{"items":{"type":"string"},"type":"array","title":"Secondarykeys"}},"type":"object","required":["title","unit","points","secondaryKeys"],"title":"AnalyticsSeriesDTO"},"AuthDTO":{"properties":{"referer":{"type":"string","title":"Referer"},"token":{"type":"string","title":"Token"},"refreshToken":{"type":"string","title":"Refreshtoken"},"authorizationSchema":{"type":"string","title":"Authorizationschema","default":"Bearer"}},"type":"object","required":["referer","token","refreshToken"],"title":"AuthDTO"},"BatchStoreProductDTO":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"imageUrl":{"type":"string","title":"Imageurl","default":""},"variants":{"items":{"$ref":"#/components/schemas/StoreProductVariantDTO"},"type":"array","title":"Variants"}},"type":"object","required":["id","name","variants"],"title":"BatchStoreProductDTO","description":"Localized product metadata used to hydrate saved bundle components."},"BatchStoreProductsRequestDTO":{"properties":{"productIds":{"items":{"type":"integer"},"type":"array","maxItems":10,"minItems":1,"title":"Productids"}},"type":"object","required":["productIds"],"title":"BatchStoreProductsRequestDTO","description":"Product ids requested for mix-match editor hydration."},"BillingProviderDTO":{"properties":{"provider":{"type":"string","enum":["mercadopago","paddle"],"title":"Provider"}},"type":"object","required":["provider"],"title":"BillingProviderDTO","description":"Which provider a store resolves to (see PaymentProviderRouter)."},"BillingProviderStateDTO":{"properties":{"billingProviderOverride":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billingprovideroverride"},"resolvedBillingProvider":{"type":"string","title":"Resolvedbillingprovider"}},"type":"object","required":["billingProviderOverride","resolvedBillingProvider"],"title":"BillingProviderStateDTO","description":"Response for ``POST /provider``: override + what it resolves to."},"BogoBundleResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"storeId":{"type":"string","format":"uuid","title":"Storeid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"mode":{"type":"string","title":"Mode"},"rewardKind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rewardkind"},"freeShipping":{"type":"boolean","title":"Freeshipping"},"priority":{"type":"integer","title":"Priority"},"combinesWith":{"additionalProperties":true,"type":"object","title":"Combineswith"},"eligibleProducts":{"items":{"$ref":"#/components/schemas/BogoEligibleProductResponseDTO"},"type":"array","title":"Eligibleproducts"},"tiers":{"items":{"$ref":"#/components/schemas/QuantityTierResponseDTO"},"type":"array","title":"Tiers"},"ratio":{"anyOf":[{"$ref":"#/components/schemas/RatioRuleResponseDTO"},{"type":"null"}]},"triggerSlots":{"items":{"$ref":"#/components/schemas/TriggerSlotResponseDTO"},"type":"array","title":"Triggerslots"},"rewardSlots":{"items":{"$ref":"#/components/schemas/RewardSlotResponseDTO"},"type":"array","title":"Rewardslots"},"virtualProduct":{"anyOf":[{"$ref":"#/components/schemas/BogoVirtualProductResponseDTO"},{"type":"null"}]},"tnPromotion":{"anyOf":[{"$ref":"#/components/schemas/BogoTnPromotionResponseDTO"},{"type":"null"}]},"lastTransitionError":{"anyOf":[{"$ref":"#/components/schemas/TransitionErrorDTO"},{"type":"null"}]},"createdOn":{"type":"string","format":"date-time","title":"Createdon"},"updatedOn":{"type":"string","format":"date-time","title":"Updatedon"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["id","storeId","name","description","status","mode","rewardKind","freeShipping","priority","combinesWith","eligibleProducts","tiers","ratio","triggerSlots","rewardSlots","virtualProduct","tnPromotion","lastTransitionError","createdOn","updatedOn","version"],"title":"BogoBundleResponseDTO","description":"Full BOGO bundle aggregate as returned to the admin client."},"BogoBundleStatus":{"type":"string","enum":["DRAFT","PUBLISHING","ACTIVE","PAUSING","PAUSED","RESUMING","ARCHIVING","ARCHIVED"],"title":"BogoBundleStatus","description":"Lifecycle status of a BOGO bundle."},"BogoEligibleProductDTO":{"properties":{"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"variantLockMode":{"$ref":"#/components/schemas/VariantLockMode"},"lockedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Lockedvariantids"},"elementOrder":{"type":"integer","title":"Elementorder"}},"type":"object","required":["merchantStoreProductId","variantLockMode","elementOrder"],"title":"BogoEligibleProductDTO","description":"Eligible product member payload exchanged with the admin client.\n\nArgs:\n    merchant_store_product_id: Tiendanube product id referenced by the member.\n    variant_lock_mode: Whether variant selection is locked or unrestricted.\n    locked_variant_ids: Eligible variant ids when ``variant_lock_mode`` is\n        ``LOCKED``; empty when mode is ``ANY``.\n    element_order: Display and evaluation ordering index."},"BogoEligibleProductResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"variantLockMode":{"$ref":"#/components/schemas/VariantLockMode"},"lockedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Lockedvariantids"},"elementOrder":{"type":"integer","title":"Elementorder"}},"type":"object","required":["id","merchantStoreProductId","variantLockMode","lockedVariantIds","elementOrder"],"title":"BogoEligibleProductResponseDTO","description":"Eligible product member as returned to the admin client."},"BogoMode":{"type":"string","enum":["QUANTITY_BREAK","BUY_X_GET_Y"],"title":"BogoMode","description":"BOGO bundle matching mode."},"BogoSurfaceConfigDTO":{"properties":{"bogoId":{"type":"string","format":"uuid","title":"Bogoid"},"offerType":{"type":"string","const":"bogo","title":"Offertype","default":"bogo"},"mode":{"$ref":"#/components/schemas/BogoMode"},"name":{"type":"string","title":"Name"},"paused":{"type":"boolean","title":"Paused","default":false},"rewardKind":{"anyOf":[{"$ref":"#/components/schemas/RewardKind"},{"type":"null"}]},"eligibleProducts":{"items":{"$ref":"#/components/schemas/EligibleProductSurfaceDTO"},"type":"array","title":"Eligibleproducts","default":[]},"tiers":{"items":{"$ref":"#/components/schemas/SurfaceTierDTO"},"type":"array","title":"Tiers","default":[]},"ratio":{"anyOf":[{"$ref":"#/components/schemas/RatioSurfaceDTO"},{"type":"null"}]},"triggerSlots":{"items":{"$ref":"#/components/schemas/TriggerSlotSurfaceDTO"},"type":"array","title":"Triggerslots","default":[]},"rewardSlots":{"items":{"$ref":"#/components/schemas/RewardSlotSurfaceDTO"},"type":"array","title":"Rewardslots","default":[]}},"type":"object","required":["bogoId","mode","name"],"title":"BogoSurfaceConfigDTO","description":"BOGO surface definition returned to storefront JS (PRD §11.3).\n\nArgs:\n    bogo_id: Persistent bundle identifier.\n    offer_type: Always ``bogo`` for storefront offer discrimination.\n    mode: ``QUANTITY_BREAK`` or ``BUY_X_GET_Y``.\n    name: Merchant-visible bundle name.\n    paused: When ``True``, JS should hide the surface.\n    reward_kind: ``VOLUME_TIER`` or ``RATIO`` for ``QUANTITY_BREAK`` mode.\n    eligible_products: Eligible family members; empty when paused or BXGY.\n    tiers: Volume ladder tiers; empty for ratio or paused payloads.\n    ratio: NxM ratio rule; absent for volume tier or BXGY mode.\n    trigger_slots: Trigger slots for ``BUY_X_GET_Y`` mode.\n    reward_slots: Reward slots for ``BUY_X_GET_Y`` mode."},"BogoTnPromotionResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"promotionId":{"type":"string","title":"Promotionid"},"allocationTier":{"type":"string","const":"LINE_ITEM","title":"Allocationtier"},"active":{"type":"boolean","title":"Active"},"syncedOn":{"type":"string","format":"date-time","title":"Syncedon"}},"type":"object","required":["id","promotionId","allocationTier","active","syncedOn"],"title":"BogoTnPromotionResponseDTO","description":"Tiendanube promotion reference returned to the admin client."},"BogoVirtualProductResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"merchantProductId":{"type":"integer","title":"Merchantproductid"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle"},"syncedOn":{"type":"string","format":"date-time","title":"Syncedon"}},"type":"object","required":["id","merchantProductId","handle","syncedOn"],"title":"BogoVirtualProductResponseDTO","description":"Tiendanube virtual landing product reference returned to the admin client."},"BundleAnalyticsAggregateDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/StatusEnum"},"salesCount":{"type":"integer","title":"Salescount"},"totalRevenue":{"type":"string","title":"Totalrevenue"},"createdOn":{"type":"string","format":"date-time","title":"Createdon"},"updatedOn":{"type":"string","format":"date-time","title":"Updatedon"}},"type":"object","required":["id","name","status","salesCount","totalRevenue","createdOn","updatedOn"],"title":"BundleAnalyticsAggregateDTO"},"BundleCreationIntentDTO":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"discount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount"},"discountType":{"$ref":"#/components/schemas/ItemDiscountTypeEnum","default":"NONE_APPLIED"},"minStockThreshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minstockthreshold"},"shouldSyncVariants":{"type":"boolean","title":"Shouldsyncvariants"},"updatePriceForItems":{"type":"boolean","title":"Updatepriceforitems"},"items":{"items":{"$ref":"#/components/schemas/BundleCreationItemDTO"},"type":"array","title":"Items"}},"type":"object","required":["name","shouldSyncVariants","updatePriceForItems","items"],"title":"BundleCreationIntentDTO"},"BundleCreationItemDTO":{"properties":{"lineId":{"type":"integer","title":"Lineid"},"productId":{"type":"integer","title":"Productid"},"quantity":{"type":"integer","title":"Quantity"},"variants":{"items":{"$ref":"#/components/schemas/BundleItemVariants"},"type":"array","title":"Variants"},"itemDiscount":{"type":"number","title":"Itemdiscount"},"itemDiscountType":{"$ref":"#/components/schemas/ItemDiscountTypeEnum","default":"NONE_APPLIED"}},"type":"object","required":["lineId","productId","quantity","variants","itemDiscount"],"title":"BundleCreationItemDTO"},"BundleDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"items":{"items":{"$ref":"#/components/schemas/BundleItemDTO-Output"},"type":"array","title":"Items"},"productId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Productid"},"discount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount"},"discountType":{"$ref":"#/components/schemas/ItemDiscountTypeEnum","default":"PERCENTAGE"},"shouldSyncVariants":{"type":"boolean","title":"Shouldsyncvariants"},"updatePriceForItems":{"type":"boolean","title":"Updatepriceforitems"},"stockThreshold":{"type":"integer","title":"Stockthreshold"},"status":{"type":"string","title":"Status"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","name","description","items","productId","discount","shouldSyncVariants","updatePriceForItems","stockThreshold","status","createdAt","updatedAt"],"title":"BundleDTO"},"BundleDefinitionDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"variants":{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array","title":"Variants"},"productId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Productid"},"discount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount"},"shouldSyncVariants":{"type":"boolean","title":"Shouldsyncvariants"},"updatePriceForItems":{"type":"boolean","title":"Updatepriceforitems"},"stockThreshold":{"type":"integer","title":"Stockthreshold"},"status":{"type":"string","title":"Status"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","name","description","variants","productId","discount","shouldSyncVariants","updatePriceForItems","stockThreshold","status","createdAt","updatedAt"],"title":"BundleDefinitionDTO"},"BundleItemDTO-Input":{"properties":{"lineId":{"type":"integer","title":"Lineid"},"productId":{"type":"integer","title":"Productid"},"name":{"additionalProperties":{"type":"string"},"type":"object","title":"Name"},"quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity"},"variants":{"items":{"$ref":"#/components/schemas/BundleItemVariantDTO"},"type":"array","title":"Variants"},"itemDiscount":{"type":"number","title":"Itemdiscount"},"itemDiscountType":{"$ref":"#/components/schemas/ItemDiscountTypeEnum"}},"type":"object","required":["lineId","productId","name","quantity","variants","itemDiscount","itemDiscountType"],"title":"BundleItemDTO"},"BundleItemDTO-Output":{"properties":{"lineId":{"type":"integer","title":"Lineid"},"productId":{"type":"integer","title":"Productid"},"name":{"additionalProperties":{"type":"string"},"type":"object","title":"Name"},"quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity"},"variants":{"items":{"$ref":"#/components/schemas/BundleItemVariantDTO"},"type":"array","title":"Variants"},"itemDiscount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Itemdiscount"},"itemDiscountType":{"$ref":"#/components/schemas/ItemDiscountTypeEnum"}},"type":"object","required":["lineId","productId","name","quantity","variants","itemDiscount","itemDiscountType"],"title":"BundleItemDTO"},"BundleItemPreviewDTO":{"properties":{"lineItemId":{"type":"integer","title":"Lineitemid"},"productId":{"type":"integer","title":"Productid"},"quantity":{"type":"integer","title":"Quantity"},"selectedVariants":{"items":{"type":"integer"},"type":"array","title":"Selectedvariants"}},"type":"object","required":["lineItemId","productId","quantity","selectedVariants"],"title":"BundleItemPreviewDTO"},"BundleItemVariantDTO":{"properties":{"selected":{"type":"boolean","title":"Selected"},"values":{"items":{"type":"string"},"type":"array","title":"Values"},"id":{"type":"integer","title":"Id"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"}},"type":"object","required":["selected","values","id"],"title":"BundleItemVariantDTO"},"BundleItemVariants":{"properties":{"id":{"type":"integer","title":"Id"}},"type":"object","required":["id"],"title":"BundleItemVariants"},"BundlePreviewDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"items":{"items":{"$ref":"#/components/schemas/BundleItemPreviewDTO"},"type":"array","title":"Items"},"createdOn":{"type":"string","format":"date-time","title":"Createdon"},"updatedOn":{"type":"string","format":"date-time","title":"Updatedon"}},"type":"object","required":["id","name","status","items","createdOn","updatedOn"],"title":"BundlePreviewDTO"},"BundleReferenceDTO":{"properties":{"bundleId":{"type":"string","format":"uuid","title":"Bundleid"},"bundleName":{"type":"string","title":"Bundlename"},"bundleType":{"$ref":"#/components/schemas/src__bff__domain__store_bundle_ref__StoreBundleType"}},"type":"object","required":["bundleId","bundleName","bundleType"],"title":"BundleReferenceDTO"},"BundleStatusUpdateDTO":{"properties":{"status":{"$ref":"#/components/schemas/StatusEnum"}},"type":"object","required":["status"],"title":"BundleStatusUpdateDTO"},"BundleUpdateIntentDTO":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"discount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount"},"discountType":{"$ref":"#/components/schemas/ItemDiscountTypeEnum","default":"NONE_APPLIED"},"minStockThreshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minstockthreshold"},"shouldSyncVariants":{"type":"boolean","title":"Shouldsyncvariants"},"updatePriceForItems":{"type":"boolean","title":"Updatepriceforitems"},"items":{"items":{"$ref":"#/components/schemas/BundleUpdateItemDTO"},"type":"array","title":"Items"}},"type":"object","required":["name","shouldSyncVariants","updatePriceForItems","items"],"title":"BundleUpdateIntentDTO","description":"Write DTO for updating an existing bundle.\n\nArgs:\n    name: The bundle display name.\n    description: Optional description text.\n    discount: Optional discount value. For PERCENTAGE in [0, 100]; for\n        ABSOLUTE a non-negative currency amount.\n    min_stock_threshold: Minimum stock level before the bundle is disabled.\n    should_sync_variants: Whether to sync variants with the store product.\n    update_price_for_items: Whether to propagate price updates to items.\n    items: The bundle items to set.\n\nRaises:\n    ValueError: If the discount is out of bounds for its declared type."},"BundleUpdateItemDTO":{"properties":{"lineId":{"type":"integer","title":"Lineid"},"productId":{"type":"integer","title":"Productid"},"quantity":{"type":"integer","title":"Quantity"},"variants":{"items":{"$ref":"#/components/schemas/BundleUpdateItemVariantDTO"},"type":"array","title":"Variants"},"itemDiscount":{"type":"number","title":"Itemdiscount"},"itemDiscountType":{"$ref":"#/components/schemas/ItemDiscountTypeEnum","default":"NONE_APPLIED"}},"type":"object","required":["lineId","productId","quantity","variants","itemDiscount"],"title":"BundleUpdateItemDTO","description":"A single item within a bundle update payload.\n\nArgs:\n    line_id: Positional identifier for this item within the bundle.\n    product_id: The merchant store product id.\n    quantity: Number of units of this product in the bundle.\n    variants: The selected variant ids.\n    item_discount: Optional per-item discount value.\n    item_discount_type: The type of per-item discount applied."},"BundleUpdateItemVariantDTO":{"properties":{"id":{"type":"integer","title":"Id"},"selected":{"type":"boolean","title":"Selected"}},"type":"object","required":["id","selected"],"title":"BundleUpdateItemVariantDTO","description":"Reference to a variant by id and whether it is selected.\n\nArgs:\n    id: The merchant store variant id.\n    selected: Whether this variant is selected for the bundle item."},"BundleValidationResult":{"properties":{"status":{"type":"boolean","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["status"],"title":"BundleValidationResult"},"CallbackCommands":{"properties":{"commands":{"items":{"anyOf":[{"$ref":"#/components/schemas/CreateOrUpdateDiscountCommand"},{"$ref":"#/components/schemas/RemoveDiscountCommand"}]},"type":"array","title":"Commands"}},"type":"object","required":["commands"],"title":"CallbackCommands","description":"Discount callback response payload for Tiendanube."},"CategoryProductDTO":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"additionalProperties":{"type":"string"},"type":"object","title":"Name"},"published":{"type":"boolean","title":"Published"},"imageSrc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imagesrc"},"variants":{"items":{"$ref":"#/components/schemas/CategoryProductVariantDTO"},"type":"array","title":"Variants"}},"type":"object","required":["id","name","published"],"title":"CategoryProductDTO","description":"Published product in a Tiendanube category for picker expansion.\n\nArgs:\n    id: Tiendanube product id.\n    name: Localised product name map (e.g. ``es``, ``pt``).\n    published: Whether the product is published on the storefront.\n    image_src: Primary image URL, when present.\n    variants: Lightweight variants for price/stock rendering."},"CategoryProductVariantDTO":{"properties":{"id":{"type":"integer","title":"Id"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"},"stock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stock"}},"type":"object","required":["id"],"title":"CategoryProductVariantDTO","description":"Variant projection for category-backed picker expansion (FEATURE_SPEC §6.1).\n\nArgs:\n    id: Tiendanube variant id.\n    price: Variant price as a decimal string, when available.\n    stock: Available units, when stock is managed."},"CategoryProductsDTO":{"properties":{"categoryId":{"type":"integer","title":"Categoryid"},"products":{"items":{"$ref":"#/components/schemas/CategoryProductDTO"},"type":"array","title":"Products"}},"type":"object","required":["categoryId"],"title":"CategoryProductsDTO","description":"BFF payload for ``GET .../categories/{category_id}/products``.\n\nArgs:\n    category_id: Tiendanube category id that was expanded.\n    products: Published products currently in the category."},"ChangeSubscriptionPlanRequest":{"properties":{"planId":{"type":"string","format":"uuid","title":"Planid","description":"Identifier of the plan to assign."}},"type":"object","required":["planId"],"title":"ChangeSubscriptionPlanRequest","description":"Body for ``POST /plan``."},"CommandActionDTO":{"properties":{"kind":{"type":"string","const":"command","title":"Kind","default":"command"},"label":{"$ref":"#/components/schemas/LocalizedTextDTO"},"command":{"type":"string","title":"Command"},"args":{"additionalProperties":true,"type":"object","title":"Args"}},"type":"object","required":["label","command"],"title":"CommandActionDTO"},"ComponentAvailabilityIssueResponseDTO":{"properties":{"reason":{"$ref":"#/components/schemas/ComponentUnavailableReason"},"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"affectedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Affectedvariantids"}},"type":"object","required":["reason","merchantStoreProductId","affectedVariantIds"],"title":"ComponentAvailabilityIssueResponseDTO","description":"Unresolved component issue blocking publish or resume."},"ComponentDTO":{"properties":{"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"quantity":{"type":"integer","title":"Quantity"},"variantLockMode":{"$ref":"#/components/schemas/VariantLockMode"},"variantSelectionMode":{"$ref":"#/components/schemas/VariantSelectionMode","default":"PER_UNIT"},"lockedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Lockedvariantids"},"slotOrder":{"type":"integer","title":"Slotorder"},"slotDiscountType":{"$ref":"#/components/schemas/SlotDiscountType","default":"NONE_APPLIED"},"slotDiscountValue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Slotdiscountvalue"}},"type":"object","required":["merchantStoreProductId","quantity","variantLockMode","slotOrder"],"title":"ComponentDTO","description":"Component slot payload exchanged with the admin client.\n\nArgs:\n    merchant_store_product_id: Tiendanube product id referenced by the slot.\n    quantity: Required units of the product to satisfy the slot.\n    variant_lock_mode: Whether variant selection is locked or unrestricted.\n    locked_variant_ids: Eligible variant ids when ``variant_lock_mode`` is\n        ``LOCKED``; empty when mode is ``ANY``.\n    slot_order: Display/evaluation ordering index for the slot.\n    slot_discount_type: Per-slot discount kind; defaults to ``NONE_APPLIED``\n        while drafting.\n    slot_discount_value: Discount magnitude when ``slot_discount_type`` is\n        applied.\n    variant_selection_mode: Whether multi-quantity slots use one picker for\n        identical units or one picker per unit."},"ComponentResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"quantity":{"type":"integer","title":"Quantity"},"variantLockMode":{"$ref":"#/components/schemas/VariantLockMode"},"variantSelectionMode":{"$ref":"#/components/schemas/VariantSelectionMode"},"lockedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Lockedvariantids"},"slotOrder":{"type":"integer","title":"Slotorder"},"slotDiscountType":{"$ref":"#/components/schemas/SlotDiscountType"},"slotDiscountValue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Slotdiscountvalue"}},"type":"object","required":["id","merchantStoreProductId","quantity","variantLockMode","variantSelectionMode","lockedVariantIds","slotOrder","slotDiscountType","slotDiscountValue"],"title":"ComponentResponseDTO","description":"Component slot as returned to the admin client."},"ComponentUnavailableReason":{"type":"string","enum":["PRODUCT_MISSING","LOCKED_VARIANTS_MISSING"],"title":"ComponentUnavailableReason","description":"Why a referenced bundle component can no longer be sold."},"CompositionItemDTO":{"properties":{"catalogProductId":{"type":"integer","title":"Catalogproductid"},"catalogVariantId":{"type":"integer","title":"Catalogvariantid"},"quantity":{"type":"integer","title":"Quantity"}},"type":"object","required":["catalogProductId","catalogVariantId","quantity"],"title":"CompositionItemDTO"},"CompositionItemDetailDTO":{"properties":{"catalogProductId":{"type":"integer","title":"Catalogproductid"},"catalogVariantId":{"type":"integer","title":"Catalogvariantid"},"quantity":{"type":"integer","title":"Quantity"},"productName":{"type":"string","title":"Productname"},"variantLabel":{"type":"string","title":"Variantlabel"},"physicalStock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Physicalstock"}},"type":"object","required":["catalogProductId","catalogVariantId","quantity","productName","variantLabel","physicalStock"],"title":"CompositionItemDetailDTO"},"CompositionItemIntentionDTO":{"properties":{"catalogProductId":{"type":"integer","title":"Catalogproductid"},"catalogVariantId":{"type":"integer","title":"Catalogvariantid"},"quantity":{"type":"integer","title":"Quantity"}},"type":"object","required":["catalogProductId","catalogVariantId","quantity"],"title":"CompositionItemIntentionDTO"},"CompositionPreviewRequestDTO":{"properties":{"composition":{"items":{"$ref":"#/components/schemas/CompositionItemIntentionDTO"},"type":"array","title":"Composition","default":[]}},"type":"object","title":"CompositionPreviewRequestDTO","description":"Unsaved composition rows for one publication variant."},"CompositionPreviewResponseDTO":{"properties":{"derivedStock":{"oneOf":[{"$ref":"#/components/schemas/UnconstrainedDerivedStockDTO"},{"$ref":"#/components/schemas/FiniteDerivedStockDTO"}],"title":"Derivedstock","discriminator":{"propertyName":"kind","mapping":{"finite":"#/components/schemas/FiniteDerivedStockDTO","unconstrained":"#/components/schemas/UnconstrainedDerivedStockDTO"}}}},"type":"object","required":["derivedStock"],"title":"CompositionPreviewResponseDTO","description":"Derived stock preview for an unsaved composition."},"CreateBogoBundleRequestDTO":{"properties":{"name":{"type":"string","title":"Name"},"mode":{"$ref":"#/components/schemas/BogoMode","default":"QUANTITY_BREAK"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"type":"integer","title":"Priority","default":0},"combinesWith":{"additionalProperties":true,"type":"object","title":"Combineswith"},"freeShipping":{"type":"boolean","title":"Freeshipping","default":false},"eligibleProducts":{"items":{"$ref":"#/components/schemas/BogoEligibleProductDTO"},"type":"array","title":"Eligibleproducts"},"tiers":{"items":{"$ref":"#/components/schemas/QuantityTierDTO"},"type":"array","title":"Tiers"},"ratio":{"anyOf":[{"$ref":"#/components/schemas/RatioRuleDTO"},{"type":"null"}]},"triggerSlots":{"items":{"$ref":"#/components/schemas/TriggerSlotDTO"},"type":"array","title":"Triggerslots"},"rewardSlots":{"items":{"$ref":"#/components/schemas/RewardSlotDTO"},"type":"array","title":"Rewardslots"}},"type":"object","required":["name"],"title":"CreateBogoBundleRequestDTO","description":"Request body for creating a draft BOGO bundle.\n\nArgs:\n    name: Merchant-visible bundle name.\n    mode: Initial BOGO mode.\n    description: Optional long-form description.\n    priority: Overlap tie-breaker priority.\n    combines_with: Tiendanube discount-combinability config.\n    free_shipping: Whether the virtual landing product advertises free shipping.\n    eligible_products: Eligible product family for ``QUANTITY_BREAK`` mode.\n    tiers: Volume ladder tiers for ``QUANTITY_BREAK`` + ``VOLUME_TIER``.\n    ratio: NxM ratio rule for ``QUANTITY_BREAK`` + ``RATIO``.\n    trigger_slots: Trigger slots for ``BUY_X_GET_Y`` mode.\n    reward_slots: Reward slots for ``BUY_X_GET_Y`` mode."},"CreateKitRequestDTO":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"type":"integer","title":"Priority","default":0},"combinesWith":{"additionalProperties":true,"type":"object","title":"Combineswith"},"freeShipping":{"type":"boolean","title":"Freeshipping","default":false},"minItems":{"type":"integer","title":"Minitems","default":1},"maxItems":{"type":"integer","title":"Maxitems","default":1},"discountMode":{"$ref":"#/components/schemas/KitDiscountMode","default":"per_element_discount"},"globalDiscount":{"anyOf":[{"$ref":"#/components/schemas/src__kit_bundle__api__dtos__merchant_dtos__GlobalDiscountDTO"},{"type":"null"}]},"layoutMode":{"anyOf":[{"$ref":"#/components/schemas/KitLayoutMode"},{"type":"null"}]},"eligibilityType":{"$ref":"#/components/schemas/KitEligibilityType","default":"product_pool"},"categoryId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Categoryid"},"sections":{"items":{"$ref":"#/components/schemas/SectionDTO"},"type":"array","title":"Sections"},"elements":{"items":{"$ref":"#/components/schemas/ElementDTO"},"type":"array","title":"Elements"}},"type":"object","required":["name"],"title":"CreateKitRequestDTO","description":"Request body for creating a draft kit bundle.\n\nArgs:\n    name: Merchant-visible kit name.\n    description: Optional long-form description.\n    priority: Overlap tie-breaker priority.\n    combines_with: Tiendanube discount-combinability config.\n    free_shipping: Whether the virtual landing product advertises free shipping.\n    min_items: Minimum units across present elements required to qualify.\n    max_items: Maximum units across present elements the kit discounts.\n    discount_mode: Discount mode for the new kit; defaults to\n        ``per_element_discount``.\n    global_discount: Kit-level pricing rule, used only in\n        ``global_discount`` mode.\n    layout_mode: Flat single-pool layout or composite sections.\n    eligibility_type: Explicit product pool or Tiendanube category eligibility.\n    category_id: Tiendanube category id when ``eligibility_type`` is ``category``.\n    sections: Composite section definitions; empty for flat kits.\n    elements: Initial element slots."},"CreateMixMatchBundleRequestDTO":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"type":"integer","title":"Priority","default":0},"combinesWith":{"additionalProperties":true,"type":"object","title":"Combineswith"},"freeShipping":{"type":"boolean","title":"Freeshipping","default":false},"showPromotionalPrice":{"type":"boolean","title":"Showpromotionalprice","default":true},"discountMode":{"$ref":"#/components/schemas/MixMatchDiscountMode","default":"per_item_discount"},"globalDiscount":{"anyOf":[{"$ref":"#/components/schemas/src__mix_match_bundle__api__dtos__merchant_dtos__GlobalDiscountDTO"},{"type":"null"}]},"components":{"items":{"$ref":"#/components/schemas/ComponentDTO"},"type":"array","title":"Components"}},"type":"object","required":["name"],"title":"CreateMixMatchBundleRequestDTO","description":"Request body for creating a draft mix-match bundle.\n\nArgs:\n    name: Merchant-visible bundle name.\n    description: Optional long-form description.\n    priority: Overlap tie-breaker priority.\n    combines_with: Tiendanube discount-combinability config.\n    free_shipping: Whether the virtual landing product advertises free shipping.\n    show_promotional_price: Whether the virtual product variant exposes the\n        computed promotional price.\n    discount_mode: Discount mode for the new bundle; defaults to\n        ``per_item_discount``. Also accepts ``global_discount`` and\n        ``visual_only``.\n    global_discount: Bundle-level pricing rule, used only in\n        ``global_discount`` mode. Must be absent in ``visual_only``.\n    components: Initial component slots."},"CreateOrUpdateDiscountCommand":{"properties":{"command":{"type":"string","const":"create_or_update_discount","title":"Command","default":"create_or_update_discount"},"specs":{"$ref":"#/components/schemas/CreateOrUpdateDiscountSpecs"}},"type":"object","required":["specs"],"title":"CreateOrUpdateDiscountCommand","description":"Tiendanube command to create or update a discount."},"CreateOrUpdateDiscountSpecs":{"properties":{"promotion_id":{"type":"string","title":"Promotion Id"},"currency":{"type":"string","title":"Currency"},"display_text":{"additionalProperties":{"type":"string"},"type":"object","title":"Display Text"},"discount_specs":{"anyOf":[{"$ref":"#/components/schemas/DiscountAmountSpec"},{"type":"null"}]},"line_items":{"anyOf":[{"items":{"$ref":"#/components/schemas/LineItemDiscountSpec"},"type":"array"},{"type":"null"}],"title":"Line Items"}},"type":"object","required":["promotion_id","currency","display_text"],"title":"CreateOrUpdateDiscountSpecs","description":"Payload for a ``create_or_update_discount`` command."},"CreatePaddleCheckoutDTO":{"properties":{"storeId":{"type":"string","format":"uuid","title":"Storeid"},"planId":{"type":"string","format":"uuid","title":"Planid"}},"type":"object","required":["storeId","planId"],"title":"CreatePaddleCheckoutDTO","description":"DTO for starting a Paddle-billed subscription."},"CreateSubscriptionDTO":{"properties":{"storeId":{"type":"string","format":"uuid","title":"Storeid"},"planId":{"type":"string","format":"uuid","title":"Planid"},"cardTokenId":{"type":"string","title":"Cardtokenid"}},"type":"object","required":["storeId","planId","cardTokenId"],"title":"CreateSubscriptionDTO","description":"DTO for creating a subscription."},"CreateSubscriptionInitDTO":{"properties":{"status":{"$ref":"#/components/schemas/SubscriptionStatus"}},"type":"object","required":["status"],"title":"CreateSubscriptionInitDTO","description":"DTO returned when creating a subscription synchronously."},"CurrentCycleMetricsDTO":{"properties":{"order_count":{"type":"integer","title":"Order Count"},"bundle_count":{"type":"integer","title":"Bundle Count"},"mix_match_bundle_count":{"type":"integer","title":"Mix Match Bundle Count","default":0},"mix_match_order_count":{"type":"integer","title":"Mix Match Order Count","default":0},"kit_bundle_count":{"type":"integer","title":"Kit Bundle Count","default":0},"kit_order_count":{"type":"integer","title":"Kit Order Count","default":0},"bogo_bundle_count":{"type":"integer","title":"Bogo Bundle Count","default":0},"bogo_order_count":{"type":"integer","title":"Bogo Order Count","default":0}},"type":"object","required":["order_count","bundle_count"],"title":"CurrentCycleMetricsDTO","description":"DTO for current subscription cycle metrics response.","example":{"bogo_bundle_count":2,"bogo_order_count":3,"bundle_count":5,"kit_bundle_count":3,"kit_order_count":4,"mix_match_bundle_count":2,"mix_match_order_count":8,"order_count":42}},"CurrentSubscription":{"properties":{"current":{"$ref":"#/components/schemas/SubscriptionStatusDTO"},"plan":{"anyOf":[{"$ref":"#/components/schemas/PlanDTO"},{"type":"null"}]}},"type":"object","required":["current"],"title":"CurrentSubscription"},"DashboardActivityItemDTO":{"properties":{"merchantOrderId":{"type":"integer","title":"Merchantorderid"},"orderValue":{"type":"number","title":"Ordervalue"},"processedAt":{"type":"string","format":"date-time","title":"Processedat"},"bundleReferences":{"items":{"$ref":"#/components/schemas/BundleReferenceDTO"},"type":"array","title":"Bundlereferences"}},"type":"object","required":["merchantOrderId","orderValue","processedAt","bundleReferences"],"title":"DashboardActivityItemDTO"},"DiscountAmountSpec":{"properties":{"type":{"type":"string","enum":["fixed","percentage"],"title":"Type"},"amount":{"type":"string","title":"Amount"}},"type":"object","required":["type","amount"],"title":"DiscountAmountSpec","description":"Discount amount specification returned to Tiendanube."},"DiscountCallbackSummaryDTO":{"properties":{"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P95Durationms"},"failureCount":{"type":"integer","title":"Failurecount","default":0},"failuresByOutcome":{"additionalProperties":{"type":"integer"},"type":"object","title":"Failuresbyoutcome"}},"type":"object","title":"DiscountCallbackSummaryDTO","description":"Discount callback latency and failure breakdown."},"DismissOpportunityRequestDTO":{"properties":{"reason":{"$ref":"#/components/schemas/DismissReason"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["reason"],"title":"DismissOpportunityRequestDTO","description":"Request body for ``POST /offer-opportunities/{id}/dismiss``."},"DismissReason":{"type":"string","enum":["not_relevant","already_selling_together","wrong_products","season_not_right","price_too_high","too_similar_to_existing","other"],"title":"DismissReason","description":"Merchant-provided reason for dismissing an Offer Opportunity."},"ElementDTO":{"properties":{"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"required":{"type":"boolean","title":"Required","default":false},"minQuantity":{"type":"integer","title":"Minquantity","default":1},"maxQuantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxquantity"},"variantLockMode":{"$ref":"#/components/schemas/VariantLockMode"},"lockedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Lockedvariantids"},"elementOrder":{"type":"integer","title":"Elementorder"},"elementDiscountType":{"$ref":"#/components/schemas/SlotDiscountType","default":"NONE_APPLIED"},"elementDiscountValue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elementdiscountvalue"},"sectionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sectionid"}},"type":"object","required":["merchantStoreProductId","variantLockMode","elementOrder"],"title":"ElementDTO","description":"Element slot payload exchanged with the admin client.\n\nArgs:\n    merchant_store_product_id: Tiendanube product id referenced by the slot.\n    required: Whether the element must be present for the kit to qualify.\n    min_quantity: Units required for the element to count as present.\n    max_quantity: Discounted-unit cap; ``None`` means unbounded.\n    variant_lock_mode: Whether variant selection is locked or unrestricted.\n    locked_variant_ids: Eligible variant ids when ``variant_lock_mode`` is\n        ``LOCKED``; empty when mode is ``ANY``.\n    element_order: Display and evaluation ordering index.\n    element_discount_type: Per-element discount kind.\n    element_discount_value: Discount magnitude when a rule is applied.\n    section_id: Owning section id for composite kits; ``None`` for flat kits."},"ElementResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"required":{"type":"boolean","title":"Required"},"minQuantity":{"type":"integer","title":"Minquantity"},"maxQuantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxquantity"},"variantLockMode":{"$ref":"#/components/schemas/VariantLockMode"},"lockedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Lockedvariantids"},"elementOrder":{"type":"integer","title":"Elementorder"},"elementDiscount":{"$ref":"#/components/schemas/src__kit_bundle__api__dtos__merchant_dtos__ElementDiscountDTO"},"sectionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sectionid"}},"type":"object","required":["id","merchantStoreProductId","required","minQuantity","maxQuantity","variantLockMode","lockedVariantIds","elementOrder","elementDiscount"],"title":"ElementResponseDTO","description":"Element slot as returned to the admin client."},"EligibleProductSurfaceDTO":{"properties":{"merchantProductId":{"type":"integer","title":"Merchantproductid"},"variantLockMode":{"type":"string","title":"Variantlockmode"},"allowedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Allowedvariantids"}},"type":"object","required":["merchantProductId","variantLockMode","allowedVariantIds"],"title":"EligibleProductSurfaceDTO","description":"Eligible product member in the QUANTITY_BREAK surface contract (PRD §11.3).\n\nArgs:\n    merchant_product_id: Tiendanube product id for the eligible member.\n    variant_lock_mode: ``LOCKED`` or ``ANY``.\n    allowed_variant_ids: Eligible variant ids when locked; empty when any."},"EmailOnlyCredentialsDTO":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"EmailOnlyCredentialsDTO"},"EmailPasswordCredentialsDTO":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":6,"format":"password","title":"Password","writeOnly":true}},"type":"object","required":["email","password"],"title":"EmailPasswordCredentialsDTO"},"ErrorResponseDTO":{"properties":{"error":{"type":"string","title":"Error"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["error"],"title":"ErrorResponseDTO","description":"DTO for error responses.","example":{"detail":"Unable to determine subscription cycle for store","error":"Metric calculation failed","error_code":"SUBSCRIPTION_CYCLE_NOT_FOUND"}},"ExtendSubscriptionRequest":{"properties":{"validUntil":{"type":"string","format":"date-time","title":"Validuntil","description":"New expiration date for the subscription."}},"type":"object","required":["validUntil"],"title":"ExtendSubscriptionRequest","description":"Body for ``POST /extend``."},"FiniteDerivedStockDTO":{"properties":{"kind":{"type":"string","const":"finite","title":"Kind","default":"finite"},"available":{"type":"integer","title":"Available"},"limitingCatalogVariantId":{"type":"integer","title":"Limitingcatalogvariantid"},"limitingItemName":{"type":"string","title":"Limitingitemname"},"limitingPhysicalStock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limitingphysicalstock"}},"type":"object","required":["available","limitingCatalogVariantId","limitingItemName"],"title":"FiniteDerivedStockDTO"},"GlobalDiscountType":{"type":"string","enum":["TARGET_PRICE","PERCENTAGE","FIXED"],"title":"GlobalDiscountType","description":"Pricing rule applied to a whole bundle aggregate.\n\n``TARGET_PRICE`` sets the checkout total for a matched bundle, ``PERCENTAGE``\ntakes a percentage off the matched subtotal, and ``FIXED`` removes a fixed\ncurrency amount (capped at the subtotal)."},"GlobalJobQueueStatsDTO":{"properties":{"backlogCount":{"type":"integer","title":"Backlogcount"},"processingCount":{"type":"integer","title":"Processingcount"},"amountOfMerchants":{"type":"integer","title":"Amountofmerchants"}},"type":"object","required":["backlogCount","processingCount","amountOfMerchants"],"title":"GlobalJobQueueStatsDTO"},"GlobalPopularBundleDTO":{"properties":{"bundleId":{"type":"string","format":"uuid","title":"Bundleid"},"bundleName":{"type":"string","title":"Bundlename"},"storeId":{"type":"string","format":"uuid","title":"Storeid"},"storeName":{"type":"string","title":"Storename"},"orderCount":{"type":"integer","title":"Ordercount"},"revenue":{"type":"number","title":"Revenue"}},"type":"object","required":["bundleId","bundleName","storeId","storeName","orderCount","revenue"],"title":"GlobalPopularBundleDTO"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ItemDiscountTypeEnum":{"type":"string","enum":["PERCENTAGE","ABSOLUTE","NONE_APPLIED"],"title":"ItemDiscountTypeEnum"},"JobDTO":{"properties":{"jobType":{"type":"string","title":"Jobtype"},"merchantStoreQueueKey":{"type":"string","title":"Merchantstorequeuekey"},"payload":{"title":"Payload"}},"type":"object","required":["jobType","merchantStoreQueueKey","payload"],"title":"JobDTO"},"JobQueueStatsDTO":{"properties":{"merchantStoreQueueKey":{"type":"string","title":"Merchantstorequeuekey"},"backlogCount":{"type":"integer","title":"Backlogcount"},"processingCount":{"type":"integer","title":"Processingcount"}},"type":"object","required":["merchantStoreQueueKey","backlogCount","processingCount"],"title":"JobQueueStatsDTO"},"KitBundleStatus":{"type":"string","enum":["DRAFT","PUBLISHING","ACTIVE","PAUSING","PAUSED","RESUMING","ARCHIVING","ARCHIVED"],"title":"KitBundleStatus","description":"Lifecycle status of a kit bundle."},"KitDiscountMode":{"type":"string","enum":["per_element_discount","global_discount","visual_only"],"title":"KitDiscountMode","description":"How a kit bundle applies its discount at checkout.\n\nThe three modes are mutually exclusive: a kit either discounts each element\nindependently (``PER_ELEMENT_DISCOUNT``), applies one rule to the qualifying\nselection subtotal (``GLOBAL_DISCOUNT``), or opts out of checkout discounts\nentirely while keeping the curated picker UX (``VISUAL_ONLY``)."},"KitEligibilityType":{"type":"string","enum":["product_pool","category"],"title":"KitEligibilityType","description":"How a kit or section determines eligible products."},"KitLayoutMode":{"type":"string","enum":["flat","composite"],"title":"KitLayoutMode","description":"How a kit bundle structures its buyer-facing picker.\n\n``FLAT`` keeps the current single-pool behaviour. ``COMPOSITE`` groups\nelements into titled sections with per-section selection bounds."},"KitPickerConfigDTO":{"properties":{"kitId":{"type":"string","format":"uuid","title":"Kitid"},"offerType":{"type":"string","const":"kit","title":"Offertype","default":"kit"},"layoutMode":{"$ref":"#/components/schemas/KitLayoutMode","default":"flat"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"paused":{"type":"boolean","title":"Paused","default":false},"discountMode":{"type":"string","enum":["per_element_discount","global_discount","visual_only"],"title":"Discountmode","default":"per_element_discount"},"globalDiscount":{"anyOf":[{"$ref":"#/components/schemas/src__kit_bundle__api__dtos__public_dtos__PickerGlobalDiscountDTO"},{"type":"null"}]},"selection":{"anyOf":[{"$ref":"#/components/schemas/KitSelectionDTO"},{"type":"null"}]},"sections":{"items":{"$ref":"#/components/schemas/PickerSectionDTO"},"type":"array","title":"Sections"},"elements":{"items":{"$ref":"#/components/schemas/PickerElementDTO"},"type":"array","title":"Elements"},"eligibilityType":{"$ref":"#/components/schemas/KitEligibilityType","default":"product_pool"},"categoryId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Categoryid"}},"type":"object","required":["kitId","name"],"title":"KitPickerConfigDTO","description":"Kit definition returned to storefront JS (PRD §11.3, FEATURE_SPEC §4.2).\n\nArgs:\n    kit_id: Persistent kit identifier.\n    offer_type: Always ``kit`` for storefront offer discrimination.\n    layout_mode: ``flat`` for a single pool or ``composite`` for sections.\n    name: Merchant-visible kit name.\n    description: Optional long-form description.\n    paused: When ``True``, JS should hide the picker.\n    discount_mode: ``per_element_discount``, ``global_discount``, or\n        ``visual_only``.\n    global_discount: Kit-level pricing rule, present only in\n        ``global_discount`` mode.\n    selection: Unit selection bounds; absent when ``paused`` is ``True``.\n    sections: Ordered sections with nested elements; always present for active\n        kits. One-section kits also expose top-level ``elements`` as an alias.\n    elements: One-section alias of ``sections[0].elements``; empty when the\n        kit has two or more sections or is paused.\n    eligibility_type: Explicit product pool or Tiendanube category eligibility.\n    category_id: Tiendanube category id when ``eligibility_type`` is ``category``."},"KitResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"storeId":{"type":"string","format":"uuid","title":"Storeid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"freeShipping":{"type":"boolean","title":"Freeshipping"},"minItems":{"type":"integer","title":"Minitems"},"maxItems":{"type":"integer","title":"Maxitems"},"priority":{"type":"integer","title":"Priority"},"combinesWith":{"additionalProperties":true,"type":"object","title":"Combineswith"},"discountMode":{"$ref":"#/components/schemas/KitDiscountMode"},"globalDiscount":{"anyOf":[{"$ref":"#/components/schemas/src__kit_bundle__api__dtos__merchant_dtos__GlobalDiscountDTO"},{"type":"null"}]},"layoutMode":{"$ref":"#/components/schemas/KitLayoutMode","default":"flat"},"eligibilityType":{"$ref":"#/components/schemas/KitEligibilityType","default":"product_pool"},"categoryId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Categoryid"},"sections":{"items":{"$ref":"#/components/schemas/SectionResponseDTO"},"type":"array","title":"Sections"},"elements":{"items":{"$ref":"#/components/schemas/ElementResponseDTO"},"type":"array","title":"Elements"},"virtualProduct":{"anyOf":[{"$ref":"#/components/schemas/KitVirtualProductResponseDTO"},{"type":"null"}]},"tnPromotion":{"anyOf":[{"$ref":"#/components/schemas/KitTnPromotionResponseDTO"},{"type":"null"}]},"lastTransitionError":{"anyOf":[{"$ref":"#/components/schemas/TransitionErrorDTO"},{"type":"null"}]},"createdOn":{"type":"string","format":"date-time","title":"Createdon"},"updatedOn":{"type":"string","format":"date-time","title":"Updatedon"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["id","storeId","name","description","status","freeShipping","minItems","maxItems","priority","combinesWith","discountMode","globalDiscount","elements","virtualProduct","tnPromotion","lastTransitionError","createdOn","updatedOn","version"],"title":"KitResponseDTO","description":"Full kit bundle aggregate as returned to the admin client.\n\nArgs:\n    id: Persistent kit id.\n    store_id: Owning merchant store id.\n    name: Merchant-visible kit name.\n    description: Long-form description when present.\n    status: Current lifecycle status.\n    free_shipping: Whether the virtual landing product advertises free shipping.\n    min_items: Minimum units across present elements required to qualify.\n    max_items: Maximum units across present elements the kit discounts.\n    priority: Overlap tie-breaker priority.\n    combines_with: Tiendanube discount-combinability config.\n    discount_mode: Active discount mode of the kit.\n    global_discount: Kit-level pricing rule, present only in\n        ``global_discount`` mode.\n    layout_mode: Flat single-pool layout or composite sections.\n    eligibility_type: Explicit product pool or Tiendanube category eligibility.\n    category_id: Tiendanube category id when ``eligibility_type`` is ``category``.\n    sections: Ordered composite sections; empty for flat kits.\n    elements: Ordered element slots.\n    virtual_product: Tiendanube landing product reference after publish.\n    tn_promotion: Tiendanube promotion reference after publish.\n    last_transition_error: Reason the most recent transient transition\n        failed, when present.\n    created_on: Creation timestamp (UTC).\n    updated_on: Last mutation timestamp (UTC).\n    version: Optimistic-locking version counter."},"KitSelectionDTO":{"properties":{"minItems":{"type":"integer","title":"Minitems"},"maxItems":{"type":"integer","title":"Maxitems"}},"type":"object","required":["minItems","maxItems"],"title":"KitSelectionDTO","description":"Kit-level unit selection bounds for the picker.\n\nArgs:\n    min_items: Minimum units required in the selection.\n    max_items: Maximum units allowed in the selection."},"KitTnPromotionResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"promotionId":{"type":"string","title":"Promotionid"},"allocationTier":{"type":"string","const":"LINE_ITEM","title":"Allocationtier"},"active":{"type":"boolean","title":"Active"},"syncedOn":{"type":"string","format":"date-time","title":"Syncedon"}},"type":"object","required":["id","promotionId","allocationTier","active","syncedOn"],"title":"KitTnPromotionResponseDTO","description":"Tiendanube promotion reference returned to the admin client.\n\nArgs:\n    id: Persistent promotion row id.\n    promotion_id: Tiendanube promotion id.\n    allocation_tier: Always ``LINE_ITEM`` for kits.\n    active: Whether the promotion is currently active in Tiendanube.\n    synced_on: Timestamp when the reference was last synced from Tiendanube."},"KitVirtualProductResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"merchantProductId":{"type":"integer","title":"Merchantproductid"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle"},"syncedOn":{"type":"string","format":"date-time","title":"Syncedon"}},"type":"object","required":["id","merchantProductId","handle","syncedOn"],"title":"KitVirtualProductResponseDTO","description":"Tiendanube virtual landing product reference returned to the admin client.\n\nArgs:\n    id: Persistent virtual-product row id.\n    merchant_product_id: Tiendanube product id buyers land on.\n    handle: Product handle used in storefront URLs when present.\n    synced_on: Timestamp when the reference was last synced from Tiendanube."},"KpiDeltaDTO":{"properties":{"value":{"type":"number","title":"Value"},"deltaPct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deltapct"},"deltaLabel":{"type":"string","title":"Deltalabel"}},"type":"object","required":["value","deltaPct","deltaLabel"],"title":"KpiDeltaDTO"},"Last30DaysMetricsDTO":{"properties":{"revenue_from_bundles":{"type":"number","title":"Revenue From Bundles"},"total_orders":{"type":"integer","title":"Total Orders"},"product_updates_count":{"type":"integer","title":"Product Updates Count"},"mean_order_value":{"type":"number","title":"Mean Order Value"},"bundle_conversion_rate":{"type":"number","title":"Bundle Conversion Rate"},"total_completed_orders_count":{"type":"integer","title":"Total Completed Orders Count"},"orders_with_at_least_one_bundle_count":{"type":"integer","title":"Orders With At Least One Bundle Count"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"}},"type":"object","required":["revenue_from_bundles","total_orders","product_updates_count","mean_order_value","bundle_conversion_rate","total_completed_orders_count","orders_with_at_least_one_bundle_count","period_start","period_end"],"title":"Last30DaysMetricsDTO","description":"DTO for last 30 days metrics response.","example":{"mean_order_value":85.5,"period_end":"2024-01-31T23:59:59Z","period_start":"2024-01-01T00:00:00Z","product_updates_count":128,"revenue_from_bundles":1250.75,"total_orders":35}},"LifecycleEventTotalsDTO":{"properties":{"count":{"type":"integer","title":"Count","default":0},"failures":{"type":"integer","title":"Failures","default":0}},"type":"object","title":"LifecycleEventTotalsDTO","description":"Rollup count and failure totals for one lifecycle event name."},"LineItemDiscountSpec":{"properties":{"line_item":{"type":"string","title":"Line Item"},"discount_specs":{"$ref":"#/components/schemas/DiscountAmountSpec"}},"type":"object","required":["line_item","discount_specs"],"title":"LineItemDiscountSpec","description":"Line-item scoped discount specification."},"LinkActionDTO":{"properties":{"kind":{"type":"string","const":"link","title":"Kind","default":"link"},"label":{"$ref":"#/components/schemas/LocalizedTextDTO"},"href":{"type":"string","title":"Href"}},"type":"object","required":["label","href"],"title":"LinkActionDTO"},"LinkOfferRequestDTO":{"properties":{"offerId":{"type":"string","format":"uuid","title":"Offerid"},"offerType":{"$ref":"#/components/schemas/OfferTargetType"}},"type":"object","required":["offerId","offerType"],"title":"LinkOfferRequestDTO","description":"Request body for ``POST /offer-opportunities/{id}/link-offer``."},"LinkedCatalogAttributeDTO":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"LinkedCatalogAttributeDTO","description":"One named product attribute the merchant picks in the mapping dialog."},"LinkedCatalogProductDTO":{"properties":{"productId":{"type":"integer","title":"Productid"},"productName":{"type":"string","title":"Productname"},"attributes":{"items":{"$ref":"#/components/schemas/LinkedCatalogAttributeDTO"},"type":"array","title":"Attributes"},"variants":{"items":{"$ref":"#/components/schemas/LinkedCatalogVariantDTO"},"type":"array","title":"Variants"}},"type":"object","required":["productId","productName","attributes","variants"],"title":"LinkedCatalogProductDTO","description":"One eligible catalog product for linked-item search."},"LinkedCatalogVariantDTO":{"properties":{"id":{"type":"integer","title":"Id"},"sku":{"type":"string","title":"Sku"},"stock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stock"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"},"values":{"items":{"type":"string"},"type":"array","title":"Values"}},"type":"object","required":["id","sku","stock","price","values"],"title":"LinkedCatalogVariantDTO","description":"One eligible variant, with values aligned to the product attributes."},"LocalizedTextDTO":{"properties":{"key":{"type":"string","title":"Key"},"args":{"additionalProperties":true,"type":"object","title":"Args"},"fallback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback"}},"type":"object","required":["key"],"title":"LocalizedTextDTO"},"LogEntryDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"severity":{"type":"string","title":"Severity"},"source":{"type":"string","title":"Source"},"type":{"type":"string","title":"Type"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"userId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Userid"},"storeId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Storeid"}},"type":"object","required":["id","createdAt","severity","source","type","title","body","userId","storeId"],"title":"LogEntryDTO"},"MatchedOfferDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"offerType":{"$ref":"#/components/schemas/MatchedOfferType"},"status":{"type":"string","title":"Status"},"editorPath":{"type":"string","title":"Editorpath"}},"type":"object","required":["id","name","offerType","status","editorPath"],"title":"MatchedOfferDTO","description":"Reference to an existing offer that matches the product set."},"MatchedOfferType":{"type":"string","enum":["classic","mix_match","kit","bogo"],"title":"MatchedOfferType","description":"Offer type for a matched existing offer reference."},"McpOAuthRedirectResponseDTO":{"properties":{"redirectUrl":{"type":"string","title":"Redirecturl"}},"type":"object","required":["redirectUrl"],"title":"McpOAuthRedirectResponseDTO"},"McpOAuthRidRequestDTO":{"properties":{"rid":{"type":"string","title":"Rid"}},"type":"object","required":["rid"],"title":"McpOAuthRidRequestDTO"},"McpSetupDTO":{"properties":{"mcpUrl":{"type":"string","title":"Mcpurl"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["mcpUrl","enabled"],"title":"McpSetupDTO"},"MerchantAccountDTO":{"properties":{"storeId":{"type":"string","format":"uuid","title":"Storeid"},"userId":{"type":"string","format":"uuid","title":"Userid"},"merchantPublicId":{"type":"integer","title":"Merchantpublicid"},"merchantName":{"type":"string","title":"Merchantname"},"domain":{"type":"string","title":"Domain"},"user":{"$ref":"#/components/schemas/UserDTO"},"subscriptionType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriptiontype"},"revenueArr":{"type":"number","title":"Revenuearr"},"currency":{"type":"string","title":"Currency"},"bundleCount":{"type":"integer","title":"Bundlecount"},"status":{"$ref":"#/components/schemas/AccountStatus"},"validUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Validuntil"},"createdOn":{"type":"string","format":"date-time","title":"Createdon"}},"type":"object","required":["storeId","userId","merchantPublicId","merchantName","domain","user","subscriptionType","revenueArr","currency","bundleCount","status","validUntil","createdOn"],"title":"MerchantAccountDTO"},"MerchantAccountDetailDTO":{"properties":{"storeId":{"type":"string","format":"uuid","title":"Storeid"},"userId":{"type":"string","format":"uuid","title":"Userid"},"merchantPublicId":{"type":"integer","title":"Merchantpublicid"},"merchantName":{"type":"string","title":"Merchantname"},"domain":{"type":"string","title":"Domain"},"user":{"$ref":"#/components/schemas/UserDTO"},"subscriptionType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriptiontype"},"revenueArr":{"type":"number","title":"Revenuearr"},"currency":{"type":"string","title":"Currency"},"bundleCount":{"type":"integer","title":"Bundlecount"},"status":{"$ref":"#/components/schemas/AccountStatus"},"validUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Validuntil"},"createdOn":{"type":"string","format":"date-time","title":"Createdon"},"planId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Planid"},"planExternalRef":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planexternalref"},"planMonthlyCost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Planmonthlycost"},"planPeriod":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planperiod"},"planDurationDays":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plandurationdays"},"maxBundleCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxbundlecount"},"maxSalesCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxsalescount"},"usageRatePct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usageratepct"},"country":{"type":"string","title":"Country"},"billingProviderOverride":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billingprovideroverride"},"resolvedBillingProvider":{"type":"string","title":"Resolvedbillingprovider"}},"type":"object","required":["storeId","userId","merchantPublicId","merchantName","domain","user","subscriptionType","revenueArr","currency","bundleCount","status","validUntil","createdOn","planId","planExternalRef","planMonthlyCost","planPeriod","planDurationDays","maxBundleCount","maxSalesCount","usageRatePct","country","billingProviderOverride","resolvedBillingProvider"],"title":"MerchantAccountDetailDTO","description":"Enriched DTO returned by the admin Account Details endpoint."},"MerchantAccountsSummaryDTO":{"properties":{"totalRevenueFocus":{"type":"number","title":"Totalrevenuefocus"},"revenueDeltaPct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revenuedeltapct"},"renewalHealthPct":{"type":"number","title":"Renewalhealthpct"},"renewalAtRiskCount":{"type":"integer","title":"Renewalatriskcount"},"conversionRatePct":{"type":"number","title":"Conversionratepct"},"conversionDeltaPct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Conversiondeltapct"}},"type":"object","required":["totalRevenueFocus","revenueDeltaPct","renewalHealthPct","renewalAtRiskCount","conversionRatePct","conversionDeltaPct"],"title":"MerchantAccountsSummaryDTO"},"MerchantOrderSyncMode":{"type":"string","enum":["auto","backfill","incremental"],"title":"MerchantOrderSyncMode","description":"How an admin-triggered merchant order sync should run."},"MixMatchBundleResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"storeId":{"type":"string","format":"uuid","title":"Storeid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"priority":{"type":"integer","title":"Priority"},"combinesWith":{"additionalProperties":true,"type":"object","title":"Combineswith"},"freeShipping":{"type":"boolean","title":"Freeshipping"},"showPromotionalPrice":{"type":"boolean","title":"Showpromotionalprice"},"discountMode":{"$ref":"#/components/schemas/MixMatchDiscountMode"},"globalDiscount":{"anyOf":[{"$ref":"#/components/schemas/src__mix_match_bundle__api__dtos__merchant_dtos__GlobalDiscountDTO"},{"type":"null"}]},"components":{"items":{"$ref":"#/components/schemas/ComponentResponseDTO"},"type":"array","title":"Components"},"virtualProduct":{"anyOf":[{"$ref":"#/components/schemas/VirtualProductResponseDTO"},{"type":"null"}]},"lastTransitionError":{"anyOf":[{"$ref":"#/components/schemas/TransitionErrorDTO"},{"type":"null"}]},"componentAvailabilityIssue":{"anyOf":[{"$ref":"#/components/schemas/ComponentAvailabilityIssueResponseDTO"},{"type":"null"}]},"createdOn":{"type":"string","format":"date-time","title":"Createdon"},"updatedOn":{"type":"string","format":"date-time","title":"Updatedon"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["id","storeId","name","description","status","priority","combinesWith","freeShipping","showPromotionalPrice","discountMode","globalDiscount","components","virtualProduct","lastTransitionError","componentAvailabilityIssue","createdOn","updatedOn","version"],"title":"MixMatchBundleResponseDTO","description":"Full mix-match bundle aggregate as returned to the admin client.\n\nArgs:\n    id: Persistent bundle id.\n    store_id: Owning merchant store id.\n    name: Merchant-visible bundle name.\n    description: Long-form description when present.\n    status: Current lifecycle status.\n    priority: Overlap tie-breaker priority.\n    combines_with: Tiendanube discount-combinability config.\n    free_shipping: Whether the virtual landing product advertises free shipping.\n    show_promotional_price: Whether the virtual product variant exposes the\n        computed promotional price.\n    discount_mode: Active discount mode of the bundle.\n    global_discount: Bundle-level pricing rule, present only in\n        ``global_discount`` mode.\n    components: Ordered component slots.\n    virtual_product: Tiendanube landing product reference after publish.\n    last_transition_error: Reason the most recent transient transition\n        failed, when present.\n    created_on: Creation timestamp (UTC).\n    updated_on: Last mutation timestamp (UTC).\n    version: Optimistic-locking version counter."},"MixMatchDiscountMode":{"type":"string","enum":["per_item_discount","global_discount","visual_only"],"title":"MixMatchDiscountMode","description":"How a mix-match bundle applies its discount at checkout.\n\nThe three modes are mutually exclusive: a bundle either discounts each\ncomponent slot independently (``PER_ITEM_DISCOUNT``), applies a single\npricing rule to the whole bundle aggregate (``GLOBAL_DISCOUNT``), or opts\nout of checkout discounts while keeping the curated picker UX\n(``VISUAL_ONLY``)."},"NotificationDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"severity":{"type":"string","enum":["info","warning","error","critical"],"title":"Severity"},"source":{"type":"string","title":"Source"},"title":{"$ref":"#/components/schemas/LocalizedTextDTO"},"body":{"$ref":"#/components/schemas/LocalizedTextDTO"},"actions":{"items":{"oneOf":[{"$ref":"#/components/schemas/LinkActionDTO"},{"$ref":"#/components/schemas/CommandActionDTO"}],"discriminator":{"propertyName":"kind","mapping":{"command":"#/components/schemas/CommandActionDTO","link":"#/components/schemas/LinkActionDTO"}}},"type":"array","title":"Actions"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"readAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Readat"}},"type":"object","required":["id","type","severity","source","title","body","actions","createdAt"],"title":"NotificationDTO"},"OfferOpportunitiesEnabledDTO":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"OfferOpportunitiesEnabledDTO","description":"Lightweight merchant-visibility probe for the Opportunities page."},"OfferOpportunityDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"products":{"items":{"$ref":"#/components/schemas/OpportunityProductDTO"},"type":"array","title":"Products"},"metrics":{"$ref":"#/components/schemas/OpportunityMetricsDTO"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"matchType":{"type":"string","title":"Matchtype"},"matchedOffers":{"items":{"$ref":"#/components/schemas/MatchedOfferDTO"},"type":"array","title":"Matchedoffers"},"overlapsExistingOffer":{"type":"boolean","title":"Overlapsexistingoffer"},"action":{"anyOf":[{"$ref":"#/components/schemas/OpportunityActionDTO"},{"type":"null"}]},"computedAt":{"type":"string","format":"date-time","title":"Computedat"},"stockAsOf":{"type":"string","format":"date-time","title":"Stockasof"}},"type":"object","required":["id","products","metrics","labels","matchType","matchedOffers","overlapsExistingOffer","computedAt","stockAsOf"],"title":"OfferOpportunityDTO","description":"Offer Opportunity row for the merchant list API."},"OfferOpportunityDetailDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"products":{"items":{"$ref":"#/components/schemas/OpportunityProductDTO"},"type":"array","title":"Products"},"metrics":{"$ref":"#/components/schemas/OpportunityDetailMetricsDTO"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"matchType":{"type":"string","title":"Matchtype"},"matchedOffers":{"items":{"$ref":"#/components/schemas/MatchedOfferDTO"},"type":"array","title":"Matchedoffers"},"overlapsExistingOffer":{"type":"boolean","title":"Overlapsexistingoffer"},"action":{"anyOf":[{"$ref":"#/components/schemas/OpportunityActionDTO"},{"type":"null"}]},"computedAt":{"type":"string","format":"date-time","title":"Computedat"},"stockAsOf":{"type":"string","format":"date-time","title":"Stockasof"}},"type":"object","required":["id","products","metrics","labels","matchType","matchedOffers","overlapsExistingOffer","computedAt","stockAsOf"],"title":"OfferOpportunityDetailDTO","description":"Detail view with full significance metrics."},"OfferOpportunityRolloutDTO":{"properties":{"processingEnabled":{"type":"boolean","title":"Processingenabled"},"merchantVisible":{"type":"boolean","title":"Merchantvisible"}},"type":"object","required":["processingEnabled","merchantVisible"],"title":"OfferOpportunityRolloutDTO","description":"Processing and merchant-visibility flags for one store."},"OfferTargetType":{"type":"string","enum":["combo","kit","complementary"],"title":"OfferTargetType","description":"Offer kinds an Offer Opportunity can seed."},"OpportunityActionDTO":{"properties":{"action":{"type":"string","title":"Action"},"createdOfferId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Createdofferid"},"createdOfferType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdoffertype"},"actedAt":{"type":"string","format":"date-time","title":"Actedat"}},"type":"object","required":["action","actedAt"],"title":"OpportunityActionDTO","description":"Merchant action recorded against an opportunity."},"OpportunityDetailMetricsDTO":{"properties":{"lift":{"type":"number","title":"Lift"},"orderCount":{"type":"integer","title":"Ordercount"},"uniqueCustomerCount":{"type":"integer","title":"Uniquecustomercount"},"coPurchaseConfidence":{"type":"number","title":"Copurchaseconfidence"},"seasonalityLift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Seasonalitylift"},"estimatedPrice":{"type":"number","title":"Estimatedprice"},"opportunityScore":{"type":"number","title":"Opportunityscore"},"pValue":{"type":"number","title":"Pvalue"},"qValue":{"type":"number","title":"Qvalue"}},"type":"object","required":["lift","orderCount","uniqueCustomerCount","coPurchaseConfidence","seasonalityLift","estimatedPrice","opportunityScore","pValue","qValue"],"title":"OpportunityDetailMetricsDTO","description":"Detail metrics including significance breakdown."},"OpportunityLabel":{"type":"string","enum":["seasonal","high_frequency","popular"],"title":"OpportunityLabel","description":"Display-only badges derived at compute time."},"OpportunityListResponseDTO":{"properties":{"data":{"items":{"$ref":"#/components/schemas/OfferOpportunityDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"},"eligible":{"type":"boolean","title":"Eligible"},"closedOrderCount":{"type":"integer","title":"Closedordercount"},"minClosedOrdersRequired":{"type":"integer","title":"Minclosedordersrequired"},"lastComputedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastcomputedat"},"hasSeasonality":{"type":"boolean","title":"Hasseasonality"}},"type":"object","required":["data","pagination","eligible","closedOrderCount","minClosedOrdersRequired","lastComputedAt","hasSeasonality"],"title":"OpportunityListResponseDTO","description":"Paginated opportunity list plus eligibility metadata."},"OpportunityMetricsDTO":{"properties":{"lift":{"type":"number","title":"Lift"},"orderCount":{"type":"integer","title":"Ordercount"},"uniqueCustomerCount":{"type":"integer","title":"Uniquecustomercount"},"coPurchaseConfidence":{"type":"number","title":"Copurchaseconfidence"},"seasonalityLift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Seasonalitylift"},"estimatedPrice":{"type":"number","title":"Estimatedprice"},"opportunityScore":{"type":"number","title":"Opportunityscore"}},"type":"object","required":["lift","orderCount","uniqueCustomerCount","coPurchaseConfidence","seasonalityLift","estimatedPrice","opportunityScore"],"title":"OpportunityMetricsDTO","description":"Computed metrics exposed on the opportunity list."},"OpportunityProductDTO":{"properties":{"productId":{"type":"integer","title":"Productid"},"name":{"type":"string","title":"Name"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imageurl"},"minPrice":{"type":"number","title":"Minprice"},"inStock":{"type":"boolean","title":"Instock"}},"type":"object","required":["productId","name","imageUrl","minPrice","inStock"],"title":"OpportunityProductDTO","description":"Live product display fields for one opportunity card."},"OpportunitySortBy":{"type":"string","enum":["opportunity_score","price","buy_frequency","reach"],"title":"OpportunitySortBy","description":"Sort key for listing Offer Opportunities."},"OrderEventCreateDTO":{"properties":{"merchant_order_id":{"type":"integer","title":"Merchant Order Id"},"order_value":{"type":"number","title":"Order Value"},"bundle_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Bundle Ids"},"subscription_cycle_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscription Cycle Start"},"subscription_cycle_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscription Cycle End"}},"type":"object","required":["merchant_order_id","order_value"],"title":"OrderEventCreateDTO","description":"DTO for creating an order event.","example":{"bundle_ids":["123e4567-e89b-12d3-a456-426614174000","123e4567-e89b-12d3-a456-426614174001","123e4567-e89b-12d3-a456-426614174002"],"merchant_order_id":12345,"order_value":99.99,"subscription_cycle_end":"2024-01-31T23:59:59Z","subscription_cycle_start":"2024-01-01T00:00:00Z"}},"OrderEventResponseDTO":{"properties":{"id":{"type":"string","title":"Id"},"store_id":{"type":"string","title":"Store Id"},"merchant_order_id":{"type":"integer","title":"Merchant Order Id"},"order_value":{"type":"number","title":"Order Value"},"bundle_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Bundle Ids"},"processed_at":{"type":"string","format":"date-time","title":"Processed At"},"subscription_cycle_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscription Cycle Start"},"subscription_cycle_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscription Cycle End"}},"type":"object","required":["id","store_id","merchant_order_id","order_value","bundle_ids","processed_at","subscription_cycle_start","subscription_cycle_end"],"title":"OrderEventResponseDTO","description":"DTO for order event response.","example":{"bundle_ids":["123e4567-e89b-12d3-a456-426614174000","123e4567-e89b-12d3-a456-426614174001","123e4567-e89b-12d3-a456-426614174002"],"id":"123e4567-e89b-12d3-a456-426614174000","merchant_order_id":12345,"order_value":99.99,"processed_at":"2024-01-15T10:30:00Z","store_id":"987fcdeb-51a2-43d1-9f12-345678901234","subscription_cycle_end":"2024-01-31T23:59:59Z","subscription_cycle_start":"2024-01-01T00:00:00Z"}},"OrderStatusEnum":{"type":"string","enum":["open","closed","cancelled"],"title":"OrderStatusEnum"},"PaddleCheckoutConfigDTO":{"properties":{"paddlePriceId":{"type":"string","title":"Paddlepriceid"},"customerEmail":{"type":"string","title":"Customeremail"},"customData":{"additionalProperties":{"type":"string"},"type":"object","title":"Customdata"}},"type":"object","required":["paddlePriceId","customerEmail","customData"],"title":"PaddleCheckoutConfigDTO","description":"What the frontend needs to open ``Paddle.Checkout``."},"Page_BogoBundleResponseDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BogoBundleResponseDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[BogoBundleResponseDTO]"},"Page_BundleAnalyticsAggregateDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BundleAnalyticsAggregateDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[BundleAnalyticsAggregateDTO]"},"Page_BundlePreviewDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BundlePreviewDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[BundlePreviewDTO]"},"Page_JobQueueStatsDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/JobQueueStatsDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[JobQueueStatsDTO]"},"Page_KitResponseDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/KitResponseDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[KitResponseDTO]"},"Page_LinkedCatalogProductDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/LinkedCatalogProductDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[LinkedCatalogProductDTO]"},"Page_LogEntryDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/LogEntryDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[LogEntryDTO]"},"Page_MerchantAccountDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/MerchantAccountDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[MerchantAccountDTO]"},"Page_NotificationDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/NotificationDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[NotificationDTO]"},"Page_ProcessedOrderDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ProcessedOrderDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[ProcessedOrderDTO]"},"Page_PublicationCatalogProductDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PublicationCatalogProductDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[PublicationCatalogProductDTO]"},"Page_StockUpdateDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StockUpdateDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[StockUpdateDTO]"},"Page_StoreBundleSummaryDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StoreBundleSummaryDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[StoreBundleSummaryDTO]"},"Page_StoreCategoryDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StoreCategoryDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[StoreCategoryDTO]"},"Page_StoreOrderDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StoreOrderDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[StoreOrderDTO]"},"Page_StoreProductDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StoreProductDTO"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationMetadata"}},"type":"object","required":["data","pagination"],"title":"Page[StoreProductDTO]"},"PaginationMetadata":{"properties":{"totalCount":{"type":"integer","title":"Totalcount"},"pageSize":{"type":"integer","title":"Pagesize"},"offset":{"type":"integer","title":"Offset","default":0}},"type":"object","required":["totalCount","pageSize"],"title":"PaginationMetadata"},"PickerBundleConfigDTO":{"properties":{"bundleId":{"type":"string","format":"uuid","title":"Bundleid"},"version":{"type":"integer","title":"Version"},"discountMode":{"type":"string","enum":["per_item_discount","global_discount","visual_only"],"title":"Discountmode","default":"per_item_discount"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"globalDiscount":{"anyOf":[{"$ref":"#/components/schemas/src__mix_match_bundle__api__dtos__public_dtos__PickerGlobalDiscountDTO"},{"type":"null"}]},"components":{"items":{"$ref":"#/components/schemas/PickerComponentDTO"},"type":"array","title":"Components"}},"type":"object","required":["bundleId","version","name","components"],"title":"PickerBundleConfigDTO","description":"Bundle definition returned to storefront JS (PRD §11.3, §8).\n\nArgs:\n    bundle_id: Persistent bundle identifier.\n    version: Optimistic-locking version; changes when the bundle is edited.\n    discount_mode: ``per_item_discount``, ``global_discount``, or\n        ``visual_only``.\n    name: Merchant-visible bundle name.\n    description: Optional long-form description.\n    global_discount: Bundle-level pricing rule, present only in\n        ``global_discount`` mode.\n    components: Ordered picker slots."},"PickerComponentDTO":{"properties":{"merchantProductId":{"type":"integer","title":"Merchantproductid"},"quantity":{"type":"integer","title":"Quantity"},"variantLockMode":{"type":"string","title":"Variantlockmode"},"variantSelectionMode":{"type":"string","title":"Variantselectionmode","default":"PER_UNIT"},"allowedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Allowedvariantids"},"slotDiscount":{"$ref":"#/components/schemas/SlotDiscountDTO"}},"type":"object","required":["merchantProductId","quantity","variantLockMode","allowedVariantIds","slotDiscount"],"title":"PickerComponentDTO","description":"Component slot in the picker render contract (PRD §11.3).\n\nArgs:\n    merchant_product_id: Tiendanube product id for the slot.\n    quantity: Required units of the product.\n    variant_lock_mode: ``LOCKED`` or ``ANY``.\n    allowed_variant_ids: Eligible variant ids when locked; empty when any.\n    slot_discount: Informational per-slot discount for picker copy.\n    variant_selection_mode: ``SAME_VARIANT`` or ``PER_UNIT`` for multi-qty slots."},"PickerElementDTO":{"properties":{"merchantProductId":{"type":"integer","title":"Merchantproductid"},"required":{"type":"boolean","title":"Required"},"minQuantity":{"type":"integer","title":"Minquantity"},"maxQuantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxquantity"},"variantLockMode":{"type":"string","title":"Variantlockmode"},"allowedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Allowedvariantids"},"elementDiscount":{"$ref":"#/components/schemas/src__kit_bundle__api__dtos__public_dtos__ElementDiscountDTO"}},"type":"object","required":["merchantProductId","required","minQuantity","variantLockMode","allowedVariantIds","elementDiscount"],"title":"PickerElementDTO","description":"Selectable element in the kit picker render contract (PRD §11.3).\n\nArgs:\n    merchant_product_id: Tiendanube product id for the element.\n    required: Whether the element must be selected for the kit to qualify.\n    min_quantity: Minimum units of the product in the selection.\n    max_quantity: Maximum discounted units; ``None`` means unbounded.\n    variant_lock_mode: ``LOCKED`` or ``ANY``.\n    allowed_variant_ids: Eligible variant ids when locked; empty when any.\n    element_discount: Informational per-element discount for picker copy."},"PickerSectionDTO":{"properties":{"sectionId":{"type":"string","format":"uuid","title":"Sectionid"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"minSelections":{"type":"integer","title":"Minselections"},"maxSelections":{"type":"integer","title":"Maxselections"},"maxUnits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxunits"},"required":{"type":"boolean","title":"Required"},"eligibilityType":{"$ref":"#/components/schemas/KitEligibilityType","default":"product_pool"},"categoryId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Categoryid"},"elements":{"items":{"$ref":"#/components/schemas/PickerElementDTO"},"type":"array","title":"Elements"}},"type":"object","required":["sectionId","title","minSelections","maxSelections","required","elements"],"title":"PickerSectionDTO","description":"Composite section in the storefront picker (FEATURE_SPEC §4.2).\n\nArgs:\n    section_id: Persistent section identifier.\n    title: Buyer-facing section heading.\n    description: Optional helper copy under the title.\n    min_selections: Minimum distinct elements the buyer must pick.\n    max_selections: Maximum distinct elements the buyer may pick.\n    max_units: Optional cap on total units across the section.\n    required: Whether the buyer must satisfy ``min_selections``.\n    eligibility_type: Explicit product pool or Tiendanube category eligibility.\n    category_id: Tiendanube category id when ``eligibility_type`` is ``category``.\n    elements: Ordered product slots within the section."},"PlanDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"externalRef":{"type":"string","title":"Externalref"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"price":{"type":"number","title":"Price"},"priceUsd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Priceusd"},"period":{"$ref":"#/components/schemas/PlanPeriod"},"durationDays":{"type":"integer","title":"Durationdays"},"isActive":{"type":"boolean","title":"Isactive"},"maxBundleCount":{"type":"integer","title":"Maxbundlecount"},"maxSalesCount":{"type":"integer","title":"Maxsalescount"},"maxMixMatchBundleCount":{"type":"integer","title":"Maxmixmatchbundlecount"},"maxMixMatchSalesCount":{"type":"integer","title":"Maxmixmatchsalescount"},"maxKitCount":{"type":"integer","title":"Maxkitcount"},"maxKitSalesCount":{"type":"integer","title":"Maxkitsalescount"},"maxBogoCount":{"type":"integer","title":"Maxbogocount"},"maxBogoSalesCount":{"type":"integer","title":"Maxbogosalescount"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","externalRef","name","description","price","priceUsd","period","durationDays","isActive","maxBundleCount","maxSalesCount","maxMixMatchBundleCount","maxMixMatchSalesCount","maxKitCount","maxKitSalesCount","maxBogoCount","maxBogoSalesCount","createdAt","updatedAt"],"title":"PlanDTO","description":"DTO for plan response."},"PlanPeriod":{"type":"string","enum":["monthly","yearly"],"title":"PlanPeriod","description":"Billing period for a subscription plan."},"PopularBundleDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"bundleType":{"$ref":"#/components/schemas/src__bff__domain__store_bundle_ref__StoreBundleType"},"createdOn":{"type":"string","format":"date-time","title":"Createdon"},"updatedOn":{"type":"string","format":"date-time","title":"Updatedon"},"soldCount":{"type":"integer","title":"Soldcount"}},"type":"object","required":["id","name","status","bundleType","createdOn","updatedOn","soldCount"],"title":"PopularBundleDTO"},"PreRegisterCredentials":{"properties":{"fullName":{"type":"string","title":"Fullname"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"password":{"type":"string","format":"password","title":"Password","writeOnly":true},"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["fullName","password","email"],"title":"PreRegisterCredentials"},"ProcessedOrderDTO":{"properties":{"merchantOrderId":{"type":"integer","title":"Merchantorderid"},"orderValue":{"type":"number","title":"Ordervalue"},"bundleReferences":{"items":{"$ref":"#/components/schemas/BundleReferenceDTO"},"type":"array","title":"Bundlereferences"},"processedAt":{"type":"string","format":"date-time","title":"Processedat"},"status":{"type":"string","title":"Status"}},"type":"object","required":["merchantOrderId","orderValue","bundleReferences","processedAt","status"],"title":"ProcessedOrderDTO"},"ProfileDTO":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"fullName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fullname"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"userId":{"type":"string","format":"uuid","title":"Userid"},"storeId":{"type":"string","format":"uuid","title":"Storeid"},"storeName":{"type":"string","title":"Storename"},"storeDomain":{"type":"string","title":"Storedomain"},"subscription":{"$ref":"#/components/schemas/CurrentSubscription"}},"type":"object","required":["email","userId","storeId","storeName","storeDomain","subscription"],"title":"ProfileDTO"},"PublicationCatalogProductDTO":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"imageUrl":{"type":"string","title":"Imageurl"},"sku":{"type":"string","title":"Sku"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"},"variantCount":{"type":"integer","title":"Variantcount"},"variants":{"items":{"$ref":"#/components/schemas/PublicationCatalogVariantDTO"},"type":"array","title":"Variants"}},"type":"object","required":["id","name","imageUrl","sku","price","variantCount","variants"],"title":"PublicationCatalogProductDTO","description":"Eligible publication product from catalog search."},"PublicationCatalogVariantDTO":{"properties":{"id":{"type":"integer","title":"Id"},"sku":{"type":"string","title":"Sku"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"},"stock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stock"}},"type":"object","required":["id","sku","price","stock"],"title":"PublicationCatalogVariantDTO","description":"One variant on a publication catalog search row."},"PublicationLinkDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"storeId":{"type":"string","format":"uuid","title":"Storeid"},"publicationProductId":{"type":"integer","title":"Publicationproductid"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/PublicationLinkStatus"},"minStockThreshold":{"type":"integer","title":"Minstockthreshold"},"variantMappings":{"items":{"$ref":"#/components/schemas/PublicationVariantMappingDTO"},"type":"array","title":"Variantmappings"},"createdOn":{"type":"string","format":"date-time","title":"Createdon"},"updatedOn":{"type":"string","format":"date-time","title":"Updatedon"}},"type":"object","required":["id","storeId","publicationProductId","name","status","minStockThreshold","variantMappings","createdOn","updatedOn"],"title":"PublicationLinkDTO"},"PublicationLinkDetailDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"storeId":{"type":"string","format":"uuid","title":"Storeid"},"publicationProductId":{"type":"integer","title":"Publicationproductid"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/PublicationLinkStatus"},"minStockThreshold":{"type":"integer","title":"Minstockthreshold"},"variantMappings":{"items":{"$ref":"#/components/schemas/PublicationVariantMappingDetailDTO"},"type":"array","title":"Variantmappings"},"createdOn":{"type":"string","format":"date-time","title":"Createdon"},"updatedOn":{"type":"string","format":"date-time","title":"Updatedon"},"imageUrl":{"type":"string","title":"Imageurl","default":""},"sku":{"type":"string","title":"Sku","default":""},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"}},"type":"object","required":["id","storeId","publicationProductId","name","status","minStockThreshold","variantMappings","createdOn","updatedOn"],"title":"PublicationLinkDetailDTO"},"PublicationLinkStatus":{"type":"string","enum":["draft","active","paused","error"],"title":"PublicationLinkStatus","description":"Lifecycle status of a publication link."},"PublicationLinkSummaryDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/PublicationLinkStatus"},"publicationProductId":{"type":"integer","title":"Publicationproductid"},"updatedOn":{"type":"string","format":"date-time","title":"Updatedon"}},"type":"object","required":["id","name","status","publicationProductId","updatedOn"],"title":"PublicationLinkSummaryDTO"},"PublicationVariantMappingDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"publicationVariantId":{"type":"integer","title":"Publicationvariantid"},"composition":{"items":{"$ref":"#/components/schemas/CompositionItemDTO"},"type":"array","title":"Composition"}},"type":"object","required":["id","publicationVariantId","composition"],"title":"PublicationVariantMappingDTO"},"PublicationVariantMappingDetailDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"publicationVariantId":{"type":"integer","title":"Publicationvariantid"},"composition":{"items":{"$ref":"#/components/schemas/CompositionItemDetailDTO"},"type":"array","title":"Composition"},"derivedStock":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/UnconstrainedDerivedStockDTO"},{"$ref":"#/components/schemas/FiniteDerivedStockDTO"}],"discriminator":{"propertyName":"kind","mapping":{"finite":"#/components/schemas/FiniteDerivedStockDTO","unconstrained":"#/components/schemas/UnconstrainedDerivedStockDTO"}}},{"type":"null"}],"title":"Derivedstock"},"variantLabel":{"type":"string","title":"Variantlabel","default":""},"sku":{"type":"string","title":"Sku","default":""},"tiendanubeStock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tiendanubestock"}},"type":"object","required":["id","publicationVariantId","composition"],"title":"PublicationVariantMappingDetailDTO"},"PublicationVariantMappingIntentionDTO":{"properties":{"publicationVariantId":{"type":"integer","title":"Publicationvariantid"},"composition":{"items":{"$ref":"#/components/schemas/CompositionItemIntentionDTO"},"type":"array","title":"Composition","default":[]}},"type":"object","required":["publicationVariantId"],"title":"PublicationVariantMappingIntentionDTO"},"PublishBogoBundleResponseDTO":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"PublishBogoBundleResponseDTO","description":"Response body for a BOGO bundle lifecycle transition request.\n\nArgs:\n    status: Lifecycle status after the request (e.g. ``PUBLISHING``)."},"PublishKitResponseDTO":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"PublishKitResponseDTO","description":"Response body for a kit lifecycle transition request.\n\nArgs:\n    status: Lifecycle status after the request (e.g. ``PUBLISHING``)."},"PublishMixMatchBundleResponseDTO":{"properties":{"status":{"type":"string","title":"Status"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","default":[]}},"type":"object","required":["status"],"title":"PublishMixMatchBundleResponseDTO","description":"Response body for a lifecycle transition request.\n\nArgs:\n    status: Lifecycle status after the request (e.g. ``PUBLISHING``). On a\n        blocked publish this is the unchanged status (typically ``DRAFT``).\n    warnings: Stable warning codes; non-empty only when a publish was blocked\n        (e.g. storefront script registration failed) and should be retried."},"QuantityTierDTO":{"properties":{"minQuantity":{"type":"integer","title":"Minquantity"},"discountType":{"$ref":"#/components/schemas/SlotDiscountType"},"discountValue":{"type":"number","title":"Discountvalue"},"tierOrder":{"type":"integer","title":"Tierorder"}},"type":"object","required":["minQuantity","discountType","discountValue","tierOrder"],"title":"QuantityTierDTO","description":"Quantity tier payload exchanged with the admin client.\n\nArgs:\n    min_quantity: Unit threshold for the tier.\n    discount_type: Discount kind for the tier.\n    discount_value: Discount magnitude.\n    tier_order: Display and evaluation ordering index."},"QuantityTierResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"minQuantity":{"type":"integer","title":"Minquantity"},"discountType":{"$ref":"#/components/schemas/SlotDiscountType"},"discountValue":{"type":"number","title":"Discountvalue"},"tierOrder":{"type":"integer","title":"Tierorder"}},"type":"object","required":["id","minQuantity","discountType","discountValue","tierOrder"],"title":"QuantityTierResponseDTO","description":"Quantity tier as returned to the admin client."},"RatioRuleDTO":{"properties":{"buyQuantity":{"type":"integer","title":"Buyquantity"},"payQuantity":{"type":"integer","title":"Payquantity"}},"type":"object","required":["buyQuantity","payQuantity"],"title":"RatioRuleDTO","description":"NxM ratio rule payload exchanged with the admin client.\n\nArgs:\n    buy_quantity: Total units per group (N).\n    pay_quantity: Units the buyer pays for per group (M)."},"RatioRuleResponseDTO":{"properties":{"buyQuantity":{"type":"integer","title":"Buyquantity"},"payQuantity":{"type":"integer","title":"Payquantity"}},"type":"object","required":["buyQuantity","payQuantity"],"title":"RatioRuleResponseDTO","description":"NxM ratio rule as returned to the admin client."},"RatioSurfaceDTO":{"properties":{"buyQuantity":{"type":"integer","title":"Buyquantity"},"payQuantity":{"type":"integer","title":"Payquantity"}},"type":"object","required":["buyQuantity","payQuantity"],"title":"RatioSurfaceDTO","description":"NxM ratio rule in the QUANTITY_BREAK surface contract (PRD §11.3).\n\nArgs:\n    buy_quantity: Total units per group (N).\n    pay_quantity: Units the buyer pays for per group (M)."},"RemoveDiscountCartSpecs":{"properties":{"scope":{"type":"string","const":"cart","title":"Scope","default":"cart"},"promotion_ids":{"items":{"type":"string"},"type":"array","title":"Promotion Ids"}},"type":"object","required":["promotion_ids"],"title":"RemoveDiscountCartSpecs","description":"Payload for removing one or more promotions from the cart."},"RemoveDiscountCommand":{"properties":{"command":{"type":"string","const":"remove_discount","title":"Command","default":"remove_discount"},"specs":{"anyOf":[{"$ref":"#/components/schemas/RemoveDiscountLineItemSpecs"},{"$ref":"#/components/schemas/RemoveDiscountCartSpecs"}],"title":"Specs"}},"type":"object","required":["specs"],"title":"RemoveDiscountCommand","description":"Tiendanube command to remove an applied discount."},"RemoveDiscountLineItemSpecs":{"properties":{"scope":{"type":"string","const":"line_item","title":"Scope","default":"line_item"},"promotion_id":{"type":"string","title":"Promotion Id"},"line_items":{"items":{"type":"string"},"type":"array","title":"Line Items"}},"type":"object","required":["promotion_id","line_items"],"title":"RemoveDiscountLineItemSpecs","description":"Payload for removing a promotion from specific cart lines."},"RevenueByProviderDTO":{"properties":{"classic":{"type":"number","title":"Classic","default":0.0},"mixMatch":{"type":"number","title":"Mixmatch","default":0.0},"kit":{"type":"number","title":"Kit","default":0.0},"bogo":{"type":"number","title":"Bogo","default":0.0}},"type":"object","title":"RevenueByProviderDTO","description":"Attributed revenue totals keyed by bundle provider."},"RewardKind":{"type":"string","enum":["VOLUME_TIER","RATIO"],"title":"RewardKind","description":"Reward shape for ``QUANTITY_BREAK`` mode."},"RewardSlotDTO":{"properties":{"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"quantity":{"type":"integer","title":"Quantity"},"variantLockMode":{"$ref":"#/components/schemas/VariantLockMode"},"lockedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Lockedvariantids"},"rewardDiscountType":{"$ref":"#/components/schemas/SlotDiscountType"},"rewardDiscountValue":{"type":"number","title":"Rewarddiscountvalue"},"slotOrder":{"type":"integer","title":"Slotorder"}},"type":"object","required":["merchantStoreProductId","quantity","variantLockMode","rewardDiscountType","rewardDiscountValue","slotOrder"],"title":"RewardSlotDTO","description":"Reward slot payload exchanged with the admin client.\n\nArgs:\n    merchant_store_product_id: Tiendanube product id referenced by the slot.\n    quantity: Granted units for the reward.\n    variant_lock_mode: Whether variant selection is locked or unrestricted.\n    locked_variant_ids: Eligible variant ids when ``variant_lock_mode`` is\n        ``LOCKED``; empty when mode is ``ANY``.\n    reward_discount_type: Reward discount kind.\n    reward_discount_value: Reward discount magnitude.\n    slot_order: Display and evaluation ordering index."},"RewardSlotResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"quantity":{"type":"integer","title":"Quantity"},"variantLockMode":{"$ref":"#/components/schemas/VariantLockMode"},"lockedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Lockedvariantids"},"rewardDiscountType":{"$ref":"#/components/schemas/SlotDiscountType"},"rewardDiscountValue":{"type":"number","title":"Rewarddiscountvalue"},"slotOrder":{"type":"integer","title":"Slotorder"}},"type":"object","required":["id","merchantStoreProductId","quantity","variantLockMode","lockedVariantIds","rewardDiscountType","rewardDiscountValue","slotOrder"],"title":"RewardSlotResponseDTO","description":"Reward slot as returned to the admin client."},"RewardSlotSurfaceDTO":{"properties":{"merchantProductId":{"type":"integer","title":"Merchantproductid"},"quantity":{"type":"integer","title":"Quantity"},"variantLockMode":{"type":"string","title":"Variantlockmode"},"allowedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Allowedvariantids"},"rewardDiscount":{"$ref":"#/components/schemas/SurfaceDiscountDTO"}},"type":"object","required":["merchantProductId","quantity","variantLockMode","allowedVariantIds","rewardDiscount"],"title":"RewardSlotSurfaceDTO","description":"Reward slot in the BUY_X_GET_Y surface contract (PRD §11.3).\n\nArgs:\n    merchant_product_id: Tiendanube product id for the reward slot.\n    quantity: Granted units for the reward.\n    variant_lock_mode: ``LOCKED`` or ``ANY``.\n    allowed_variant_ids: Eligible variant ids when locked; empty when any.\n    reward_discount: Discount applied to granted reward units."},"SavePublicationLinkDraftRequestDTO":{"properties":{"publicationProductId":{"type":"integer","title":"Publicationproductid"},"minStockThreshold":{"type":"integer","title":"Minstockthreshold","default":0},"variantMappings":{"items":{"$ref":"#/components/schemas/PublicationVariantMappingIntentionDTO"},"type":"array","title":"Variantmappings"}},"type":"object","required":["publicationProductId","variantMappings"],"title":"SavePublicationLinkDraftRequestDTO"},"SectionDTO":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"sectionOrder":{"type":"integer","title":"Sectionorder"},"minSelections":{"type":"integer","title":"Minselections","default":1},"maxSelections":{"type":"integer","title":"Maxselections","default":1},"maxUnits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxunits"},"required":{"type":"boolean","title":"Required","default":true},"eligibilityType":{"$ref":"#/components/schemas/KitEligibilityType","default":"product_pool"},"categoryId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Categoryid"}},"type":"object","required":["title","sectionOrder"],"title":"SectionDTO","description":"Composite section payload supplied on kit create or update.\n\nArgs:\n    id: Persistent section id; omit on create to let the server assign one.\n    title: Buyer-facing section heading.\n    description: Optional helper copy under the title.\n    section_order: Display order within the kit.\n    min_selections: Minimum distinct elements the buyer must pick.\n    max_selections: Maximum distinct elements the buyer may pick.\n    max_units: Optional cap on total units across the section.\n    required: Whether the buyer must satisfy ``min_selections``.\n    eligibility_type: Explicit product pool or Tiendanube category eligibility.\n    category_id: Tiendanube category id when ``eligibility_type`` is ``category``."},"SectionResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"sectionOrder":{"type":"integer","title":"Sectionorder"},"minSelections":{"type":"integer","title":"Minselections"},"maxSelections":{"type":"integer","title":"Maxselections"},"maxUnits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxunits"},"required":{"type":"boolean","title":"Required"},"eligibilityType":{"$ref":"#/components/schemas/KitEligibilityType"},"categoryId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Categoryid"}},"type":"object","required":["id","title","description","sectionOrder","minSelections","maxSelections","maxUnits","required","eligibilityType","categoryId"],"title":"SectionResponseDTO","description":"Composite section as returned to the admin client.\n\nArgs:\n    id: Persistent section row id.\n    title: Buyer-facing section heading.\n    description: Optional helper copy under the title.\n    section_order: Display order within the kit.\n    min_selections: Minimum distinct elements the buyer must pick.\n    max_selections: Maximum distinct elements the buyer may pick.\n    max_units: Optional cap on total units across the section.\n    required: Whether the buyer must satisfy ``min_selections``.\n    eligibility_type: Explicit product pool or Tiendanube category eligibility.\n    category_id: Tiendanube category id when ``eligibility_type`` is ``category``."},"SetBillingProviderRequest":{"properties":{"provider":{"type":"string","enum":["mercadopago","paddle","auto"],"title":"Provider","description":"Manual override of which provider bills this store. 'auto' clears the override and falls back to automatic routing by country — see docs/paddle-integration-spec.md §3."}},"type":"object","required":["provider"],"title":"SetBillingProviderRequest","description":"Body for ``POST /provider``."},"SetOfferOpportunityMerchantVisibleRequestDTO":{"properties":{"merchantVisible":{"type":"boolean","title":"Merchantvisible"}},"type":"object","required":["merchantVisible"],"title":"SetOfferOpportunityMerchantVisibleRequestDTO","description":"Body for toggling merchant visibility."},"SetStoreFeatureRequestDTO":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SetStoreFeatureRequestDTO","description":"Body for toggling a store feature flag."},"SetStoreFeatureResponseDTO":{"properties":{"storeId":{"type":"string","format":"uuid","title":"Storeid"},"feature":{"$ref":"#/components/schemas/StoreFeatureDTO"}},"type":"object","required":["storeId","feature"],"title":"SetStoreFeatureResponseDTO","description":"Updated feature status after admin toggle."},"SlotDiscountDTO":{"properties":{"type":{"type":"string","enum":["PERCENTAGE","FIXED","NONE_APPLIED"],"title":"Type"},"value":{"type":"number","title":"Value"}},"type":"object","required":["type","value"],"title":"SlotDiscountDTO","description":"Per-component discount surfaced to the storefront picker (PRD §11.3).\n\nArgs:\n    type: ``PERCENTAGE``, ``FIXED``, or ``NONE_APPLIED``.\n    value: Discount magnitude in the merchant currency or percent points."},"SlotDiscountType":{"type":"string","enum":["PERCENTAGE","FIXED","NONE_APPLIED"],"title":"SlotDiscountType","description":"Per-component discount rule applied at checkout for a bundle slot."},"SortOrder":{"type":"string","enum":["asc","desc"],"title":"SortOrder","description":"Sort direction for list queries."},"StartDraftRequestDTO":{"properties":{"offerType":{"$ref":"#/components/schemas/OfferTargetType"}},"type":"object","required":["offerType"],"title":"StartDraftRequestDTO","description":"Request body for ``POST /offer-opportunities/{id}/start-draft``."},"StartDraftResponseDTO":{"properties":{"offerType":{"$ref":"#/components/schemas/OfferTargetType"},"editorPath":{"type":"string","title":"Editorpath"}},"type":"object","required":["offerType","editorPath"],"title":"StartDraftResponseDTO","description":"Response body for a successful start-draft call."},"StatusEnum":{"type":"string","enum":["DESIGN","BUILDING","DISABLE","ACTIVE","UPDATING","ERROR"],"title":"StatusEnum"},"StockUpdateDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"orderId":{"type":"integer","title":"Orderid"},"productId":{"type":"integer","title":"Productid"},"variantId":{"type":"integer","title":"Variantid"},"stockQuantityDelta":{"type":"integer","title":"Stockquantitydelta"},"status":{"type":"string","title":"Status"},"createdOn":{"type":"string","format":"date-time","title":"Createdon"}},"type":"object","required":["id","orderId","productId","variantId","stockQuantityDelta","status","createdOn"],"title":"StockUpdateDTO"},"StoreBundleSummaryDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"bundleType":{"$ref":"#/components/schemas/src__admin__domain__store_bundle_summary__StoreBundleType"},"status":{"type":"string","title":"Status"},"orderCount":{"type":"integer","title":"Ordercount"},"totalRevenue":{"type":"string","title":"Totalrevenue"},"createdOn":{"type":"string","format":"date-time","title":"Createdon"}},"type":"object","required":["id","name","bundleType","status","orderCount","totalRevenue","createdOn"],"title":"StoreBundleSummaryDTO"},"StoreCategoryDTO":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"parent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent"}},"type":"object","required":["id","name"],"title":"StoreCategoryDTO","description":"Localized Tiendanube category for merchant admin pickers.\n\nArgs:\n    id: Tiendanube category id.\n    name: Store-locale category label.\n    parent: Parent category id, or ``None`` for root categories."},"StoreFeatureDTO":{"properties":{"featureKey":{"$ref":"#/components/schemas/StoreFeatureKey"},"enabled":{"type":"boolean","title":"Enabled"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"}},"type":"object","required":["featureKey","enabled"],"title":"StoreFeatureDTO","description":"Effective feature status for one store."},"StoreFeatureKey":{"type":"string","enum":["mix_match_bundles","kits","bogo","offer_opportunities","publication_links"],"title":"StoreFeatureKey","description":"Known store-scoped feature flags toggled via internal admin.\n\n``MIX_MATCH_BUNDLES`` is enabled automatically on new store registration.\n``KITS`` and ``BOGO`` are opt-in only — enable via admin\n``PUT /admin/stores/{id}/features/{feature_key}``; existing stores stay\noff until explicitly toggled."},"StoreFeaturesResponseDTO":{"properties":{"features":{"items":{"$ref":"#/components/schemas/StoreFeatureDTO"},"type":"array","title":"Features"}},"type":"object","required":["features"],"title":"StoreFeaturesResponseDTO","description":"All known store features and their effective status."},"StoreOrderDTO":{"properties":{"id":{"type":"integer","title":"Id"},"number":{"type":"integer","title":"Number"},"status":{"type":"string","title":"Status"},"paymentStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paymentstatus"},"shippingStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shippingstatus"},"total":{"type":"string","title":"Total"},"contactName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contactname"},"contactEmail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contactemail"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"}},"type":"object","required":["id","number","status","total","createdAt"],"title":"StoreOrderDTO"},"StoreProductDTO":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"additionalProperties":{"type":"string"},"type":"object","title":"Name"},"sku":{"type":"string","title":"Sku"},"imageUrl":{"type":"string","title":"Imageurl","default":""},"variants":{"items":{"$ref":"#/components/schemas/StoreProductVariantDTO"},"type":"array","title":"Variants"}},"type":"object","required":["id","name","sku","variants"],"title":"StoreProductDTO"},"StoreProductVariantDTO":{"properties":{"id":{"type":"integer","title":"Id"},"sku":{"type":"string","title":"Sku"},"values":{"items":{"$ref":"#/components/schemas/StoreProductVariantValue"},"type":"array","title":"Values"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"}},"type":"object","required":["id","sku","values"],"title":"StoreProductVariantDTO"},"StoreProductVariantValue":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"}},"type":"object","required":["name","value"],"title":"StoreProductVariantValue"},"StorefrontProductDTO":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"additionalProperties":{"type":"string"},"type":"object","title":"Name"},"images":{"items":{"type":"string"},"type":"array","title":"Images"},"attributes":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Attributes"},"variants":{"items":{"$ref":"#/components/schemas/StorefrontProductVariantDTO"},"type":"array","title":"Variants"}},"type":"object","required":["id","name","images","attributes","variants"],"title":"StorefrontProductDTO","description":"Component product detail consumed by the storefront picker (PRD §11.3).\n\nMirrors the data Compre Junto fetches via ``/pub/product/{id}`` so the\ninjected JS can render variant selectors and prices client-side. Localized\nfields stay as language maps and are resolved in the browser.\n\nArgs:\n    id: Tiendanube product id.\n    name: Product name language map (e.g. ``{\"es\": \"Remera\"}``).\n    images: Ordered image source URLs.\n    attributes: Attribute-name language maps, positionally aligned with each\n        variant's ``values``.\n    variants: In-catalogue variants for the picker."},"StorefrontProductVariantDTO":{"properties":{"id":{"type":"integer","title":"Id"},"values":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Values"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"},"promotionalPrice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promotionalprice"},"stock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stock"},"stockManagement":{"type":"boolean","title":"Stockmanagement","default":true},"imageSrc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imagesrc"}},"type":"object","required":["id","values"],"title":"StorefrontProductVariantDTO","description":"Purchasable variant surfaced to the storefront picker.\n\nLocalized fields are returned as raw Tiendanube language maps; the storefront\nJS localizes them against the buyer's current language (the merchant store\nmay render in a different language than its admin default).\n\nArgs:\n    id: Tiendanube variant id used as the ``/cart/add`` line item.\n    values: Per-attribute language maps (e.g. ``[{\"es\": \"M\"}]``).\n    price: Variant price as returned by Tiendanube, or ``None``.\n    promotionalPrice: TN promotional price when set, or ``None``.\n    stock: Available stock, or ``None`` when stock is not managed.\n    stock_management: Whether Tiendanube tracks stock for the variant.\n    image_src: Resolved image URL for this variant, or ``None`` when the\n        variant has no ``image_id`` or the id does not match a product image."},"StorefrontPublicConfigDTO":{"properties":{"mixMatchBundlesEnabled":{"type":"boolean","title":"Mixmatchbundlesenabled","default":false},"bundleProductIds":{"items":{"type":"integer"},"type":"array","title":"Bundleproductids","default":[]},"kitsEnabled":{"type":"boolean","title":"Kitsenabled","default":false},"kitProductIds":{"items":{"type":"integer"},"type":"array","title":"Kitproductids","default":[]},"bogoEnabled":{"type":"boolean","title":"Bogoenabled","default":false},"bogoProductIds":{"items":{"type":"integer"},"type":"array","title":"Bogoproductids","default":[]},"bxgyProductIds":{"items":{"type":"integer"},"type":"array","title":"Bxgyproductids","default":[]},"storeCurrency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storecurrency"}},"type":"object","title":"StorefrontPublicConfigDTO","description":"Store-level public config for injected storefront JS.\n\nAggregates feature flags and landing product ids across all offer types\n(mix-match bundles, kits, etc.) for the storefront bootstrap script.\n\nArgs:\n    mix_match_bundles_enabled: Whether mix-match bundles are active for the\n        store.\n    bundle_product_ids: Tiendanube virtual product ids of all active\n        mix-match bundles.\n    kits_enabled: Whether kits are active for the store.\n    kit_product_ids: Tiendanube virtual product ids of all active kit\n        landing products.\n    bogo_enabled: Whether BOGO bundles are active for the store.\n    bogo_product_ids: Tiendanube product ids of all active BOGO surfaces\n        (virtual ids for BXGY, eligible real ids for QUANTITY_BREAK). Used\n        to detect BOGO surface pages.\n    bxgy_product_ids: Subset of ``bogo_product_ids`` whose native\n        add-to-cart must be blocked (BUY_X_GET_Y only). QUANTITY_BREAK\n        surfaces are excluded because they use the native button.\n    store_currency: ISO code the store bills in, or ``None`` when we never\n        synced one. The storefront reads the currency off the theme's\n        ``window.LS.store.currency``, which some themes simply do not\n        expose; a Brazilian kit then priced itself in Argentine pesos. We\n        already know the currency here, so we send it as the fallback.\n        ``None`` — never a guess — when we don't: the picker prints the\n        number without a symbol rather than the wrong one."},"StorefrontSessionDTO":{"properties":{"storeId":{"type":"string","title":"Storeid"},"nonce":{"type":"string","title":"Nonce"},"hmac":{"type":"string","title":"Hmac"}},"type":"object","required":["storeId","nonce","hmac"],"title":"StorefrontSessionDTO","description":"Signed query a NubeSDK app uses to read its own store configuration.\n\nTemporary — see ``storefront_session_controller`` and nube-sdk#279. The\nshape mirrors what the classic Scripts gateway appends to a script URL, so\nthe app can feed it straight into the existing ``/pub/store/{store_id}/…``\nroutes without those routes changing at all.\n\nArgs:\n    store_id: The store's own id, as a UUID string.\n    nonce: Random nonce covered by the HMAC.\n    hmac: HMAC-SHA256 digest over ``\"{store_id}:{nonce}\"``."},"SubscriptionDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"storeId":{"type":"string","format":"uuid","title":"Storeid"},"planId":{"type":"string","format":"uuid","title":"Planid"},"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"provider":{"$ref":"#/components/schemas/SubscriptionProvider"},"externalRef":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Externalref"},"validUntil":{"type":"string","format":"date-time","title":"Validuntil"},"currentPeriodEnd":{"type":"string","format":"date-time","title":"Currentperiodend"},"graceUntil":{"type":"string","format":"date-time","title":"Graceuntil"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","storeId","planId","status","provider","externalRef","validUntil","currentPeriodEnd","graceUntil","createdAt","updatedAt"],"title":"SubscriptionDTO","description":"DTO for subscription response."},"SubscriptionGrowthBucketDTO":{"properties":{"periodStart":{"type":"string","format":"date-time","title":"Periodstart"},"periodEnd":{"type":"string","format":"date-time","title":"Periodend"},"newSubscriptions":{"type":"integer","title":"Newsubscriptions"},"cumulative":{"type":"integer","title":"Cumulative"},"cumulativePaying":{"type":"integer","title":"Cumulativepaying"}},"type":"object","required":["periodStart","periodEnd","newSubscriptions","cumulative","cumulativePaying"],"title":"SubscriptionGrowthBucketDTO"},"SubscriptionGrowthDTO":{"properties":{"buckets":{"items":{"$ref":"#/components/schemas/SubscriptionGrowthBucketDTO"},"type":"array","title":"Buckets"}},"type":"object","required":["buckets"],"title":"SubscriptionGrowthDTO"},"SubscriptionPlanOptionDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"externalRef":{"type":"string","title":"Externalref"},"name":{"type":"string","title":"Name"},"isActive":{"type":"boolean","title":"Isactive"}},"type":"object","required":["id","externalRef","name","isActive"],"title":"SubscriptionPlanOptionDTO","description":"Minimal plan representation used by the admin Manage Plan form."},"SubscriptionProvider":{"type":"string","enum":["mercadopago","manual","paddle"],"title":"SubscriptionProvider","description":"Which billing provider owns this subscription.\n\nMERCADOPAGO: backed by a real MP preapproval; participates in the\n    parity invariant (Count(local mercadopago) == Count(MP preapprovals)).\nMANUAL: free trial / legacy / admin-granted; no preapproval, excluded\n    from MP parity reconciliation.\nPADDLE: backed by a Paddle subscription; created via hosted checkout and\n    reconciled from webhooks (no preapproval, no parity walk — see\n    docs/paddle-integration-spec.md §2). Used for non-Argentina stores,\n    where MercadoPago's Argentina-only collector can't bill the payer."},"SubscriptionStatus":{"type":"string","enum":["pending","active","past_due","paused","cancelled","expired","failed"],"title":"SubscriptionStatus","description":"Lifecycle status of a subscription.\n\nPENDING: intent persisted, no MP preapproval yet (the saga anchor).\nACTIVE: provider authorized + last payment approved (or manual trial).\nPAST_DUE: provider authorized but a recurring charge failed; keep\n    serving + alert (per non-cut policy).\nPAUSED: provider has paused billing (e.g. after repeated failures).\n    Stops extending; rides grace_until before lapsing.\nCANCELLED: terminal-soft. Stops extending; rides grace_until.\nEXPIRED: terminal-soft for manual/trial subs that ran out of time\n    with no upgrade.\nFAILED: saga aborted before MP create returned; never billed, never\n    granted entitlement."},"SubscriptionStatusDTO":{"properties":{"isActive":{"type":"boolean","title":"Isactive"},"subscription":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionDTO"},{"type":"null"}]}},"type":"object","required":["isActive"],"title":"SubscriptionStatusDTO","description":"DTO for subscription status response."},"SurfaceDiscountDTO":{"properties":{"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"title":"Type"},"value":{"type":"number","title":"Value"}},"type":"object","required":["type","value"],"title":"SurfaceDiscountDTO","description":"Discount magnitude surfaced to storefront JS (PRD §11.3).\n\nArgs:\n    type: ``PERCENTAGE`` or ``FIXED``.\n    value: Discount magnitude in merchant currency or percent points."},"SurfaceTierDTO":{"properties":{"minQuantity":{"type":"integer","title":"Minquantity"},"discount":{"$ref":"#/components/schemas/SurfaceDiscountDTO"}},"type":"object","required":["minQuantity","discount"],"title":"SurfaceTierDTO","description":"Volume ladder tier in the QUANTITY_BREAK surface contract (PRD §11.3).\n\nArgs:\n    min_quantity: Unit threshold for the tier.\n    discount: Nested discount spec for the tier."},"SyncCursorDTO":{"properties":{"lastSyncAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastsyncat"},"lastUpdatedAtMin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastupdatedatmin"},"lastSinceId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lastsinceid"},"lastBackfillCompletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastbackfillcompletedat"}},"type":"object","title":"SyncCursorDTO","description":"Persisted sync watermarks for one store."},"TelemetryPeriodDTO":{"properties":{"from":{"type":"string","format":"date","title":"From"},"to":{"type":"string","format":"date","title":"To"}},"type":"object","required":["from","to"],"title":"TelemetryPeriodDTO","description":"Inclusive UTC calendar-day range for a telemetry summary."},"TelemetryPlatformSummaryDTO":{"properties":{"period":{"$ref":"#/components/schemas/TelemetryPeriodDTO"},"revenueByProvider":{"$ref":"#/components/schemas/RevenueByProviderDTO"},"orderCount":{"type":"integer","title":"Ordercount","default":0},"discountCallback":{"$ref":"#/components/schemas/DiscountCallbackSummaryDTO"},"lifecycleEvents":{"additionalProperties":{"$ref":"#/components/schemas/LifecycleEventTotalsDTO"},"type":"object","title":"Lifecycleevents"},"topStoresByRevenue":{"anyOf":[{"items":{"$ref":"#/components/schemas/TopStoreRevenueDTO"},"type":"array"},{"type":"null"}],"title":"Topstoresbyrevenue"}},"type":"object","required":["period","revenueByProvider","discountCallback","lifecycleEvents"],"title":"TelemetryPlatformSummaryDTO","description":"Platform-wide telemetry summary (``store_id IS NULL`` rollup rows)."},"TelemetryStoreSummaryDTO":{"properties":{"storeId":{"type":"string","format":"uuid","title":"Storeid"},"period":{"$ref":"#/components/schemas/TelemetryPeriodDTO"},"revenueByProvider":{"$ref":"#/components/schemas/RevenueByProviderDTO"},"orderCount":{"type":"integer","title":"Ordercount","default":0},"discountCallback":{"$ref":"#/components/schemas/DiscountCallbackSummaryDTO"},"lifecycleEvents":{"additionalProperties":{"$ref":"#/components/schemas/LifecycleEventTotalsDTO"},"type":"object","title":"Lifecycleevents"},"kitRevenueByMode":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Kitrevenuebymode"}},"type":"object","required":["storeId","period","revenueByProvider","discountCallback","lifecycleEvents"],"title":"TelemetryStoreSummaryDTO","description":"Per-store telemetry summary for admin dashboards."},"TiendaNubeWebhookEvent":{"properties":{"store_id":{"type":"integer","title":"Store Id"},"event":{"type":"string","title":"Event"},"id":{"type":"integer","title":"Id"}},"type":"object","required":["store_id","event","id"],"title":"TiendaNubeWebhookEvent","description":"Base representation of all TiendaNube's events"},"TimeSeriesPointDTO":{"properties":{"periodStart":{"type":"string","format":"date-time","title":"Periodstart"},"periodEnd":{"type":"string","format":"date-time","title":"Periodend"},"value":{"type":"number","title":"Value"},"secondary":{"additionalProperties":{"type":"number"},"type":"object","title":"Secondary"}},"type":"object","required":["periodStart","periodEnd","value","secondary"],"title":"TimeSeriesPointDTO"},"TnDiscountCallbackPayloadDTO":{"properties":{"cart_id":{"type":"string","title":"Cart Id"},"store_id":{"type":"string","title":"Store Id"},"currency":{"type":"string","title":"Currency"},"execution_tier":{"type":"string","enum":["line_item","cross_items"],"title":"Execution Tier"},"products":{"items":{"$ref":"#/components/schemas/TnDiscountCallbackProductDTO"},"type":"array","title":"Products"},"promotions":{"items":{"$ref":"#/components/schemas/TnDiscountCallbackPromotionDTO"},"type":"array","title":"Promotions"}},"type":"object","required":["cart_id","store_id","currency","execution_tier","products"],"title":"TnDiscountCallbackPayloadDTO","description":"Tiendanube cart payload posted to the discount callback."},"TnDiscountCallbackProductDTO":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"string"}],"title":"Id"},"product_id":{"type":"integer","title":"Product Id"},"variant_id":{"type":"integer","title":"Variant Id"},"quantity":{"type":"integer","title":"Quantity"},"price":{"type":"string","title":"Price"},"properties":{"additionalProperties":{"type":"string"},"type":"object","title":"Properties"}},"type":"object","required":["id","product_id","variant_id","quantity","price"],"title":"TnDiscountCallbackProductDTO","description":"Single cart line in a Tiendanube discount callback payload."},"TnDiscountCallbackPromotionDTO":{"properties":{"id":{"type":"string","title":"Id"},"line_items":{"items":{"anyOf":[{"type":"integer"},{"type":"string"}]},"type":"array","title":"Line Items"}},"type":"object","required":["id"],"title":"TnDiscountCallbackPromotionDTO","description":"Promotion currently applied on the cart per Tiendanube."},"TopAccountDTO":{"properties":{"storeId":{"type":"string","format":"uuid","title":"Storeid"},"name":{"type":"string","title":"Name"},"initials":{"type":"string","title":"Initials"},"planName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planname"},"usageRatePct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usageratepct"},"revenueShare":{"type":"number","title":"Revenueshare"},"status":{"$ref":"#/components/schemas/AccountStatus"}},"type":"object","required":["storeId","name","initials","planName","usageRatePct","revenueShare","status"],"title":"TopAccountDTO"},"TopStoreRevenueDTO":{"properties":{"storeId":{"type":"string","format":"uuid","title":"Storeid"},"revenue":{"type":"number","title":"Revenue"}},"type":"object","required":["storeId","revenue"],"title":"TopStoreRevenueDTO","description":"One store entry in a platform revenue ranking."},"TransitionErrorCode":{"type":"string","enum":["PRODUCT_NO_ELIGIBLE_VARIANT","COMPONENT_UNAVAILABLE","MULTICURRENCY_NOT_SUPPORTED","PLAN_LIMIT_EXCEEDED","SUBSCRIPTION_EXPIRED","TN_GATEWAY_ERROR","STOREFRONT_SCRIPT_REGISTRATION_FAILED","TARGET_PRICE_TOO_HIGH","INVALID_STATUS","INVALID_ELEMENT_COUNT","UNKNOWN"],"title":"TransitionErrorCode","description":"Stable codes for merchant-facing bundle lifecycle failures."},"TransitionErrorDTO":{"properties":{"code":{"$ref":"#/components/schemas/TransitionErrorCode"},"params":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"object","title":"Params","default":{}}},"type":"object","required":["code"],"title":"TransitionErrorDTO","description":"API representation of a structured bundle transition error."},"TriggerMerchantOrderSyncResponseDTO":{"properties":{"storeId":{"type":"string","format":"uuid","title":"Storeid"},"mode":{"$ref":"#/components/schemas/MerchantOrderSyncMode"},"documentsUpserted":{"type":"integer","title":"Documentsupserted"},"syncCursor":{"anyOf":[{"$ref":"#/components/schemas/SyncCursorDTO"},{"type":"null"}]}},"type":"object","required":["storeId","mode","documentsUpserted"],"title":"TriggerMerchantOrderSyncResponseDTO","description":"Result of an admin-triggered merchant order sync."},"TriggerSlotDTO":{"properties":{"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"quantity":{"type":"integer","title":"Quantity"},"variantLockMode":{"$ref":"#/components/schemas/VariantLockMode"},"lockedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Lockedvariantids"},"slotOrder":{"type":"integer","title":"Slotorder"}},"type":"object","required":["merchantStoreProductId","quantity","variantLockMode","slotOrder"],"title":"TriggerSlotDTO","description":"Trigger slot payload exchanged with the admin client.\n\nArgs:\n    merchant_store_product_id: Tiendanube product id referenced by the slot.\n    quantity: Required units for the trigger gate.\n    variant_lock_mode: Whether variant selection is locked or unrestricted.\n    locked_variant_ids: Eligible variant ids when ``variant_lock_mode`` is\n        ``LOCKED``; empty when mode is ``ANY``.\n    slot_order: Display and evaluation ordering index."},"TriggerSlotResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"quantity":{"type":"integer","title":"Quantity"},"variantLockMode":{"$ref":"#/components/schemas/VariantLockMode"},"lockedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Lockedvariantids"},"slotOrder":{"type":"integer","title":"Slotorder"}},"type":"object","required":["id","merchantStoreProductId","quantity","variantLockMode","lockedVariantIds","slotOrder"],"title":"TriggerSlotResponseDTO","description":"Trigger slot as returned to the admin client."},"TriggerSlotSurfaceDTO":{"properties":{"merchantProductId":{"type":"integer","title":"Merchantproductid"},"quantity":{"type":"integer","title":"Quantity"},"variantLockMode":{"type":"string","title":"Variantlockmode"},"allowedVariantIds":{"items":{"type":"integer"},"type":"array","title":"Allowedvariantids"}},"type":"object","required":["merchantProductId","quantity","variantLockMode","allowedVariantIds"],"title":"TriggerSlotSurfaceDTO","description":"Trigger slot in the BUY_X_GET_Y surface contract (PRD §11.3).\n\nArgs:\n    merchant_product_id: Tiendanube product id for the trigger slot.\n    quantity: Required units for the trigger gate.\n    variant_lock_mode: ``LOCKED`` or ``ANY``.\n    allowed_variant_ids: Eligible variant ids when locked; empty when any."},"UnconstrainedDerivedStockDTO":{"properties":{"kind":{"type":"string","const":"unconstrained","title":"Kind","default":"unconstrained"}},"type":"object","title":"UnconstrainedDerivedStockDTO"},"UpdateBogoBundleRequestDTO":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"combinesWith":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Combineswith"},"freeShipping":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Freeshipping"},"mode":{"anyOf":[{"$ref":"#/components/schemas/BogoMode"},{"type":"null"}]},"eligibleProducts":{"anyOf":[{"items":{"$ref":"#/components/schemas/BogoEligibleProductDTO"},"type":"array"},{"type":"null"}],"title":"Eligibleproducts"},"tiers":{"anyOf":[{"items":{"$ref":"#/components/schemas/QuantityTierDTO"},"type":"array"},{"type":"null"}],"title":"Tiers"},"ratio":{"anyOf":[{"$ref":"#/components/schemas/RatioRuleDTO"},{"type":"null"}]},"triggerSlots":{"anyOf":[{"items":{"$ref":"#/components/schemas/TriggerSlotDTO"},"type":"array"},{"type":"null"}],"title":"Triggerslots"},"rewardSlots":{"anyOf":[{"items":{"$ref":"#/components/schemas/RewardSlotDTO"},"type":"array"},{"type":"null"}],"title":"Rewardslots"}},"type":"object","title":"UpdateBogoBundleRequestDTO","description":"Request body for updating an editable BOGO bundle.\n\nOnly the provided (non-``None``) fields are changed.\n\nArgs:\n    name: New name, or ``None`` to leave unchanged.\n    description: New description, or ``None`` to leave unchanged.\n    priority: New priority, or ``None`` to leave unchanged.\n    combines_with: New combinability config, or ``None`` to leave unchanged.\n    free_shipping: New free-shipping flag, or ``None`` to leave unchanged.\n    mode: New BOGO mode, or ``None`` to leave unchanged.\n    eligible_products: Full replacement eligible product list, or ``None``.\n    tiers: Full replacement tier list, or ``None``.\n    ratio: New ratio rule, or ``None``.\n    trigger_slots: Full replacement trigger slot list, or ``None``.\n    reward_slots: Full replacement reward slot list, or ``None``."},"UpdateKitRequestDTO":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"combinesWith":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Combineswith"},"freeShipping":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Freeshipping"},"minItems":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minitems"},"maxItems":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxitems"},"discountMode":{"anyOf":[{"$ref":"#/components/schemas/KitDiscountMode"},{"type":"null"}]},"globalDiscount":{"anyOf":[{"$ref":"#/components/schemas/src__kit_bundle__api__dtos__merchant_dtos__GlobalDiscountDTO"},{"type":"null"}]},"layoutMode":{"anyOf":[{"$ref":"#/components/schemas/KitLayoutMode"},{"type":"null"}]},"eligibilityType":{"anyOf":[{"$ref":"#/components/schemas/KitEligibilityType"},{"type":"null"}]},"categoryId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Categoryid"},"sections":{"anyOf":[{"items":{"$ref":"#/components/schemas/SectionDTO"},"type":"array"},{"type":"null"}],"title":"Sections"},"elements":{"anyOf":[{"items":{"$ref":"#/components/schemas/ElementDTO"},"type":"array"},{"type":"null"}],"title":"Elements"}},"type":"object","title":"UpdateKitRequestDTO","description":"Request body for updating an editable kit bundle.\n\nOnly the provided (non-``None``) fields are changed.\n\nArgs:\n    name: New name, or ``None`` to leave unchanged.\n    description: New description, or ``None`` to leave unchanged.\n    priority: New priority, or ``None`` to leave unchanged.\n    combines_with: New combinability config, or ``None`` to leave unchanged.\n    free_shipping: New free-shipping flag, or ``None`` to leave unchanged.\n    min_items: New minimum selection bound, or ``None`` to leave unchanged.\n    max_items: New maximum selection bound, or ``None`` to leave unchanged.\n    discount_mode: New discount mode, or ``None`` to leave unchanged.\n    global_discount: New kit-level pricing rule, or ``None`` to leave\n        unchanged.\n    layout_mode: New layout mode, or ``None`` to leave unchanged.\n    eligibility_type: New eligibility mode, or ``None`` to leave unchanged.\n    category_id: New Tiendanube category id, or ``None`` to leave unchanged.\n    sections: Full replacement section list, or ``None`` to leave unchanged.\n    elements: Full replacement element list, or ``None`` to leave unchanged."},"UpdateMixMatchBundleRequestDTO":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"combinesWith":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Combineswith"},"freeShipping":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Freeshipping"},"showPromotionalPrice":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showpromotionalprice"},"discountMode":{"anyOf":[{"$ref":"#/components/schemas/MixMatchDiscountMode"},{"type":"null"}]},"globalDiscount":{"anyOf":[{"$ref":"#/components/schemas/src__mix_match_bundle__api__dtos__merchant_dtos__GlobalDiscountDTO"},{"type":"null"}]},"components":{"anyOf":[{"items":{"$ref":"#/components/schemas/ComponentDTO"},"type":"array"},{"type":"null"}],"title":"Components"}},"type":"object","title":"UpdateMixMatchBundleRequestDTO","description":"Request body for updating an editable mix-match bundle.\n\nOnly the provided (non-``None``) fields are changed.\n\nArgs:\n    name: New name, or ``None`` to leave unchanged.\n    description: New description, or ``None`` to leave unchanged.\n    priority: New priority, or ``None`` to leave unchanged.\n    combines_with: New combinability config, or ``None`` to leave unchanged.\n    free_shipping: New free-shipping flag, or ``None`` to leave unchanged.\n    show_promotional_price: New promotional-price visibility flag, or\n        ``None`` to leave unchanged.\n    discount_mode: New discount mode, or ``None`` to leave unchanged.\n    global_discount: New bundle-level pricing rule, or ``None`` to leave\n        unchanged. Ignored when the effective mode is ``per_item_discount``\n        or ``visual_only``.\n    components: Full replacement component list, or ``None`` to leave\n        unchanged. Only allowed while the bundle is ``DRAFT`` or ``PAUSED``."},"UserDTO":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"type":"string","title":"Email"},"phoneNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenumber"}},"type":"object","required":["name","email","phoneNumber"],"title":"UserDTO"},"UserUpdateDTO":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"fullName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fullname"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"password":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Password"}},"type":"object","title":"UserUpdateDTO"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VariantDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"merchantStoreVariantSku":{"type":"string","title":"Merchantstorevariantsku"},"composition":{"items":{"$ref":"#/components/schemas/VariantMerchantItemDTO"},"type":"array","title":"Composition"}},"type":"object","required":["id","merchantStoreVariantSku","composition"],"title":"VariantDTO"},"VariantLockMode":{"type":"string","enum":["LOCKED","ANY"],"title":"VariantLockMode","description":"How a bundle component constrains variant selection."},"VariantMerchantItemDTO":{"properties":{"merchantStoreProductId":{"type":"integer","title":"Merchantstoreproductid"},"merchantStoreVariantId":{"type":"integer","title":"Merchantstorevariantid"},"quantity":{"type":"integer","title":"Quantity"}},"type":"object","required":["merchantStoreProductId","merchantStoreVariantId","quantity"],"title":"VariantMerchantItemDTO"},"VariantSelectionMode":{"type":"string","enum":["SAME_VARIANT","PER_UNIT"],"title":"VariantSelectionMode","description":"How multi-quantity slots collect variant choices on the storefront."},"VerificationDTO":{"properties":{"code":{"type":"string","title":"Code"},"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["code","email"],"title":"VerificationDTO"},"VirtualProductResponseDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"merchantProductId":{"type":"integer","title":"Merchantproductid"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle"},"syncedOn":{"type":"string","format":"date-time","title":"Syncedon"}},"type":"object","required":["id","merchantProductId","handle","syncedOn"],"title":"VirtualProductResponseDTO","description":"Tiendanube virtual landing product reference returned to the admin client.\n\nArgs:\n    id: Persistent virtual-product row id.\n    merchant_product_id: Tiendanube product id buyers land on.\n    handle: Product handle used in storefront URLs when present.\n    synced_on: Timestamp when the reference was last synced from Tiendanube."},"src__admin__domain__store_bundle_summary__StoreBundleType":{"type":"string","enum":["classic","mix_match","kit","bogo"],"title":"StoreBundleType","description":"Product kind for a row in the admin store bundles list."},"src__bff__domain__store_bundle_ref__StoreBundleType":{"type":"string","enum":["classic","mix_match","kit","bogo"],"title":"StoreBundleType","description":"Product kind for a bundle row in the merchant store catalog."},"src__kit_bundle__api__dtos__merchant_dtos__ElementDiscountDTO":{"properties":{"type":{"$ref":"#/components/schemas/SlotDiscountType"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"}},"type":"object","required":["type"],"title":"ElementDiscountDTO","description":"Per-element discount rule exchanged with the admin client.\n\nArgs:\n    type: Discount kind for the element's consumed subtotal.\n    value: Discount magnitude when ``type`` is ``PERCENTAGE`` or ``FIXED``."},"src__kit_bundle__api__dtos__merchant_dtos__GlobalDiscountDTO":{"properties":{"type":{"$ref":"#/components/schemas/GlobalDiscountType"},"value":{"type":"number","title":"Value"},"minSubtotal":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minsubtotal"}},"type":"object","required":["type","value"],"title":"GlobalDiscountDTO","description":"Kit-level pricing rule exchanged with the admin client.\n\nArgs:\n    type: ``TARGET_PRICE``, ``PERCENTAGE``, or ``FIXED``.\n    value: Rule magnitude in merchant currency or percent points.\n    min_subtotal: Optional minimum qualifying selection subtotal."},"src__kit_bundle__api__dtos__public_dtos__ElementDiscountDTO":{"properties":{"type":{"type":"string","enum":["PERCENTAGE","FIXED","NONE_APPLIED"],"title":"Type"},"value":{"type":"number","title":"Value"}},"type":"object","required":["type","value"],"title":"ElementDiscountDTO","description":"Per-element discount surfaced to the storefront picker (PRD §11.3).\n\nArgs:\n    type: ``PERCENTAGE``, ``FIXED``, or ``NONE_APPLIED``.\n    value: Discount magnitude in the merchant currency or percent points."},"src__kit_bundle__api__dtos__public_dtos__PickerGlobalDiscountDTO":{"properties":{"type":{"type":"string","enum":["TARGET_PRICE","PERCENTAGE","FIXED"],"title":"Type"},"value":{"type":"number","title":"Value"},"minSubtotal":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minsubtotal"}},"type":"object","required":["type","value"],"title":"PickerGlobalDiscountDTO","description":"Kit-level pricing rule surfaced to the storefront picker (PRD §8.2).\n\nArgs:\n    type: ``TARGET_PRICE``, ``PERCENTAGE``, or ``FIXED``.\n    value: Rule magnitude in merchant currency or percent points.\n    min_subtotal: Optional minimum qualifying selection subtotal."},"src__mix_match_bundle__api__dtos__merchant_dtos__GlobalDiscountDTO":{"properties":{"type":{"$ref":"#/components/schemas/GlobalDiscountType"},"value":{"type":"number","title":"Value"}},"type":"object","required":["type","value"],"title":"GlobalDiscountDTO","description":"Bundle-level pricing rule exchanged with the admin client.\n\nArgs:\n    type: ``TARGET_PRICE``, ``PERCENTAGE``, or ``FIXED``.\n    value: Rule magnitude in merchant currency or percent points."},"src__mix_match_bundle__api__dtos__public_dtos__PickerGlobalDiscountDTO":{"properties":{"type":{"type":"string","enum":["TARGET_PRICE","PERCENTAGE","FIXED"],"title":"Type"},"value":{"type":"number","title":"Value"}},"type":"object","required":["type","value"],"title":"PickerGlobalDiscountDTO","description":"Bundle-level pricing rule surfaced to the storefront picker (PRD §8.2).\n\nArgs:\n    type: ``TARGET_PRICE``, ``PERCENTAGE``, or ``FIXED``.\n    value: Rule magnitude in merchant currency or percent points."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}