{"openapi":"3.1.0","info":{"title":"Convert API","description":"It's mission is to increase merchants revenue","version":"0.1.0"},"paths":{"/discount-offers":{"post":{"tags":["discount-offers"],"summary":"Create Discount Offer","operationId":"create_discount_offer","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountOfferCreateApiDTO"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountOfferApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["discount-offers"],"summary":"Get Discount Offers","operationId":"get_discount_offers","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by prefix","title":"Search"},"description":"Search by prefix"},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"string","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DiscountOfferApiDTO"},"title":"Response Get Discount Offers"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/discount-offers/{discount_offer_id}":{"get":{"tags":["discount-offers"],"summary":"Get Discount Offer","operationId":"get_discount_offer","security":[{"HTTPBearer":[]}],"parameters":[{"name":"discount_offer_id","in":"path","required":true,"schema":{"type":"string","title":"Discount Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountOfferApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["discount-offers"],"summary":"Patch Discount Offer","operationId":"patch_discount_offer","security":[{"HTTPBearer":[]}],"parameters":[{"name":"discount_offer_id","in":"path","required":true,"schema":{"type":"string","title":"Discount Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountOfferPatchApiDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountOfferApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["discount-offers"],"summary":"Delete Discount Offer","operationId":"delete_discount_offer","security":[{"HTTPBearer":[]}],"parameters":[{"name":"discount_offer_id","in":"path","required":true,"schema":{"type":"string","title":"Discount Offer Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assistant/evaluations":{"post":{"tags":["evaluations"],"summary":"Evaluate Campaign Rules","operationId":"evaluate_campaign_rules","parameters":[{"name":"cf-ipcountry","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Ipcountry"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationRequestSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assistant/configs/revenue/{installation_id}":{"get":{"tags":["configs"],"summary":"Get Config","operationId":"get_config_assistant_configs_revenue__installation_id__get","deprecated":true,"parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}},{"name":"widget-app-id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Widget-App-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assistant/configs/{installation_id}":{"get":{"tags":["configs"],"summary":"Get Config","operationId":"get_config_by_revenue_id","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}},{"name":"widget-app-id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Widget-App-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assistant/configs/shop/{shop_name}":{"get":{"tags":["configs"],"summary":"Get Config By Shop Name","operationId":"get_config_by_shop_name","parameters":[{"name":"shop_name","in":"path","required":true,"schema":{"type":"string","title":"Shop Name"}},{"name":"widget-app-id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Widget-App-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assistant/consent/{installation_id}/surface/{surface_id}":{"get":{"tags":["consent"],"summary":"Get Consent Surface Snapshot","operationId":"get_consent_surface_snapshot","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Installation Id"}},{"name":"surface_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":42,"title":"Surface Id"}},{"name":"cf-ipcountry","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Ipcountry"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSurfaceSnapshotApiDTO"}}}},"404":{"description":"No active consent surface to render.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assistant/consent/{installation_id}":{"post":{"tags":["consent"],"summary":"Submit Consent","operationId":"submit_consent","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Installation Id"}},{"name":"cf-ipcountry","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Ipcountry"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSubmitResponseApiDTO"}}}},"400":{"description":"Missing or malformed body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"reCAPTCHA rejected or unavailable, or an invalid, expired or replayed snapshot token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No active consent surface to submit to, or the feature is off for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"This number cannot be subscribed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Body exceeds the size cap.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Missing or invalid field, in the `{error:{code,field?,message}}` shape."},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"description":"A shopper's dual-channel consent submission, served when the consent-collection flag is on.\n\nThe flag-on contract (``ai-journey-consent-collection-enabled`` for the account) requires\n``email`` and treats ``phone`` as optional.\n\nDocumented assumptions (AIJ-3794, pending AIJ-2931):\n- Single combined consent checkbox: one required ``consent: bool`` that must be ``True``.\n  If AIJ-2931 rules that two separate checkboxes are required, this becomes two fields with\n  cross-field rules; that is a deliberate, flagged open question, not a guess to lock in.\n- IP-derived jurisdiction for the email leg is handled downstream, in the use case; this\n  DTO only carries the contact fields.\n\nEvery field is attacker-controlled. ``phone`` is normalised to E.164 here, and ``email`` is\nformat-checked and normalised here, turning a bad contact into the 422 it should be rather\nthan a 500 from a downstream hashing primitive. No contact hash is ever accepted from the\nclient -- it is server-computed (AC7).","properties":{"snapshot_token":{"maxLength":1024,"minLength":1,"title":"Snapshot Token","type":"string"},"email":{"maxLength":254,"minLength":1,"title":"Email","type":"string"},"phone":{"anyOf":[{"maxLength":32,"minLength":1,"type":"string"},{"type":"null"}],"title":"Phone"},"consent":{"title":"Consent","type":"boolean"},"recaptcha_token":{"maxLength":4096,"minLength":0,"title":"Recaptcha Token","type":"string"},"lead_magnet_requested":{"default":false,"title":"Lead Magnet Requested","type":"boolean"},"guest_id":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Guest Id"},"session_id":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Session Id"}},"required":["snapshot_token","email","consent","recaptcha_token"],"title":"ConsentDualChannelSubmitRequestApiDTO","type":"object"}}}}}},"/assistant/discount-codes/reveal":{"post":{"tags":["discount-codes"],"summary":"Reveal","operationId":"reveal_discount_code","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevealDiscountCodeRequestSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevealDiscountCodeResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assistant/recommend/p":{"post":{"tags":["product-recommendations"],"summary":"Recommend Products","operationId":"recommendations_product","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRecommendationRequestSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRecommendationResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assistant/contact-form/{revenue_id}":{"post":{"tags":["visitor-forms"],"summary":"Submit Contact Form","operationId":"submit_contact_form","parameters":[{"name":"revenue_id","in":"path","required":true,"schema":{"type":"string","title":"Revenue Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorFormSubmissionSchema"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Contact Form"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shoppers/interest-lookup":{"get":{"tags":["shoppers"],"summary":"Interest Lookup","operationId":"shopper_interest_lookup","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"description":"Helpdesk store integration ID","title":"Store Integration Id"},"description":"Helpdesk store integration ID"},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk account ID","title":"Account Id"},"description":"Helpdesk account ID"},{"name":"marketing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Marketing ID of the shopper (revenue_id)","title":"Marketing Id"},"description":"Marketing ID of the shopper (revenue_id)"},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":9223372036854775807,"minimum":-9223372036854775808},{"type":"null"}],"description":"Ecommerce Customer ID","title":"Customer Id"},"description":"Ecommerce Customer ID"},{"name":"store_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Store type (eg. shopify)","title":"Store Type"},"description":"Store type (eg. shopify)"},{"name":"store_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Store name","title":"Store Name"},"description":"Store name"},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"enum":["v1.0","v2.0"],"type":"string"},{"type":"null"}],"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopperInterestLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["shoppers"],"summary":"Interest Lookup Post","operationId":"shopper_interest_lookup_post","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"enum":["v1.0","v2.0"],"type":"string"},{"type":"null"}],"title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopperInterestLookupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopperInterestLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shoppers/{customer_id}/interest":{"get":{"tags":["merchant-shoppers"],"summary":"Get Shopper Interest","description":"Browsing and intent for one of the authenticated merchant's own shoppers.\n\nSame projection as the service-to-service ``interest_lookup``: the live session, the pages and\nproduct pages the shopper keeps returning to, their open cart, cart-abandonment recency and\nattributed order totals. ``latest_session`` is always null here: it is deprecated, and the\npinned ``v2.0`` never populates it. It powers the shopper profile panel in AI Journey, which\nshows a merchant the same browsing context ACE reasons over when it decides what to send.\n\nThe account is taken from the authenticated user and never from the caller, so a merchant can\nonly ever read a shopper in their own account. ``customer_id`` is the **ecommerce** customer id\n(``shoppers.customer_id``), which is the same ``external_id`` the Subscribers page already\npasses to ``POST /audiences/enrich``.\n\n``store_type`` and ``store_name`` are required, not redundant with ``store_integration_id``:\nthe session store is keyed by the ``\"{store_type}:{store_name}\"`` shop name, and\n``shopper_interest_lookup`` skips the session read entirely when it cannot build one. Omitting\nthem would return a 200 whose every session, cart and abandonment field is empty, reading as\n\"this shopper has no activity\" rather than \"we did not look\". They are not derivable from\n``store_integration_id`` here: only ``journeys`` rows carry the pair, and a store need not have\none. The caller has both already.\n\nA wrong pair, or a ``store_integration_id`` for another of the account's stores, returns an\nempty result rather than an error, as does an unknown ``customer_id``.","operationId":"get_shopper_interest","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":-9223372036854775808,"exclusiveMinimum":0,"description":"Ecommerce customer ID of the shopper","title":"Customer Id"},"description":"Ecommerce customer ID of the shopper"},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"description":"Helpdesk store integration ID","title":"Store Integration Id"},"description":"Helpdesk store integration ID"},{"name":"store_type","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"description":"Store type (eg. shopify)","title":"Store Type"},"description":"Store type (eg. shopify)"},{"name":"store_name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Store name","title":"Store Name"},"description":"Store name"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopperInterestLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/click-tracking":{"post":{"tags":["urls"],"summary":"Create","operationId":"create_click_tracking_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWTTokenSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/URLSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/click-tracking/bulk":{"post":{"tags":["urls"],"summary":"Create Bulk","operationId":"create_bulk_click_tracking_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWTTokenSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/URLBulkSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shorten":{"post":{"tags":["urls"],"summary":"Shorten","operationId":"shorten_shorten_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/URLCreateBulkSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/URLBulkSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/click-tracking/check":{"post":{"tags":["urls"],"summary":"Retrieve Urls By Meta","operationId":"retrieve_urls_by_meta_click_tracking_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWTTokenSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/URLWithClicksSchema"},"type":"array","title":"Response Retrieve Urls By Meta Click Tracking Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"tags":["healthcheck"],"summary":"Health Check","operationId":"health_check__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Check  Get"}}}}}}},"/r/{alias}":{"get":{"tags":["urls"],"summary":"Redirect","operationId":"redirect_r__alias__get","parameters":[{"name":"alias","in":"path","required":true,"schema":{"type":"string","title":"Alias"}},{"name":"referrer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer"}},{"name":"user-agent","in":"header","required":false,"schema":{"type":"string","default":"","title":"User-Agent"}}],"responses":{"302":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/click-tracking/custom-domains":{"post":{"tags":["custom_domains"],"summary":"Create","operationId":"create_custom_domain","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainOperationSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["custom_domains"],"summary":"Delete","operationId":"delete_custom_domain","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Scope to a single store; omit for the account-wide default","title":"Store Integration Id"},"description":"Scope to a single store; omit for the account-wide default"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["custom_domains"],"summary":"Retrieve","operationId":"get_custom_domain","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Scope to a single store; omit for the account-wide default","title":"Store Integration Id"},"description":"Scope to a single store; omit for the account-wide default"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["custom_domains"],"summary":"Update","operationId":"update_custom_domain","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Scope to a single store; omit for the account-wide default","title":"Store Integration Id"},"description":"Scope to a single store; omit for the account-wide default"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/click-tracking/custom-domains/check":{"post":{"tags":["custom_domains"],"summary":"Check","operationId":"check_custom_domain","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Scope to a single store; omit for the account-wide default","title":"Store Integration Id"},"description":"Scope to a single store; omit for the account-wide default"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/custom-domains":{"post":{"tags":["custom_domains"],"summary":"Create","operationId":"create_custom_domains_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainOperationSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["custom_domains"],"summary":"Delete","operationId":"delete_custom_domains_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Scope to a single store; omit for the account-wide default","title":"Store Integration Id"},"description":"Scope to a single store; omit for the account-wide default"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["custom_domains"],"summary":"Retrieve","operationId":"retrieve_custom_domains_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Scope to a single store; omit for the account-wide default","title":"Store Integration Id"},"description":"Scope to a single store; omit for the account-wide default"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["custom_domains"],"summary":"Update","operationId":"update_custom_domains_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Scope to a single store; omit for the account-wide default","title":"Store Integration Id"},"description":"Scope to a single store; omit for the account-wide default"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/custom-domains/check":{"post":{"tags":["custom_domains"],"summary":"Check","operationId":"check_custom_domains_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Scope to a single store; omit for the account-wide default","title":"Store Integration Id"},"description":"Scope to a single store; omit for the account-wide default"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pricing/ai-journey/rate-card":{"get":{"tags":["pricing"],"summary":"Get Ai Journey Rate Card","description":"Return the global AI Journey rate card to settings-authorized users.\n\nThe established admin-or-lead-agent dependency supplies the AI Journey\nsettings permission. Because this contract has no shop identifier and the\ncard reads no tenant data, the authenticated JWT account is the available\nmerchant scope; this endpoint cannot independently assert shop membership.","operationId":"get_ai_journey_rate_card","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiJourneyRateCardResponseSchema"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/subscriptions/account-status":{"get":{"tags":["subscriptions"],"summary":"Get Status And Usage","operationId":"get_status_and_usage","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shop_integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shop Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionUsageAndBundleStatusSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/subscriptions/auto-upgrade":{"put":{"tags":["subscriptions"],"summary":"Update Auto Upgrade Flag","operationId":"update_auto_upgrade_flag","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAutoUpgradeSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAutoUpgradeSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/subscriptions/account-status/all":{"get":{"tags":["subscriptions"],"summary":"Get Subscription Statuses","operationId":"get_subscription_statuses","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Get Subscription Statuses"}}}}},"security":[{"APIKeyHeader":["openid"]}]}},"/webhooks/aftership/tracking":{"post":{"tags":["webhooks"],"summary":"Ingest Aftership Tracking Webhook","operationId":"ingest_aftership_tracking_webhook","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/private/journeys/stopped-sends":{"get":{"tags":["private-journeys"],"summary":"List Stopped Sends Private","description":"Explain why sends stopped, for a trusted internal app, scoped to the token's own tenant.\n\nMirrors ``list_stopped_sends``: same query parameters, response DTO and use case.","operationId":"list_stopped_sends_private","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Inclusive UTC lower bound","title":"From"},"description":"Inclusive UTC lower bound"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Exclusive UTC upper bound","title":"To"},"description":"Exclusive UTC upper bound"},{"name":"reason","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/StoppedSendReason"},{"type":"null"}],"title":"Reason"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/StoppedSendSource"},{"type":"null"}],"title":"Source"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoppedSendsResponseApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/stopped-sends":{"get":{"tags":["journeys"],"summary":"List Stopped Sends","operationId":"list_stopped_sends","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Inclusive UTC lower bound","title":"From"},"description":"Inclusive UTC lower bound"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Exclusive UTC upper bound","title":"To"},"description":"Exclusive UTC upper bound"},{"name":"reason","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/StoppedSendReason"},{"type":"null"}],"title":"Reason"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/StoppedSendSource"},{"type":"null"}],"title":"Source"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoppedSendsResponseApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private/journeys":{"get":{"tags":["private-journeys"],"summary":"Get All Journeys For Apps","description":"Get enabled journeys for the Flink app to process the events.","operationId":"get_all_journeys_private","security":[{"APIKeyHeader":["openid"]}],"parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JourneyTypeEnum"},{"type":"null"}],"description":"Filter by type","title":"Type"},"description":"Filter by type"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JourneyPrivateApiDTO"},"title":"Response Get All Journeys Private"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["private-journeys"],"summary":"Create Journey Private","description":"Create a journey of any type on behalf of Gaia, scoped to the token's own tenant.\n\nRuns through the same ``CreateJourneyAsUserUseCase`` as the public route, so preflight\nchecks, collision guardrails, and campaign audience validation are not duplicated. The\naudit row is attributed to the system actor \"ai-agent\", not an impersonated user.\nCreating a Support journey type without Engage Support access returns a 422 with code\n``engage_support_access_required``, or the retryable ``engage_support_access_unavailable``\nwhen access cannot be evaluated.","operationId":"create_journey_private","security":[{"IDPBearerToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/WinbackCreateJourneyApiDTO"},{"$ref":"#/components/schemas/CartAbandonedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/SessionAbandonedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/CampaignCreateJourneyApiDTO"},{"$ref":"#/components/schemas/PostPurchaseCreateJourneyApiDTO"},{"$ref":"#/components/schemas/WelcomeCreateJourneyApiDTO"},{"$ref":"#/components/schemas/CreateCustomJourneyApiDTO"},{"$ref":"#/components/schemas/FulfillmentMonitorCreateJourneyApiDTO"},{"$ref":"#/components/schemas/ShippingDelayCreateJourneyApiDTO"},{"$ref":"#/components/schemas/AddressIssueCreateJourneyApiDTO"},{"$ref":"#/components/schemas/RefundIssuedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/DispatchDelayCreateJourneyApiDTO"},{"$ref":"#/components/schemas/ShippingFailedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/OrderTaggedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/PartialDeliveryCreateJourneyApiDTO"},{"$ref":"#/components/schemas/OrderCancelledCreateJourneyApiDTO"},{"$ref":"#/components/schemas/ReturnReceivedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/OrderFollowUpCreateJourneyApiDTO"}],"discriminator":{"propertyName":"type","mapping":{"win_back":"#/components/schemas/WinbackCreateJourneyApiDTO","cart_abandoned":"#/components/schemas/CartAbandonedCreateJourneyApiDTO","session_abandoned":"#/components/schemas/SessionAbandonedCreateJourneyApiDTO","campaign":"#/components/schemas/CampaignCreateJourneyApiDTO","post_purchase":"#/components/schemas/PostPurchaseCreateJourneyApiDTO","welcome":"#/components/schemas/WelcomeCreateJourneyApiDTO","custom":"#/components/schemas/CreateCustomJourneyApiDTO","fulfillment_monitor":"#/components/schemas/FulfillmentMonitorCreateJourneyApiDTO","shipping_delay":"#/components/schemas/ShippingDelayCreateJourneyApiDTO","address_issue":"#/components/schemas/AddressIssueCreateJourneyApiDTO","refund_issued":"#/components/schemas/RefundIssuedCreateJourneyApiDTO","dispatch_delay":"#/components/schemas/DispatchDelayCreateJourneyApiDTO","shipping_failed":"#/components/schemas/ShippingFailedCreateJourneyApiDTO","order_tagged":"#/components/schemas/OrderTaggedCreateJourneyApiDTO","partial_delivery":"#/components/schemas/PartialDeliveryCreateJourneyApiDTO","order_cancelled":"#/components/schemas/OrderCancelledCreateJourneyApiDTO","return_received":"#/components/schemas/ReturnReceivedCreateJourneyApiDTO","order_follow_up":"#/components/schemas/OrderFollowUpCreateJourneyApiDTO"}},"title":"Journey"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyDetailApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private/journeys/reply-context":{"get":{"tags":["private-journeys"],"summary":"Get Journey Reply Context","description":"Journey context for lazily seeding an ai-agent session from a shopper's ticket reply.\n\nReturns the message instructions, campaign settings (brand, tone, opt-out, discount config),\nparticipation identifiers, transactional Engage facts and, for partial delivery and cancellation\nconfirmation, the store-agent-only ``agent_only_context`` (fulfillment-order hold reasons or the raw cancel\nreason, never for a model prompt or a shopper message)\nfor the journey participation linked to ``ticket_id``. Returns 404 when the ticket has no participation, so ai-agent can distinguish\n\"not a journey ticket\" from an error. Read-only and idempotent — safe for activity retries.\n\n``account_id`` must match the calling token's own ``gorgias:account_id`` claim; a mismatch\nis rejected with 403 before any data is read.","operationId":"get_journey_reply_context","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk account ID","title":"Account Id"},"description":"Helpdesk account ID"},{"name":"ticket_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk ticket ID the shopper replied on","title":"Ticket Id"},"description":"Helpdesk ticket ID the shopper replied on"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyReplyContextApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private/journeys/list":{"get":{"tags":["private-journeys"],"summary":"Get Journeys For Internal Apps","description":"List an account's journeys for a trusted internal app, scoped to the token's own tenant.","operationId":"get_journeys_private","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Filter by integration ID","title":"Integration Id"},"description":"Filter by integration ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JourneyApiDTO"},"title":"Response Get Journeys Private"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private/journeys/{journey_id}":{"get":{"tags":["private-journeys"],"summary":"Get Journey For Internal Apps","description":"Read a single journey for a trusted internal app, scoped to the token's own tenant.\n\nSoft-deleted journeys stay readable (``include_deleted=True``), matching the public detail route.","operationId":"get_journey_private","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyDetailApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["private-journeys"],"summary":"Patch Journey Private","description":"Partially update a journey of any type on behalf of Gaia, scoped to the token's own tenant.\n\n``validate_patch_journey_private`` reads the discriminator from the *stored* journey, so an\nuntouched field keeps its prior value and a campaign pause/resume/cancel expressed as a\n``campaign.state`` change passes the same ``_validate_campaign_state_transition`` gate and\ntriggers the same pause/resume/cancel workflow as the public PATCH route.\nPatching a Support journey without Engage Support access returns a 422 with code\n``engage_support_access_required`` (``engage_support_access_unavailable``, retryable, when\naccess cannot be evaluated), state-only changes included, and\nactivating one without a ready transactional sender returns a 422 with code\n``transactional_sms_sender_not_ready``, ``transactional_email_sender_not_ready`` or\n``transactional_whatsapp_sender_not_ready``. An active whatsapp journey without a template\nreturns a 422 with code ``whatsapp_template_required``.","operationId":"patch_journey_private","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyDetailApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["private-journeys"],"summary":"Delete Journey Private","description":"Soft-delete a journey of any type on behalf of Gaia, scoped to the token's own tenant.","operationId":"delete_journey_private","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private/journeys/{journey_id}/refinement/proposals":{"post":{"tags":["private-journeys"],"summary":"Create Journey Refinement Proposal Private","description":"Mirrors create_journey_refinement_proposal for Gaia, scoped to the token's own tenant.\n\nSame response contract and semantics: stateless, 404 for a journey outside the token's account,\n502 for a generation failure, 504 for a gorgias-ml timeout. The request\ntakes current_instructions (the text to refine, such as the previous round's proposal; defaults to\nthe journey's stored instructions) and instructions (the merchant's brief).","operationId":"create_journey_refinement_proposal_private","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GenerateInstructionsPrivateRequestApiDTO"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateInstructionsResponseApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journey-groups/{group_type}":{"get":{"tags":["journeys"],"summary":"Get Journey Group","description":"Return the store's group settings, or the unsaved defaults when the store has not saved the group.","operationId":"get_journey_group","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/JourneyGroupType"}},{"name":"integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store integration ID","title":"Integration Id"},"description":"Store integration ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyGroupApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["journeys"],"summary":"Put Journey Group","description":"Create or replace the store's group settings.","operationId":"put_journey_group","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/JourneyGroupType"}},{"name":"integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store integration ID","title":"Integration Id"},"description":"Store integration ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateJourneyGroupApiDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyGroupApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/{journey_id}/validate-instructions":{"post":{"tags":["journeys"],"summary":"Validate Journey Instructions","description":"Advisory: (re)trigger the background instruction-validation workflow and return immediately.\n\nValidation now runs one LLM critique per target (primary + up to 2 A/B variants), which can\nexceed the synchronous request budget. So this endpoint fires the Temporal workflow\n(fire-and-forget, deduped by journey) and returns 202; the client polls\nGET /journeys/{journey_id}/validation for the per-target result.\n\nPassing the session makes the use case assert ownership first (get_by_id -> JourneyNotFound ->\n404) so an unknown or cross-account journey gets a real error instead of a 202 that then polls\nforever against a null result (the workflow's own ownership failure is swallowed fire-and-forget).","operationId":"validate_journey_instructions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/{journey_id}/refinement/proposals":{"post":{"tags":["journeys"],"summary":"Create Journey Refinement Proposal","description":"Synchronously (re)generate instructions for a journey via gorgias-ml.\n\nPOST, not GET: non-idempotent and incurs inference cost; \"Regenerate\" is the same call again.\nStateless — nothing is persisted. The caller may send the prompt it is actively editing in the\nrequest body; when omitted, the journey's stored instructions are used as the refinement input.\nGeneration has no deterministic fallback, so a gorgias-ml failure surfaces as an HTTP error the\nfrontend Retry button retries, not a 200 with a null body. Unknown/cross-account journeys 404 via\nthe account-scoped ownership check in the use case; 503 stays reserved for DB connectivity.","operationId":"create_journey_refinement_proposal","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GenerateInstructionsRequestApiDTO"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateInstructionsResponseApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/validation":{"get":{"tags":["journeys"],"summary":"Get Journeys Validation Batch","operationId":"get_journeys_validation_batch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":200,"description":"Journey ids to look up","default":[],"title":"Journey Ids"},"description":"Journey ids to look up"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JourneyValidationSummaryApiDTO"},"title":"Response Get Journeys Validation Batch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/{journey_id}/validation":{"get":{"tags":["journeys"],"summary":"Get Journey Validation","operationId":"get_journey_validation","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationResultApiDTO"},{"type":"null"}],"title":"Response Get Journey Validation"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/{journey_id}/instruction-experiments/{experiment_id}/approve":{"post":{"tags":["journeys"],"summary":"Approve Instruction Experiment","operationId":"approve_instruction_experiment","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionExperimentApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/{journey_id}/instruction-experiments/{experiment_id}/reject":{"post":{"tags":["journeys"],"summary":"Reject Instruction Experiment","operationId":"reject_instruction_experiment","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionExperimentApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/{journey_id}/instruction-experiments/pending":{"get":{"tags":["journeys"],"summary":"Get Pending Instruction Experiment","operationId":"get_pending_instruction_experiment","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InstructionExperimentApiDTO"},"title":"Response Get Pending Instruction Experiment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/{journey_id}/instruction-experiments/active":{"get":{"tags":["journeys"],"summary":"Get Active Instruction Experiment","description":"Read the active Cortex instruction experiment for a Flow.\n\nReturns a list of at most one item, since at most one experiment can be active\nfor a Flow at a time; empty when none has been activated yet — an expected\nstate, not an error.","operationId":"get_active_instruction_experiment","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InstructionExperimentApiDTO"},"title":"Response Get Active Instruction Experiment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/instruction-experiments/pending":{"get":{"tags":["journeys"],"summary":"Get Pending Instruction Experiments For Store","operationId":"get_pending_instruction_experiments_for_store","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InstructionExperimentApiDTO"},"title":"Response Get Pending Instruction Experiments For Store"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/{journey_id}/test":{"post":{"tags":["journeys"],"summary":"Test Journey","operationId":"test_journey","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestJourneyApiDTO"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestJourneyResponseApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/find-test-shopper":{"post":{"tags":["journeys"],"summary":"Find Test Shopper","description":"Account-scoped shopper search for the test panel (AIJ-2516).\n\nReturns at most one masked candidate (a list, so the cap can grow later): the best match\nfor the given ``email`` (most recent order wins), or a random eligible shopper when\n``email`` is omitted; empty list on no-match.\nInvisible (404) while the real-shopper-testing flag is off.","operationId":"find_test_shopper","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindTestShopperApiDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindTestShopperResponseApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/journeys/campaigns/preview-v2":{"post":{"tags":["journeys"],"summary":"Preview Campaign Templates","description":"Dry-run campaign template generation for a journey.\n\nTwo auth paths (AIJ-3055). A merchant admin/agent JWT scopes the preview to the token's own\naccount and stays gated by AI_JOURNEY_TEMPLATE_PREVIEW. The internal user API key carries no\naccount, so the target account is resolved from the journey being previewed, and the flag —\nwhich exists to control merchant exposure — is not read.","operationId":"preview_campaign_templates","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewTemplatesRequestApiDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTemplatePreviewApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}]}},"/accounts/{account_id}/stores/{store_integration_id}/run":{"post":{"tags":["journeys"],"summary":"Run Ai Journey Engine","operationId":"run_ai_journey_engine","security":[{"APIKeyHeader":["openid"]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Customer ID for the cart","title":"Customer Id"},"description":"Customer ID for the cart"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyCartPayloadApiDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunAiJourneyEngineResponseApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journey-participations/{journey_participation_id}":{"get":{"tags":["journeys"],"summary":"Get Journey Participation Status","operationId":"get_journey_participation_status","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_participation_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Participation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyParticipationStatusApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys":{"get":{"tags":["journeys"],"summary":"Get All Journeys","operationId":"get_all_journeys_public","security":[{"HTTPBearer":[]}],"parameters":[{"name":"integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Filter by integration ID","title":"Integration Id"},"description":"Filter by integration ID"},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/JourneyTypeEnum"}},{"type":"null"}],"description":"Filter by multiple journey types","title":"Types"},"description":"Filter by multiple journey types"},{"name":"custom_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number for CUSTOM flows","default":1,"title":"Custom Page"},"description":"Page number for CUSTOM flows"},{"name":"custom_page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size for CUSTOM flows","default":10,"title":"Custom Page Size"},"description":"Page size for CUSTOM flows"},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/JourneyDeletedFilter","description":"Filter by soft-deletion state: 'active' (default, excludes deleted), 'deleted' (only soft-deleted), or 'all' (both). Distinct from a journey's lifecycle state (active/draft/paused).","default":"active"},"description":"Filter by soft-deletion state: 'active' (default, excludes deleted), 'deleted' (only soft-deleted), or 'all' (both). Distinct from a journey's lifecycle state (active/draft/paused)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JourneyApiDTO"},"title":"Response Get All Journeys Public"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["journeys"],"summary":"Create Journey","operationId":"create_journey","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/WinbackCreateJourneyApiDTO"},{"$ref":"#/components/schemas/CartAbandonedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/SessionAbandonedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/CampaignCreateJourneyApiDTO"},{"$ref":"#/components/schemas/PostPurchaseCreateJourneyApiDTO"},{"$ref":"#/components/schemas/WelcomeCreateJourneyApiDTO"},{"$ref":"#/components/schemas/CreateCustomJourneyApiDTO"},{"$ref":"#/components/schemas/FulfillmentMonitorCreateJourneyApiDTO"},{"$ref":"#/components/schemas/ShippingDelayCreateJourneyApiDTO"},{"$ref":"#/components/schemas/AddressIssueCreateJourneyApiDTO"},{"$ref":"#/components/schemas/RefundIssuedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/DispatchDelayCreateJourneyApiDTO"},{"$ref":"#/components/schemas/ShippingFailedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/OrderTaggedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/PartialDeliveryCreateJourneyApiDTO"},{"$ref":"#/components/schemas/OrderCancelledCreateJourneyApiDTO"},{"$ref":"#/components/schemas/ReturnReceivedCreateJourneyApiDTO"},{"$ref":"#/components/schemas/OrderFollowUpCreateJourneyApiDTO"}],"discriminator":{"propertyName":"type","mapping":{"win_back":"#/components/schemas/WinbackCreateJourneyApiDTO","cart_abandoned":"#/components/schemas/CartAbandonedCreateJourneyApiDTO","session_abandoned":"#/components/schemas/SessionAbandonedCreateJourneyApiDTO","campaign":"#/components/schemas/CampaignCreateJourneyApiDTO","post_purchase":"#/components/schemas/PostPurchaseCreateJourneyApiDTO","welcome":"#/components/schemas/WelcomeCreateJourneyApiDTO","custom":"#/components/schemas/CreateCustomJourneyApiDTO","fulfillment_monitor":"#/components/schemas/FulfillmentMonitorCreateJourneyApiDTO","shipping_delay":"#/components/schemas/ShippingDelayCreateJourneyApiDTO","address_issue":"#/components/schemas/AddressIssueCreateJourneyApiDTO","refund_issued":"#/components/schemas/RefundIssuedCreateJourneyApiDTO","dispatch_delay":"#/components/schemas/DispatchDelayCreateJourneyApiDTO","shipping_failed":"#/components/schemas/ShippingFailedCreateJourneyApiDTO","order_tagged":"#/components/schemas/OrderTaggedCreateJourneyApiDTO","partial_delivery":"#/components/schemas/PartialDeliveryCreateJourneyApiDTO","order_cancelled":"#/components/schemas/OrderCancelledCreateJourneyApiDTO","return_received":"#/components/schemas/ReturnReceivedCreateJourneyApiDTO","order_follow_up":"#/components/schemas/OrderFollowUpCreateJourneyApiDTO"}},"title":"Journey"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyDetailApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/default-content":{"get":{"tags":["journeys"],"summary":"Get Journey Default Content","description":"Return the content a new journey of the type starts from, before the journey exists.\n\nFor a support transactional type, `default_content.ai.message_instructions` is the editor's\nstarting instructions in AI mode, and the account needs Engage Support access (403 otherwise).\nWith a `channel`, `default_content.template` is the body a new template of that channel starts\nfrom in template mode: `body_text` for SMS, `body_html_template` and `subject` for e-mail, null for a\nchannel without templates. Other types answer `default_content: null`. Not behind the message templates flag.","operationId":"get_journey_default_content","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/JourneyTypeEnum","description":"Journey type"},"description":"Journey type"},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JourneyChannel"},{"type":"null"}],"description":"Channel whose default template body to return","title":"Channel"},"description":"Channel whose default template body to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyTypeDefaultContentApiDTO"}}}},"403":{"description":"Engage Support access is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journeys/{journey_id}":{"get":{"tags":["journeys"],"summary":"Get Journey Details","operationId":"get_journey_details","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyDetailApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["journeys"],"summary":"Patch Journey","operationId":"patch_journey","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyDetailApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["journeys"],"summary":"Delete Journey","operationId":"delete_journey","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_id","in":"path","required":true,"schema":{"type":"string","title":"Journey Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opportunities":{"get":{"tags":["opportunities"],"summary":"List Opportunities","operationId":"list_opportunities","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store scope","title":"Store Integration Id"},"description":"Store scope"},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OpportunityStatus","description":"Filter by opportunity status","default":"proposed"},"description":"Filter by opportunity status"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Limit"},"description":"Page size"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque pagination cursor","title":"Cursor"},"description":"Opaque pagination cursor"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityPageApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opportunities/count":{"get":{"tags":["opportunities"],"summary":"Count Opportunities","operationId":"count_opportunities","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store scope","title":"Store Integration Id"},"description":"Store scope"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityCountApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opportunities/{opportunity_id}":{"get":{"tags":["opportunities"],"summary":"Get Opportunity","operationId":"get_opportunity","security":[{"HTTPBearer":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","title":"Opportunity Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store scope","title":"Store Integration Id"},"description":"Store scope"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opportunities/{opportunity_id}/accept":{"post":{"tags":["opportunities"],"summary":"Accept Opportunity","operationId":"accept_opportunity","security":[{"HTTPBearer":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","title":"Opportunity Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store scope","title":"Store Integration Id"},"description":"Store scope"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opportunities/{opportunity_id}/dismiss":{"post":{"tags":["opportunities"],"summary":"Dismiss Opportunity","operationId":"dismiss_opportunity","security":[{"HTTPBearer":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","title":"Opportunity Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store scope","title":"Store Integration Id"},"description":"Store scope"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DismissOpportunityRequestApiDTO"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/journey-conversations/{ticket_id}/review":{"get":{"tags":["journeys"],"summary":"Get Journey Conversation Review","description":"The ticket's review. 404 when it has none, or when the ticket is not this account's.","operationId":"get_journey_conversation_review","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Helpdesk ticket ID","title":"Ticket Id"},"description":"Helpdesk ticket ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationReviewApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["journeys"],"summary":"Submit Journey Conversation Review","description":"Store the review and tag the ticket ``journey_reviewed``; a repeat submission replaces it.\n\n404 for a ticket that is not an AI Journey ticket of this account. The review is saved even\nwhen tagging fails: the response then has ``tagged: false``, and submitting again retries.","operationId":"submit_journey_conversation_review","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Helpdesk ticket ID","title":"Ticket Id"},"description":"Helpdesk ticket ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitConversationReviewApiDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationReviewApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/journey/{token}":{"post":{"tags":["webhooks"],"summary":"Inbound Journey Webhook","description":"Public endpoint for inbound Klaviyo flow webhooks.\n\nToken is the credential -- no auth middleware applied.\nReturns 404 for unknown tokens AND for inactive journeys (enumeration prevention).\nReturns 404 when the AiJourneyCustomFlowEnabled flag is off.\nReturns 404 when no shopper is found for the given phone number.\nReturns 413 when the request body exceeds MAX_WEBHOOK_BODY_SIZE.\n\nWhen phone_number is absent but other identifiers are present, the request is\naccepted (202) and logged for future shopper resolution.","operationId":"inbound_journey_webhook","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns":{"post":{"tags":["campaigns"],"summary":"Create Campaign","operationId":"create_campaign","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCreateRequestSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["campaigns"],"summary":"Get Campaigns","operationId":"get_campaigns","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_connection_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Channel connection ID to which campaigns belong","title":"Channel Connection Id"},"description":"Channel connection ID to which campaigns belong"},{"name":"channel_connection_external_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Channel connection external ID","title":"Channel Connection External Ids"},"description":"Channel connection external ID"},{"name":"deleted","in":"query","required":false,"schema":{"type":"boolean","description":"Include deleted campaigns","default":false,"title":"Deleted"},"description":"Include deleted campaigns"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CampaignResponseSchema"},"title":"Response Get Campaigns"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/all":{"get":{"tags":["campaigns"],"summary":"Get All Campaigns","operationId":"get_all_campaigns","parameters":[{"name":"data-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CampaignResponseSchema"},"title":"Response Get All Campaigns"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}":{"get":{"tags":["campaigns"],"summary":"Get Campaign","operationId":"get_campaign","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["campaigns"],"summary":"Patch Campaign","operationId":"patch_campaign","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignPatchRequestSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["campaigns"],"summary":"Delete Campaign","operationId":"delete_campaign","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/ab-test":{"post":{"tags":["campaigns"],"summary":"Create Ab Group","operationId":"create_ab_group","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABGroupResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/ab-test/start":{"post":{"tags":["campaigns"],"summary":"Start Ab Group","operationId":"start_ab_group","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABGroupResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/ab-test/pause":{"post":{"tags":["campaigns"],"summary":"Pause Ab Group","operationId":"pause_ab_group","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABGroupResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/ab-test/stop":{"post":{"tags":["campaigns"],"summary":"Stop Ab Group","operationId":"stop_ab_group","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABGroupStopRequestSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABGroupResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/suggest-copy":{"post":{"tags":["campaigns"],"summary":"Suggest Campaign Copy","operationId":"suggest_campaign_copy","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCopySuggestionRequestSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCopySuggestionResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/channel-connections":{"post":{"tags":["channel-connections"],"summary":"Create Channel Connection","operationId":"create_channel_connection","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelConnectionCreateRequestSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelConnectionResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["channel-connections"],"summary":"Get Channel Connections","operationId":"get_channel_connections","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Gorgias integration ID for the store","title":"Store Integration Id"},"description":"Gorgias integration ID for the store"},{"name":"external_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"External ID connected to the Channel connection, usually dependent on the channel type","title":"External Id"},"description":"External ID connected to the Channel connection, usually dependent on the channel type"},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ChannelType"},{"type":"null"}],"description":"Channel type, e.g. widget","title":"Channel"},"description":"Channel type, e.g. widget"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChannelConnectionResponseSchema"},"title":"Response Get Channel Connections"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/channel-connections/{channel_connection_id}":{"get":{"tags":["channel-connections"],"summary":"Get Channel Connection","operationId":"get_channel_connection","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_connection_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelConnectionResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["channel-connections"],"summary":"Patch Channel Connection","operationId":"patch_channel_connection","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_connection_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelPatchRequestSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelConnectionResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["channel-connections"],"summary":"Delete Channel Connection","operationId":"delete_channel_connection","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_connection_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Connection Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consent/subscribers":{"get":{"tags":["consent-admin"],"summary":"List Consent Subscribers","description":"List consent subscribers for a store, one row per shopper, newest first.","operationId":"list_consent_subscribers","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ConsentChannel"},"maxItems":2},{"type":"null"}],"description":"Only shoppers with a record on this channel","title":"Channel"},"description":"Only shoppers with a record on this channel"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ConsentStatus"},"maxItems":6},{"type":"null"}],"description":"Only shoppers with a record in this status","title":"Status"},"description":"Only shoppers with a record in this status"},{"name":"source_surface_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":42},{"type":"null"}],"description":"Capture surface id","title":"Source Surface Id"},"description":"Capture surface id"},{"name":"opt_in_date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Inclusive lower bound on the opt-in time. A value with no offset is read as UTC.","title":"Opt In Date From"},"description":"Inclusive lower bound on the opt-in time. A value with no offset is read as UTC."},{"name":"opt_in_date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Exclusive upper bound on the opt-in time. A value with no offset is read as UTC.","title":"Opt In Date To"},"description":"Exclusive upper bound on the opt-in time. A value with no offset is read as UTC."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size","default":100,"title":"Limit"},"description":"Page size"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor from a previous response; omit for the first page","title":"Cursor"},"description":"Cursor from a previous response; omit for the first page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSubscriberListApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consent/subscribers/{subscriber_id}":{"get":{"tags":["consent-admin"],"summary":"Get Consent Subscriber","description":"Get one consent subscriber, with per-channel consent and opt-in provenance.","operationId":"get_consent_subscriber","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subscriber_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Subscriber Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSubscriberProfileApiDTO"}}}},"404":{"description":"No such subscriber for this store.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consent/disclosure-templates":{"get":{"tags":["consent-admin"],"summary":"List Disclosure Templates","description":"List disclosure template heads and current-version metadata for a store.","operationId":"list_consent_disclosure_templates","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ConsentChannel"},{"type":"null"}],"title":"Channel"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":2,"maxLength":8},{"type":"null"}],"title":"Region"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentDisclosureTemplateListApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["consent-admin"],"summary":"Create Disclosure Template","description":"Create a disclosure template and its first immutable version.","operationId":"create_consent_disclosure_template","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentDisclosureTemplateCreateApiDTO"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentDisclosureTemplateDetailApiDTO"}}}},"422":{"description":"The disclosure template request conflicts with existing data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/consent/disclosure-templates/{template_id}":{"get":{"tags":["consent-admin"],"summary":"Get Disclosure Template","description":"Get a disclosure template's current version and immutable history.","operationId":"get_consent_disclosure_template","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":42,"title":"Template Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentDisclosureTemplateDetailApiDTO"}}}},"404":{"description":"No such disclosure template for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consent/disclosure-templates/{template_id}/versions":{"post":{"tags":["consent-admin"],"summary":"Create Disclosure Template Version","description":"Append an immutable version and make it current.","operationId":"create_consent_disclosure_template_version","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":42,"title":"Template Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentDisclosureVersionCreateApiDTO"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentDisclosureTemplateDetailApiDTO"}}}},"404":{"description":"No such disclosure template for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The disclosure template request conflicts with existing data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/consent/surfaces":{"get":{"tags":["consent-admin"],"summary":"List Consent Surfaces","description":"List every consent surface configured for a store, including drafts and paused ones.","operationId":"list_consent_surfaces","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ConsentSurfaceStatus"}},{"type":"null"}],"description":"Only surfaces in these statuses","title":"Status"},"description":"Only surfaces in these statuses"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSurfaceListApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["consent-admin"],"summary":"Create Consent Surface","description":"Create a draft consent surface, seeding the region's disclosure text if needed.","operationId":"create_consent_surface","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSurfaceCreateApiDTO"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSurfaceAdminApiDTO"}}}},"404":{"description":"No such store for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consent/surfaces/{surface_id}":{"get":{"tags":["consent-admin"],"summary":"Get Consent Surface","description":"Get one consent surface.","operationId":"get_consent_surface","security":[{"HTTPBearer":[]}],"parameters":[{"name":"surface_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":42,"title":"Surface Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSurfaceAdminApiDTO"}}}},"404":{"description":"No such consent surface for this store.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["consent-admin"],"summary":"Update Consent Surface","description":"Update a consent surface. Region and status are not patchable.","operationId":"update_consent_surface","security":[{"HTTPBearer":[]}],"parameters":[{"name":"surface_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":42,"title":"Surface Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSurfacePatchApiDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSurfaceAdminApiDTO"}}}},"404":{"description":"No such consent surface for this store.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["consent-admin"],"summary":"Delete Consent Surface","description":"Soft-delete a consent surface, whatever its current status.","operationId":"delete_consent_surface","security":[{"HTTPBearer":[]}],"parameters":[{"name":"surface_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":42,"title":"Surface Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"No such consent surface for this store.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consent/surfaces/{surface_id}/activate":{"post":{"tags":["consent-admin"],"summary":"Activate Consent Surface","description":"Start serving a consent surface to the storefront.","operationId":"activate_consent_surface","security":[{"HTTPBearer":[]}],"parameters":[{"name":"surface_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":42,"title":"Surface Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSurfaceAdminApiDTO"}}}},"404":{"description":"No such consent surface for this store.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consent/surfaces/{surface_id}/pause":{"post":{"tags":["consent-admin"],"summary":"Pause Consent Surface","description":"Stop serving a consent surface to the storefront.","operationId":"pause_consent_surface","security":[{"HTTPBearer":[]}],"parameters":[{"name":"surface_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":42,"title":"Surface Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Helpdesk store integration id","title":"Store Integration Id"},"description":"Helpdesk store integration id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSurfaceAdminApiDTO"}}}},"404":{"description":"No such consent surface for this store.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ab-tests":{"post":{"tags":["ab-tests"],"summary":"Create Ab Test","operationId":"create_ab_test","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABTestCreateRequestSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABTestResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ab-tests"],"summary":"Get Ab Tests","operationId":"get_ab_tests","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_connection_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Channel connection ID to which AB tests belong","title":"Channel Connection Id"},"description":"Channel connection ID to which AB tests belong"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ABTestState"},{"type":"null"}],"description":"State of A/B test","title":"State"},"description":"State of A/B test"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ABTestResponseSchema"},"title":"Response Get Ab Tests"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ab-tests/{ab_test_id}":{"get":{"tags":["ab-tests"],"summary":"Get Ab Test","operationId":"get_ab_test","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ab_test_id","in":"path","required":true,"schema":{"type":"string","title":"Ab Test Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABTestResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["ab-tests"],"summary":"Patch Ab Test","operationId":"patch_ab_test","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ab_test_id","in":"path","required":true,"schema":{"type":"string","title":"Ab Test Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABTestPatchRequestSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABTestResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/demo/check-or-register-phone":{"post":{"tags":["demo"],"summary":"Post Demo Check Or Register Phone","operationId":"post_demo_check_or_register_phone","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckOrRegisterPhoneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/demo/start-conversation":{"post":{"tags":["demo"],"summary":"Post Demo Start Conversation","operationId":"post_demo_start_conversation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDemoConversationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/brand-assets":{"post":{"tags":["journeys"],"summary":"Create Email Brand Asset","description":"Upload a public, non-expiring image; never include confidential or personalized data.\n\nAccepts one PNG/JPEG-labelled file up to 5 MiB, unchanged, without image decoding.\nThe complete multipart body is capped at 5 MiB + 64 KiB and must arrive within 15 seconds.","operationId":"create_email_brand_asset","security":[{"HTTPBearer":[]}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailBrandAssetApiDTO"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file","store_integration_id","object_type"],"properties":{"file":{"type":"string","format":"binary"},"store_integration_id":{"type":"integer","minimum":1,"maximum":2147483647},"object_type":{"type":"string","enum":["logo_light","logo_dark"]}}},"encoding":{"file":{"contentType":"image/png, image/jpeg"}}}}}},"get":{"tags":["journeys"],"summary":"List Email Brand Assets","operationId":"list_email_brand_assets","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmailBrandAssetApiDTO"},"title":"Response List Email Brand Assets"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/brand-assets/{asset_id}":{"get":{"tags":["journeys"],"summary":"Get Email Brand Asset","operationId":"get_email_brand_asset","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"pattern":"^[^\\x00]*$","title":"Asset Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailBrandAssetApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["journeys"],"summary":"Delete Email Brand Asset","description":"Hide an asset from the library. Its public URL remains live; no CDN purge is attempted.","operationId":"delete_email_brand_asset","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"pattern":"^[^\\x00]*$","title":"Asset Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Store Integration Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/message-templates/variables":{"get":{"tags":["journeys"],"summary":"Get Email Template Variables","description":"Return the picker projection of the journey's variable catalog: active variables only.","operationId":"get_email_template_variables","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/JourneyTypeEnum","description":"Journey type"},"description":"Journey type"},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateVariableCatalogApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/message-templates":{"post":{"tags":["journeys"],"summary":"Create Message Template","description":"Save an immutable email or SMS template; the server sets the content schema version.\n\nEmail HTML is stored as submitted once its syntax and brand tags pass the checks. An email's\noptional ``subject`` is one line of up to 255 characters using only variables, with an optional\n``default``; outside that grammar it is a 422 ``Subject compilation failed: <code>``.","operationId":"create_message_template","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CreateEmailMessageTemplateApiDTO"},{"$ref":"#/components/schemas/CreateSmsMessageTemplateApiDTO"}],"discriminator":{"propertyName":"channel","mapping":{"email":"#/components/schemas/CreateEmailMessageTemplateApiDTO","sms":"#/components/schemas/CreateSmsMessageTemplateApiDTO"}},"title":"Data"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["journeys"],"summary":"List Message Templates","description":"List the caller's active template metadata for one owned store (never template bodies).","operationId":"list_message_templates","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MessageTemplateChannel"},{"type":"null"}],"description":"Only templates of this channel","title":"Channel"},"description":"Only templates of this channel"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageTemplateApiDTO"},"title":"Response List Message Templates"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/message-templates/{template_id}":{"get":{"tags":["journeys"],"summary":"Get Message Template","description":"Return one of the account's active templates with its channel's body fields.","operationId":"get_message_template","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"pattern":"^[^\\x00]*$","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/EmailMessageTemplateDetailApiDTO"},{"$ref":"#/components/schemas/SmsMessageTemplateDetailApiDTO"}],"discriminator":{"propertyName":"channel","mapping":{"email":"#/components/schemas/EmailMessageTemplateDetailApiDTO","sms":"#/components/schemas/SmsMessageTemplateDetailApiDTO"}},"title":"Response Get Message Template"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["journeys"],"summary":"Delete Message Template","description":"Soft-delete one owned template; a template a journey or campaign still uses is refused (409).","operationId":"delete_message_template","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"pattern":"^[^\\x00]*$","title":"Template Id"}},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/message-templates/{template_id}/preview":{"post":{"tags":["journeys"],"summary":"Preview Message Template","description":"Render a template for preview; nothing is persisted.\n\nAn email template renders with a real or synthetic shopper's data and returns\n``rendered_html``, and ``rendered_subject``: its subject as a send renders it, or null\nwithout a subject or for one a send would replace with its journey type's default. An SMS template needs a catalogued ``journey_type``, renders\nwith that catalog's fixed sample values and its store's brand name, and returns\n``rendered_text`` with the ``catalog_version``.","operationId":"preview_message_template","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"pattern":"^[^\\x00]*$","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplatePreviewRequestApiDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EmailTemplatePreviewResponseApiDTO"},{"$ref":"#/components/schemas/SmsTemplatePreviewResponseApiDTO"}],"title":"Response Preview Message Template"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/brand-configuration":{"get":{"tags":["journeys"],"summary":"Get Email Brand Configuration","description":"Return the active configuration or a typed empty default without creating a row.","operationId":"get_email_brand_configuration","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailBrandConfiguration"}}}},"404":{"description":"Store not found or feature unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid configuration, store identifier, or asset reference.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"tags":["journeys"],"summary":"Put Email Brand Configuration","description":"Replace the complete configuration, clearing omitted optional settings.","operationId":"put_email_brand_configuration","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Store Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailBrandConfiguration"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailBrandConfiguration"}}}},"404":{"description":"Store not found or feature unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid configuration, store identifier, or asset reference.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reviewer/status":{"get":{"tags":["rcs-reviewer"],"summary":"Get Reviewer Status","operationId":"get_reviewer_status","parameters":[{"name":"store","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Store"}},{"name":"phone","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Phone"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewerStatusDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reviewer/register":{"post":{"tags":["rcs-reviewer"],"summary":"Post Reviewer Register","operationId":"post_reviewer_register","parameters":[{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewerRegisterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewerStatusDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reviewer/trigger":{"post":{"tags":["rcs-reviewer"],"summary":"Post Reviewer Trigger","operationId":"post_reviewer_trigger","parameters":[{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewerTriggerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewerStatusDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private/audiences/segments":{"post":{"tags":["private-audiences"],"summary":"Create Segment Private","description":"Create a Gorgias audience segment on behalf of Gaia, scoped to the token's own tenant.\n\nRuns through ``CreateGorgiasSegmentUseCase``, which shares its ``sync_created_segment_audience_list``\nstep with the create_audience_segment MCP tool so that sync logic is not duplicated; the\ncreate+sync path itself belongs only to this route. ``audience_list_id`` is the local ID\ndirectly attachable to a journey's ``included_audience_list_ids``; it is null when the\ninternal sync failed even though the segment itself was created upstream.","operationId":"create_segment_private","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSegmentPrivateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSegmentPrivateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"IDPBearerToken":[]}]}},"/audiences/lists":{"get":{"tags":["audiences"],"summary":"Get Audiences Lists","operationId":"get_audiences_lists","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search lists by name (exact match)","title":"Search"},"description":"Search lists by name (exact match)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiences/segments":{"get":{"tags":["audiences"],"summary":"Get Audiences Segments","operationId":"get_audiences_segments","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"},{"name":"source","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AudienceListSource","description":"Audience source","default":"klaviyo"},"description":"Audience source"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search segments by name (exact match)","title":"Search"},"description":"Search segments by name (exact match)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiences/segments/{segment_id}":{"delete":{"tags":["audiences"],"summary":"Delete Audience Segment","operationId":"delete_audience_segment","security":[{"HTTPBearer":[]}],"parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"string","description":"Upstream Gorgias segment ID","title":"Segment Id"},"description":"Upstream Gorgias segment ID"},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"}],"responses":{"204":{"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentInUseSchema"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiences/usage":{"get":{"tags":["audiences"],"summary":"Get Audiences Usage","operationId":"get_audiences_usage","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"},{"name":"source","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AudienceListSource","description":"Audience source","default":"gorgias"},"description":"Audience source"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiences/{audience_id}/profile-count":{"get":{"tags":["audiences"],"summary":"Get Audience Profile Count","operationId":"get_audience_profile_count","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audience_id","in":"path","required":true,"schema":{"type":"string","description":"Audience list ID","title":"Audience Id"},"description":"Audience list ID"},{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceProfileCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiences/profile-counts":{"post":{"tags":["audiences"],"summary":"Get Bulk Audience Profile Counts","operationId":"get_bulk_audience_profile_counts","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAudienceProfileCountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAudienceProfileCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiences/size-preview":{"post":{"tags":["audiences"],"summary":"Get Audience Size Preview","operationId":"get_audience_size_preview","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"query","required":true,"schema":{"type":"integer","description":"Store integration ID","title":"Store Integration Id"},"description":"Store integration ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceSizePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceSizePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiences/enrich":{"post":{"tags":["audiences"],"summary":"Enrich Subscribers","description":"Enrich a batch of ecommerce external_ids into the safe subset used by the Subscribers page.\n\nReads identity, purchase summary, and marketing consents from ecommerce storage for the\nauthenticated merchant's own account; the full shopper record is never exposed. Ids with no\nshopper come back with ``found=false`` rather than failing the batch.","operationId":"enrich_subscribers","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichSubscribersRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichSubscribersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/bundle/installations/manage":{"put":{"tags":["installations"],"summary":"Service Installation Status Update","operationId":"service_installation_status_update_bundle_installations_manage_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWTTokenSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["installations"],"summary":"Service Installation Get Or Create","operationId":"service_installation_get_or_create_bundle_installations_manage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWTTokenSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bundle/installations/manage/retrieve":{"post":{"tags":["installations"],"summary":"Service Retrieve Installation","operationId":"service_retrieve_installation_bundle_installations_manage_retrieve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWTTokenSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bundle/installations":{"get":{"tags":["installations"],"summary":"Installation List","operationId":"list_bundle_installation","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/InstallationSchema"},"type":"array","title":"Response List Bundle Installation"}}}}},"security":[{"HTTPBearer":[]}]}},"/bundle/installations/{id}":{"get":{"tags":["installations"],"summary":"Retrieve","operationId":"get_bundle_installation","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["installations"],"summary":"Update","operationId":"update_bundle_installation","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationUpdateConfigSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private/store-configurations/{store_integration_id}/channel-readiness":{"get":{"tags":["private-store-configurations"],"summary":"Get Channel Readiness Private","description":"Read transactional sender prerequisites for a trusted internal app, scoped to the token's own tenant.\n\nMirrors ``get_channel_readiness``: same use case, same Engage Support gate and 403 message.\nA store outside the tenant resolves to the same not-configured response as a missing store.","operationId":"get_channel_readiness_private","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelReadinessResponseSchema"}}}},"403":{"description":"Engage Support access is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private/store-configurations":{"get":{"tags":["private-store-configurations"],"summary":"Get Store Configurations For Internal Apps","description":"List an account's store configurations for a trusted internal app, scoped to the token's own tenant.","operationId":"get_store_configurations_private","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/StoreConfigurationResponseSchema"},"type":"array","title":"Response Get Store Configurations Private"}}}}},"security":[{"IDPBearerToken":[]}]}},"/private/store-configurations/{store_integration_id}":{"get":{"tags":["private-store-configurations"],"summary":"Get Store Configuration Private","description":"Read a store configuration for the AI-Agent app, scoped to the token's own tenant.\n\nMirrors ``get_store_configuration``, including creating and returning an empty row (201)\non first read for the tenant. Because that first-read insert is itself a write, this route\nis gated the same as ``patch_store_configuration_private`` (AI_AGENT only) rather than left\nopen to every trusted internal app like the list mirror above. Delete and collision-rule\naccess stay unexposed here (see AIJ-3802).\n\nThe response model is the base schema, not the detail schema ``get_store_configuration``\nuses: ``calendar_feed_url`` is a long-lived, unauthenticated, non-rotating capability\ntoken, and a trusted-app S2S contract has no reason to carry it.","operationId":"get_store_configuration_private","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreConfigurationResponseSchema"}}}},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreConfigurationResponseSchema"}}},"description":"Created"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["private-store-configurations"],"summary":"Patch Store Configuration Private","description":"Partially update an existing store configuration for the AI-Agent app's own tenant.\n\nReturns 404 if it doesn't exist -- this never creates a row, and delete and the create\nhalf of create_or_update both stay unexposed. The caller is represented as a\nnon-impersonated synthetic user (``roles=[]``), mirroring ``gr.journeys.routes.private_journeys._gaia_user``:\nthe token's own ``gorgias:roles``/``gorgias:user_id`` claims are discarded, not consulted,\nbecause this route has exactly one per-field authorization check downstream --\n``execution_mode_override``, gated on ``User.is_impersonated`` -- and an empty roles list\ncan only make that check (and any future role-based one) fail closed, never pass a check\nit wouldn't otherwise. The route-level gate above (``allowed_apps=[AI_AGENT]``) is what\nreplaces the public route's ``RequireAdminOrLeadAgentRole``: trust is anchored to the\nverified app identity, not a delegated human role.","operationId":"patch_store_configuration_private","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreConfigurationRequestSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreConfigurationWriteResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private/store-configurations/{store_integration_id}/collision-rules":{"get":{"tags":["private-store-configurations"],"summary":"List Collision Rules Private","description":"List a store's active collision rules for a trusted internal app, scoped to the token's own tenant.\n\nRead-only by deliberate decision (AIJ-3804). Collision rules govern send frequency and quiet\nperiods across *every* journey on the account, and creating, updating or deleting one is gated\nbehind ``RequireAdminRole`` on the public routes -- a strictly higher bar than the\nadmin-or-lead-agent gate the rest of store configuration uses. Reading them is not: the public\nlist route is admin-or-lead-agent, the same tier this S2S surface already occupies, so exposing\nreads adds no privilege while letting Gaia explain *why* a send was suppressed. Exposing writes\nwould hand an agent an admin-only, account-wide control whose failure mode is silent -- a wrong\nrule does not error, sends simply stop -- with no audit sink on this domain to reconstruct what\nchanged (AIJ-3913). Revisit only if a concrete need appears, and land AIJ-3913 first.","operationId":"list_collision_rules_private","security":[{"IDPBearerToken":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CollisionRuleSchema"},"title":"Response List Collision Rules Private"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/store-configurations/{store_integration_id}/channel-readiness":{"get":{"tags":["store-configurations"],"summary":"Get Channel Readiness","description":"Read current transactional sender prerequisites, independently for Email and SMS.","operationId":"get_channel_readiness","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelReadinessResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/store-configurations/{store_integration_id}":{"get":{"tags":["store-configurations"],"summary":"Get Store Configuration","description":"Get store configuration by store integration ID for the current account.\n\nReturns 200 if the configuration already existed, 201 if it was just created.","operationId":"get_store_configuration","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreConfigurationDetailResponseSchema"}}}},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreConfigurationDetailResponseSchema"}}},"description":"Created"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["store-configurations"],"summary":"Create Or Update Store Configuration","description":"Create or update store configuration.","operationId":"create_or_update_store_configuration","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}},{"name":"If-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Strong quoted version token in the form \"<id>:<version>\".","title":"If-Match"},"description":"Strong quoted version token in the form \"<id>:<version>\"."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreConfigurationRequestSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreConfigurationWriteResponseSchema"}}}},"409":{"description":"The If-Match token is malformed or does not match the current resource version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["store-configurations"],"summary":"Patch Store Configuration","description":"Partially update an existing store configuration. Returns 404 if it doesn't exist.","operationId":"patch_store_configuration","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}},{"name":"If-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Strong quoted version token in the form \"<id>:<version>\".","title":"If-Match"},"description":"Strong quoted version token in the form \"<id>:<version>\"."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreConfigurationRequestSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreConfigurationWriteResponseSchema"}}}},"409":{"description":"The If-Match token is malformed or does not match the current resource version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["store-configurations"],"summary":"Delete Store Configuration","description":"Delete store configuration for the current account.","operationId":"delete_store_configuration","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}},{"name":"If-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Strong quoted version token in the form \"<id>:<version>\".","title":"If-Match"},"description":"Strong quoted version token in the form \"<id>:<version>\"."}],"responses":{"204":{"description":"Successful Response"},"409":{"description":"The If-Match token is malformed or does not match the current resource version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/store-configurations":{"get":{"tags":["store-configurations"],"summary":"List Store Configurations","description":"List all store configurations for the current account.","operationId":"list_store_configurations","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/StoreConfigurationResponseSchema"},"type":"array","title":"Response List Store Configurations"}}}}},"security":[{"HTTPBearer":[]}]}},"/store-configurations/{store_integration_id}/collision-rules":{"get":{"tags":["store-configurations"],"summary":"List Collision Rules","description":"List active collision rules for a store, scoped to the current account.","operationId":"list_collision_rules","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CollisionRuleSchema"},"title":"Response List Collision Rules"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["store-configurations"],"summary":"Create Collision Rule","description":"Create a collision rule for a store, scoped to the current account.","operationId":"create_collision_rule","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollisionRuleCreateRequestSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollisionRuleSchema"}}}},"409":{"description":"An active collision rule of the same type already exists for the store.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/store-configurations/{store_integration_id}/collision-rules/{rule_id}":{"put":{"tags":["store-configurations"],"summary":"Update Collision Rule","description":"Partially update a collision rule, scoped to the current account.","operationId":"update_collision_rule","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"If-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Strong quoted version token in the form \"<id>:<version>\".","title":"If-Match"},"description":"Strong quoted version token in the form \"<id>:<version>\"."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollisionRuleUpdateRequestSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollisionRuleSchema"}}}},"409":{"description":"The If-Match token is malformed or does not match the current resource version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["store-configurations"],"summary":"Delete Collision Rule","description":"Soft-delete a collision rule, scoped to the current account.","operationId":"delete_collision_rule","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","title":"Store Integration Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"If-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Strong quoted version token in the form \"<id>:<version>\".","title":"If-Match"},"description":"Strong quoted version token in the form \"<id>:<version>\"."}],"responses":{"204":{"description":"Successful Response"},"409":{"description":"The If-Match token is malformed or does not match the current resource version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stores/{store_integration_id}/ace-engagements/{engagement_key}":{"put":{"tags":["ace-engagements"],"summary":"Set Ace Engagement Enabled","description":"Enable or disable one ACE Engagement, then publish the store's policy.\n\n201 when this call created the Engagement, 200 for every other outcome including a Disable on\nan Engagement that does not exist. A 2xx with `publication.status='failed'` is the documented\nsuccess case for \"your change was saved but is not in force yet\" — the write is never rolled\nback over a store-wide publication problem, and `POST ../ace-policy/publications` retries it.\n\n`generic` is addressable but cannot yet be enabled: V0 publishes no generic entry, so enabling\nit returns 403 rather than authoring a row that could never be in force. Disabling it is the\nordinary no-op, since no such row can exist.","operationId":"set_ace_engagement_enabled","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"title":"Store Integration Id"}},{"name":"engagement_key","in":"path","required":true,"schema":{"$ref":"#/components/schemas/AceEngagementKeyEnum"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AceEngagementCommandApiDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AceEngagementCommandResponseApiDTO"}}}},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AceEngagementCommandResponseApiDTO"}}},"description":"Created"},"403":{"description":"The generic Engagement cannot be enabled yet: V0 publishes no generic entry, so enabling it would author a row that could never take effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The source Flow is not an Active, non-deleted Flow of the same type in this store, or the store has several and none was named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/stores/{store_integration_id}/ace-policy/status":{"get":{"tags":["ace-engagements"],"summary":"Get Ace Policy Status","description":"Whether the store's authored ACE configuration is the one currently in force.\n\nRead-only: the authored artifact is compiled and hashed to compare, never inserted, so opening\nthe screen cannot publish. This is how the UI recovers desired/effective divergence after a\nreload, with no publication-attempt resource to read.\n\nReads the primary rather than a replica despite being a pure read. The question it answers is\n\"did the save I just made take effect\", and it is asked immediately after that write — replica\nlag would report the merchant's own change as not in force.","operationId":"get_ace_policy_status","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcePolicyStatusApiDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stores/{store_integration_id}/ace-policy/publications":{"post":{"tags":["ace-engagements"],"summary":"Publish Ace Policy","description":"Retry publication from the store's current authored state.\n\n201 when a new version was inserted, 200 when the authored state already hashes to the policy\nin force — the convergence that makes this safe to press repeatedly — and 200 with\n`status='failed'` when it could not be published, so the caller renders the same failure\ncomponent the authoring command produces rather than a generic error.","operationId":"publish_ace_policy","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"title":"Store Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcePublicationApiDTO"}}}},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcePublicationApiDTO"}}},"description":"Created"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stores/{store_integration_id}/ace-engagements/dry-run-report":{"get":{"tags":["ace-engagements"],"summary":"Get Ace Engagement Dry Run Report","description":"Projected performance for Engagements the reporting cube cannot measure.\n\nAn Engagement at the `silent` rollout stage runs as `trial`, which the cube excludes — its\nquery ends `execution_mode = 'regular' OR execution_mode IS NULL` — so GMV, conversion and\nopt-out would otherwise render as dashes. This answers with the shoppers each Engagement would\nhave messaged and the reviewed per-type averages, so the row shows a projection instead.\n\nTakes ids rather than listing the store's Engagements itself, for the reason the module\ndocstring gives: `GET /journeys` already answers that question, and a second answer here would\ncompete with it. The caller passes the ids it already holds.\n\nEngagements this cannot project — no unmeasured reach, or a type outside the five Flow-backed\nones — are omitted, so a caller must not assume one entry per requested id.\n\nReads a replica: a projection over a date window is indifferent to replica lag, unlike the\npolicy-status read above, which is asked immediately after a write.","operationId":"get_ace_engagement_dry_run_report","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"title":"Store Integration Id"}},{"name":"journey_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Engagement journey ids to project","default":[],"title":"Journey Ids"},"description":"Engagement journey ids to project"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Inclusive UTC lower bound","title":"From"},"description":"Inclusive UTC lower bound"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Exclusive UTC upper bound","title":"To"},"description":"Exclusive UTC upper bound"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DryRunEngagementReportApiDTO"},"title":"Response Get Ace Engagement Dry Run Report"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ace/observations/test":{"post":{"tags":["ace-observations"],"summary":"Send Test Ace Observation","description":"Submit one generic ACE observation using a JWT or the internal user API key.\n\nJWT callers may only submit observations for their own account. The internal API key is\nintentionally account-agnostic, matching its use by other internal tooling.","operationId":"send_test_ace_observation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestAceObservationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AceObservationIngestionOutcome"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}]}},"/ace/customers/{store_integration_id}/{customer_id}/timeline":{"get":{"tags":["ace-timeline"],"summary":"List Customer Ace Timeline","description":"One customer's ACE history in this store — observations, episodes and Decisions — newest first.\n\nA customer ACE has never observed is a `200` with empty `data`, not a `404`: answering\nidentically for a key belonging to another account keeps this from being an existence oracle.\n\nReads the primary rather than a replica — a low-QPS diagnostic read, usually opened right after\nthe event being investigated, where seeing a just-recorded observation beats replica offload.","operationId":"list_customer_ace_timeline","security":[{"HTTPBearer":[]}],"parameters":[{"name":"store_integration_id","in":"path","required":true,"schema":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"title":"Store Integration Id"}},{"name":"customer_id","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"exclusiveMinimum":0,"title":"Customer Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Maximum timeline items to return. Counts items, not episodes.","default":25,"title":"Limit"},"description":"Maximum timeline items to return. Counts items, not episodes."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Cursor from a previous response's `next_cursor`; omit for the newest page.","title":"Cursor"},"description":"Cursor from a previous response's `next_cursor`; omit for the newest page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AceCustomerTimelineApiDTO"}}}},"422":{"description":"The cursor is malformed, or was issued for a different customer, store or account. Restart from the newest page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/settings/{channel_connection_id}":{"get":{"tags":["settings"],"summary":"Get Settings For Channel Connection","operationId":"get_settings","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_connection_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Connection Id"}},{"name":"setting_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Get settings by type","title":"Setting Type"},"description":"Get settings by type"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SettingResponseSchema"},"title":"Response Get Settings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings"],"summary":"Update Setting For Channel Connection","operationId":"update_setting","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_connection_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RequestSettingSchema"},{"type":"array","items":{"$ref":"#/components/schemas/RequestSettingSchema"}}],"title":"Payload"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SettingResponseSchema"},{"type":"array","items":{"$ref":"#/components/schemas/SettingResponseSchema"}}],"title":"Response Update Setting"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health-check":{"get":{"tags":["healthcheck"],"summary":"Health Check","operationId":"health_check_health_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Check Health Check Get"}}}}}}},"/readiness":{"get":{"tags":["healthcheck"],"summary":"Readiness","operationId":"readiness_readiness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ABGroupResponseSchema":{"properties":{"winner_variant_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Winner Variant Id"},"status":{"$ref":"#/components/schemas/ABGroupStatus"},"started_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started Datetime"},"stopped_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stopped Datetime"},"campaign_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Campaign Id"},"generated_campaign_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Generated Campaign Id"}},"type":"object","required":["status"],"title":"ABGroupResponseSchema"},"ABGroupStatus":{"type":"string","enum":["draft","started","paused","completed"],"title":"ABGroupStatus"},"ABGroupStopRequestSchema":{"properties":{"winner_variant_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Winner Variant Id"}},"type":"object","title":"ABGroupStopRequestSchema"},"ABTestConfigurationResponseSchema":{"properties":{"active":{"type":"boolean","title":"Active","default":false},"configuration":{"anyOf":[{"$ref":"#/components/schemas/ABTestConfigurationSchema"},{"type":"null"}]}},"type":"object","required":["configuration"],"title":"ABTestConfigurationResponseSchema"},"ABTestConfigurationSchema":{"properties":{"ratio":{"type":"number","title":"Ratio"},"campaigns":{"items":{"type":"string"},"type":"array","title":"Campaigns"}},"type":"object","required":["ratio"],"title":"ABTestConfigurationSchema"},"ABTestCreateRequestSchema":{"properties":{"channel_connection_id":{"type":"string","title":"Channel Connection Id"},"store_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Store Integration Id"},"ratio":{"type":"number","title":"Ratio","default":0.5},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"}},"type":"object","required":["channel_connection_id"],"title":"ABTestCreateRequestSchema"},"ABTestPatchRequestSchema":{"properties":{"state":{"anyOf":[{"type":"string","const":"inactive"},{"type":"null"}],"title":"State"},"report_link":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Report Link"}},"type":"object","title":"ABTestPatchRequestSchema"},"ABTestResponseSchema":{"properties":{"id":{"type":"string","title":"Id"},"ratio":{"type":"number","title":"Ratio"},"state":{"$ref":"#/components/schemas/ABTestState"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Datetime"},"report_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Link"},"campaigns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Campaigns"}},"type":"object","required":["id","ratio","state","start_datetime","end_datetime","report_link"],"title":"ABTestResponseSchema"},"ABTestState":{"type":"string","enum":["active","inactive"],"title":"ABTestState"},"AceCustomerTimelineApiDTO":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AceTimelineItemApiDTO"},"type":"array","title":"Data"},"metadata":{"$ref":"#/components/schemas/AceCustomerTimelineMetadataApiDTO"}},"type":"object","required":["data","metadata"],"title":"AceCustomerTimelineApiDTO","description":"One page of a customer's ACE history, newest first."},"AceCustomerTimelineMetadataApiDTO":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Null when there is no older item. There is no previous-page cursor: refresh unpaged instead."},"snapshot_datetime":{"type":"string","format":"date-time","title":"Snapshot Datetime","description":"The membership boundary this traversal is pinned to: every page excludes records created after this instant, so a late arrival with an old business time cannot appear mid-traversal. State on the records themselves is still read fresh."}},"type":"object","required":["next_cursor","snapshot_datetime"],"title":"AceCustomerTimelineMetadataApiDTO"},"AceEngagementApiDTO":{"properties":{"engagement_key":{"$ref":"#/components/schemas/AceEngagementKeyEnum"},"journey_id":{"type":"string","title":"Journey Id"},"state":{"$ref":"#/components/schemas/JourneyStatusEnum"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Datetime"}},"type":"object","required":["engagement_key","journey_id","state","name","message_instructions","created_datetime","updated_datetime"],"title":"AceEngagementApiDTO","description":"One authored ACE Engagement, as the authoring screen shows it."},"AceEngagementCommandApiDTO":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"source_journey_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Journey Id","description":"The Active same-type Flow to copy on first enable. Required only when the store has more than one candidate, since there is then a genuine choice the backend must not make. Ignored once the Engagement exists — re-enabling never copies a Flow again."}},"type":"object","required":["enabled"],"title":"AceEngagementCommandApiDTO","description":"The type-keyed authoring command's body.\n\n``store_integration_id`` and the Engagement key are path parameters, and the account comes\nfrom the authenticated user — never the body — so the only thing a caller states here is\nintent."},"AceEngagementCommandResponseApiDTO":{"properties":{"engagement":{"anyOf":[{"$ref":"#/components/schemas/AceEngagementApiDTO"},{"type":"null"}],"description":"Null only for a Disable on a store that has no Engagement of that type — an idempotent no-op with nothing to describe."},"desired_enabled":{"type":"boolean","title":"Desired Enabled"},"effective_enabled":{"type":"boolean","title":"Effective Enabled"},"publication":{"$ref":"#/components/schemas/AcePublicationApiDTO"}},"type":"object","required":["desired_enabled","effective_enabled","publication"],"title":"AceEngagementCommandResponseApiDTO"},"AceEngagementKeyEnum":{"type":"string","enum":["session_abandoned","cart_abandoned","post_purchase","welcome","win_back","generic","search_abandoned"],"title":"AceEngagementKeyEnum","description":"How one Engagement is addressed on the authoring surface.\n\nFive of these are the Flow-backed semantic types and name a ``journeys.type`` directly. Only\n``GENERIC`` does not: its row is ``type='ace_generic'``, spelled ``generic`` here because\n``ace_generic`` names the storage rather than the thing a merchant switches on, and the\nprefix would be noise in a path already under ``/ace-engagements/``. The value is also\n``GENERIC_CANDIDATE_KEY``, which is what a Decision records — one spelling, end to end.\n\nDeliberately a separate enum from ``AceFlowEngagementTypeEnum`` rather than an extension of\nit. That one answers \"which contract governs this Engagement\", and generic has its own\ncontract; widening it would put generic inside every registry keyed by Flow type.\n\n``SEARCH_ABANDONED`` (AIJ-4262) names a ``journeys.type`` like the five Flow-backed keys but\nis not one of them: its row is default-only ``entry_mode='ace'`` with no source Flow, so it\nis enabled and edited through ACE alone and cannot be created or run as a Flow."},"AceEngagementStateApiDTO":{"properties":{"engagement_key":{"$ref":"#/components/schemas/AceEngagementKeyEnum"},"journey_id":{"type":"string","title":"Journey Id"},"desired_enabled":{"type":"boolean","title":"Desired Enabled"},"effective_enabled":{"type":"boolean","title":"Effective Enabled"}},"type":"object","required":["engagement_key","journey_id","desired_enabled","effective_enabled"],"title":"AceEngagementStateApiDTO"},"AceObservationIngestionOutcome":{"type":"string","enum":["accepted","fallback_to_flow"],"title":"AceObservationIngestionOutcome"},"AcePolicyStatusApiDTO":{"properties":{"authored_checksum":{"anyOf":[{"$ref":"#/components/schemas/Checksum"},{"type":"null"}],"description":"Null when the authored state cannot currently be compiled; `error` says why."},"active_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Version"},"active_checksum":{"anyOf":[{"$ref":"#/components/schemas/Checksum"},{"type":"null"}]},"in_force":{"type":"boolean","title":"In Force"},"error":{"anyOf":[{"$ref":"#/components/schemas/AcePublicationErrorApiDTO"},{"type":"null"}]},"engagements":{"items":{"$ref":"#/components/schemas/AceEngagementStateApiDTO"},"type":"array","title":"Engagements","default":[]}},"type":"object","required":["in_force"],"title":"AcePolicyStatusApiDTO","description":"Whether what the merchant saved is what is running, derived on read.\n\nThere is no publication-attempt table behind this. The authored state is recompiled and\nhashed on each read and compared with the newest stored artifact, which is why a reload\nrecovers the divergence with nothing persisted about the failure that caused it."},"AcePublicationApiDTO":{"properties":{"status":{"$ref":"#/components/schemas/AcePublicationStatusEnum"},"authored_checksum":{"anyOf":[{"$ref":"#/components/schemas/Checksum"},{"type":"null"}],"description":"Checksum of the artifact this attempt compiled. Present exactly when the attempt reached a policy — that is, for `published` and `converged`."},"active_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Version"},"active_checksum":{"anyOf":[{"$ref":"#/components/schemas/Checksum"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/AcePublicationErrorApiDTO"},{"type":"null"}]}},"type":"object","required":["status"],"title":"AcePublicationApiDTO","description":"What one publication attempt did, and what is in force now."},"AcePublicationErrorApiDTO":{"properties":{"category":{"$ref":"#/components/schemas/AcePublicationErrorCategoryEnum"},"message":{"type":"string","title":"Message","description":"The typed failure reason, not prose. Stable enough to branch on; a `validation` category means retrying the same authored state fails identically."}},"type":"object","required":["category","message"],"title":"AcePublicationErrorApiDTO"},"AcePublicationErrorCategoryEnum":{"type":"string","enum":["validation","conflict","internal"],"title":"AcePublicationErrorCategoryEnum","description":"Why a publication attempt failed, at the granularity a merchant can act on.\n\n``VALIDATION`` means the authored state cannot become a coherent policy — editing the\nEngagement is the fix, and retrying unchanged will fail identically. ``CONFLICT`` and\n``INTERNAL`` are both transient from the merchant's side, so retrying the same authored\nstate is worth offering; they are kept apart because only ``INTERNAL`` is a defect."},"AcePublicationStatusEnum":{"type":"string","enum":["published","converged","failed","skipped"],"title":"AcePublicationStatusEnum","description":"What one publication attempt did to the store's active policy.\n\n``CONVERGED`` is a success, not a degraded one: the authored state already hashes to the\npolicy in force, so inserting another row would only give two versions the runtime cannot\ntell apart. It is what a retry, a repeated Enable and a no-change save all produce.\n\n``SKIPPED`` is the one path that publishes nothing on purpose — Disable on a store with no\nACE Journey of that type, which writes no row and so has no authored state to freeze."},"AceRolloutStageEnum":{"type":"string","enum":["off","silent","live"],"title":"AceRolloutStageEnum","description":"How far ACE may go for one store.\n\nOrdered, not orthogonal — each stage is everything the one below it does, plus more. ``OFF``\nhides ACE entirely; ``SILENT`` ingests observations, opens episodes and records Decisions but\ndispatches nothing; ``LIVE`` additionally permits a real send. Modelling the three as one\nladder rather than three switches is what makes \"widen the rollout\" a single move, and makes\nthe state \"permitted but silently doing nothing\" unreachable.\n\nThe store configuration is the sole authority for this stage — see ``gr/ace/rollout.py``."},"AceStoreConfig":{"properties":{"stage":{"$ref":"#/components/schemas/AceRolloutStageEnum","default":"off"},"engagements_routing_percentage":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Engagements Routing Percentage","default":50}},"type":"object","title":"AceStoreConfig","description":"Every store-level ACE setting, as one JSONB document.\n\nA document rather than a column per setting because ACE's store configuration is still being\ndiscovered, and each new field would otherwise cost a migration. ``consent_region_overrides``\nabove is the same trade on the same table.\n\nThe stage defaults to its fail-closed value, which is what lets ``ace_config`` be NULL: a store\nthat has never been configured and one configured to do nothing resolve identically, and\nneither needs a row written to mean \"off\". A caller can still tell them apart, because the\ncolumn is NULL in the first case and a document in the second — the distinction the\nmerchant-facing control needs to show onboarding rather than a toggle already switched off.\n\n``extra=\"ignore\"`` on the read model, deliberately, and ``extra=\"forbid\"`` on\n``AceStoreConfigRequest`` below. Strictness belongs at the boundary where a human types a key,\nnot where we deserialise our own history: during a rolling deploy a newer pod can write a key\nan older one has never heard of, and the older pod must keep reading the row rather than\ntreating its own future as corruption. The same leniency covers ``send_generic_enabled``,\nwhich an earlier revision backfilled into this document and which nothing reads any more."},"AceStoreConfigRequest":{"properties":{"stage":{"$ref":"#/components/schemas/AceRolloutStageEnum","default":"off"},"engagements_routing_percentage":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Engagements Routing Percentage","default":50}},"additionalProperties":false,"type":"object","title":"AceStoreConfigRequest","description":"``AceStoreConfig`` as an API request body: an unknown key is a 422, not a dropped setting.\n\nA typo'd ``stage`` key silently ignored would leave a merchant believing they had enabled ACE\nwhile the stored document still said ``off``, which is the one failure mode this whole document\nmust not have.\n\nNon-null writes merge supplied keys over the stored document under a row lock."},"AceTimelineDecisionApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"episode_id":{"type":"string","title":"Episode Id"},"decided_datetime":{"type":"string","format":"date-time","title":"Decided Datetime"},"action_type":{"type":"string","title":"Action Type"},"selected_candidate_key":{"type":"string","title":"Selected Candidate Key"},"selected_probability":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Selected Probability","description":"The exact propensity the policy drew at, serialized as a decimal string — never a JSON float, which would round away the ledger's 18 decimal places."},"selected_engagement_journey_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Engagement Journey Id"},"selected_engagement_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Engagement Type"},"selected_engagement_configuration_checksum":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Engagement Configuration Checksum"},"payload":{"$ref":"#/components/schemas/JsonValue","description":"The complete stored Decision record, returned verbatim and versioned by its own `schema_version`. Not coerced through the current Decision DTO, so a future version or a corrupt historical record renders rather than failing the page."},"checksum":{"type":"string","title":"Checksum"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"execution":{"anyOf":[{"$ref":"#/components/schemas/AceTimelineExecutionApiDTO"},{"type":"null"}],"description":"Null for every `no_send`, and also when a selected send failed before the participation was created. Read `action_type` to tell those apart."}},"type":"object","required":["id","episode_id","decided_datetime","action_type","selected_candidate_key","selected_probability","selected_engagement_journey_id","selected_engagement_type","selected_engagement_configuration_checksum","payload","checksum","created_datetime","execution"],"title":"AceTimelineDecisionApiDTO","description":"One immutable policy choice, with the stored record and the execution it authorised."},"AceTimelineDecisionItemApiDTO":{"properties":{"item_type":{"type":"string","const":"decision","title":"Item Type","default":"decision"},"timeline_datetime":{"type":"string","format":"date-time","title":"Timeline Datetime"},"decision":{"$ref":"#/components/schemas/AceTimelineDecisionApiDTO"}},"type":"object","required":["timeline_datetime","decision"],"title":"AceTimelineDecisionItemApiDTO"},"AceTimelineEpisodeApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"policy_version_id":{"type":"string","title":"Policy Version Id"},"as_of_datetime":{"type":"string","format":"date-time","title":"As Of Datetime","description":"The upper boundary for context reads. Later information could not affect this evaluation."},"context_snapshot":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}],"description":"The exact context the policy evaluated, returned verbatim. Already an allowlisted projection rather than raw source data — `gr/ace/domain_services/context.py` copies named keys per event type, so recipient addresses and phone numbers cannot reach it. Null together with the two fields below on an episode that never captured."},"context_checksum":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Checksum"},"context_captured_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Context Captured Datetime"},"close_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Reason","description":"Null exactly when the episode is still open. An evaluation outcome, never a purchase outcome."},"close_details":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},{"type":"null"}],"title":"Close Details"},"closed_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed Datetime"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"type":"string","format":"date-time","title":"Updated Datetime"}},"type":"object","required":["id","policy_version_id","as_of_datetime","context_snapshot","context_checksum","context_captured_datetime","close_reason","close_details","closed_datetime","created_datetime","updated_datetime"],"title":"AceTimelineEpisodeApiDTO","description":"One evaluation opportunity ACE opened for this customer, with its terminal state."},"AceTimelineEpisodeItemApiDTO":{"properties":{"item_type":{"type":"string","const":"episode_opened","title":"Item Type","default":"episode_opened"},"timeline_datetime":{"type":"string","format":"date-time","title":"Timeline Datetime"},"episode":{"$ref":"#/components/schemas/AceTimelineEpisodeApiDTO"}},"type":"object","required":["timeline_datetime","episode"],"title":"AceTimelineEpisodeItemApiDTO"},"AceTimelineExecutionApiDTO":{"properties":{"execution_id":{"type":"string","title":"Execution Id"},"decision_id":{"type":"string","title":"Decision Id"},"journey_id":{"type":"string","title":"Journey Id"},"ticket_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ticket Id","description":"The currently stored Helpdesk ticket id. Null before ticket creation, so it can appear on a later refresh without the Decision changing. For `execution_mode='dry-run'` this holds the runtime's sentinel and no Helpdesk ticket exists — do not build a link from it."},"state":{"type":"string","title":"State"},"execution_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Mode"},"complete_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Complete Reason"},"stop_rule_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stop Rule Type"},"stop_delay_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stop Delay Until"},"stopped_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stopped Datetime"},"ace_execution_context":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}],"description":"The raw `execution_context['ace']` slice: attempt, refusal, generation and delivery diagnostics, PII-free by construction. Never the participation context or a sibling execution-context key."},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"type":"string","format":"date-time","title":"Updated Datetime"}},"type":"object","required":["execution_id","decision_id","journey_id","ticket_id","state","execution_mode","complete_reason","stop_rule_type","stop_delay_until","stopped_datetime","ace_execution_context","created_datetime","updated_datetime"],"title":"AceTimelineExecutionApiDTO","description":"The Journey participation created from one Decision, if a send reached that far.\n\nNested rather than paginated as a fourth item kind because ``ace_decision_id`` is unique: the\nrelationship is one-to-zero-or-one, and the participation's own id is the ACE execution id."},"AceTimelineItemApiDTO":{"oneOf":[{"$ref":"#/components/schemas/AceTimelineObservationItemApiDTO"},{"$ref":"#/components/schemas/AceTimelineEpisodeItemApiDTO"},{"$ref":"#/components/schemas/AceTimelineDecisionItemApiDTO"}],"discriminator":{"propertyName":"item_type","mapping":{"decision":"#/components/schemas/AceTimelineDecisionItemApiDTO","episode_opened":"#/components/schemas/AceTimelineEpisodeItemApiDTO","observation":"#/components/schemas/AceTimelineObservationItemApiDTO"}}},"AceTimelineObservationApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"episode_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Id","description":"The episode this observation was claimed by. Null while unclaimed, and permanently null for one that never contributed to an episode."},"source":{"type":"string","title":"Source"},"event_id":{"type":"string","title":"Event Id"},"event_type":{"type":"string","title":"Event Type"},"event_data":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object","title":"Event Data","description":"The persisted source payload, exactly as stored."},"occurred_datetime":{"type":"string","format":"date-time","title":"Occurred Datetime","description":"When the event happened for the customer. This is what the timeline is ordered by."},"observed_datetime":{"type":"string","format":"date-time","title":"Observed Datetime","description":"When ACE received it, so transport lag stays visible."},"status":{"type":"string","title":"Status"},"signal_attempt_count":{"type":"integer","title":"Signal Attempt Count"},"last_signal_attempt_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Signal Attempt Datetime"},"signalled_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Signalled Datetime"},"handled_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Handled Datetime"},"handling_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handling Result"},"terminal_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terminal Reason"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"type":"string","format":"date-time","title":"Updated Datetime"}},"type":"object","required":["id","episode_id","source","event_id","event_type","event_data","occurred_datetime","observed_datetime","status","signal_attempt_count","last_signal_attempt_datetime","signalled_datetime","handled_datetime","handling_result","terminal_reason","created_datetime","updated_datetime"],"title":"AceTimelineObservationApiDTO","description":"One event ACE accepted for this customer, in the state the row is in at read time.\n\nNot an event-sourced history: ``status`` and the timestamps beside it describe the row now."},"AceTimelineObservationItemApiDTO":{"properties":{"item_type":{"type":"string","const":"observation","title":"Item Type","default":"observation"},"timeline_datetime":{"type":"string","format":"date-time","title":"Timeline Datetime"},"observation":{"$ref":"#/components/schemas/AceTimelineObservationApiDTO"}},"type":"object","required":["timeline_datetime","observation"],"title":"AceTimelineObservationItemApiDTO"},"AddressIssueConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"preferred_url":{"$ref":"#/components/schemas/PreferredUrlType","description":"Which link a transactional message carries: the carrier tracking page (default) or the Shopify order status page. When the preferred link is unavailable the other one is used; with neither, no link is sent.","default":"tracking_page"}},"type":"object","title":"AddressIssueConfigurationApiDTO"},"AddressIssueCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"address_issue","title":"Type","default":"address_issue"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/AddressIssueConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"AddressIssueCreateJourneyApiDTO"},"AddressIssueJourneyConfigurationPrivateApiDTO":{"properties":{},"type":"object","title":"AddressIssueJourneyConfigurationPrivateApiDTO"},"AddressIssueTriggerApiDTO":{"properties":{"type":{"type":"string","const":"address_issue","title":"Type"},"address_issue_reason":{"$ref":"#/components/schemas/FulfillmentAddressIssueReason"},"issue_observed_at":{"type":"string","title":"Issue Observed At"},"trigger_status":{"$ref":"#/components/schemas/FulfillmentAddressIssueSourceStatus"}},"type":"object","required":["type","address_issue_reason","issue_observed_at","trigger_status"],"title":"AddressIssueTriggerApiDTO"},"AiJourneyRateCardResponseSchema":{"properties":{"version":{"type":"string","title":"Version"},"currency":{"$ref":"#/components/schemas/Currency"},"tiers":{"$ref":"#/components/schemas/TierDefinitionsSchema"},"countries":{"$ref":"#/components/schemas/CountryRatesSchema"}},"type":"object","required":["version","currency","tiers","countries"],"title":"AiJourneyRateCardResponseSchema"},"AiMessageDefaultContentApiDTO":{"properties":{"message_instructions":{"type":"string","title":"Message Instructions"}},"type":"object","required":["message_instructions"],"title":"AiMessageDefaultContentApiDTO"},"AttachmentDTO":{"properties":{"name":{"type":"string","title":"Name"},"content_type":{"type":"string","title":"Content Type"},"url":{"type":"string","title":"Url"}},"type":"object","required":["name","content_type","url"],"title":"AttachmentDTO"},"AudienceListSource":{"type":"string","enum":["klaviyo","gorgias"],"title":"AudienceListSource"},"AudienceListType":{"type":"string","enum":["segment","list"],"title":"AudienceListType"},"AudienceProfileCountResponse":{"properties":{"audience_id":{"type":"string","title":"Audience Id"},"profile_count":{"type":"integer","title":"Profile Count","description":"Total number of profiles in this audience (not deduplicated across audiences)"}},"type":"object","required":["audience_id","profile_count"],"title":"AudienceProfileCountResponse"},"AudienceSchema":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/AudienceListType"},"source":{"$ref":"#/components/schemas/AudienceListSource"},"identifier":{"type":"string","title":"Identifier"},"created":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created"},"updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated"}},"type":"object","required":["id","name","type","source","identifier"],"title":"AudienceSchema"},"AudienceSizePreviewRequest":{"properties":{"included_audience_ids":{"items":{"type":"string"},"type":"array","title":"Included Audience Ids"},"excluded_audience_ids":{"items":{"type":"string"},"type":"array","title":"Excluded Audience Ids"}},"type":"object","required":["included_audience_ids","excluded_audience_ids"],"title":"AudienceSizePreviewRequest"},"AudienceSizePreviewResponse":{"properties":{"estimated_profile_count":{"type":"integer","title":"Estimated Profile Count","description":"Final count after deduplication and applying exclusions"},"excluded_profile_count":{"type":"integer","title":"Excluded Profile Count","description":"Number of profiles that were excluded (profiles that appear in both included and excluded audiences)"},"included_audiences":{"items":{"$ref":"#/components/schemas/AudienceProfileCountResponse"},"type":"array","title":"Included Audiences","description":"Profile counts for each included audience (individual counts, not deduplicated)"},"excluded_audiences":{"items":{"$ref":"#/components/schemas/AudienceProfileCountResponse"},"type":"array","title":"Excluded Audiences","description":"Profile counts for each excluded audience (individual counts, not deduplicated)"}},"type":"object","required":["estimated_profile_count","excluded_profile_count","included_audiences","excluded_audiences"],"title":"AudienceSizePreviewResponse"},"AudienceUsageJourneySchema":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"Lifecycle state of the consumer (journey state, or campaign state for campaign consumers)"}},"type":"object","required":["id","type"],"title":"AudienceUsageJourneySchema"},"AudienceUsageResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AudienceUsageSchema"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"AudienceUsageResponse"},"AudienceUsageSchema":{"properties":{"id":{"type":"string","title":"Id"},"source":{"$ref":"#/components/schemas/AudienceListSource"},"identifier":{"type":"string","title":"Identifier"},"count_campaigns":{"type":"integer","title":"Count Campaigns"},"count_journeys":{"type":"integer","title":"Count Journeys"},"usage":{"items":{"$ref":"#/components/schemas/AudienceUsageJourneySchema"},"type":"array","title":"Usage"}},"type":"object","required":["id","source","identifier","count_campaigns","count_journeys","usage"],"title":"AudienceUsageSchema"},"AudiencesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AudienceSchema"},"type":"array","title":"Data"},"links":{"anyOf":[{"$ref":"#/components/schemas/PaginationLinks"},{"type":"null"}],"deprecated":true},"permission_error":{"anyOf":[{"$ref":"#/components/schemas/KlaviyoPermissionErrorSchema"},{"type":"null"}],"description":"Populated when the connected Klaviyo API key is missing the scope required to list this audience type. When set, `data` is empty and the UI should surface a permission-fix prompt instead of treating the empty list as 'no audiences'."}},"type":"object","required":["data"],"title":"AudiencesResponse"},"BaseCampaignTriggerSchema":{"properties":{"type":{"$ref":"#/components/schemas/CampaignTriggerType"},"operator":{"$ref":"#/components/schemas/CampaignTriggerOperator"},"value":{"anyOf":[{"type":"integer"},{"type":"boolean"},{"type":"string"},{"items":{},"type":"array"},{"additionalProperties":true,"type":"object"}],"title":"Value"}},"type":"object","required":["type","operator","value"],"title":"BaseCampaignTriggerSchema"},"BaseJourneyConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"}},"type":"object","title":"BaseJourneyConfigurationApiDTO"},"BillingUnit":{"type":"string","enum":["segment","message"],"title":"BillingUnit"},"BrandButton":{"properties":{"style":{"$ref":"#/components/schemas/BrandButtonStyle"},"text":{"$ref":"#/components/schemas/BrandButtonText"}},"additionalProperties":false,"type":"object","required":["style","text"],"title":"BrandButton"},"BrandButtonStyle":{"properties":{"border_radius":{"type":"integer","minimum":0.0,"title":"Border Radius"}},"additionalProperties":false,"type":"object","required":["border_radius"],"title":"BrandButtonStyle"},"BrandButtonText":{"properties":{"font_family":{"type":"string","maxLength":100,"minLength":1,"pattern":"^[A-Za-z0-9 ._-]+$","title":"Font Family"}},"additionalProperties":false,"type":"object","required":["font_family"],"title":"BrandButtonText"},"BrandColors":{"properties":{"primary":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Primary"},"background":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Background"},"text":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Text"},"link":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Link"},"button_text":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Button Text"}},"additionalProperties":false,"type":"object","title":"BrandColors"},"BrandFontStyle":{"properties":{"family":{"type":"string","maxLength":100,"minLength":1,"pattern":"^[A-Za-z0-9 ._-]+$","title":"Family"},"fallback_stack":{"items":{"type":"string","enum":["Arial","Helvetica","Verdana","Georgia","Times New Roman","sans-serif","serif"]},"type":"array","maxItems":5,"minItems":1,"title":"Fallback Stack"},"weight":{"type":"integer","enum":[100,200,300,400,500,600,700,800,900],"title":"Weight","default":400}},"additionalProperties":false,"type":"object","required":["family","fallback_stack"],"title":"BrandFontStyle"},"BrandLogoReference":{"properties":{"asset_id":{"anyOf":[{"type":"string","maxLength":26,"minLength":26,"pattern":"[A-Z0-9]{26}"},{"type":"string","maxLength":16,"minLength":16,"contentMediaType":"application/octet-stream"}],"title":"Asset Id"},"alt_text":{"type":"string","maxLength":120,"minLength":1,"pattern":"^[^\\x00]*$","title":"Alt Text"},"width_px":{"anyOf":[{"type":"integer","maximum":2000.0,"minimum":1.0},{"type":"null"}],"title":"Width Px"}},"additionalProperties":false,"type":"object","required":["asset_id","alt_text"],"title":"BrandLogoReference"},"BrandLogos":{"properties":{"on_light_background":{"anyOf":[{"$ref":"#/components/schemas/BrandLogoReference"},{"type":"null"}]},"on_dark_background":{"anyOf":[{"$ref":"#/components/schemas/BrandLogoReference"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"BrandLogos"},"BrandTypography":{"properties":{"primary":{"$ref":"#/components/schemas/BrandFontStyle"},"secondary":{"anyOf":[{"$ref":"#/components/schemas/BrandFontStyle"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["primary"],"title":"BrandTypography"},"BulkAudienceProfileCountRequest":{"properties":{"audience_ids":{"items":{"type":"string"},"type":"array","title":"Audience Ids"}},"type":"object","required":["audience_ids"],"title":"BulkAudienceProfileCountRequest"},"BulkAudienceProfileCountResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AudienceProfileCountResponse"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"BulkAudienceProfileCountResponse"},"BundleOnboardingStatus":{"type":"string","enum":["installed","not_installed"],"title":"BundleOnboardingStatus"},"CampaignApiDTO":{"properties":{"title":{"type":"string","title":"Title"},"state":{"$ref":"#/components/schemas/JourneyCampaignStateEnum"},"scheduled_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Datetime"},"completed_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed Datetime"},"current_sent_count":{"type":"integer","title":"Current Sent Count","default":0},"total_to_send_count":{"type":"integer","title":"Total To Send Count","default":0},"has_included_audiences":{"type":"boolean","title":"Has Included Audiences","default":false}},"type":"object","required":["title","state"],"title":"CampaignApiDTO"},"CampaignAttachmentDiscountOfferExtraSchema":{"properties":{"discount_offer_id":{"type":"string","title":"Discount Offer Id"}},"type":"object","required":["discount_offer_id"],"title":"CampaignAttachmentDiscountOfferExtraSchema"},"CampaignAttachmentDiscountOfferSchema":{"properties":{"contentType":{"type":"string","const":"application/discountOffer","title":"Contenttype"},"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"extra":{"anyOf":[{"$ref":"#/components/schemas/CampaignAttachmentDiscountOfferExtraSchema"},{"type":"null"}]}},"type":"object","required":["contentType","name"],"title":"CampaignAttachmentDiscountOfferSchema"},"CampaignAttachmentProductExtraSchema":{"properties":{"product_id":{"type":"integer","title":"Product Id"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"compare_at_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Compare At Price"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"product_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Link"},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Name"},"position":{"anyOf":[{"$ref":"#/components/schemas/CampaignAttachmentProductPositionSchema"},{"type":"null"}]}},"type":"object","required":["product_id"],"title":"CampaignAttachmentProductExtraSchema"},"CampaignAttachmentProductPositionSchema":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"offsetX":{"type":"number","title":"Offsetx"},"offsetY":{"type":"number","title":"Offsety"},"size":{"type":"number","title":"Size"}},"type":"object","required":["x","y","offsetX","offsetY","size"],"title":"CampaignAttachmentProductPositionSchema"},"CampaignAttachmentProductRecommendationExtraSchema":{"properties":{"id":{"type":"string","title":"Id"},"scenario":{"$ref":"#/components/schemas/ProductRecommendationScenarioType"}},"type":"object","required":["id","scenario"],"title":"CampaignAttachmentProductRecommendationExtraSchema"},"CampaignAttachmentProductRecommendationSchema":{"properties":{"contentType":{"type":"string","const":"application/productRecommendation","title":"Contenttype"},"name":{"type":"string","title":"Name"},"extra":{"$ref":"#/components/schemas/CampaignAttachmentProductRecommendationExtraSchema"}},"type":"object","required":["contentType","name","extra"],"title":"CampaignAttachmentProductRecommendationSchema"},"CampaignAttachmentProductSchema":{"properties":{"contentType":{"type":"string","const":"application/productCard","title":"Contenttype"},"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"extra":{"anyOf":[{"$ref":"#/components/schemas/CampaignAttachmentProductExtraSchema"},{"type":"null"}]}},"type":"object","required":["contentType","name"],"title":"CampaignAttachmentProductSchema"},"CampaignAttachmentVisitorFormExtraSchema":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/VisitorFormStepSchema"},"type":"array","title":"Steps"},"on_success_content":{"anyOf":[{"$ref":"#/components/schemas/VisitorFormOnSuccessContentSchema"},{"type":"null"}]},"targets":{"items":{"$ref":"#/components/schemas/VisitorFormTargetsSchema"},"type":"array","title":"Targets"}},"type":"object","required":["steps","targets"],"title":"CampaignAttachmentVisitorFormExtraSchema"},"CampaignAttachmentVisitorFormSchema":{"properties":{"contentType":{"type":"string","const":"application/visitorForm","title":"Contenttype"},"name":{"type":"string","title":"Name"},"extra":{"anyOf":[{"$ref":"#/components/schemas/CampaignAttachmentVisitorFormExtraSchema"},{"type":"null"}]}},"type":"object","required":["contentType","name"],"title":"CampaignAttachmentVisitorFormSchema"},"CampaignCopySuggestionRequestSchema":{"properties":{"store_domain":{"type":"string","maxLength":128,"title":"Store Domain"},"title":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Title"},"language":{"type":"string","title":"Language","default":"en"},"message":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Message"},"triggers":{"anyOf":[{"items":{"$ref":"#/components/schemas/BaseCampaignTriggerSchema"},"type":"array"},{"type":"null"}],"title":"Triggers"}},"type":"object","required":["store_domain"],"title":"CampaignCopySuggestionRequestSchema"},"CampaignCopySuggestionResponseSchema":{"properties":{"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"}},"type":"object","required":["suggestions"],"title":"CampaignCopySuggestionResponseSchema"},"CampaignCreateApiDTO":{"properties":{"title":{"type":"string","title":"Title"},"scheduled_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Datetime"}},"type":"object","required":["title"],"title":"CampaignCreateApiDTO"},"CampaignCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"campaign","title":"Type","default":"campaign"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/CampaignJourneyConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"CampaignCreateJourneyApiDTO"},"CampaignCreateRequestSchema":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Description"},"message_text":{"type":"string","maxLength":2048,"title":"Message Text"},"message_html":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Message Html"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"status":{"$ref":"#/components/schemas/CampaignStatus"},"trigger_rule":{"type":"string","maxLength":4096,"minLength":1,"title":"Trigger Rule"},"attachments":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/CampaignAttachmentProductSchema"},{"$ref":"#/components/schemas/CampaignAttachmentDiscountOfferSchema"},{"$ref":"#/components/schemas/CampaignAttachmentVisitorFormSchema"},{"$ref":"#/components/schemas/CampaignAttachmentProductRecommendationSchema"}],"discriminator":{"propertyName":"contentType","mapping":{"application/discountOffer":"#/components/schemas/CampaignAttachmentDiscountOfferSchema","application/productCard":"#/components/schemas/CampaignAttachmentProductSchema","application/productRecommendation":"#/components/schemas/CampaignAttachmentProductRecommendationSchema","application/visitorForm":"#/components/schemas/CampaignAttachmentVisitorFormSchema"}}},"type":"array"},{"type":"null"}],"title":"Attachments"},"meta":{"anyOf":[{"$ref":"#/components/schemas/CampaignMetaSchema"},{"type":"null"}]},"triggers":{"items":{"$ref":"#/components/schemas/CampaignTriggerSchema"},"type":"array","title":"Triggers"},"channel_connection_id":{"type":"string","title":"Channel Connection Id"},"publish_mode":{"anyOf":[{"$ref":"#/components/schemas/CampaignPublishType"},{"type":"null"}]},"external_tag_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"External Tag Id"},"template_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Template Id"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/ScheduleRequestSchema"},{"type":"null"}]},"variants":{"items":{"$ref":"#/components/schemas/CampaignVariantRequestSchema"},"type":"array","maxItems":2,"title":"Variants"}},"type":"object","required":["name","message_text","status","trigger_rule","triggers","channel_connection_id"],"title":"CampaignCreateRequestSchema"},"CampaignJourneyConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the campaign composes its SMS message and its selected SMS message template (template_id). 'template' mode requires a transactional (Support) campaign without A/B variants; a campaign in 'template' mode switches to marketing only when the same write sets the mode back to 'ai'. The mode and template change only while the campaign is draft or scheduled. 'enabled' is ignored on campaigns. An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"media_urls":{"anyOf":[{"items":{"$ref":"#/components/schemas/AttachmentDTO"},"type":"array"},{"type":"null"}],"title":"Media Urls"}},"type":"object","title":"CampaignJourneyConfigurationApiDTO"},"CampaignMetaSchema":{"properties":{"noReply":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Noreply"},"delay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delay"},"agentEmail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentemail"},"agentName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentname"},"agentAvatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentavatarurl"},"minimumTimeBetweenCampaigns":{"anyOf":[{"$ref":"#/components/schemas/MinimumTimeBetweenCampaigns"},{"type":"null"}]},"maxCampaignDisplaysInSession":{"anyOf":[{"$ref":"#/components/schemas/MaxCampaignDisplaysInSession"},{"type":"null"}]},"copySuggestion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Copysuggestion"}},"type":"object","title":"CampaignMetaSchema"},"CampaignPatchRequestSchema":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Description"},"message_text":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Message Text"},"message_html":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Message Html"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"status":{"anyOf":[{"$ref":"#/components/schemas/CampaignStatus"},{"type":"null"}]},"trigger_rule":{"anyOf":[{"type":"string","maxLength":4096,"minLength":1},{"type":"null"}],"title":"Trigger Rule"},"attachments":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/CampaignAttachmentProductSchema"},{"$ref":"#/components/schemas/CampaignAttachmentDiscountOfferSchema"},{"$ref":"#/components/schemas/CampaignAttachmentVisitorFormSchema"},{"$ref":"#/components/schemas/CampaignAttachmentProductRecommendationSchema"}],"discriminator":{"propertyName":"contentType","mapping":{"application/discountOffer":"#/components/schemas/CampaignAttachmentDiscountOfferSchema","application/productCard":"#/components/schemas/CampaignAttachmentProductSchema","application/productRecommendation":"#/components/schemas/CampaignAttachmentProductRecommendationSchema","application/visitorForm":"#/components/schemas/CampaignAttachmentVisitorFormSchema"}}},"type":"array"},{"type":"null"}],"title":"Attachments"},"meta":{"anyOf":[{"$ref":"#/components/schemas/CampaignMetaSchema"},{"type":"null"}]},"publish_mode":{"anyOf":[{"$ref":"#/components/schemas/CampaignPublishType"},{"type":"null"}]},"triggers":{"anyOf":[{"items":{"$ref":"#/components/schemas/CampaignTriggerSchema"},"type":"array"},{"type":"null"}],"title":"Triggers"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/ScheduleRequestSchema"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/CampaignVariantRequestSchema"},"type":"array","maxItems":2},{"type":"null"}],"title":"Variants"},"external_tag_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"External Tag Id"},"template_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Template Id"}},"type":"object","title":"CampaignPatchRequestSchema","description":"Defines the fields that can be patched and accepts any subset of the fields.\nValidates `triggers` and `trigger_rule` fields as required together - it has to be done this way\nas long as the IDs are generated on the frontend.\nSkips advanced validation, it will be handled in PATCH endpoint:\n    see https://fastapi.tiangolo.com/tutorial/body-updates/#partial-updates-with-patch"},"CampaignPublishType":{"type":"string","enum":["publish_now","schedule","publish_later"],"title":"CampaignPublishType"},"CampaignResponseSchema":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Description"},"message_text":{"type":"string","maxLength":2048,"title":"Message Text"},"message_html":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Message Html"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"status":{"$ref":"#/components/schemas/CampaignStatus"},"trigger_rule":{"type":"string","maxLength":4096,"minLength":1,"title":"Trigger Rule"},"attachments":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/CampaignAttachmentProductSchema"},{"$ref":"#/components/schemas/CampaignAttachmentDiscountOfferSchema"},{"$ref":"#/components/schemas/CampaignAttachmentVisitorFormSchema"},{"$ref":"#/components/schemas/CampaignAttachmentProductRecommendationSchema"}],"discriminator":{"propertyName":"contentType","mapping":{"application/discountOffer":"#/components/schemas/CampaignAttachmentDiscountOfferSchema","application/productCard":"#/components/schemas/CampaignAttachmentProductSchema","application/productRecommendation":"#/components/schemas/CampaignAttachmentProductRecommendationSchema","application/visitorForm":"#/components/schemas/CampaignAttachmentVisitorFormSchema"}}},"type":"array"},{"type":"null"}],"title":"Attachments"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"},"id":{"type":"string","title":"Id"},"triggers":{"items":{"$ref":"#/components/schemas/CampaignTriggerSchema"},"type":"array","title":"Triggers"},"ab_group":{"anyOf":[{"$ref":"#/components/schemas/ABGroupResponseSchema"},{"type":"null"}]},"variants":{"items":{"$ref":"#/components/schemas/CampaignVariantResponseSchema"},"type":"array","title":"Variants"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/ScheduleResponseSchema"},{"type":"null"}]},"is_light":{"type":"boolean","title":"Is Light"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"type":"string","format":"date-time","title":"Updated Datetime"},"deleted_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted Datetime"},"template_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Template Id"}},"type":"object","required":["name","message_text","status","trigger_rule","id","triggers","variants","is_light","created_datetime","updated_datetime"],"title":"CampaignResponseSchema"},"CampaignSchema":{"properties":{"id":{"type":"string","title":"Id"},"rules":{"items":{"$ref":"#/components/schemas/RuleSchema"},"type":"array","title":"Rules"}},"type":"object","required":["id","rules"],"title":"CampaignSchema"},"CampaignStatus":{"type":"string","enum":["active","inactive"],"title":"CampaignStatus"},"CampaignTemplatePreviewApiDTO":{"properties":{"templated":{"type":"boolean","title":"Templated"},"refusal_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal Category"},"reasoning":{"type":"string","title":"Reasoning"},"templates":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Templates"},"catalog_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Catalog Version"},"playbook_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Playbook Version"},"prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Version"}},"type":"object","required":["templated","reasoning"],"title":"CampaignTemplatePreviewApiDTO"},"CampaignTriggerOperator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","in","notIn","startsWith","endsWith","contains","containsAll","containsAny","notContains"],"title":"CampaignTriggerOperator"},"CampaignTriggerSchema":{"properties":{"type":{"$ref":"#/components/schemas/CampaignTriggerType"},"operator":{"$ref":"#/components/schemas/CampaignTriggerOperator"},"value":{"anyOf":[{"type":"integer"},{"type":"boolean"},{"type":"string"},{"items":{},"type":"array"},{"additionalProperties":true,"type":"object"}],"title":"Value"},"id":{"type":"string","title":"Id"}},"type":"object","required":["type","operator","value","id"],"title":"CampaignTriggerSchema"},"CampaignTriggerType":{"type":"string","enum":["time_spent_on_page","current_url","business_hours","cart_value","product_tags","cart_product_tags","visit_count","session_time","single_in_view","exit_intent","device_type","orders_count","amount_spent","ordered_products","customer_tags","country_code","incognito_visitor","out_of_stock_product_pages"],"title":"CampaignTriggerType"},"CampaignVariantRequestSchema":{"properties":{"message_text":{"type":"string","maxLength":2048,"title":"Message Text"},"message_html":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Message Html"},"attachments":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/CampaignAttachmentProductSchema"},{"$ref":"#/components/schemas/CampaignAttachmentDiscountOfferSchema"},{"$ref":"#/components/schemas/CampaignAttachmentVisitorFormSchema"},{"$ref":"#/components/schemas/CampaignAttachmentProductRecommendationSchema"}],"discriminator":{"propertyName":"contentType","mapping":{"application/discountOffer":"#/components/schemas/CampaignAttachmentDiscountOfferSchema","application/productCard":"#/components/schemas/CampaignAttachmentProductSchema","application/productRecommendation":"#/components/schemas/CampaignAttachmentProductRecommendationSchema","application/visitorForm":"#/components/schemas/CampaignAttachmentVisitorFormSchema"}}},"type":"array"},{"type":"null"}],"title":"Attachments"},"id":{"type":"string","title":"Id"}},"type":"object","required":["message_text","id"],"title":"CampaignVariantRequestSchema"},"CampaignVariantResponseSchema":{"properties":{"message_text":{"type":"string","maxLength":2048,"title":"Message Text"},"message_html":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Message Html"},"attachments":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/CampaignAttachmentProductSchema"},{"$ref":"#/components/schemas/CampaignAttachmentDiscountOfferSchema"},{"$ref":"#/components/schemas/CampaignAttachmentVisitorFormSchema"},{"$ref":"#/components/schemas/CampaignAttachmentProductRecommendationSchema"}],"discriminator":{"propertyName":"contentType","mapping":{"application/discountOffer":"#/components/schemas/CampaignAttachmentDiscountOfferSchema","application/productCard":"#/components/schemas/CampaignAttachmentProductSchema","application/productRecommendation":"#/components/schemas/CampaignAttachmentProductRecommendationSchema","application/visitorForm":"#/components/schemas/CampaignAttachmentVisitorFormSchema"}}},"type":"array"},{"type":"null"}],"title":"Attachments"},"id":{"type":"string","title":"Id"},"started_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started Datetime"},"stopped_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stopped Datetime"}},"type":"object","required":["message_text","id"],"title":"CampaignVariantResponseSchema"},"CartAbandonedCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"cart_abandoned","title":"Type","default":"cart_abandoned"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/BaseJourneyConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"CartAbandonedCreateJourneyApiDTO"},"CartAbandonedJourneyConfigurationPrivateApiDTO":{"properties":{"cart_abandoned_wait_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cart Abandoned Wait Minutes"}},"type":"object","title":"CartAbandonedJourneyConfigurationPrivateApiDTO"},"CartItemSchema":{"properties":{"product":{"$ref":"#/components/schemas/InteractedProductSchema"},"quantity":{"type":"integer","title":"Quantity","default":1},"total":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Total"},"original_total":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Original Total"}},"type":"object","required":["product","total"],"title":"CartItemSchema"},"CartSchema":{"properties":{"last_update_datetime":{"type":"string","format":"date-time","title":"Last Update Datetime"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"items":{"items":{"$ref":"#/components/schemas/CartItemSchema"},"type":"array","title":"Items"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"}},"type":"object","required":["last_update_datetime"],"title":"CartSchema"},"ChannelConnectionCreateRequestSchema":{"properties":{"store_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Store Integration Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"external_installation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Installation Status"},"is_setup":{"type":"boolean","title":"Is Setup","default":false},"is_onboarded":{"type":"boolean","title":"Is Onboarded","default":false},"utm_query_string":{"type":"string","title":"Utm Query String","default":""},"utm_enabled":{"type":"boolean","title":"Utm Enabled","default":true},"channel":{"$ref":"#/components/schemas/ChannelType"}},"type":"object","required":["channel"],"title":"ChannelConnectionCreateRequestSchema"},"ChannelConnectionResponseSchema":{"properties":{"store_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Store Integration Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"external_installation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Installation Status"},"is_setup":{"type":"boolean","title":"Is Setup","default":false},"is_onboarded":{"type":"boolean","title":"Is Onboarded","default":false},"utm_query_string":{"type":"string","title":"Utm Query String","default":""},"utm_enabled":{"type":"boolean","title":"Utm Enabled","default":true},"channel":{"$ref":"#/components/schemas/ChannelType"},"account_id":{"type":"integer","title":"Account Id"},"id":{"type":"string","title":"Id"}},"type":"object","required":["channel","account_id","id"],"title":"ChannelConnectionResponseSchema"},"ChannelOverride":{"properties":{"quiet_hours":{"anyOf":[{"$ref":"#/components/schemas/ChannelQuietHours"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"ChannelOverride"},"ChannelOverrideResponse":{"properties":{"quiet_hours":{"anyOf":[{"$ref":"#/components/schemas/ChannelQuietHoursResponse"},{"type":"null"}]}},"type":"object","title":"ChannelOverrideResponse"},"ChannelPatchRequestSchema":{"properties":{"store_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Store Integration Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"external_installation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Installation Status"},"is_setup":{"type":"boolean","title":"Is Setup","default":false},"is_onboarded":{"type":"boolean","title":"Is Onboarded","default":false},"utm_query_string":{"type":"string","title":"Utm Query String","default":""},"utm_enabled":{"type":"boolean","title":"Utm Enabled","default":true}},"type":"object","title":"ChannelPatchRequestSchema","description":"Defines the fields that can be patched and accepts any subset of the fields.\nSkips advanced validation, it will be handled in PATCH endpoint:\n    see https://fastapi.tiangolo.com/tutorial/body-updates/#partial-updates-with-patch"},"ChannelQuietHours":{"properties":{"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"}},"additionalProperties":false,"type":"object","required":["start","end"],"title":"ChannelQuietHours"},"ChannelQuietHoursResponse":{"properties":{"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"}},"type":"object","required":["start","end"],"title":"ChannelQuietHoursResponse"},"ChannelRateSchema":{"properties":{"unit":{"$ref":"#/components/schemas/BillingUnit"},"tiers":{"$ref":"#/components/schemas/TierRatesSchema"}},"type":"object","required":["unit","tiers"],"title":"ChannelRateSchema"},"ChannelRatesSchema":{"properties":{"sms":{"$ref":"#/components/schemas/ChannelRateSchema"},"mms":{"$ref":"#/components/schemas/ChannelRateSchema"},"rcs_text":{"$ref":"#/components/schemas/ChannelRateSchema"},"rcs_media":{"$ref":"#/components/schemas/ChannelRateSchema"}},"type":"object","required":["sms","mms","rcs_text","rcs_media"],"title":"ChannelRatesSchema"},"ChannelReadinessReason":{"type":"string","enum":["ready","sender_not_selected","sender_unavailable","sender_ineligible","setup_incomplete","verification_pending","authorization_required","state_unavailable"],"title":"ChannelReadinessReason"},"ChannelReadinessResponseSchema":{"properties":{"channels":{"prefixItems":[{"$ref":"#/components/schemas/EmailReadiness"},{"$ref":"#/components/schemas/SmsReadiness"}],"type":"array","maxItems":2,"minItems":2,"title":"Channels"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"}},"type":"object","required":["channels","checked_at"],"title":"ChannelReadinessResponseSchema"},"ChannelReadinessStatus":{"type":"string","enum":["ready","not_configured","blocked","unknown"],"title":"ChannelReadinessStatus"},"ChannelRequirementInputApiDTO":{"properties":{"channel":{"$ref":"#/components/schemas/ConsentChannel"},"required":{"type":"boolean","title":"Required"}},"additionalProperties":false,"type":"object","required":["channel","required"],"title":"ChannelRequirementInputApiDTO","description":"One channel a surface may capture, and whether it is required.\n\nMirrors ``gr.consent.channel_config.ChannelRequirement`` at the wire boundary; see\n``validate_channels`` for the invariants this list must satisfy."},"ChannelType":{"type":"string","enum":["widget"],"title":"ChannelType"},"CheckOrRegisterPhoneRequest":{"properties":{"phone_number":{"type":"string","maxLength":32,"minLength":1,"title":"Phone Number"},"consent":{"type":"boolean","title":"Consent"}},"type":"object","required":["phone_number","consent"],"title":"CheckOrRegisterPhoneRequest","description":"Body of POST /demo/check-or-register-phone."},"Checksum":{"type":"string","pattern":"^[0-9a-f]{64}$"},"CollisionOutcome":{"type":"string","enum":["block","delay","allow"],"title":"CollisionOutcome","description":"Action a matched collision rule takes against a pending send.\n\nBLOCK: drop the send (pre-send filter).\nDELAY: postpone the send by up to ``max_delay_hours``.\nALLOW: clear an active-journey collision after hard vetoes pass."},"CollisionRuleCreateRequestSchema":{"properties":{"rule_type":{"$ref":"#/components/schemas/CollisionRuleType"},"outcome":{"$ref":"#/components/schemas/CollisionOutcome"},"enabled":{"type":"boolean","title":"Enabled","default":true},"window_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Window Hours"},"message_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Message Cap"},"max_delay_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Delay Hours"}},"type":"object","required":["rule_type","outcome"],"title":"CollisionRuleCreateRequestSchema","description":"Request schema for creating a collision rule.\n\naccount_id is intentionally absent: it is sourced from current_user, never the body."},"CollisionRuleSchema":{"properties":{"id":{"type":"string","title":"Id"},"version":{"type":"integer","title":"Version"},"rule_type":{"$ref":"#/components/schemas/CollisionRuleType"},"outcome":{"$ref":"#/components/schemas/CollisionOutcome"},"enabled":{"type":"boolean","title":"Enabled"},"window_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Window Hours"},"message_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Message Cap"},"max_delay_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Delay Hours"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"}},"type":"object","required":["id","version","rule_type","outcome","enabled","window_hours","message_cap","max_delay_hours","created_datetime"],"title":"CollisionRuleSchema","description":"Response schema for a collision rule."},"CollisionRuleType":{"type":"string","enum":["frequency_cap","active_journey_collision","quiet_period"],"title":"CollisionRuleType","description":"Type of send-governance collision rule.\n\nFREQUENCY_CAP: at most ``message_cap`` messages within ``window_hours``.\nACTIVE_JOURNEY_COLLISION: a shopper already has an active participation of a colliding type.\nQUIET_PERIOD: a minimum gap of ``window_hours`` must elapse since the last message."},"CollisionRuleUpdateRequestSchema":{"properties":{"rule_type":{"anyOf":[{"$ref":"#/components/schemas/CollisionRuleType"},{"type":"null"}]},"outcome":{"anyOf":[{"$ref":"#/components/schemas/CollisionOutcome"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"window_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Window Hours"},"message_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Message Cap"},"max_delay_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Delay Hours"}},"type":"object","title":"CollisionRuleUpdateRequestSchema","description":"Request schema for partially updating a collision rule. Only explicitly-set fields are applied."},"CommunicationOptInSchema":{"properties":{"email":{"type":"boolean","title":"Email","default":false},"sms":{"type":"boolean","title":"Sms","default":false}},"type":"object","title":"CommunicationOptInSchema"},"ConfigResponseSchema":{"properties":{"subscription":{"$ref":"#/components/schemas/SubscriptionStatusSchema"},"campaigns":{"items":{"$ref":"#/components/schemas/PublicCampaignResponseSchema"},"type":"array","title":"Campaigns"},"ab_test":{"anyOf":[{"$ref":"#/components/schemas/ABTestConfigurationResponseSchema"},{"type":"null"}]},"settings":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Settings"},"consent_surfaces":{"items":{"$ref":"#/components/schemas/ConsentSurfaceApiDTO"},"type":"array","title":"Consent Surfaces"},"id":{"type":"string","title":"Id"}},"type":"object","required":["subscription","campaigns","id"],"title":"ConfigResponseSchema"},"ConsentChannel":{"type":"string","enum":["sms","email"],"title":"ConsentChannel","description":"Marketing channel a consent record applies to.\n\nStored as a plain string so a second channel needs no migration."},"ConsentDisclosureApiDTO":{"properties":{"template_version_id":{"type":"string","title":"Template Version Id"},"text":{"type":"string","title":"Text"}},"type":"object","required":["template_version_id","text"],"title":"ConsentDisclosureApiDTO"},"ConsentDisclosureTemplateApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"channel":{"$ref":"#/components/schemas/ConsentChannel"},"region":{"type":"string","title":"Region"},"current_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Version"},"current_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Version Id"},"is_edited":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Edited"},"created_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By"},"version_created_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Version Created Datetime"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"type":"string","format":"date-time","title":"Updated Datetime"}},"type":"object","required":["id","store_integration_id","channel","region","current_version","current_version_id","is_edited","created_by","version_created_datetime","created_datetime","updated_datetime"],"title":"ConsentDisclosureTemplateApiDTO"},"ConsentDisclosureTemplateCreateApiDTO":{"properties":{"channel":{"$ref":"#/components/schemas/ConsentChannel"},"region":{"type":"string","title":"Region"},"body":{"type":"string","maxLength":4096,"minLength":1,"title":"Body"}},"additionalProperties":false,"type":"object","required":["channel","region","body"],"title":"ConsentDisclosureTemplateCreateApiDTO"},"ConsentDisclosureTemplateDetailApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"channel":{"$ref":"#/components/schemas/ConsentChannel"},"region":{"type":"string","title":"Region"},"current_version":{"anyOf":[{"$ref":"#/components/schemas/ConsentDisclosureTemplateVersionApiDTO"},{"type":"null"}]},"history":{"items":{"$ref":"#/components/schemas/ConsentDisclosureTemplateVersionApiDTO"},"type":"array","title":"History"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"type":"string","format":"date-time","title":"Updated Datetime"}},"type":"object","required":["id","store_integration_id","channel","region","current_version","history","created_datetime","updated_datetime"],"title":"ConsentDisclosureTemplateDetailApiDTO"},"ConsentDisclosureTemplateListApiDTO":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ConsentDisclosureTemplateApiDTO"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ConsentDisclosureTemplateListApiDTO"},"ConsentDisclosureTemplateVersionApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"version":{"type":"integer","title":"Version"},"region":{"type":"string","title":"Region"},"body":{"type":"string","title":"Body"},"is_edited":{"type":"boolean","title":"Is Edited"},"created_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"}},"type":"object","required":["id","version","region","body","is_edited","created_by","created_datetime"],"title":"ConsentDisclosureTemplateVersionApiDTO"},"ConsentDisclosureVersionCreateApiDTO":{"properties":{"body":{"type":"string","maxLength":4096,"minLength":1,"title":"Body"}},"additionalProperties":false,"type":"object","required":["body"],"title":"ConsentDisclosureVersionCreateApiDTO"},"ConsentDisplayRulesApiDTO":{"properties":{"time_on_page_seconds":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":0.0},{"type":"null"}],"title":"Time On Page Seconds"},"page_targeting":{"anyOf":[{"$ref":"#/components/schemas/ConsentPageTargetingApiDTO"},{"type":"null"}]},"devices":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceDevice"},{"type":"null"}]},"frequency_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Frequency Days"}},"additionalProperties":false,"type":"object","title":"ConsentDisplayRulesApiDTO","description":"When the surface may appear.\n\n``extra=\"forbid\"`` for the same reason as the targeting rules: these are gates, and an\nunmodelled gate that is silently not enforced shows the popup when it should not."},"ConsentOptInMethod":{"type":"string","enum":["single","double"],"title":"ConsentOptInMethod"},"ConsentPageTargetingApiDTO":{"properties":{"mode":{"type":"string","enum":["include","exclude"],"title":"Mode"},"paths":{"items":{"type":"string","maxLength":2048,"minLength":1},"type":"array","maxItems":100,"title":"Paths"}},"additionalProperties":false,"type":"object","required":["mode","paths"],"title":"ConsentPageTargetingApiDTO","description":"Which pages the surface may appear on.\n\n``extra=\"forbid\"``: an unrecognised key here is a targeting rule we would not be\napplying, and showing a consent popup on a page the merchant excluded is worse than\nnot showing it at all."},"ConsentPolicyOverride":{"properties":{"opt_in_model":{"$ref":"#/components/schemas/ConsentOptInMethod"}},"additionalProperties":false,"type":"object","required":["opt_in_model"],"title":"ConsentPolicyOverride"},"ConsentStatus":{"type":"string","enum":["pending","subscribed","unsubscribed","not_subscribed","invalid","redacted"],"title":"ConsentStatus"},"ConsentSubmitResponseApiDTO":{"properties":{"status":{"$ref":"#/components/schemas/ConsentStatus"},"lead_magnet":{"anyOf":[{"$ref":"#/components/schemas/LeadMagnetApiDTO"},{"type":"null"}]}},"type":"object","required":["status"],"title":"ConsentSubmitResponseApiDTO","description":"What the storefront gets back.\n\nDeliberately narrow: no phone, no IP, no record id, no surface id. The only thing a\nshopper needs is that it worked and what they were promised for it."},"ConsentSubscriberApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"shopper_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shopper Id"},"customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Customer Id"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"channels":{"items":{"$ref":"#/components/schemas/ConsentSubscriberChannelApiDTO"},"type":"array","title":"Channels"}},"type":"object","required":["id","shopper_id","customer_id","country_code","name","location","created_datetime","channels"],"title":"ConsentSubscriberApiDTO"},"ConsentSubscriberChannelApiDTO":{"properties":{"channel":{"$ref":"#/components/schemas/ConsentChannel"},"status":{"$ref":"#/components/schemas/ConsentStatus"},"contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact"},"region":{"type":"string","title":"Region"},"opt_in_method":{"$ref":"#/components/schemas/ConsentOptInMethod"},"source_surface_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Surface Id"},"source_surface_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Surface Name"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"}},"type":"object","required":["channel","status","contact","region","opt_in_method","source_surface_id","source_surface_name","created_datetime"],"title":"ConsentSubscriberChannelApiDTO"},"ConsentSubscriberListApiDTO":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ConsentSubscriberApiDTO"},"type":"array","title":"Data"},"metadata":{"$ref":"#/components/schemas/ConsentSubscriberListMetadataApiDTO"}},"type":"object","required":["data","metadata"],"title":"ConsentSubscriberListApiDTO"},"ConsentSubscriberListMetadataApiDTO":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"prev_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prev Cursor"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["next_cursor","prev_cursor","total"],"title":"ConsentSubscriberListMetadataApiDTO"},"ConsentSubscriberProfileApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"shopper_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shopper Id"},"customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Customer Id"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"channels":{"items":{"$ref":"#/components/schemas/ConsentSubscriberProfileChannelApiDTO"},"type":"array","title":"Channels"}},"type":"object","required":["id","shopper_id","customer_id","country_code","created_datetime","channels"],"title":"ConsentSubscriberProfileApiDTO"},"ConsentSubscriberProfileChannelApiDTO":{"properties":{"channel":{"$ref":"#/components/schemas/ConsentChannel"},"status":{"$ref":"#/components/schemas/ConsentStatus"},"contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact"},"region":{"type":"string","title":"Region"},"opt_in_method":{"$ref":"#/components/schemas/ConsentOptInMethod"},"surface_type":{"$ref":"#/components/schemas/ConsentSurfaceType"},"source_surface_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Surface Id"},"source_surface_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Surface Name"},"disclosure_template_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disclosure Template Version Id"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"}},"type":"object","required":["channel","status","contact","region","opt_in_method","surface_type","source_surface_id","source_surface_name","disclosure_template_version_id","created_datetime"],"title":"ConsentSubscriberProfileChannelApiDTO"},"ConsentSurfaceAdminApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"disclosure_template_id":{"type":"string","title":"Disclosure Template Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"surface_type":{"$ref":"#/components/schemas/ConsentSurfaceType"},"status":{"$ref":"#/components/schemas/ConsentSurfaceStatus"},"region":{"type":"string","title":"Region"},"has_disclosure_text":{"type":"boolean","title":"Has Disclosure Text"},"opt_in_model_override":{"anyOf":[{"$ref":"#/components/schemas/ConsentOptInMethod"},{"type":"null"}]},"lead_magnet_type":{"$ref":"#/components/schemas/LeadMagnetType"},"lead_magnet_config":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceStoredLeadMagnetConfigApiDTO"},{"type":"null"}]},"shopify_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Shopify Tags"},"display_rules":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceStoredDisplayRulesApiDTO"},{"type":"null"}]},"customization":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceStoredCustomizationApiDTO"},{"type":"null"}]},"channels":{"items":{"$ref":"#/components/schemas/ConsentSurfaceStoredChannelApiDTO"},"type":"array","title":"Channels"},"recaptcha_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recaptcha Enabled"},"messages":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceStoredMessagesConfigApiDTO"},{"type":"null"}]},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"type":"string","format":"date-time","title":"Updated Datetime"}},"type":"object","required":["id","disclosure_template_id","name","surface_type","status","region","has_disclosure_text","opt_in_model_override","lead_magnet_type","lead_magnet_config","shopify_tags","display_rules","customization","channels","recaptcha_enabled","messages","created_datetime","updated_datetime"],"title":"ConsentSurfaceAdminApiDTO"},"ConsentSurfaceApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"surface_type":{"$ref":"#/components/schemas/ConsentSurfaceType"},"display_rules":{"$ref":"#/components/schemas/ConsentDisplayRulesApiDTO"},"customization":{"$ref":"#/components/schemas/ConsentSurfaceCustomizationApiDTO"},"lead_magnet_type":{"$ref":"#/components/schemas/LeadMagnetType"},"channels":{"items":{"$ref":"#/components/schemas/ConsentSurfaceChannelApiDTO"},"type":"array","title":"Channels"},"messages":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceMessagesConfigApiDTO"},{"type":"null"}]}},"type":"object","required":["id","surface_type","display_rules","customization","lead_magnet_type","channels","messages"],"title":"ConsentSurfaceApiDTO","description":"One renderable surface, as the storefront bundle sees it.\n\nNo ``use_enum_values``: it would leave ``str`` at runtime behind an annotation that\nclaims the enum, which MyPy cannot see through. Pydantic serialises an enum by its\nvalue in JSON mode, which is what FastAPI uses, so the wire format is unchanged."},"ConsentSurfaceChannelApiDTO":{"properties":{"channel":{"$ref":"#/components/schemas/ConsentChannel"},"required":{"type":"boolean","title":"Required"}},"type":"object","required":["channel","required"],"title":"ConsentSurfaceChannelApiDTO","description":"One channel a submit surface captures, as the storefront bundle sees it.\n\nThe stored ``channels`` JSONB is written by ``serialize_channel_config`` as\n``{\"channel\": <str>, \"required\": <bool>}``, so these two typed fields are the whole\nshape. A typed model rather than ``dict[str, Any]`` keeps ``additionalProperties``\nfalse in the OpenAPI schema (the admin contract guard fails on a bare object), while\n``extra=\"ignore\"`` means a key written by a future API is served minus that key rather\nthan costing the whole surface -- the same trade as the stored customization and\nmessages columns."},"ConsentSurfaceCreateApiDTO":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"region":{"type":"string","maxLength":8,"minLength":2,"title":"Region"},"surface_type":{"$ref":"#/components/schemas/ConsentSurfaceType","default":"popup"},"opt_in_model_override":{"anyOf":[{"$ref":"#/components/schemas/ConsentOptInMethod"},{"type":"null"}]},"lead_magnet_type":{"$ref":"#/components/schemas/LeadMagnetType","default":"none"},"lead_magnet_config":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceLeadMagnetConfigInputApiDTO"},{"type":"null"}]},"shopify_tags":{"anyOf":[{"items":{"type":"string","maxLength":255,"minLength":1},"type":"array","maxItems":20},{"type":"null"}],"title":"Shopify Tags"},"display_rules":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceDisplayRulesInputApiDTO"},{"type":"null"}]},"customization":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceCustomizationInputApiDTO"},{"type":"null"}]},"channels":{"items":{"$ref":"#/components/schemas/ChannelRequirementInputApiDTO"},"type":"array","title":"Channels"},"recaptcha_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recaptcha Enabled"},"messages":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceMessagesConfigApiDTO"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["region","channels"],"title":"ConsentSurfaceCreateApiDTO"},"ConsentSurfaceCustomizationApiDTO":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Title"},"subtext":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Subtext"},"phone_label":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Phone Label"},"phone_placeholder":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Phone Placeholder"},"primary_cta_text":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Primary Cta Text"},"secondary_cta_text":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Secondary Cta Text"},"image_url":{"anyOf":[{"type":"string","maxLength":2048,"pattern":"^https://(?:public-uploads\\.gorgias\\.io|public-uploads\\.gorgias\\.xyz|public-uploads\\.gorgi\\.us)/[^\\s?#]+$","description":"An image uploaded through the Gorgias public attachment upload. Must be an https URL on one of: public-uploads.gorgias.io, public-uploads.gorgias.xyz, public-uploads.gorgi.us."},{"type":"null"}],"title":"Image Url"},"image_alt":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Image Alt"},"padding":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":0.0,"description":"Text-block padding in pixels, 0-64."},{"type":"null"}],"title":"Padding"},"background_color":{"anyOf":[{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$","description":"A hex colour, #RGB or #RRGGBB. Named and functional CSS colours are refused."},{"type":"null"}],"title":"Background Color"},"success_headline":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Success Headline"},"success_body":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Success Body"},"disclosure_text":{"anyOf":[{"type":"string","maxLength":4096,"minLength":1},{"type":"null"}],"title":"Disclosure Text"},"font_family":{"anyOf":[{"$ref":"#/components/schemas/FontFamily"},{"type":"null"}]},"font_size":{"anyOf":[{"type":"integer","maximum":24.0,"minimum":12.0},{"type":"null"}],"title":"Font Size"},"primary_color":{"anyOf":[{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$","description":"A hex colour, #RGB or #RRGGBB. Named and functional CSS colours are refused."},{"type":"null"}],"title":"Primary Color"},"image_position":{"$ref":"#/components/schemas/ImagePosition","default":"left"},"hide_image_on_mobile":{"type":"boolean","title":"Hide Image On Mobile","default":false},"schema_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Schema Version"}},"type":"object","title":"ConsentSurfaceCustomizationApiDTO"},"ConsentSurfaceCustomizationInputApiDTO":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Title"},"subtext":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Subtext"},"phone_label":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Phone Label"},"phone_placeholder":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Phone Placeholder"},"primary_cta_text":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Primary Cta Text"},"secondary_cta_text":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Secondary Cta Text"},"image_url":{"anyOf":[{"type":"string","maxLength":2048,"pattern":"^https://(?:public-uploads\\.gorgias\\.io|public-uploads\\.gorgias\\.xyz|public-uploads\\.gorgi\\.us)/[^\\s?#]+$","description":"An image uploaded through the Gorgias public attachment upload. Must be an https URL on one of: public-uploads.gorgias.io, public-uploads.gorgias.xyz, public-uploads.gorgi.us."},{"type":"null"}],"title":"Image Url"},"image_alt":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Image Alt"},"padding":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":0.0,"description":"Text-block padding in pixels, 0-64."},{"type":"null"}],"title":"Padding"},"background_color":{"anyOf":[{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$","description":"A hex colour, #RGB or #RRGGBB. Named and functional CSS colours are refused."},{"type":"null"}],"title":"Background Color"},"success_headline":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Success Headline"},"success_body":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Success Body"},"disclosure_text":{"anyOf":[{"type":"string","maxLength":4096,"minLength":1},{"type":"null"}],"title":"Disclosure Text"},"font_family":{"anyOf":[{"$ref":"#/components/schemas/FontFamily"},{"type":"null"}]},"font_size":{"anyOf":[{"type":"integer","maximum":24.0,"minimum":12.0},{"type":"null"}],"title":"Font Size"},"primary_color":{"anyOf":[{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$","description":"A hex colour, #RGB or #RRGGBB. Named and functional CSS colours are refused."},{"type":"null"}],"title":"Primary Color"},"image_position":{"$ref":"#/components/schemas/ImagePosition","default":"left"},"hide_image_on_mobile":{"type":"boolean","title":"Hide Image On Mobile","default":false},"schema_version":{"type":"integer","const":1,"title":"Schema Version"}},"additionalProperties":false,"type":"object","required":["schema_version"],"title":"ConsentSurfaceCustomizationInputApiDTO"},"ConsentSurfaceDevice":{"type":"string","enum":["desktop","mobile","all"],"title":"ConsentSurfaceDevice","description":"Which devices a consent surface renders on.\n\n``ALL`` is the default when ``devices`` is unset; the storefront bundle treats\n``None`` as \"every device\"."},"ConsentSurfaceDisplayRulesInputApiDTO":{"properties":{"time_on_page_seconds":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":0.0},{"type":"null"}],"title":"Time On Page Seconds"},"page_targeting":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfacePageTargetingInputApiDTO"},{"type":"null"}]},"devices":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceDevice"},{"type":"null"}]},"frequency_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Frequency Days"}},"additionalProperties":false,"type":"object","title":"ConsentSurfaceDisplayRulesInputApiDTO"},"ConsentSurfaceLeadMagnetConfigInputApiDTO":{"properties":{"code":{"type":"string","maxLength":64,"minLength":1,"title":"Code"}},"additionalProperties":false,"type":"object","required":["code"],"title":"ConsentSurfaceLeadMagnetConfigInputApiDTO"},"ConsentSurfaceListApiDTO":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ConsentSurfaceAdminApiDTO"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ConsentSurfaceListApiDTO"},"ConsentSurfaceMessageBlockApiDTO":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Text"},"image_url":{"anyOf":[{"type":"string","maxLength":2048,"pattern":"^https://(?:public-uploads\\.gorgias\\.io|public-uploads\\.gorgias\\.xyz|public-uploads\\.gorgi\\.us)/[^\\s?#]+$","description":"An image uploaded through the Gorgias public attachment upload. Must be an https URL on one of: public-uploads.gorgias.io, public-uploads.gorgias.xyz, public-uploads.gorgi.us."},{"type":"null"}],"title":"Image Url"}},"additionalProperties":false,"type":"object","title":"ConsentSurfaceMessageBlockApiDTO","description":"One merchant-configurable consent message: plaintext copy plus an optional image.\n\n``text`` is stored and served as plaintext, exactly like ``disclosure_text``: a known\nHTML tag is refused rather than stripped, so a merchant who pasted markup is told to\nsend plaintext instead of silently having it rendered in the outbound SMS."},"ConsentSurfaceMessagesConfigApiDTO":{"properties":{"confirmation":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceMessageBlockApiDTO"},{"type":"null"}]},"acknowledgment":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceMessageBlockApiDTO"},{"type":"null"}]},"info":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceMessageBlockApiDTO"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"ConsentSurfaceMessagesConfigApiDTO","description":"The merchant-configurable consent message copy for a surface.\n\nEach block overrides the hardcoded default for that message type; an absent block (or a\nblock with no ``text``) means the dispatch falls back to the default copy."},"ConsentSurfacePageTargetingInputApiDTO":{"properties":{"mode":{"type":"string","enum":["include","exclude"],"title":"Mode"},"paths":{"items":{"type":"string","maxLength":2048,"minLength":1},"type":"array","maxItems":100,"title":"Paths"}},"additionalProperties":false,"type":"object","required":["mode","paths"],"title":"ConsentSurfacePageTargetingInputApiDTO"},"ConsentSurfacePatchApiDTO":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"opt_in_model_override":{"anyOf":[{"$ref":"#/components/schemas/ConsentOptInMethod"},{"type":"null"}]},"lead_magnet_type":{"anyOf":[{"$ref":"#/components/schemas/LeadMagnetType"},{"type":"null"}]},"lead_magnet_config":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceLeadMagnetConfigInputApiDTO"},{"type":"null"}]},"shopify_tags":{"anyOf":[{"items":{"type":"string","maxLength":255,"minLength":1},"type":"array","maxItems":20},{"type":"null"}],"title":"Shopify Tags"},"display_rules":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceDisplayRulesInputApiDTO"},{"type":"null"}]},"customization":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceCustomizationInputApiDTO"},{"type":"null"}]},"channels":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChannelRequirementInputApiDTO"},"type":"array"},{"type":"null"}],"title":"Channels"},"recaptcha_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recaptcha Enabled"},"messages":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceMessagesConfigApiDTO"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"ConsentSurfacePatchApiDTO"},"ConsentSurfaceSnapshotApiDTO":{"properties":{"surface":{"$ref":"#/components/schemas/ConsentSurfaceApiDTO"},"disclosure":{"$ref":"#/components/schemas/ConsentDisclosureApiDTO"},"snapshot_token":{"type":"string","title":"Snapshot Token"},"recaptcha_enabled":{"type":"boolean","title":"Recaptcha Enabled","default":false},"recaptcha_site_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recaptcha Site Key"}},"type":"object","required":["surface","disclosure","snapshot_token"],"title":"ConsentSurfaceSnapshotApiDTO"},"ConsentSurfaceStatus":{"type":"string","enum":["draft","active","paused"],"title":"ConsentSurfaceStatus"},"ConsentSurfaceStoredChannelApiDTO":{"properties":{"channel":{"$ref":"#/components/schemas/ConsentChannel"},"required":{"type":"boolean","title":"Required"}},"type":"object","required":["channel","required"],"title":"ConsentSurfaceStoredChannelApiDTO"},"ConsentSurfaceStoredCustomizationApiDTO":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Title"},"subtext":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Subtext"},"phone_label":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Phone Label"},"phone_placeholder":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Phone Placeholder"},"primary_cta_text":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Primary Cta Text"},"secondary_cta_text":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Secondary Cta Text"},"image_url":{"anyOf":[{"type":"string","maxLength":2048,"pattern":"^https://(?:public-uploads\\.gorgias\\.io|public-uploads\\.gorgias\\.xyz|public-uploads\\.gorgi\\.us)/[^\\s?#]+$","description":"An image uploaded through the Gorgias public attachment upload. Must be an https URL on one of: public-uploads.gorgias.io, public-uploads.gorgias.xyz, public-uploads.gorgi.us."},{"type":"null"}],"title":"Image Url"},"image_alt":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Image Alt"},"padding":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":0.0,"description":"Text-block padding in pixels, 0-64."},{"type":"null"}],"title":"Padding"},"background_color":{"anyOf":[{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$","description":"A hex colour, #RGB or #RRGGBB. Named and functional CSS colours are refused."},{"type":"null"}],"title":"Background Color"},"success_headline":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Success Headline"},"success_body":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Success Body"},"disclosure_text":{"anyOf":[{"type":"string","maxLength":4096,"minLength":1},{"type":"null"}],"title":"Disclosure Text"},"font_family":{"anyOf":[{"$ref":"#/components/schemas/FontFamily"},{"type":"null"}]},"font_size":{"anyOf":[{"type":"integer","maximum":24.0,"minimum":12.0},{"type":"null"}],"title":"Font Size"},"primary_color":{"anyOf":[{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$","description":"A hex colour, #RGB or #RRGGBB. Named and functional CSS colours are refused."},{"type":"null"}],"title":"Primary Color"},"image_position":{"$ref":"#/components/schemas/ImagePosition","default":"left"},"hide_image_on_mobile":{"type":"boolean","title":"Hide Image On Mobile","default":false},"schema_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Schema Version"}},"type":"object","title":"ConsentSurfaceStoredCustomizationApiDTO"},"ConsentSurfaceStoredDisplayRulesApiDTO":{"properties":{"time_on_page_seconds":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":0.0},{"type":"null"}],"title":"Time On Page Seconds"},"page_targeting":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceStoredPageTargetingApiDTO"},{"type":"null"}]},"devices":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceDevice"},{"type":"null"}]},"frequency_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Frequency Days"}},"type":"object","title":"ConsentSurfaceStoredDisplayRulesApiDTO"},"ConsentSurfaceStoredLeadMagnetConfigApiDTO":{"properties":{"code":{"type":"string","maxLength":64,"minLength":1,"title":"Code"}},"type":"object","required":["code"],"title":"ConsentSurfaceStoredLeadMagnetConfigApiDTO"},"ConsentSurfaceStoredMessageBlockApiDTO":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Text"},"image_url":{"anyOf":[{"type":"string","maxLength":2048,"pattern":"^https://(?:public-uploads\\.gorgias\\.io|public-uploads\\.gorgias\\.xyz|public-uploads\\.gorgi\\.us)/[^\\s?#]+$","description":"An image uploaded through the Gorgias public attachment upload. Must be an https URL on one of: public-uploads.gorgias.io, public-uploads.gorgias.xyz, public-uploads.gorgi.us."},{"type":"null"}],"title":"Image Url"}},"type":"object","title":"ConsentSurfaceStoredMessageBlockApiDTO"},"ConsentSurfaceStoredMessagesConfigApiDTO":{"properties":{"confirmation":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceStoredMessageBlockApiDTO"},{"type":"null"}]},"acknowledgment":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceStoredMessageBlockApiDTO"},{"type":"null"}]},"info":{"anyOf":[{"$ref":"#/components/schemas/ConsentSurfaceStoredMessageBlockApiDTO"},{"type":"null"}]}},"type":"object","title":"ConsentSurfaceStoredMessagesConfigApiDTO"},"ConsentSurfaceStoredPageTargetingApiDTO":{"properties":{"mode":{"type":"string","enum":["include","exclude"],"title":"Mode"},"paths":{"items":{"type":"string","maxLength":2048,"minLength":1},"type":"array","maxItems":100,"title":"Paths"}},"type":"object","required":["mode","paths"],"title":"ConsentSurfaceStoredPageTargetingApiDTO"},"ConsentSurfaceType":{"type":"string","enum":["popup","sticky_banner","import","api"],"title":"ConsentSurfaceType","description":"How the consent was captured.\n\nIMPORT and API records have no rendered surface, so they carry no source_surface_id\nand no disclosure_template_version_id."},"ConversationReviewApiDTO":{"properties":{"ticket_id":{"type":"integer","title":"Ticket Id"},"journey_participation_id":{"type":"string","title":"Journey Participation Id"},"verdict":{"$ref":"#/components/schemas/ConversationReviewVerdict"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"reviewer_user_id":{"type":"integer","title":"Reviewer User Id"},"reviewed_datetime":{"type":"string","format":"date-time","title":"Reviewed Datetime"},"tagged":{"type":"boolean","title":"Tagged"}},"type":"object","required":["ticket_id","journey_participation_id","verdict","note","reviewer_user_id","reviewed_datetime","tagged"],"title":"ConversationReviewApiDTO"},"ConversationReviewVerdict":{"type":"string","enum":["yes","needs_improvement","no"],"title":"ConversationReviewVerdict","description":"A merchant's answer to \"Did this conversation meet your expectations?\" on an AI Journey trial message.\n\nStored in ``journey_conversation_reviews.verdict``; the table's CHECK lists the same values."},"CountryRateSchema":{"properties":{"rcs_capable_share_default":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Rcs Capable Share Default"},"channels":{"$ref":"#/components/schemas/ChannelRatesSchema"}},"type":"object","required":["rcs_capable_share_default","channels"],"title":"CountryRateSchema"},"CountryRatesSchema":{"properties":{"US":{"$ref":"#/components/schemas/CountryRateSchema"},"CA":{"$ref":"#/components/schemas/CountryRateSchema"},"UK":{"$ref":"#/components/schemas/CountryRateSchema"},"AU":{"$ref":"#/components/schemas/CountryRateSchema"}},"type":"object","required":["US","CA","UK","AU"],"title":"CountryRatesSchema"},"CreateCustomJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"custom","title":"Type","default":"custom"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/CustomJourneyConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"CreateCustomJourneyApiDTO"},"CreateEmailMessageTemplateApiDTO":{"properties":{"name":{"type":"string","maxLength":255,"pattern":"^[^\\x00]*$","title":"Name"},"store_integration_id":{"type":"integer","maximum":2147483647.0,"exclusiveMinimum":0.0,"title":"Store Integration Id"},"body_html_template":{"type":"string","minLength":1,"pattern":"^[^\\x00]*$","title":"Body Html Template"},"subject":{"anyOf":[{"type":"string","maxLength":255,"pattern":"^[^\\x00]*$"},{"type":"null"}],"title":"Subject"},"channel":{"type":"string","const":"email","title":"Channel"}},"additionalProperties":false,"type":"object","required":["name","store_integration_id","body_html_template","channel"],"title":"CreateEmailMessageTemplateApiDTO"},"CreateSegmentPrivateRequest":{"properties":{"name":{"type":"string","title":"Name","description":"Human-readable segment name shown in the UI"},"conditions":{"type":"string","title":"Conditions","description":"Segment conditions as a JSON string"},"store_integration_id":{"type":"integer","title":"Store Integration Id","description":"Store integration ID (the connected store)"}},"type":"object","required":["name","conditions","store_integration_id"],"title":"CreateSegmentPrivateRequest"},"CreateSegmentPrivateResponse":{"properties":{"segment_id":{"type":"string","title":"Segment Id","description":"The upstream Gorgias segment ID"},"audience_list_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience List Id","description":"The local audience list ID; pass this to a journey's included_audience_list_ids to target it at this segment. Null if the internal sync failed -- the segment itself is still created, so look the ID up separately before attaching it to a journey."}},"type":"object","required":["segment_id","audience_list_id"],"title":"CreateSegmentPrivateResponse"},"CreateSmsMessageTemplateApiDTO":{"properties":{"store_integration_id":{"type":"integer","maximum":2147483647.0,"exclusiveMinimum":0.0,"title":"Store Integration Id"},"name":{"type":"string","maxLength":255,"pattern":"^[^\\x00]*$","title":"Name"},"channel":{"type":"string","const":"sms","title":"Channel"},"body_text":{"type":"string","minLength":1,"pattern":"^[^\\x00]*$","title":"Body Text"}},"additionalProperties":false,"type":"object","required":["store_integration_id","name","channel","body_text"],"title":"CreateSmsMessageTemplateApiDTO"},"Currency":{"type":"string","enum":["USD"],"title":"Currency"},"CustomDomainOperationSchema":{"properties":{"fallback_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Fallback Url"},"hostname":{"type":"string","title":"Hostname"},"zone":{"anyOf":[{"$ref":"#/components/schemas/CustomDomainZone"},{"type":"null"}]},"store_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Store Integration Id"}},"type":"object","required":["hostname"],"title":"CustomDomainOperationSchema"},"CustomDomainSchema":{"properties":{"hostname":{"type":"string","title":"Hostname"},"status":{"type":"string","title":"Status"},"store_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Store Integration Id"},"fallback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Url"}},"type":"object","required":["hostname","status"],"title":"CustomDomainSchema"},"CustomDomainUpdateSchema":{"properties":{"fallback_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Fallback Url"}},"type":"object","title":"CustomDomainUpdateSchema"},"CustomDomainZone":{"type":"string","enum":["gorgias-convert.com","gorgias.win"],"title":"CustomDomainZone"},"CustomJourneyConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"}},"type":"object","title":"CustomJourneyConfigurationApiDTO"},"CustomScheduleSchema":{"properties":{"days":{"type":"string","title":"Days"},"from_time":{"type":"string","title":"From Time"},"to_time":{"type":"string","title":"To Time"}},"type":"object","required":["days","from_time","to_time"],"title":"CustomScheduleSchema"},"DiscountConfigurationApiDTO":{"properties":{"type":{"$ref":"#/components/schemas/DiscountTypeEnum"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"amount_unit":{"anyOf":[{"$ref":"#/components/schemas/DiscountUnitEnum"},{"type":"null"}]},"code_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Code Id"},"unique_codes":{"type":"boolean","title":"Unique Codes","default":false}},"type":"object","required":["type"],"title":"DiscountConfigurationApiDTO"},"DiscountOfferApiDTO":{"properties":{"type":{"$ref":"#/components/schemas/DiscountOfferTypeEnum"},"prefix":{"type":"string","maxLength":10,"minLength":1,"title":"Prefix"},"value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Value"},"minimum_purchase_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Minimum Purchase Amount"},"external_customer_segment_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"External Customer Segment Ids"},"external_collection_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"External Collection Ids"},"external_product_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"External Product Ids"},"id":{"type":"string","title":"Id"},"store_integration_id":{"type":"string","title":"Store Integration Id"},"updated_datetime":{"type":"string","format":"date-time","title":"Updated Datetime"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"}},"type":"object","required":["type","prefix","id","store_integration_id","updated_datetime","created_datetime"],"title":"DiscountOfferApiDTO"},"DiscountOfferCreateApiDTO":{"properties":{"type":{"$ref":"#/components/schemas/DiscountOfferTypeEnum"},"prefix":{"type":"string","maxLength":10,"minLength":1,"title":"Prefix"},"value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Value"},"minimum_purchase_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Minimum Purchase Amount"},"external_customer_segment_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"External Customer Segment Ids"},"external_collection_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"External Collection Ids"},"external_product_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"External Product Ids"},"store_integration_id":{"type":"string","title":"Store Integration Id"}},"type":"object","required":["type","prefix","store_integration_id"],"title":"DiscountOfferCreateApiDTO"},"DiscountOfferPatchApiDTO":{"properties":{"type":{"anyOf":[{"$ref":"#/components/schemas/DiscountOfferTypeEnum"},{"type":"null"}]},"prefix":{"anyOf":[{"type":"string","maxLength":10,"minLength":1},{"type":"null"}],"title":"Prefix"},"value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Value"},"minimum_purchase_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Minimum Purchase Amount"},"external_customer_segment_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"External Customer Segment Ids"},"external_collection_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"External Collection Ids"},"external_product_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"External Product Ids"}},"type":"object","title":"DiscountOfferPatchApiDTO"},"DiscountOfferTypeEnum":{"type":"string","enum":["fixed","percentage","free_shipping"],"title":"DiscountOfferTypeEnum"},"DiscountTypeEnum":{"type":"string","enum":["specific_amount","code"],"title":"DiscountTypeEnum"},"DiscountUnitEnum":{"type":"string","enum":["%","$"],"title":"DiscountUnitEnum"},"DismissOpportunityRequestApiDTO":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"DismissOpportunityRequestApiDTO"},"DispatchDeadlineSource":{"type":"string","enum":["processed_at","created_at","merchant_order_ship_by"]},"DispatchDelayConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"dispatch_within_business_days":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Dispatch Within Business Days"},"merchant_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Timezone"},"daily_cutoff_local_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}],"title":"Daily Cutoff Local Time"},"business_days":{"anyOf":[{"items":{"$ref":"#/components/schemas/Weekday"},"type":"array","minItems":1},{"type":"null"}],"title":"Business Days"},"holidays":{"items":{"type":"string"},"type":"array","title":"Holidays"},"dispatch_delay_grace_period_minutes":{"type":"integer","minimum":0.0,"title":"Dispatch Delay Grace Period Minutes","default":60},"allow_created_at_fallback":{"type":"boolean","title":"Allow Created At Fallback","default":false},"eligible_shipping_methods":{"items":{"type":"string"},"type":"array","title":"Eligible Shipping Methods"},"pilot_cohort_review_confirmed":{"type":"boolean","title":"Pilot Cohort Review Confirmed","default":false}},"type":"object","required":["dispatch_within_business_days"],"title":"DispatchDelayConfigurationApiDTO","description":"The merchant's dispatch promise. There is no global default deadline, so the handling\ndays are required.\n\nThe business calendar comes from the account's Helpdesk business hours. ``merchant_timezone``,\n``daily_cutoff_local_time``, ``business_days`` and ``holidays`` are deprecated: they are used only\nfor an account whose Helpdesk calendar is not in use or cannot be read."},"DispatchDelayCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"dispatch_delay","title":"Type","default":"dispatch_delay"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"$ref":"#/components/schemas/DispatchDelayConfigurationApiDTO"}},"type":"object","required":["store_integration_id","store_name","store_type","configuration"],"title":"DispatchDelayCreateJourneyApiDTO"},"DispatchDelayEvidenceType":{"type":"string","enum":["order_still_unfulfilled","label_not_picked_up"]},"DispatchDelayJourneyConfigurationPrivateApiDTO":{"properties":{"dispatch_within_business_days":{"anyOf":[{"type":"integer","maximum":30.0,"minimum":1.0},{"type":"null"}],"title":"Dispatch Within Business Days"},"merchant_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Timezone"},"daily_cutoff_local_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}],"title":"Daily Cutoff Local Time"},"business_days":{"anyOf":[{"items":{"$ref":"#/components/schemas/Weekday"},"type":"array","minItems":1},{"type":"null"}],"title":"Business Days"},"holidays":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Holidays"},"dispatch_delay_grace_period_minutes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Dispatch Delay Grace Period Minutes","default":60},"allow_created_at_fallback":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Created At Fallback","default":false},"eligible_shipping_methods":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Eligible Shipping Methods"},"pilot_cohort_review_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pilot Cohort Review Confirmed","default":false},"effective_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective From"},"weekday_cutoff_local_times":{"anyOf":[{"additionalProperties":{"type":"string","pattern":"^(([01]\\d|2[0-3]):[0-5]\\d|24:00)$"},"propertyNames":{"$ref":"#/components/schemas/Weekday"},"type":"object"},{"type":"null"}],"title":"Weekday Cutoff Local Times"},"reduced_hours_dates":{"anyOf":[{"additionalProperties":{"type":"string","pattern":"^(([01]\\d|2[0-3]):[0-5]\\d|24:00)$"},"type":"object"},{"type":"null"}],"title":"Reduced Hours Dates"},"business_calendar_source":{"anyOf":[{"type":"string","enum":["helpdesk","journey"]},{"type":"null"}],"title":"Business Calendar Source"}},"type":"object","title":"DispatchDelayJourneyConfigurationPrivateApiDTO","description":"The deadline policy the dispatch-delay detector (AIJ-4746) reads from the private feed.\n\nNo field ever fails validation, so one bad row cannot take the feed down for every merchant.\nRequired policy fields and ``effective_from`` read as null when missing or malformed; omitted\noptional fields take their declared defaults; a malformed value provided for an optional field\nreads as null. The detector treats an incomplete policy, or a null ``effective_from``, as\ninactive.\n\n``weekday_cutoff_local_times``, ``reduced_hours_dates`` and ``business_calendar_source`` are\nomitted when the account's Helpdesk calendar flag is off. With the flag on,\n``business_calendar_source`` is ``\"helpdesk\"`` when the calendar was read from Helpdesk business\nhours, together with the two calendar fields; it is ``\"journey\"`` when the account fell back to\nits stored values, and the two calendar fields are then omitted."},"DispatchDelayTriggerApiDTO":{"properties":{"type":{"type":"string","const":"dispatch_delay","title":"Type"},"dispatch_deadline_at":{"type":"string","title":"Dispatch Deadline At"},"delay_detected_at":{"type":"string","title":"Delay Detected At"},"deadline_source":{"$ref":"#/components/schemas/DispatchDeadlineSource"},"evidence_type":{"$ref":"#/components/schemas/DispatchDelayEvidenceType"},"order_processed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Processed At"},"live_fulfillment_status":{"anyOf":[{"$ref":"#/components/schemas/DispatchLiveFulfillmentStatus"},{"type":"null"}],"description":"The order's fulfillment status at the last send-time check."},"live_checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Live Checked At"}},"type":"object","required":["type","dispatch_deadline_at","delay_detected_at","deadline_source","evidence_type"],"title":"DispatchDelayTriggerApiDTO"},"DispatchLiveFulfillmentStatus":{"type":"string","enum":["unfulfilled","label_created"]},"DryRunEngagementReportApiDTO":{"properties":{"journey_id":{"type":"string","title":"Journey Id"},"shoppers_reached":{"type":"integer","title":"Shoppers Reached"},"estimated_gmv":{"type":"number","title":"Estimated Gmv"},"conversion_rate":{"type":"number","title":"Conversion Rate"},"opt_out_rate":{"type":"number","title":"Opt Out Rate"}},"type":"object","required":["journey_id","shoppers_reached","estimated_gmv","conversion_rate","opt_out_rate"],"title":"DryRunEngagementReportApiDTO","description":"One dry-run Engagement's projected performance for the Engagements tab.\n\nOnly ``estimated_gmv`` is a product of the merchant's average and ``shoppers_reached``. The\ntwo rates are that merchant's averages passed through untouched, because the tab renders them\nas rates: multiplying them would make the same column mean a rate on a live row and a count on\na dry-run one.\n\nFloats rather than ``Decimal`` so the generated client models these as numbers, matching the\ncube-sourced values the UI merges them with. The arithmetic upstream is done in ``Decimal``."},"EmailBrandAssetApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"integer","title":"Account Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"object_type":{"$ref":"#/components/schemas/EmailBrandAssetObjectType"},"object_url":{"type":"string","title":"Object Url"},"media_type":{"$ref":"#/components/schemas/EmailBrandAssetMediaType"},"size_bytes":{"type":"integer","title":"Size Bytes"},"width_pixels":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width Pixels"},"height_pixels":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height Pixels"},"sha256":{"type":"string","title":"Sha256"},"created_by_user_id":{"type":"integer","title":"Created By User Id"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"}},"type":"object","required":["id","account_id","store_integration_id","object_type","object_url","media_type","size_bytes","width_pixels","height_pixels","sha256","created_by_user_id","created_datetime"],"title":"EmailBrandAssetApiDTO"},"EmailBrandAssetMediaType":{"type":"string","enum":["image/png","image/jpeg"]},"EmailBrandAssetObjectType":{"type":"string","enum":["logo_light","logo_dark"]},"EmailBrandConfiguration":{"properties":{"logos":{"$ref":"#/components/schemas/BrandLogos"},"typography":{"anyOf":[{"$ref":"#/components/schemas/BrandTypography"},{"type":"null"}]},"colors":{"anyOf":[{"$ref":"#/components/schemas/BrandColors"},{"type":"null"}]},"universal_content":{"anyOf":[{"$ref":"#/components/schemas/UniversalContent"},{"type":"null"}]},"button":{"anyOf":[{"$ref":"#/components/schemas/BrandButton"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"EmailBrandConfiguration"},"EmailMessageConfigurationApiDTO":{"properties":{"mode":{"$ref":"#/components/schemas/JourneyMessageMode"},"enabled":{"type":"boolean","title":"Enabled","description":"Whether this channel is enabled for the journey; a journey does not send on a disabled channel. Disabling a channel does not exempt it from the activation checks: a stored template_id that is no longer valid still blocks activation, whatever the channel or enabled value."},"template_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1,"pattern":"^[^\\x00]+$"},{"type":"null"}],"title":"Template Id","description":"The selected message template: an active template of this channel in the journey's account and store. Allowed in either mode; omit it or send null to select no template. Template sending requires message templates to be enabled for the account: while they are, a journey in template mode sends this template, or without one its journey type's default body for this channel, as its first message instead of generating one, and sends no follow-up messages. An active journey whose selected channel is enabled and in template mode must have one unless its journey type has a default body for the channel, which it then sends."}},"additionalProperties":false,"type":"object","required":["mode","enabled"],"title":"EmailMessageConfigurationApiDTO","description":"How the email channel composes its messages, whether it is enabled, and its selected email template."},"EmailMessageTemplateDetailApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"integer","title":"Account Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"name":{"type":"string","title":"Name"},"content_schema_version":{"type":"integer","title":"Content Schema Version"},"content_sha256":{"type":"string","title":"Content Sha256"},"content_size_bytes":{"type":"integer","title":"Content Size Bytes"},"created_by_user_id":{"type":"integer","title":"Created By User Id"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"channel":{"type":"string","const":"email","title":"Channel"},"body_html_template":{"type":"string","title":"Body Html Template"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"The template's subject; null for a template stored without one."}},"type":"object","required":["id","account_id","store_integration_id","name","content_schema_version","content_sha256","content_size_bytes","created_by_user_id","created_datetime","channel","body_html_template","subject"],"title":"EmailMessageTemplateDetailApiDTO"},"EmailReadiness":{"properties":{"channel":{"type":"string","const":"email","title":"Channel","default":"email"},"status":{"$ref":"#/components/schemas/ChannelReadinessStatus"},"reason_code":{"$ref":"#/components/schemas/ChannelReadinessReason"}},"type":"object","required":["status","reason_code"],"title":"EmailReadiness"},"EmailTemplateDefaultContentApiDTO":{"properties":{"body_html_template":{"type":"string","title":"Body Html Template"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"The subject a new e-mail template starts from; null without a default."}},"type":"object","required":["body_html_template","subject"],"title":"EmailTemplateDefaultContentApiDTO"},"EmailTemplatePreviewResponseApiDTO":{"properties":{"rendered_html":{"type":"string","title":"Rendered Html"},"rendered_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rendered Subject","description":"The template's subject as a send renders it; null without a subject or when it cannot be sent."}},"type":"object","required":["rendered_html","rendered_subject"],"title":"EmailTemplatePreviewResponseApiDTO"},"EmailTemplateVariableApiDTO":{"properties":{"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"full_label":{"type":"string","title":"Full Label"},"insert":{"type":"string","title":"Insert"},"type":{"$ref":"#/components/schemas/VariableType"},"required":{"type":"boolean","title":"Required"},"tooltip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tooltip"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"format":{"anyOf":[{"$ref":"#/components/schemas/VariableFormat"},{"type":"null"}]}},"type":"object","required":["name","label","full_label","insert","type","required","tooltip"],"title":"EmailTemplateVariableApiDTO"},"EmailTemplateVariableCatalogApiDTO":{"properties":{"catalog_version":{"type":"integer","title":"Catalog Version"},"journey_type":{"$ref":"#/components/schemas/JourneyTypeEnum"},"groups":{"items":{"$ref":"#/components/schemas/EmailTemplateVariableGroupApiDTO"},"type":"array","title":"Groups"},"default_content":{"anyOf":[{"$ref":"#/components/schemas/MessageTemplateDefaultContentApiDTO"},{"type":"null"}],"description":"The content a new template for the journey type starts from; null when it has none."}},"type":"object","required":["catalog_version","journey_type","groups","default_content"],"title":"EmailTemplateVariableCatalogApiDTO","description":"Picker projection of a journey's catalog: active variables in catalog order."},"EmailTemplateVariableGroupApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"variables":{"items":{"$ref":"#/components/schemas/EmailTemplateVariableApiDTO"},"type":"array","title":"Variables"}},"type":"object","required":["id","label","variables"],"title":"EmailTemplateVariableGroupApiDTO"},"EnrichAmountSpentSchema":{"properties":{"amount":{"type":"string","title":"Amount"},"currency_code":{"type":"string","title":"Currency Code"}},"type":"object","required":["amount","currency_code"],"title":"EnrichAmountSpentSchema"},"EnrichConsentSchema":{"properties":{"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"opt_in_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt In Level"},"consent_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent Updated At"}},"type":"object","title":"EnrichConsentSchema","description":"One marketing-consent state projected from ecommerce storage.\n\n``consent_updated_at`` is only carried by the SMS (``marketing_consent``) object; the email\nobject does not expose a timestamp, so it is null for ``email_marketing_consent``."},"EnrichSubscribersRequest":{"properties":{"integration_id":{"type":"integer","title":"Integration Id","description":"Store integration ID the external_ids belong to"},"external_ids":{"items":{"type":"string"},"type":"array","title":"External Ids","description":"Ecommerce customer ids to enrich (max 100 per request). The account is taken from the token."}},"type":"object","required":["integration_id","external_ids"],"title":"EnrichSubscribersRequest"},"EnrichSubscribersResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/EnrichedSubscriberSchema"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"EnrichSubscribersResponse"},"EnrichedSubscriberSchema":{"properties":{"external_id":{"type":"string","title":"External Id"},"found":{"type":"boolean","title":"Found","description":"False when no shopper matched the external_id in ecommerce storage"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"number_of_orders":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Orders"},"amount_spent":{"anyOf":[{"$ref":"#/components/schemas/EnrichAmountSpentSchema"},{"type":"null"}]},"email_marketing_consent":{"anyOf":[{"$ref":"#/components/schemas/EnrichConsentSchema"},{"type":"null"}]},"marketing_consent":{"anyOf":[{"$ref":"#/components/schemas/EnrichConsentSchema"},{"type":"null"}],"description":"SMS marketing consent (ecommerce storage 'marketing_consent' object)"}},"type":"object","required":["external_id","found"],"title":"EnrichedSubscriberSchema","description":"The deliberately narrow safe subset returned for one subscriber.\n\nOnly these fields are ever exposed: the full ecommerce shopper record is never returned."},"Error":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"Error"},"EvaluatedCampaignSchema":{"properties":{"id":{"type":"string","title":"Id"},"rules":{"items":{"$ref":"#/components/schemas/EvaluatedRuleSchema"},"type":"array","title":"Rules"}},"type":"object","required":["id","rules"],"title":"EvaluatedCampaignSchema"},"EvaluatedRuleSchema":{"properties":{"key":{"$ref":"#/components/schemas/RuleType"},"operator":{"$ref":"#/components/schemas/RuleOperator"},"value":{"type":"string","title":"Value"},"matches":{"type":"boolean","title":"Matches"}},"type":"object","required":["key","operator","value","matches"],"title":"EvaluatedRuleSchema"},"EvaluationRequestSchema":{"properties":{"guest_id":{"type":"string","title":"Guest Id"},"customer_id":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Customer Id"},"account_id":{"type":"integer","maximum":2147483647.0,"minimum":-2147483648.0,"title":"Account Id"},"campaigns":{"items":{"$ref":"#/components/schemas/CampaignSchema"},"type":"array","title":"Campaigns"}},"type":"object","required":["guest_id","account_id","campaigns"],"title":"EvaluationRequestSchema"},"EvaluationResponseSchema":{"properties":{"campaigns":{"items":{"$ref":"#/components/schemas/EvaluatedCampaignSchema"},"type":"array","title":"Campaigns"},"visitor_identified":{"type":"boolean","title":"Visitor Identified"}},"type":"object","required":["campaigns","visitor_identified"],"title":"EvaluationResponseSchema"},"FindTestShopperApiDTO":{"properties":{"journey_id":{"type":"string","title":"Journey Id"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","required":["journey_id"],"title":"FindTestShopperApiDTO"},"FindTestShopperCandidateApiDTO":{"properties":{"marketing_id":{"type":"string","title":"Marketing Id"},"external_id":{"type":"integer","title":"External Id"},"integration_id":{"type":"integer","title":"Integration Id"},"context_quality":{"type":"string","title":"Context Quality"},"orders_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Orders Count"},"amount_spent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Spent"},"last_order_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Order Datetime"},"helpdesk_customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Helpdesk Customer Id","description":"Helpdesk customer id resolved live by matching the subscriber's phone or email. Null when no helpdesk customer matched or the lookup failed."}},"type":"object","required":["marketing_id","external_id","integration_id","context_quality"],"title":"FindTestShopperCandidateApiDTO"},"FindTestShopperResponseApiDTO":{"properties":{"results":{"items":{"$ref":"#/components/schemas/FindTestShopperCandidateApiDTO"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"FindTestShopperResponseApiDTO"},"FindingApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"source":{"$ref":"#/components/schemas/FindingSource"},"severity":{"$ref":"#/components/schemas/FindingSeverity"},"category":{"$ref":"#/components/schemas/FindingCategory"},"instruction_ref":{"$ref":"#/components/schemas/InstructionRefApiDTO"},"explanation":{"type":"string","title":"Explanation"},"suggested_fix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Fix"},"suggested_rewrite":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Rewrite"}},"type":"object","required":["id","source","severity","category","instruction_ref","explanation"],"title":"FindingApiDTO"},"FindingCategory":{"type":"string","enum":["purpose","angle","cta","offer","links","product_focus","tone","language","false_promises","timing","clarity","unsupported_actions"],"title":"FindingCategory"},"FindingSeverity":{"type":"string","enum":["warning","error"],"title":"FindingSeverity"},"FindingSource":{"type":"string","enum":["deterministic","critique"],"title":"FindingSource"},"FontFamily":{"type":"string","enum":["Arial","Georgia","Impact","Inter","Merriweather","Source Code Pro","Tahoma","Times New Roman","Verdana"],"title":"FontFamily"},"FulfillmentAddressIssueReason":{"type":"string","enum":["invalid_or_incomplete_address","address_not_found","missing_unit","recipient_unknown_or_moved"],"title":"FulfillmentAddressIssueReason"},"FulfillmentAddressIssueSourceStatus":{"type":"string","enum":["attempted_delivery","buyer_action_required","carrier_picked_up","confirmed","delayed","failure","fulfillment_requested","in_transit","label_printed","label_purchased","out_for_delivery","picked_up","ready_for_pickup","ready_for_recipient_pickup","unknown"]},"FulfillmentMonitorConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"preferred_url":{"$ref":"#/components/schemas/PreferredUrlType","description":"Which link a transactional message carries: the carrier tracking page (default) or the Shopify order status page. When the preferred link is unavailable the other one is used; with neither, no link is sent.","default":"tracking_page"},"delivered_scan_threshold_days":{"type":"integer","title":"Delivered Scan Threshold Days","default":6},"stale_cutoff_days":{"type":"integer","title":"Stale Cutoff Days","default":21}},"type":"object","title":"FulfillmentMonitorConfigurationApiDTO","description":"AIJ-3932 (WISMO). Field-for-field per the frozen contract\n(.context/delivery/AIJ-fulfillment-event-FROZEN-CONTRACT.md)."},"FulfillmentMonitorCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"fulfillment_monitor","title":"Type","default":"fulfillment_monitor"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentMonitorConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"FulfillmentMonitorCreateJourneyApiDTO"},"FulfillmentMonitorJourneyConfigurationPrivateApiDTO":{"properties":{"delivered_scan_threshold_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delivered Scan Threshold Days","default":6},"stale_cutoff_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stale Cutoff Days","default":21}},"type":"object","title":"FulfillmentMonitorJourneyConfigurationPrivateApiDTO"},"FulfillmentMonitorTriggerApiDTO":{"properties":{"type":{"type":"string","const":"fulfillment_monitor","title":"Type"},"last_fulfillment_activity_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Fulfillment Activity At","description":"The stale shipment's last carrier activity; null for a participation enrolled by order only or created before it was stored."}},"type":"object","required":["type"],"title":"FulfillmentMonitorTriggerApiDTO"},"FulfillmentShippingFailedSourceStatus":{"type":"string","enum":["attempted_delivery","buyer_action_required","carrier_picked_up","confirmed","delayed","delivered","failure","fulfillment_requested","in_transit","label_printed","label_purchased","out_for_delivery","picked_up","ready_for_pickup","ready_for_recipient_pickup","returning_to_sender","unknown"]},"FulfillmentShippingFailureCategory":{"type":"string","enum":["delivery_attempt_failed","held_for_pickup","returned_to_sender","refused","action_required","lost","damaged"],"title":"FulfillmentShippingFailureCategory"},"GenerateInstructionsPrivateRequestApiDTO":{"properties":{"current_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Instructions"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"}},"additionalProperties":false,"type":"object","title":"GenerateInstructionsPrivateRequestApiDTO"},"GenerateInstructionsRequestApiDTO":{"properties":{"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"}},"type":"object","title":"GenerateInstructionsRequestApiDTO"},"GenerateInstructionsResponseApiDTO":{"properties":{"instructions":{"type":"string","title":"Instructions"}},"type":"object","required":["instructions"],"title":"GenerateInstructionsResponseApiDTO"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImagePosition":{"type":"string","enum":["left","right"],"title":"ImagePosition","description":"Which side of a consent surface the image sits on, desktop layout only.\n\nMobile always stacks the image above or below the form; ``hide_image_on_mobile``\nis the only mobile-facing image control."},"InstallationSchema":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"integer","title":"Account Id"},"shop_integration_id":{"type":"integer","title":"Shop Integration Id"},"shop_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shop Name"},"script_tag_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script Tag Id"},"status":{"$ref":"#/components/schemas/StatusEnum"},"method":{"$ref":"#/components/schemas/MethodEnum"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"last_loaded_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Loaded Datetime"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"deactivated_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deactivated Datetime"},"bundle_url":{"type":"string","title":"Bundle Url","default":"https://media.9gtb.com/loader.js"}},"type":"object","required":["id","account_id","shop_integration_id","status","method","config","created_datetime"],"title":"InstallationSchema"},"InstallationUpdateConfigSchema":{"properties":{"config":{"additionalProperties":true,"type":"object","title":"Config"}},"type":"object","required":["config"],"title":"InstallationUpdateConfigSchema"},"InstructionExperimentApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"state":{"type":"string","title":"State"},"hypothesis":{"type":"string","title":"Hypothesis"},"proposed_variant":{"$ref":"#/components/schemas/VariantDTO"}},"type":"object","required":["id","state","hypothesis","proposed_variant"],"title":"InstructionExperimentApiDTO"},"InstructionRefApiDTO":{"properties":{"text":{"type":"string","title":"Text"},"line":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Line"}},"type":"object","required":["text"],"title":"InstructionRefApiDTO"},"InteractedProductSchema":{"properties":{"id":{"type":"integer","title":"Id"},"variant_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Variant Id"},"title":{"type":"string","title":"Title"},"handle":{"type":"string","title":"Handle"}},"type":"object","required":["id","title","handle"],"title":"InteractedProductSchema"},"JWTTokenSchema":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"JWTTokenSchema"},"JourneyApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"type":{"$ref":"#/components/schemas/JourneyTypeEnum"},"entry_mode":{"$ref":"#/components/schemas/JourneyEntryMode"},"account_id":{"type":"integer","title":"Account Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"state":{"$ref":"#/components/schemas/JourneyStatusEnum"},"channel":{"$ref":"#/components/schemas/JourneyChannel"},"whatsapp_template_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Null for a campaign created without one; always null for other journey types."},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"resolved_execution_mode":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Datetime"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignApiDTO"},{"type":"null"}]},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"deleted_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted Datetime"}},"type":"object","required":["id","type","entry_mode","account_id","store_integration_id","store_name","store_type","state","channel","created_datetime"],"title":"JourneyApiDTO"},"JourneyCampaignStateEnum":{"type":"string","enum":["draft","scheduled","active","paused","canceled","sent","failed"],"title":"JourneyCampaignStateEnum"},"JourneyChannel":{"type":"string","enum":["sms","email","whatsapp"],"title":"JourneyChannel","description":"Delivery channel for a journey's outbound messages."},"JourneyConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"}},"type":"object","title":"JourneyConfigurationApiDTO"},"JourneyConfigurationPrivateApiDTO":{"anyOf":[{"$ref":"#/components/schemas/CartAbandonedJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/SessionAbandonedJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/WinbackJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/PostPurchaseJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/WelcomeJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/FulfillmentMonitorJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/ShippingDelayJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/AddressIssueJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/RefundIssuedJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/DispatchDelayJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/ShippingFailedJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/OrderTaggedJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/PartialDeliveryJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/OrderCancelledJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/ReturnReceivedJourneyConfigurationPrivateApiDTO"},{"$ref":"#/components/schemas/OrderFollowUpJourneyConfigurationPrivateApiDTO"}]},"JourneyDefaultContentApiDTO":{"properties":{"ai":{"anyOf":[{"$ref":"#/components/schemas/AiMessageDefaultContentApiDTO"},{"type":"null"}]},"template":{"anyOf":[{"$ref":"#/components/schemas/SmsTemplateDefaultContentApiDTO"},{"$ref":"#/components/schemas/EmailTemplateDefaultContentApiDTO"},{"type":"null"}],"title":"Template","description":"The requested channel's template body, and for e-mail its subject; null without a channel or a default."}},"type":"object","required":["ai","template"],"title":"JourneyDefaultContentApiDTO","description":"A journey type's default content, per message mode; null for a mode without one."},"JourneyDeletedFilter":{"type":"string","enum":["active","deleted","all"],"title":"JourneyDeletedFilter","description":"Filters GET /journeys by soft-deletion state.\n\nDistinct from JourneyStatusEnum (the journey's ``state`` field): this filter\nonly selects on ``deleted_datetime``, not the lifecycle state."},"JourneyDetailApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"type":{"$ref":"#/components/schemas/JourneyTypeEnum"},"entry_mode":{"$ref":"#/components/schemas/JourneyEntryMode"},"account_id":{"type":"integer","title":"Account Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"state":{"$ref":"#/components/schemas/JourneyStatusEnum"},"channel":{"$ref":"#/components/schemas/JourneyChannel"},"whatsapp_template_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Null for a campaign created without one; always null for other journey types."},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"resolved_execution_mode":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Datetime"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignApiDTO"},{"type":"null"}]},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"deleted_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted Datetime"},"configuration":{"anyOf":[{"$ref":"#/components/schemas/JourneyConfigurationApiDTO"},{"$ref":"#/components/schemas/WinbackJourneyConfigurationApiDTO"},{"$ref":"#/components/schemas/PostPurchaseJourneyConfigurationApiDTO"},{"$ref":"#/components/schemas/WelcomeFlowConfigurationApiDTO"},{"$ref":"#/components/schemas/CampaignJourneyConfigurationApiDTO"},{"$ref":"#/components/schemas/CustomJourneyConfigurationApiDTO"},{"$ref":"#/components/schemas/FulfillmentMonitorConfigurationApiDTO"},{"$ref":"#/components/schemas/ShippingDelayConfigurationApiDTO"},{"$ref":"#/components/schemas/AddressIssueConfigurationApiDTO"},{"$ref":"#/components/schemas/RefundIssuedConfigurationApiDTO"},{"$ref":"#/components/schemas/DispatchDelayConfigurationApiDTO"},{"$ref":"#/components/schemas/ShippingFailedConfigurationApiDTO"},{"$ref":"#/components/schemas/OrderTaggedConfigurationApiDTO"},{"$ref":"#/components/schemas/PartialDeliveryConfigurationApiDTO"},{"$ref":"#/components/schemas/OrderCancelledConfigurationApiDTO"},{"$ref":"#/components/schemas/ReturnReceivedConfigurationApiDTO"},{"$ref":"#/components/schemas/OrderFollowUpConfigurationApiDTO"},{"type":"null"}],"title":"Configuration"},"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"}},"type":"object","required":["id","type","entry_mode","account_id","store_integration_id","store_name","store_type","state","channel","created_datetime"],"title":"JourneyDetailApiDTO"},"JourneyEntryMode":{"type":"string","enum":["flow","ace"],"title":"JourneyEntryMode"},"JourneyGroupApiDTO":{"properties":{"type":{"$ref":"#/components/schemas/JourneyGroupType"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"journey_types":{"items":{"$ref":"#/components/schemas/JourneyTypeEnum"},"type":"array","title":"Journey Types"},"channels":{"items":{"$ref":"#/components/schemas/JourneyChannel"},"type":"array","title":"Channels"},"message_type":{"$ref":"#/components/schemas/JourneyMessageMode"},"created_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Datetime"},"updated_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Datetime"}},"type":"object","required":["type","store_integration_id","journey_types","channels","message_type","created_datetime","updated_datetime"],"title":"JourneyGroupApiDTO"},"JourneyGroupType":{"type":"string","enum":["delivery_updates","order_updates"],"title":"JourneyGroupType","description":"A fixed set of journey types sharing one per-store settings row (``journey_groups``).\n\nOnly groups whose flows exist are listed. Add a group together with its first journey type."},"JourneyMessageMode":{"type":"string","enum":["ai","template"],"title":"JourneyMessageMode","description":"How a CX transactional journey's selected channel delivers its messages."},"JourneyParticipationExecutionMode":{"type":"string","enum":["dry-run","test","trial","regular","convert-only"],"title":"JourneyParticipationExecutionMode"},"JourneyParticipationOverdueFulfillmentApiDTO":{"properties":{"fulfillment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fulfillment Id"},"promised_delivery_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promised Delivery At"},"revised_estimated_delivery_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Estimated Delivery At"},"last_fulfillment_activity_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Fulfillment Activity At"},"latest_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Status"}},"type":"object","title":"JourneyParticipationOverdueFulfillmentApiDTO","description":"One overdue shipment of a shipping delay notice, with its latest revised estimate."},"JourneyParticipationStatusApiDTO":{"properties":{"ticket_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ticket Id"},"state":{"type":"string","title":"State"},"journey_id":{"type":"string","title":"Journey Id"},"journey_type":{"$ref":"#/components/schemas/JourneyTypeEnum"},"journey_name":{"type":"string","title":"Journey Name"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id","description":"The Shopify order id."},"order_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Name","description":"The order number the shopper sees, such as \"#1078\"."},"triggered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Triggered At"},"tracking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Url"},"fulfillment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fulfillment Id","description":"The shipment the trigger is about."},"fulfillment_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fulfillment Event Id","description":"The carrier event that triggered it."},"delivered_fulfillment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivered Fulfillment Id","description":"A partial delivery's delivered shipment."},"refund_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refund Id"},"overdue_fulfillments":{"anyOf":[{"items":{"$ref":"#/components/schemas/JourneyParticipationOverdueFulfillmentApiDTO"},"type":"array"},{"type":"null"}],"title":"Overdue Fulfillments","description":"A shipping delay's overdue shipments."},"trigger":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/FulfillmentMonitorTriggerApiDTO"},{"$ref":"#/components/schemas/ShippingDelayTriggerApiDTO"},{"$ref":"#/components/schemas/AddressIssueTriggerApiDTO"},{"$ref":"#/components/schemas/ShippingFailedTriggerApiDTO"},{"$ref":"#/components/schemas/DispatchDelayTriggerApiDTO"},{"$ref":"#/components/schemas/RefundIssuedTriggerApiDTO"},{"$ref":"#/components/schemas/PartialDeliveryTriggerApiDTO"},{"$ref":"#/components/schemas/OrderCancelledTriggerApiDTO"},{"$ref":"#/components/schemas/ReturnReceivedTriggerApiDTO"},{"$ref":"#/components/schemas/OrderTaggedTriggerApiDTO"},{"$ref":"#/components/schemas/OrderFollowUpTriggerApiDTO"}],"discriminator":{"propertyName":"type","mapping":{"address_issue":"#/components/schemas/AddressIssueTriggerApiDTO","dispatch_delay":"#/components/schemas/DispatchDelayTriggerApiDTO","fulfillment_monitor":"#/components/schemas/FulfillmentMonitorTriggerApiDTO","order_cancelled":"#/components/schemas/OrderCancelledTriggerApiDTO","order_follow_up":"#/components/schemas/OrderFollowUpTriggerApiDTO","order_tagged":"#/components/schemas/OrderTaggedTriggerApiDTO","partial_delivery":"#/components/schemas/PartialDeliveryTriggerApiDTO","refund_issued":"#/components/schemas/RefundIssuedTriggerApiDTO","return_received":"#/components/schemas/ReturnReceivedTriggerApiDTO","shipping_delay":"#/components/schemas/ShippingDelayTriggerApiDTO","shipping_failed":"#/components/schemas/ShippingFailedTriggerApiDTO"}}},{"type":"null"}],"title":"Trigger"}},"type":"object","required":["ticket_id","state","journey_id","journey_type","journey_name","store_integration_id"],"title":"JourneyParticipationStatusApiDTO","description":"A participation's state and, for a support journey, the order and trigger it is about.\n\nThe order fields, entity ids and ``trigger`` are null for a marketing participation. ``trigger`` is\nalso null when the stored trigger no longer reads as its journey type's; the order fields still show."},"JourneyPrivateApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"type":{"$ref":"#/components/schemas/JourneyTypeEnum"},"entry_mode":{"$ref":"#/components/schemas/JourneyEntryMode"},"account_id":{"type":"integer","title":"Account Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"state":{"$ref":"#/components/schemas/JourneyStatusEnum"},"channel":{"$ref":"#/components/schemas/JourneyChannel"},"whatsapp_template_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Null for a campaign created without one; always null for other journey types."},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"resolved_execution_mode":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Datetime"},"configuration":{"$ref":"#/components/schemas/JourneyConfigurationPrivateApiDTO"}},"type":"object","required":["id","type","entry_mode","account_id","store_integration_id","store_name","store_type","state","channel","created_datetime","configuration"],"title":"JourneyPrivateApiDTO"},"JourneyReplyContextAgentOnlyApiDTO":{"properties":{"fulfillment_hold_reasons":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Fulfillment Hold Reasons","description":"The Shopify fulfillment-order hold reasons on the order at the last send-time check, such as inventory_out_of_stock. For store agents only: never copy into a model prompt or a shopper message."},"cancel_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Reason","description":"The raw Shopify cancel reason (lower-case: customer, inventory, declined, staff or other). For store agents only: never copy into a model prompt or a shopper message."}},"type":"object","title":"JourneyReplyContextAgentOnlyApiDTO","description":"Facts for store agents only. Never copy them into a model prompt or a shopper message.\n\nA partial delivery participation carries ``fulfillment_hold_reasons``; a cancellation confirmation\nparticipation carries ``cancel_reason``. The other field is null."},"JourneyReplyContextApiDTO":{"properties":{"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"journey_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Journey Name"},"execution_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Mode"},"store_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Store Url"},"channel":{"$ref":"#/components/schemas/JourneyChannel"},"settings":{"$ref":"#/components/schemas/JourneyReplyContextSettingsApiDTO"},"participation":{"$ref":"#/components/schemas/JourneyReplyContextParticipationApiDTO"},"engage_context":{"anyOf":[{"$ref":"#/components/schemas/JourneyReplyContextEngageApiDTO"},{"type":"null"}]},"agent_only_context":{"anyOf":[{"$ref":"#/components/schemas/JourneyReplyContextAgentOnlyApiDTO"},{"type":"null"}]},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail a campaign sends on: \"marketing\" or \"transactional\", never null for a campaign (a campaign stored without one is marketing); always null for other journey types."}},"type":"object","required":["message_instructions","journey_name","execution_mode","store_url","channel","settings","participation"],"title":"JourneyReplyContextApiDTO","description":"Journey context returned to ai-agent for a ticket that has a journey participation.\n\nCarries the same information the ``*JourneyStartedEventData`` Nexus payload provides at send time (see\n``JourneyStartedSettingsData`` / ``journey_message_instructions``) plus the participation\nidentifiers, so ai-agent can seed a reply session with equivalent context whether it was\ncreated eagerly from the outbound trigger or lazily via this endpoint. Transactional journeys also carry\na nullable ``engage_context`` grounded in the participation's persisted trigger; a transactional\ncampaign's has its identifiers only, since no order triggered it. A campaign also carries its resolved\n``messaging_type``, as the campaign trigger does. A partial delivery or\ncancellation confirmation participation also carries a nullable ``agent_only_context`` (fulfillment-order\nhold reasons, or the raw cancel reason) that the\nNexus payload never carries: it is for store agents only and must never reach a model prompt or a\nshopper message. Serialized snake_case (see ``JourneyReplyContextSettingsApiDTO``); ai-agent parses this\nendpoint's contract."},"JourneyReplyContextEngageApiDTO":{"properties":{"journey_type":{"$ref":"#/components/schemas/JourneyTypeEnum"},"journey_id":{"type":"string","title":"Journey Id"},"journey_participation_id":{"type":"string","title":"Journey Participation Id"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"triggered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Triggered At"},"tracking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Url"},"fulfillment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fulfillment Id"},"issue_observed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issue Observed At"},"address_issue_reason":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentAddressIssueReason"},{"type":"null"}]},"failure_category":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentShippingFailureCategory"},{"type":"null"}]},"failure_observed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Observed At"},"dispatch_deadline_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dispatch Deadline At"},"notice_sequence":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Notice Sequence"},"previous_promised_delivery_at":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Previous Promised Delivery At"},"delivery_time_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Time Zone"},"preferred_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Url","description":"The order link the journey's messages carry, per its current preferred_url setting; null for a journey type without the setting or when no link is available."},"preferred_url_type":{"anyOf":[{"$ref":"#/components/schemas/PreferredUrlType"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["journey_type","journey_id","journey_participation_id","order_id","triggered_at","tracking_url"],"title":"JourneyReplyContextEngageApiDTO","description":"Transactional journey facts needed to ground a Support reply.\n\nBesides the declared fields, it carries every key of the flow's AI ``extra_context``\n(``support_transactional_extra_context``) with the same name, value and shape, built from the\nparticipation's stored context at reply time; a key the payload carries replaces the declared\nfield's own reading of the stored context. The flow data is an open mapping because its keys are\nthe builder's, and a key the payload leaves out stays absent rather than ``null``."},"JourneyReplyContextParticipationApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"journey_id":{"type":"string","title":"Journey Id"},"variant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Id"},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"}},"type":"object","required":["id","journey_id","variant_id","template_id"],"title":"JourneyReplyContextParticipationApiDTO","description":"Identifiers letting ai-agent tie the reply session back to the participation."},"JourneyReplyContextSettingsApiDTO":{"properties":{"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"email_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Email Sender Integration Id"},"whatsapp_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Whatsapp Sender Integration Id"},"whatsapp_sender_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Sender Phone Number"},"whatsapp_template_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Whatsapp Template Id"},"whatsapp_template_parameters":{"anyOf":[{"items":{"$ref":"#/components/schemas/WhatsAppTemplateParameterSpecApiDTO"},"type":"array"},{"type":"null"}],"title":"Whatsapp Template Parameters"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"tone_of_voice_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone Of Voice Guidance"},"opt_out_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt Out Message"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false}},"type":"object","title":"JourneyReplyContextSettingsApiDTO","description":"Campaign settings for seeding an ai-agent reply session.\n\nCarries the same *field set* as ``JourneyStartedSettingsData`` (the Nexus payload that seeds a\nsession at outbound send time), so ai-agent gets equivalent context to an outbound session.\nA drift-guard test asserts the two field-name sets stay identical. The wire format differs by\ndesign: this HTTP ApiDTO serializes snake_case (repo API convention), the Nexus payload serializes\ncamelCase — ai-agent parses this endpoint's contract separately."},"JourneyStatusEnum":{"type":"string","enum":["active","draft","paused"],"title":"JourneyStatusEnum"},"JourneyTypeDefaultContentApiDTO":{"properties":{"journey_type":{"$ref":"#/components/schemas/JourneyTypeEnum"},"default_content":{"anyOf":[{"$ref":"#/components/schemas/JourneyDefaultContentApiDTO"},{"type":"null"}],"description":"The content a new journey of this type starts from; null when it has none."}},"type":"object","required":["journey_type","default_content"],"title":"JourneyTypeDefaultContentApiDTO"},"JourneyTypeEnum":{"type":"string","enum":["cart_abandoned","session_abandoned","campaign","win_back","post_purchase","welcome","custom","ace_generic","fulfillment_monitor","shipping_delay","address_issue","refund_issued","search_abandoned","dispatch_delay","shipping_failed","order_tagged","partial_delivery","order_cancelled","return_received","order_follow_up"],"title":"JourneyTypeEnum"},"JourneyValidationSummaryApiDTO":{"properties":{"journey_id":{"type":"string","title":"Journey Id"},"status":{"$ref":"#/components/schemas/ValidationStatus"},"summary":{"$ref":"#/components/schemas/ValidationSummaryApiDTO"},"validated_at":{"type":"string","format":"date-time","title":"Validated At"}},"type":"object","required":["journey_id","status","summary","validated_at"],"title":"JourneyValidationSummaryApiDTO"},"JsonValue":{},"KlaviyoPermissionErrorSchema":{"properties":{"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope","description":"The Klaviyo OAuth scope that the API key is missing, when known"},"message":{"type":"string","title":"Message","description":"Raw error message returned by Klaviyo"}},"type":"object","required":["scope","message"],"title":"KlaviyoPermissionErrorSchema"},"LeadMagnetApiDTO":{"properties":{"type":{"$ref":"#/components/schemas/LeadMagnetType"},"code":{"type":"string","title":"Code"}},"type":"object","required":["type","code"],"title":"LeadMagnetApiDTO"},"LeadMagnetType":{"type":"string","enum":["none","static_code","unique_code"],"title":"LeadMagnetType"},"MaxCampaignDisplaysInSession":{"properties":{"value":{"type":"integer","title":"Value"}},"type":"object","required":["value"],"title":"MaxCampaignDisplaysInSession"},"MessageTemplateApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"integer","title":"Account Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"name":{"type":"string","title":"Name"},"content_schema_version":{"type":"integer","title":"Content Schema Version"},"content_sha256":{"type":"string","title":"Content Sha256"},"content_size_bytes":{"type":"integer","title":"Content Size Bytes"},"created_by_user_id":{"type":"integer","title":"Created By User Id"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"channel":{"$ref":"#/components/schemas/MessageTemplateChannel"}},"type":"object","required":["id","account_id","store_integration_id","name","content_schema_version","content_sha256","content_size_bytes","created_by_user_id","created_datetime","channel"],"title":"MessageTemplateApiDTO","description":"Metadata projection; never echoes template bodies."},"MessageTemplateChannel":{"type":"string","enum":["email","sms"],"title":"MessageTemplateChannel"},"MessageTemplateDefaultContentApiDTO":{"properties":{"sms":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageTemplateDefaultContentApiDTO"},{"type":"null"}]}},"type":"object","required":["sms"],"title":"MessageTemplateDefaultContentApiDTO","description":"A journey type's default template content, per channel; null for a channel without one."},"MessageTemplatePreviewRequestApiDTO":{"properties":{"customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Customer Id"},"journey_type":{"anyOf":[{"$ref":"#/components/schemas/JourneyTypeEnum"},{"type":"null"}]}},"type":"object","title":"MessageTemplatePreviewRequestApiDTO"},"MessagingType":{"type":"string","enum":["marketing","transactional"],"title":"MessagingType"},"MethodEnum":{"type":"string","enum":["theme_app","one_click","manual"],"title":"MethodEnum"},"MinimumTimeBetweenCampaigns":{"properties":{"value":{"type":"integer","title":"Value"},"unit":{"$ref":"#/components/schemas/TimeUnit"}},"type":"object","required":["value","unit"],"title":"MinimumTimeBetweenCampaigns"},"OpportunityApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"opportunity_type":{"$ref":"#/components/schemas/OpportunityType"},"status":{"$ref":"#/components/schemas/OpportunityStatus"},"priority":{"anyOf":[{"$ref":"#/components/schemas/OpportunityPriority"},{"type":"null"}]},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"impact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Impact"},"applied_object_type":{"anyOf":[{"$ref":"#/components/schemas/OpportunityAppliedObjectType"},{"type":"null"}]},"applied_object_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applied Object Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"reviewed_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed Datetime"},"expires_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires Datetime"}},"type":"object","required":["id","opportunity_type","status","priority","title","description","reasoning","impact","applied_object_type","applied_object_id","payload","created_datetime","reviewed_datetime","expires_datetime"],"title":"OpportunityApiDTO"},"OpportunityAppliedObjectType":{"type":"string","enum":["campaign"],"title":"OpportunityAppliedObjectType","description":"What an applied opportunity produced, distinct from OpportunityType (the proposal taxonomy).\nA campaign is a Journey of type ``campaign``."},"OpportunityCountApiDTO":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"OpportunityCountApiDTO"},"OpportunityListMetadataApiDTO":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"prev_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prev Cursor"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["next_cursor","prev_cursor","total"],"title":"OpportunityListMetadataApiDTO"},"OpportunityPageApiDTO":{"properties":{"data":{"items":{"$ref":"#/components/schemas/OpportunityApiDTO"},"type":"array","title":"Data"},"metadata":{"$ref":"#/components/schemas/OpportunityListMetadataApiDTO"}},"type":"object","required":["data","metadata"],"title":"OpportunityPageApiDTO"},"OpportunityPriority":{"type":"string","enum":["low","medium","high","critical"],"title":"OpportunityPriority"},"OpportunityStatus":{"type":"string","enum":["proposed","accepted","dismissed","applied","expired"],"title":"OpportunityStatus"},"OpportunityType":{"type":"string","enum":["campaign_seasonal","campaign_product","campaign_replenishment","campaign_winback","campaign_audience_segment"],"title":"OpportunityType"},"OrderCancelReason":{"type":"string","enum":["customer","inventory","declined","staff","other"]},"OrderCancelledConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."}},"type":"object","title":"OrderCancelledConfigurationApiDTO"},"OrderCancelledCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"order_cancelled","title":"Type","default":"order_cancelled"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/OrderCancelledConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"OrderCancelledCreateJourneyApiDTO"},"OrderCancelledJourneyConfigurationPrivateApiDTO":{"properties":{},"type":"object","title":"OrderCancelledJourneyConfigurationPrivateApiDTO"},"OrderCancelledRefundState":{"type":"string","enum":["refunded","pending","voided","none"]},"OrderCancelledTriggerApiDTO":{"properties":{"type":{"type":"string","const":"order_cancelled","title":"Type"},"cancelled_at":{"type":"string","title":"Cancelled At"},"cancel_reason":{"$ref":"#/components/schemas/OrderCancelReason","description":"The raw Shopify cancel reason. For store agents only: never copy into a model prompt or a shopper message."},"financial_status":{"type":"string","title":"Financial Status"},"refund_state":{"anyOf":[{"$ref":"#/components/schemas/OrderCancelledRefundState"},{"type":"null"}]},"refund_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refund Amount"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"refund_destination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refund Destination"}},"type":"object","required":["type","cancelled_at","cancel_reason","financial_status"],"title":"OrderCancelledTriggerApiDTO"},"OrderFollowUpAnchor":{"type":"string","enum":["order_placed","order_fulfilled"]},"OrderFollowUpConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages","description":"Always 0: an order follow-up sends one message.","default":0},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"target_order_status":{"$ref":"#/components/schemas/OrderStatusEnum","description":"The order event the follow-up wait starts from: order_placed (the order is paid) or order_fulfilled (every shippable line is fulfilled). The wait is the journey's timing_offset.","default":"order_fulfilled"},"require_delivered":{"type":"boolean","title":"Require Delivered","description":"Send only once every tracked fulfillment of the order is delivered; an untracked fulfillment counts as delivered. Off by default, since a follow-up sent soon after fulfillment would rarely find its order delivered. Ignored when target_order_status is order_placed.","default":false}},"type":"object","title":"OrderFollowUpConfigurationApiDTO","description":"An order_follow_up journey's anchor and send conditions. Its messages are AI-written only: template mode\nis rejected on either channel. It never sends follow-up messages: max_follow_up_messages always reads 0."},"OrderFollowUpCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"order_follow_up","title":"Type","default":"order_follow_up"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","maximum":129600.0,"minimum":0.0,"title":"Timing Offset","description":"Minutes to wait after the anchor (target_order_status) before messaging, from 0 to 129600 (90 days). Defaults to 0: no wait, the message is sent at the anchor.","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/OrderFollowUpConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"OrderFollowUpCreateJourneyApiDTO"},"OrderFollowUpJourneyConfigurationPrivateApiDTO":{"properties":{"target_order_status":{"anyOf":[{"$ref":"#/components/schemas/OrderStatusEnum"},{"type":"null"}],"default":"order_fulfilled"},"require_delivered":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Delivered","default":false}},"type":"object","title":"OrderFollowUpJourneyConfigurationPrivateApiDTO","description":"The anchor the order follow-up detector watches for this journey, and whether its send waits for\ndelivery. The wait itself is the journey's top-level ``timing_offset``. An omitted field takes its\ndefault and a malformed one reads as null, so one bad row never fails the feed. ``require_delivered``\nis ignored for an ``order_placed`` anchor."},"OrderFollowUpTriggerApiDTO":{"properties":{"type":{"type":"string","const":"order_follow_up","title":"Type"},"anchor":{"$ref":"#/components/schemas/OrderFollowUpAnchor"},"anchored_at":{"type":"string","title":"Anchored At"},"due_at":{"type":"string","title":"Due At"}},"type":"object","required":["type","anchor","anchored_at","due_at"],"title":"OrderFollowUpTriggerApiDTO"},"OrderStatusEnum":{"type":"string","enum":["order_placed","order_fulfilled"],"title":"OrderStatusEnum"},"OrderTaggedConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"order_tag":{"type":"string","maxLength":40,"minLength":1,"title":"Order Tag","description":"The Shopify order tag this journey watches: when an order gets it, the order's shopper is messaged. Stored trimmed, as typed, and compared ignoring case. At most one non-deleted order_tagged journey of a store may use a tag. Internal to the merchant: never shown to the shopper."}},"type":"object","required":["order_tag"],"title":"OrderTaggedConfigurationApiDTO","description":"The order tag an order_tagged journey messages about. Its messages are AI-written only: template mode\nis rejected on either channel."},"OrderTaggedCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"order_tagged","title":"Type","default":"order_tagged"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"$ref":"#/components/schemas/OrderTaggedConfigurationApiDTO"}},"type":"object","required":["store_integration_id","store_name","store_type","configuration"],"title":"OrderTaggedCreateJourneyApiDTO"},"OrderTaggedJourneyConfigurationPrivateApiDTO":{"properties":{"order_tag":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Order Tag"}},"type":"object","title":"OrderTaggedJourneyConfigurationPrivateApiDTO","description":"The tag the order-tag detector watches for this journey. A missing or malformed stored tag reads\nas null, so one bad row never fails the feed; the detector skips a journey without a tag."},"OrderTaggedTriggerApiDTO":{"properties":{"type":{"type":"string","const":"order_tagged","title":"Type"},"order_tag":{"type":"string","title":"Order Tag"},"tagged_at":{"type":"string","title":"Tagged At"}},"type":"object","required":["type","order_tag","tagged_at"],"title":"OrderTaggedTriggerApiDTO"},"PaginationLinks":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"prev_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prev Cursor"}},"type":"object","required":["next_cursor","prev_cursor"],"title":"PaginationLinks"},"PartialDeliveryConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."}},"type":"object","title":"PartialDeliveryConfigurationApiDTO"},"PartialDeliveryCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"partial_delivery","title":"Type","default":"partial_delivery"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/PartialDeliveryConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"PartialDeliveryCreateJourneyApiDTO"},"PartialDeliveryItemState":{"type":"string","enum":["in_transit","not_shipped"]},"PartialDeliveryJourneyConfigurationPrivateApiDTO":{"properties":{},"type":"object","title":"PartialDeliveryJourneyConfigurationPrivateApiDTO"},"PartialDeliveryOutstandingItemApiDTO":{"properties":{"name":{"type":"string","title":"Name"},"quantity":{"type":"integer","title":"Quantity"},"state":{"$ref":"#/components/schemas/PartialDeliveryItemState"}},"type":"object","required":["name","quantity","state"],"title":"PartialDeliveryOutstandingItemApiDTO"},"PartialDeliveryRemainingState":{"type":"string","enum":["in_transit","not_shipped","mixed"],"title":"PartialDeliveryRemainingState"},"PartialDeliverySource":{"type":"string","enum":["fulfillment_event","order_snapshot"]},"PartialDeliveryTriggerApiDTO":{"properties":{"type":{"type":"string","const":"partial_delivery","title":"Type"},"delivered_at":{"type":"string","title":"Delivered At"},"delivery_source":{"$ref":"#/components/schemas/PartialDeliverySource"},"remaining_state":{"$ref":"#/components/schemas/PartialDeliveryRemainingState"},"outstanding_quantity":{"type":"integer","title":"Outstanding Quantity"},"shippable_quantity":{"type":"integer","title":"Shippable Quantity"},"outstanding_items":{"anyOf":[{"items":{"$ref":"#/components/schemas/PartialDeliveryOutstandingItemApiDTO"},"type":"array"},{"type":"null"}],"title":"Outstanding Items"},"fulfillment_hold_reasons":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Fulfillment Hold Reasons","description":"The Shopify fulfillment-order hold reasons at the last send-time check, such as inventory_out_of_stock. For store agents only: never copy into a model prompt or a shopper message."}},"type":"object","required":["type","delivered_at","delivery_source","remaining_state","outstanding_quantity","shippable_quantity"],"title":"PartialDeliveryTriggerApiDTO"},"PastActivitySchema":{"properties":{"past_sessions":{"items":{"$ref":"#/components/schemas/ShopperSessionSchema"},"type":"array","title":"Past Sessions"},"top_visited_pages":{"items":{"$ref":"#/components/schemas/VisitedPageSchema"},"type":"array","title":"Top Visited Pages"},"top_visited_product_pages":{"items":{"$ref":"#/components/schemas/VisitedProductPageSchema"},"type":"array","title":"Top Visited Product Pages"},"last_cart_abandonment_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Cart Abandonment Datetime"}},"type":"object","title":"PastActivitySchema"},"PostPurchaseCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"post_purchase","title":"Type","default":"post_purchase"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/PostPurchaseJourneyConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"PostPurchaseCreateJourneyApiDTO"},"PostPurchaseJourneyConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"post_purchase_wait_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Purchase Wait Minutes","default":1440},"target_order_status":{"anyOf":[{"$ref":"#/components/schemas/OrderStatusEnum"},{"type":"null"}],"default":"order_placed"}},"type":"object","title":"PostPurchaseJourneyConfigurationApiDTO"},"PostPurchaseJourneyConfigurationPrivateApiDTO":{"properties":{"post_purchase_wait_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Purchase Wait Minutes","default":1440},"target_order_status":{"anyOf":[{"$ref":"#/components/schemas/OrderStatusEnum"},{"type":"null"}],"default":"order_placed"}},"type":"object","title":"PostPurchaseJourneyConfigurationPrivateApiDTO"},"PreferredUrlType":{"type":"string","enum":["tracking_page","order_status_page"]},"PreviewTemplatesRequestApiDTO":{"properties":{"journey_id":{"type":"string","title":"Journey Id"}},"type":"object","required":["journey_id"],"title":"PreviewTemplatesRequestApiDTO"},"ProductInfoSchema":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"type":"string","title":"Title"}},"type":"object","required":["id","title"],"title":"ProductInfoSchema"},"ProductOption":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"values":{"items":{"type":"string"},"type":"array","title":"Values"}},"type":"object","required":["id","name","values"],"title":"ProductOption"},"ProductRecommendationRequestSchema":{"properties":{"shop_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shop Name"},"installation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installation Id"},"widget_app_id":{"type":"string","title":"Widget App Id"},"campaign_id":{"type":"string","title":"Campaign Id"},"scenario":{"$ref":"#/components/schemas/ProductRecommendationScenarioType"},"guest_id":{"type":"string","title":"Guest Id"},"customer_id":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Customer Id"},"current_product":{"anyOf":[{"$ref":"#/components/schemas/ProductInfoSchema"},{"type":"null"}]},"visited_products":{"items":{"$ref":"#/components/schemas/ProductInfoSchema"},"type":"array","title":"Visited Products"},"cart_products":{"items":{"$ref":"#/components/schemas/ProductInfoSchema"},"type":"array","title":"Cart Products"}},"type":"object","required":["widget_app_id","campaign_id","scenario","guest_id","visited_products","cart_products"],"title":"ProductRecommendationRequestSchema"},"ProductRecommendationResponseSchema":{"properties":{"products":{"items":{"$ref":"#/components/schemas/ProductSchema"},"type":"array","title":"Products"}},"type":"object","required":["products"],"title":"ProductRecommendationResponseSchema"},"ProductRecommendationScenarioType":{"type":"string","enum":["similar_seen","similar_bought","out_of_stock_alternatives","best_seller","newest"],"title":"ProductRecommendationScenarioType"},"ProductSchema":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"type":"string","title":"Title"},"handle":{"type":"string","title":"Handle"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"variants":{"items":{"$ref":"#/components/schemas/ProductVariant"},"type":"array","title":"Variants","deprecated":true},"options":{"items":{"$ref":"#/components/schemas/ProductOption"},"type":"array","title":"Options","deprecated":true}},"type":"object","required":["id","title","handle","image_url"],"title":"ProductSchema"},"ProductVariant":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"type":"string","title":"Title"},"price":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Price"},"options":{"items":{"type":"string"},"type":"array","title":"Options"}},"type":"object","required":["id","title","price","options"],"title":"ProductVariant"},"PublicABGroupResponseSchema":{"properties":{"status":{"$ref":"#/components/schemas/ABGroupStatus"}},"type":"object","required":["status"],"title":"PublicABGroupResponseSchema"},"PublicCampaignResponseSchema":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Description"},"message_text":{"type":"string","maxLength":2048,"title":"Message Text"},"message_html":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Message Html"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"status":{"$ref":"#/components/schemas/CampaignStatus"},"trigger_rule":{"type":"string","maxLength":4096,"minLength":1,"title":"Trigger Rule"},"attachments":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/CampaignAttachmentProductSchema"},{"$ref":"#/components/schemas/CampaignAttachmentDiscountOfferSchema"},{"$ref":"#/components/schemas/CampaignAttachmentVisitorFormSchema"},{"$ref":"#/components/schemas/CampaignAttachmentProductRecommendationSchema"}],"discriminator":{"propertyName":"contentType","mapping":{"application/discountOffer":"#/components/schemas/CampaignAttachmentDiscountOfferSchema","application/productCard":"#/components/schemas/CampaignAttachmentProductSchema","application/productRecommendation":"#/components/schemas/CampaignAttachmentProductRecommendationSchema","application/visitorForm":"#/components/schemas/CampaignAttachmentVisitorFormSchema"}}},"type":"array"},{"type":"null"}],"title":"Attachments"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"},"triggers":{"items":{"$ref":"#/components/schemas/CampaignTriggerSchema"},"type":"array","title":"Triggers"},"id":{"type":"string","title":"Id"},"is_light":{"type":"boolean","title":"Is Light"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"updated_datetime":{"type":"string","format":"date-time","title":"Updated Datetime"},"deleted_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted Datetime"},"variants":{"items":{"$ref":"#/components/schemas/PublicCampaignVariantResponseSchema"},"type":"array","title":"Variants"},"ab_group":{"anyOf":[{"$ref":"#/components/schemas/PublicABGroupResponseSchema"},{"type":"null"}]},"schedule":{"anyOf":[{"$ref":"#/components/schemas/ScheduleResponseSchema"},{"type":"null"}]}},"type":"object","required":["name","message_text","status","trigger_rule","triggers","id","is_light","created_datetime","updated_datetime","variants"],"title":"PublicCampaignResponseSchema","description":"Contains only fields allowed to be seen by the public, e.g. no channel_connection_id."},"PublicCampaignVariantResponseSchema":{"properties":{"message_text":{"type":"string","maxLength":2048,"title":"Message Text"},"message_html":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Message Html"},"attachments":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/CampaignAttachmentProductSchema"},{"$ref":"#/components/schemas/CampaignAttachmentDiscountOfferSchema"},{"$ref":"#/components/schemas/CampaignAttachmentVisitorFormSchema"},{"$ref":"#/components/schemas/CampaignAttachmentProductRecommendationSchema"}],"discriminator":{"propertyName":"contentType","mapping":{"application/discountOffer":"#/components/schemas/CampaignAttachmentDiscountOfferSchema","application/productCard":"#/components/schemas/CampaignAttachmentProductSchema","application/productRecommendation":"#/components/schemas/CampaignAttachmentProductRecommendationSchema","application/visitorForm":"#/components/schemas/CampaignAttachmentVisitorFormSchema"}}},"type":"array"},{"type":"null"}],"title":"Attachments"},"id":{"type":"string","title":"Id"}},"type":"object","required":["message_text","id"],"title":"PublicCampaignVariantResponseSchema"},"PurchasesSchema":{"properties":{"products":{"items":{"$ref":"#/components/schemas/InteractedProductSchema"},"type":"array","title":"Products"},"total_amount_spent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Amount Spent"},"total_orders_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Orders Count"},"last_order_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Order Datetime","description":"When the shopper last ordered from this store"}},"type":"object","required":["products"],"title":"PurchasesSchema"},"RateCellSchema":{"properties":{"supported":{"type":"boolean","title":"Supported"},"all_in_blended_price_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"All In Blended Price Usd"}},"type":"object","required":["supported"],"title":"RateCellSchema"},"RateTierDefinitionSchema":{"properties":{"minimum_billed_units":{"type":"integer","minimum":0.0,"title":"Minimum Billed Units"},"maximum_billed_units_exclusive":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Maximum Billed Units Exclusive"},"discount_fraction":{"type":"number","exclusiveMaximum":1.0,"minimum":0.0,"title":"Discount Fraction"}},"type":"object","required":["minimum_billed_units","discount_fraction"],"title":"RateTierDefinitionSchema"},"RcsTestDeviceStatus":{"type":"string","enum":["PENDING","ACCEPTED"],"title":"RcsTestDeviceStatus","description":"Normalized RCS test-device lifecycle status.\n\nMirrors the gorgias monolith's AIJ-2299 normalization, which collapses\nTwilio's raw lifecycle values into two states. Unknown/unrecognized values\ncoerce to ``PENDING`` (see ``_RcsTestDeviceStatusMixin``), so this enum\nstays wire-compatible regardless of which beta values Twilio emits."},"RefundIssuedConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"minimum_refund_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Minimum Refund Amount","description":"Only message when this refund is at least this amount, compared in the order's presentment currency (the currency the shopper paid in) without conversion. Null turns the condition off."},"minimum_refund_percent":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Minimum Refund Percent","description":"Only message when this refund is at least this percentage of the order total. Null turns the condition off."},"full_refunds_only":{"type":"boolean","title":"Full Refunds Only","description":"Only message on the refund that brings the order to fully refunded.","default":false}},"type":"object","title":"RefundIssuedConfigurationApiDTO"},"RefundIssuedCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"refund_issued","title":"Type","default":"refund_issued"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/RefundIssuedConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"RefundIssuedCreateJourneyApiDTO"},"RefundIssuedJourneyConfigurationPrivateApiDTO":{"properties":{},"type":"object","title":"RefundIssuedJourneyConfigurationPrivateApiDTO"},"RefundIssuedTriggerApiDTO":{"properties":{"type":{"type":"string","const":"refund_issued","title":"Type"},"refund_issued_at":{"type":"string","title":"Refund Issued At"},"refunded_amount":{"type":"string","title":"Refunded Amount","description":"Decimal string, in ``currency``."},"currency":{"type":"string","title":"Currency"},"refund_destination":{"type":"string","title":"Refund Destination","description":"The transaction gateway, or gift_card, mixed or unknown."},"order_total_amount":{"type":"string","title":"Order Total Amount"},"cumulative_refunded_amount":{"type":"string","title":"Cumulative Refunded Amount"},"is_order_fully_refunded":{"type":"boolean","title":"Is Order Fully Refunded"}},"type":"object","required":["type","refund_issued_at","refunded_amount","currency","refund_destination","order_total_amount","cumulative_refunded_amount","is_order_fully_refunded"],"title":"RefundIssuedTriggerApiDTO"},"RequestSettingSchema":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data"},"type":{"$ref":"#/components/schemas/SettingType"}},"type":"object","required":["data","type"],"title":"RequestSettingSchema"},"ReturnReceivedConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."}},"type":"object","title":"ReturnReceivedConfigurationApiDTO"},"ReturnReceivedCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"return_received","title":"Type","default":"return_received"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/ReturnReceivedConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"ReturnReceivedCreateJourneyApiDTO"},"ReturnReceivedItemApiDTO":{"properties":{"line_item_id":{"type":"string","title":"Line Item Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"quantity":{"type":"integer","title":"Quantity"},"processed_quantity":{"type":"integer","title":"Processed Quantity"},"return_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Reason"}},"type":"object","required":["line_item_id","quantity","processed_quantity"],"title":"ReturnReceivedItemApiDTO"},"ReturnReceivedJourneyConfigurationPrivateApiDTO":{"properties":{},"type":"object","title":"ReturnReceivedJourneyConfigurationPrivateApiDTO"},"ReturnReceivedTriggerApiDTO":{"properties":{"type":{"type":"string","const":"return_received","title":"Type"},"return_id":{"type":"string","title":"Return Id"},"return_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Name"},"received_at":{"type":"string","title":"Received At"},"returned_items":{"anyOf":[{"items":{"$ref":"#/components/schemas/ReturnReceivedItemApiDTO"},"type":"array"},{"type":"null"}],"title":"Returned Items"},"has_exchange_items":{"type":"boolean","title":"Has Exchange Items"}},"type":"object","required":["type","return_id","received_at","has_exchange_items"],"title":"ReturnReceivedTriggerApiDTO"},"RevealDiscountCodeRequestSchema":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"campaign_id":{"type":"string","title":"Campaign Id"}},"type":"object","required":["account_id","campaign_id"],"title":"RevealDiscountCodeRequestSchema"},"RevealDiscountCodeResponseSchema":{"properties":{"code":{"type":"string","title":"Code"},"type":{"$ref":"#/components/schemas/DiscountOfferTypeEnum"},"value":{"type":"number","title":"Value"}},"type":"object","required":["code","type","value"],"title":"RevealDiscountCodeResponseSchema"},"ReviewerRegisterRequest":{"properties":{"store":{"type":"string","maxLength":255,"minLength":1,"title":"Store"},"phone_number":{"type":"string","maxLength":32,"minLength":1,"title":"Phone Number"},"consent":{"type":"boolean","title":"Consent"}},"type":"object","required":["store","phone_number","consent"],"title":"ReviewerRegisterRequest","description":"Body of POST /reviewer/register.\n\n``store`` is the merchant store name / account subdomain the reviewer was\ngiven; it is resolved server-side to an account. ``sender_sid`` and\n``account_id`` are never accepted from the caller."},"ReviewerStatusDTO":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/RcsTestDeviceStatus"},{"type":"string","const":"UNKNOWN"}],"title":"Status"}},"type":"object","required":["status"],"title":"ReviewerStatusDTO","description":"The Twilio test-device status for a phone on a resolved RCS sender.\n\n``status`` is Twilio's lifecycle state, surfaced verbatim (e.g.\n``\"PENDING\"`` / ``\"ACCEPTED\"``). ``UNKNOWN`` is returned when the phone is\nnot registered as a test device on the sender."},"ReviewerTriggerRequest":{"properties":{"store":{"type":"string","maxLength":255,"minLength":1,"title":"Store"},"phone_number":{"type":"string","maxLength":32,"minLength":1,"title":"Phone Number"}},"type":"object","required":["store","phone_number"],"title":"ReviewerTriggerRequest","description":"Body of POST /reviewer/trigger.\n\nCarries no ``consent`` field: consent is attested once at registration, and\na trigger is only accepted for a device Twilio has already marked\n``ACCEPTED``."},"RuleOperator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","in","notIn","contains","containsAll","containsAny","notContains"],"title":"RuleOperator"},"RuleSchema":{"properties":{"key":{"$ref":"#/components/schemas/RuleType"},"operator":{"$ref":"#/components/schemas/RuleOperator"},"value":{"type":"string","title":"Value"}},"type":"object","required":["key","operator","value"],"title":"RuleSchema"},"RuleType":{"type":"string","enum":["orders_count","amount_spent","ordered_products","customer_tags","country_code"],"title":"RuleType"},"RunAiJourneyEngineResponseApiDTO":{"properties":{"event":{"additionalProperties":true,"type":"object","title":"Event"},"success":{"type":"boolean","title":"Success"}},"type":"object","required":["event","success"],"title":"RunAiJourneyEngineResponseApiDTO"},"ScheduleRequestSchema":{"properties":{"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Datetime"},"schedule_rule":{"$ref":"#/components/schemas/ScheduleRule"},"custom_schedule":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomScheduleSchema"},"type":"array"},{"type":"null"}],"title":"Custom Schedule"}},"type":"object","required":["start_datetime","schedule_rule","custom_schedule"],"title":"ScheduleRequestSchema"},"ScheduleResponseSchema":{"properties":{"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Datetime"},"schedule_rule":{"$ref":"#/components/schemas/ScheduleRule"},"custom_schedule":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomScheduleSchema"},"type":"array"},{"type":"null"}],"title":"Custom Schedule"}},"type":"object","required":["start_datetime","schedule_rule","custom_schedule"],"title":"ScheduleResponseSchema"},"ScheduleRule":{"type":"string","enum":["anytime","during","outside","custom"],"title":"ScheduleRule"},"SegmentInUseSchema":{"properties":{"segment_identifier":{"type":"string","title":"Segment Identifier"},"count_journeys":{"type":"integer","title":"Count Journeys"},"count_campaigns":{"type":"integer","title":"Count Campaigns"},"usage":{"items":{"$ref":"#/components/schemas/AudienceUsageJourneySchema"},"type":"array","title":"Usage","description":"The live journeys and campaigns that still reference the segment"}},"type":"object","required":["segment_identifier","count_journeys","count_campaigns","usage"],"title":"SegmentInUseSchema","description":"409 response body when a segment delete is blocked because live consumers still use it."},"SessionAbandonedCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"session_abandoned","title":"Type","default":"session_abandoned"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/BaseJourneyConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"SessionAbandonedCreateJourneyApiDTO"},"SessionAbandonedJourneyConfigurationPrivateApiDTO":{"properties":{"session_abandoned_wait_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Session Abandoned Wait Minutes"}},"type":"object","title":"SessionAbandonedJourneyConfigurationPrivateApiDTO"},"SettingResponseSchema":{"properties":{"type":{"$ref":"#/components/schemas/SettingType"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["type","data"],"title":"SettingResponseSchema"},"SettingType":{"type":"string","enum":["performance_report_visible_fields","email_disclaimer","campaign_frequency","ai_journey"],"title":"SettingType"},"ShippingDelayConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"preferred_url":{"$ref":"#/components/schemas/PreferredUrlType","description":"Which link a transactional message carries: the carrier tracking page (default) or the Shopify order status page. When the preferred link is unavailable the other one is used; with neither, no link is sent.","default":"tracking_page"},"delivery_delay_grace_period_minutes":{"type":"integer","minimum":0.0,"title":"Delivery Delay Grace Period Minutes","default":60}},"type":"object","title":"ShippingDelayConfigurationApiDTO"},"ShippingDelayCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"shipping_delay","title":"Type","default":"shipping_delay"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/ShippingDelayConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"ShippingDelayCreateJourneyApiDTO"},"ShippingDelayJourneyConfigurationPrivateApiDTO":{"properties":{"delivery_delay_grace_period_minutes":{"type":"integer","minimum":0.0,"title":"Delivery Delay Grace Period Minutes","default":60}},"type":"object","title":"ShippingDelayJourneyConfigurationPrivateApiDTO"},"ShippingDelayTriggerApiDTO":{"properties":{"type":{"type":"string","const":"shipping_delay","title":"Type"},"delay_detected_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delay Detected At"},"notice_sequence":{"type":"integer","title":"Notice Sequence","description":"1 for the order's first delay notice, 2 for the next, and so on."},"previous_promised_delivery_at":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Previous Promised Delivery At","description":"The delivery promises already missed before this notice."},"delivery_time_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Time Zone","description":"The IANA zone of the order's shipping address, when known."},"total_fulfillment_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Fulfillment Count"},"outstanding_fulfillment_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Outstanding Fulfillment Count"},"current_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Status"},"revised_estimated_delivery_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Estimated Delivery At"},"revised_estimated_delivery_fulfillment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Estimated Delivery Fulfillment Id"}},"type":"object","required":["type","notice_sequence"],"title":"ShippingDelayTriggerApiDTO"},"ShippingFailedConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"sms_message":{"anyOf":[{"$ref":"#/components/schemas/SmsMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"email_message":{"anyOf":[{"$ref":"#/components/schemas/EmailMessageConfigurationApiDTO"},{"type":"null"}],"description":"How the email channel composes its messages, whether it is enabled, and its selected email message template (template_id). An absent stored object defaults to {mode: 'ai', enabled: true}, but reads as null. A stored invalid object also reads as null and remains stored. On create and update, null means no change; to reset a channel, send an explicit {mode: 'ai', enabled: true} object."},"enabled_failure_categories":{"items":{"$ref":"#/components/schemas/FulfillmentShippingFailureCategory"},"type":"array","minItems":1,"uniqueItems":true,"title":"Enabled Failure Categories","description":"The carrier failure categories this journey messages about. Defaults to every category.","default":["delivery_attempt_failed","held_for_pickup","returned_to_sender","refused","action_required","lost","damaged"]},"failed_attempt_wait_minutes":{"type":"integer","maximum":4320.0,"minimum":1.0,"title":"Failed Attempt Wait Minutes","description":"Minutes to wait after a failed delivery attempt, with no progress, before messaging. The UI offers 6 to 72 hours; shorter values are for testing.","default":1440},"pickup_uncollected_days":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Pickup Uncollected Days","description":"Days a parcel held for pickup must stay uncollected before messaging.","default":3}},"type":"object","title":"ShippingFailedConfigurationApiDTO","description":"The carrier delivery failures a shipping-failed journey messages about, and when. As an update,\nomitted fields keep their stored value; no field accepts null."},"ShippingFailedCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"shipping_failed","title":"Type","default":"shipping_failed"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/ShippingFailedConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"ShippingFailedCreateJourneyApiDTO"},"ShippingFailedJourneyConfigurationPrivateApiDTO":{"properties":{"enabled_failure_categories":{"anyOf":[{"items":{"$ref":"#/components/schemas/FulfillmentShippingFailureCategory"},"type":"array","minItems":1,"uniqueItems":true},{"type":"null"}],"title":"Enabled Failure Categories","default":["delivery_attempt_failed","held_for_pickup","returned_to_sender","refused","action_required","lost","damaged"]},"failed_attempt_wait_minutes":{"anyOf":[{"type":"integer","maximum":4320.0,"minimum":1.0},{"type":"null"}],"title":"Failed Attempt Wait Minutes","default":1440},"pickup_uncollected_days":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Pickup Uncollected Days","default":3}},"type":"object","title":"ShippingFailedJourneyConfigurationPrivateApiDTO","description":"The shipping-failed policy the delivery-failure detector reads from the private feed. No field\never fails validation, so one bad row cannot take the feed down for every merchant: an omitted\nfield takes its default and a malformed one reads as null, which the detector replaces with the\nsame default."},"ShippingFailedTriggerApiDTO":{"properties":{"type":{"type":"string","const":"shipping_failed","title":"Type"},"failure_category":{"$ref":"#/components/schemas/FulfillmentShippingFailureCategory"},"failure_observed_at":{"type":"string","title":"Failure Observed At"},"detected_at":{"type":"string","title":"Detected At"},"trigger_status":{"$ref":"#/components/schemas/FulfillmentShippingFailedSourceStatus"}},"type":"object","required":["type","failure_category","failure_observed_at","detected_at","trigger_status"],"title":"ShippingFailedTriggerApiDTO"},"ShopifyCartItemApiDTO":{"properties":{"variant_id":{"type":"integer","title":"Variant Id"},"product_id":{"type":"integer","title":"Product Id"},"quantity":{"type":"integer","title":"Quantity"},"price":{"type":"integer","title":"Price"},"original_price":{"type":"integer","title":"Original Price"},"properties":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Properties"}},"type":"object","required":["variant_id","product_id","quantity","price","original_price"],"title":"ShopifyCartItemApiDTO"},"ShopifyCartPayloadApiDTO":{"properties":{"token":{"type":"string","title":"Token"},"currency":{"type":"string","title":"Currency"},"items":{"items":{"$ref":"#/components/schemas/ShopifyCartItemApiDTO"},"type":"array","title":"Items"},"total_price":{"type":"integer","title":"Total Price"},"item_count":{"type":"integer","title":"Item Count"}},"type":"object","required":["token","currency","items","total_price","item_count"],"title":"ShopifyCartPayloadApiDTO"},"ShopperInterestLookupRequest":{"properties":{"account_id":{"type":"integer","title":"Account Id","description":"Helpdesk account ID"},"store_integration_id":{"type":"integer","maximum":2147483647.0,"minimum":-2147483648.0,"title":"Store Integration Id","description":"Helpdesk store integration ID"},"marketing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketing Id","description":"Marketing ID of the shopper (revenue_id)"},"customer_id":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Customer Id","description":"Ecommerce Customer ID"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Email of the shopper"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Phone of the shopper"},"store_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Store Type","description":"Store type (eg. shopify)"},"store_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Store Name","description":"Store name"}},"type":"object","required":["account_id","store_integration_id"],"title":"ShopperInterestLookupRequest"},"ShopperInterestLookupResponse":{"properties":{"current_session":{"anyOf":[{"$ref":"#/components/schemas/ShopperSessionSchema"},{"type":"null"}]},"latest_session":{"anyOf":[{"$ref":"#/components/schemas/ShopperSessionSchema"},{"type":"null"}]},"latest_cart":{"anyOf":[{"$ref":"#/components/schemas/CartSchema"},{"type":"null"}]},"past_activity":{"$ref":"#/components/schemas/PastActivitySchema"},"communication_opt_in":{"$ref":"#/components/schemas/CommunicationOptInSchema"},"attributed_orders":{"anyOf":[{"$ref":"#/components/schemas/PurchasesSchema"},{"type":"null"}]},"customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Customer Id"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"Ecommerce platform tags on the shopper"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code","description":"Shopper country code from the ecommerce platform"}},"type":"object","required":["current_session","latest_session","past_activity","communication_opt_in"],"title":"ShopperInterestLookupResponse"},"ShopperSessionSchema":{"properties":{"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Datetime"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"top_visited_pages":{"items":{"$ref":"#/components/schemas/VisitedPageSchema"},"type":"array","title":"Top Visited Pages"},"top_visited_product_pages":{"items":{"$ref":"#/components/schemas/VisitedProductPageSchema"},"type":"array","title":"Top Visited Product Pages"},"total_visited_pages_count":{"type":"integer","title":"Total Visited Pages Count","default":0},"traffic_source":{"anyOf":[{"$ref":"#/components/schemas/TrafficSource"},{"type":"null"}]},"traffic_metadata":{"anyOf":[{"$ref":"#/components/schemas/TrafficMetadata"},{"type":"null"}]},"cart":{"anyOf":[{"$ref":"#/components/schemas/CartSchema"},{"type":"null"}]}},"type":"object","required":["start_datetime"],"title":"ShopperSessionSchema"},"SmsMessageConfigurationApiDTO":{"properties":{"mode":{"$ref":"#/components/schemas/JourneyMessageMode"},"enabled":{"type":"boolean","title":"Enabled","description":"Whether this channel is enabled for the journey; a journey does not send on a disabled channel. Disabling a channel does not exempt it from the activation checks: a stored template_id that is no longer valid still blocks activation, whatever the channel or enabled value."},"template_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1,"pattern":"^[^\\x00]+$"},{"type":"null"}],"title":"Template Id","description":"The selected message template: an active template of this channel in the journey's account and store. Allowed in either mode; omit it or send null to select no template. Template sending requires message templates to be enabled for the account: while they are, a journey in template mode sends this template, or without one its journey type's default body for this channel, as its first message instead of generating one, and sends no follow-up messages. An active journey whose selected channel is enabled and in template mode must have one unless its journey type has a default body for the channel, which it then sends."}},"additionalProperties":false,"type":"object","required":["mode","enabled"],"title":"SmsMessageConfigurationApiDTO","description":"How the SMS channel composes its messages, whether it is enabled, and its selected SMS template."},"SmsMessageTemplateDefaultContentApiDTO":{"properties":{"body_text":{"type":"string","title":"Body Text"}},"type":"object","required":["body_text"],"title":"SmsMessageTemplateDefaultContentApiDTO"},"SmsMessageTemplateDetailApiDTO":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"integer","title":"Account Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"name":{"type":"string","title":"Name"},"content_schema_version":{"type":"integer","title":"Content Schema Version"},"content_sha256":{"type":"string","title":"Content Sha256"},"content_size_bytes":{"type":"integer","title":"Content Size Bytes"},"created_by_user_id":{"type":"integer","title":"Created By User Id"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"channel":{"type":"string","const":"sms","title":"Channel"},"body_text":{"type":"string","title":"Body Text"}},"type":"object","required":["id","account_id","store_integration_id","name","content_schema_version","content_sha256","content_size_bytes","created_by_user_id","created_datetime","channel","body_text"],"title":"SmsMessageTemplateDetailApiDTO"},"SmsReadiness":{"properties":{"channel":{"type":"string","const":"sms","title":"Channel","default":"sms"},"status":{"$ref":"#/components/schemas/ChannelReadinessStatus"},"reason_code":{"$ref":"#/components/schemas/ChannelReadinessReason"}},"type":"object","required":["status","reason_code"],"title":"SmsReadiness"},"SmsTemplateDefaultContentApiDTO":{"properties":{"body_text":{"type":"string","title":"Body Text"}},"type":"object","required":["body_text"],"title":"SmsTemplateDefaultContentApiDTO"},"SmsTemplatePreviewResponseApiDTO":{"properties":{"rendered_text":{"type":"string","title":"Rendered Text"},"catalog_version":{"type":"integer","title":"Catalog Version"}},"type":"object","required":["rendered_text","catalog_version"],"title":"SmsTemplatePreviewResponseApiDTO"},"StartDemoConversationRequest":{"properties":{"token":{"type":"string","maxLength":4096,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"StartDemoConversationRequest","description":"Body of POST /demo/start-conversation. Token carries phone + config."},"StatusEnum":{"type":"string","enum":["draft","installed","uninstalled"],"title":"StatusEnum"},"StoppedSendApiDTO":{"properties":{"participation_id":{"type":"string","title":"Participation Id"},"shopper_id":{"type":"integer","title":"Shopper Id"},"journey_id":{"type":"string","title":"Journey Id"},"journey_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Journey Name"},"source":{"$ref":"#/components/schemas/StoppedSendSource"},"channel":{"type":"string","title":"Channel"},"stopped_datetime":{"type":"string","format":"date-time","title":"Stopped Datetime"},"reason":{"$ref":"#/components/schemas/StoppedSendReason"},"stop_delay_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stop Delay Until"}},"type":"object","required":["participation_id","shopper_id","journey_id","journey_name","source","channel","stopped_datetime","reason","stop_delay_until"],"title":"StoppedSendApiDTO"},"StoppedSendReason":{"type":"string","enum":["frequency_cap","minimum_gap","journey_collision","default_window","duplicate_send","exclusion","suppression","no_consent","unreachable","already_engaged","setup_issue","other","held_by_policy"],"title":"StoppedSendReason"},"StoppedSendSource":{"type":"string","enum":["flow","campaign","ace"],"title":"StoppedSendSource"},"StoppedSendsMetadataApiDTO":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"prev_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prev Cursor"}},"type":"object","required":["next_cursor","prev_cursor"],"title":"StoppedSendsMetadataApiDTO"},"StoppedSendsResponseApiDTO":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StoppedSendApiDTO"},"type":"array","title":"Data"},"metadata":{"$ref":"#/components/schemas/StoppedSendsMetadataApiDTO"}},"type":"object","required":["data","metadata"],"title":"StoppedSendsResponseApiDTO"},"StoreConfigurationDetailResponseSchema":{"properties":{"id":{"type":"string","title":"Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"version":{"type":"integer","title":"Version"},"klaviyo_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Klaviyo Api Key"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"tone_of_voice_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone Of Voice Guidance"},"smart_send":{"type":"boolean","title":"Smart Send"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"transactional_sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Sms Sender Integration Id"},"transactional_sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transactional Sms Sender Number"},"email_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Email Sender Integration Id"},"transactional_email_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Email Sender Integration Id"},"whatsapp_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Whatsapp Sender Integration Id"},"whatsapp_sender_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Sender Phone Number"},"transactional_whatsapp_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Whatsapp Sender Integration Id"},"transactional_whatsapp_sender_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transactional Whatsapp Sender Phone Number"},"texas_exclusion_enabled":{"type":"boolean","title":"Texas Exclusion Enabled"},"quiet_hours_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours Start"},"quiet_hours_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours End"},"channel_overrides":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ChannelOverrideResponse"},"type":"object"},{"type":"null"}],"title":"Channel Overrides"},"excluded_customer_tags":{"items":{"type":"string"},"type":"array","title":"Excluded Customer Tags"},"excluded_product_tags":{"items":{"type":"string"},"type":"array","title":"Excluded Product Tags"},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"consent_region_overrides":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ConsentPolicyOverride"},"type":"object"},{"type":"null"}],"title":"Consent Region Overrides"},"ace_config":{"anyOf":[{"$ref":"#/components/schemas/AceStoreConfig"},{"type":"null"}]},"discount_defaults":{"anyOf":[{"$ref":"#/components/schemas/StoreDiscountDefaults"},{"type":"null"}]},"calendar_feed_url":{"type":"string","title":"Calendar Feed Url"}},"type":"object","required":["id","store_integration_id","version","klaviyo_api_key","brand_name","tone_of_voice_guidance","smart_send","sms_sender_integration_id","sms_sender_number","transactional_sms_sender_integration_id","transactional_sms_sender_number","email_sender_integration_id","whatsapp_sender_integration_id","whatsapp_sender_phone_number","texas_exclusion_enabled","quiet_hours_start","quiet_hours_end","excluded_customer_tags","excluded_product_tags","calendar_feed_url"],"title":"StoreConfigurationDetailResponseSchema","description":"Response schema for the single-resource GET — adds the per-merchant calendar feed URL."},"StoreConfigurationRequestSchema":{"properties":{"klaviyo_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Klaviyo Api Key"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"smart_send":{"type":"boolean","title":"Smart Send","default":true},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"transactional_sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Sms Sender Integration Id"},"transactional_sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transactional Sms Sender Number"},"email_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Email Sender Integration Id"},"transactional_email_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Email Sender Integration Id"},"whatsapp_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Whatsapp Sender Integration Id"},"whatsapp_sender_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Sender Phone Number"},"transactional_whatsapp_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Whatsapp Sender Integration Id"},"transactional_whatsapp_sender_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transactional Whatsapp Sender Phone Number"},"texas_exclusion_enabled":{"type":"boolean","title":"Texas Exclusion Enabled","default":false},"quiet_hours_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours Start"},"quiet_hours_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours End"},"channel_overrides":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ChannelOverride"},"type":"object"},{"type":"null"}],"title":"Channel Overrides"},"excluded_customer_tags":{"items":{"type":"string","maxLength":255},"type":"array","maxItems":250,"title":"Excluded Customer Tags"},"excluded_product_tags":{"items":{"type":"string","maxLength":255},"type":"array","maxItems":250,"title":"Excluded Product Tags"},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"consent_region_overrides":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ConsentPolicyOverride"},"type":"object"},{"type":"null"}],"title":"Consent Region Overrides"},"ace_config":{"anyOf":[{"$ref":"#/components/schemas/AceStoreConfigRequest"},{"type":"null"}]},"discount_defaults":{"anyOf":[{"$ref":"#/components/schemas/StoreDiscountDefaults"},{"type":"null"}]}},"type":"object","title":"StoreConfigurationRequestSchema","description":"Request schema for creating/updating store configuration."},"StoreConfigurationResponseSchema":{"properties":{"id":{"type":"string","title":"Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"version":{"type":"integer","title":"Version"},"klaviyo_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Klaviyo Api Key"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"tone_of_voice_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone Of Voice Guidance"},"smart_send":{"type":"boolean","title":"Smart Send"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"transactional_sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Sms Sender Integration Id"},"transactional_sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transactional Sms Sender Number"},"email_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Email Sender Integration Id"},"transactional_email_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Email Sender Integration Id"},"whatsapp_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Whatsapp Sender Integration Id"},"whatsapp_sender_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Sender Phone Number"},"transactional_whatsapp_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Whatsapp Sender Integration Id"},"transactional_whatsapp_sender_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transactional Whatsapp Sender Phone Number"},"texas_exclusion_enabled":{"type":"boolean","title":"Texas Exclusion Enabled"},"quiet_hours_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours Start"},"quiet_hours_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours End"},"channel_overrides":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ChannelOverrideResponse"},"type":"object"},{"type":"null"}],"title":"Channel Overrides"},"excluded_customer_tags":{"items":{"type":"string"},"type":"array","title":"Excluded Customer Tags"},"excluded_product_tags":{"items":{"type":"string"},"type":"array","title":"Excluded Product Tags"},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"consent_region_overrides":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ConsentPolicyOverride"},"type":"object"},{"type":"null"}],"title":"Consent Region Overrides"},"ace_config":{"anyOf":[{"$ref":"#/components/schemas/AceStoreConfig"},{"type":"null"}]},"discount_defaults":{"anyOf":[{"$ref":"#/components/schemas/StoreDiscountDefaults"},{"type":"null"}]}},"type":"object","required":["id","store_integration_id","version","klaviyo_api_key","brand_name","tone_of_voice_guidance","smart_send","sms_sender_integration_id","sms_sender_number","transactional_sms_sender_integration_id","transactional_sms_sender_number","email_sender_integration_id","whatsapp_sender_integration_id","whatsapp_sender_phone_number","texas_exclusion_enabled","quiet_hours_start","quiet_hours_end","excluded_customer_tags","excluded_product_tags"],"title":"StoreConfigurationResponseSchema","description":"Response schema for store configuration."},"StoreConfigurationWriteResponseSchema":{"properties":{"id":{"type":"string","title":"Id"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"version":{"type":"integer","title":"Version"},"klaviyo_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Klaviyo Api Key"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"tone_of_voice_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone Of Voice Guidance"},"smart_send":{"type":"boolean","title":"Smart Send"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"transactional_sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Sms Sender Integration Id"},"transactional_sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transactional Sms Sender Number"},"email_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Email Sender Integration Id"},"transactional_email_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Email Sender Integration Id"},"whatsapp_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Whatsapp Sender Integration Id"},"whatsapp_sender_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Sender Phone Number"},"transactional_whatsapp_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transactional Whatsapp Sender Integration Id"},"transactional_whatsapp_sender_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transactional Whatsapp Sender Phone Number"},"texas_exclusion_enabled":{"type":"boolean","title":"Texas Exclusion Enabled"},"quiet_hours_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours Start"},"quiet_hours_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours End"},"channel_overrides":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ChannelOverrideResponse"},"type":"object"},{"type":"null"}],"title":"Channel Overrides"},"excluded_customer_tags":{"items":{"type":"string"},"type":"array","title":"Excluded Customer Tags"},"excluded_product_tags":{"items":{"type":"string"},"type":"array","title":"Excluded Product Tags"},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"consent_region_overrides":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ConsentPolicyOverride"},"type":"object"},{"type":"null"}],"title":"Consent Region Overrides"},"ace_config":{"anyOf":[{"$ref":"#/components/schemas/AceStoreConfig"},{"type":"null"}]},"discount_defaults":{"anyOf":[{"$ref":"#/components/schemas/StoreDiscountDefaults"},{"type":"null"}]},"publication":{"anyOf":[{"$ref":"#/components/schemas/AcePublicationApiDTO"},{"type":"null"}]}},"type":"object","required":["id","store_integration_id","version","klaviyo_api_key","brand_name","tone_of_voice_guidance","smart_send","sms_sender_integration_id","sms_sender_number","transactional_sms_sender_integration_id","transactional_sms_sender_number","email_sender_integration_id","whatsapp_sender_integration_id","whatsapp_sender_phone_number","texas_exclusion_enabled","quiet_hours_start","quiet_hours_end","excluded_customer_tags","excluded_product_tags"],"title":"StoreConfigurationWriteResponseSchema"},"StoreDiscountDefaults":{"properties":{"offer_discount":{"type":"boolean","title":"Offer Discount"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["offer_discount"],"title":"StoreDiscountDefaults"},"SubmitConversationReviewApiDTO":{"properties":{"verdict":{"$ref":"#/components/schemas/ConversationReviewVerdict"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","required":["verdict"],"title":"SubmitConversationReviewApiDTO"},"SubscriptionStatus":{"type":"string","enum":["active","inactive","trial"],"title":"SubscriptionStatus"},"SubscriptionStatusSchema":{"properties":{"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"usage_status":{"$ref":"#/components/schemas/SubscriptionUsageStatus"}},"type":"object","required":["status","usage_status"],"title":"SubscriptionStatusSchema"},"SubscriptionUsageAndBundleStatusSchema":{"properties":{"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"usage_status":{"$ref":"#/components/schemas/SubscriptionUsageStatus"},"usage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Usage"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"auto_upgrade_enabled":{"type":"boolean","title":"Auto Upgrade Enabled","default":false},"last_auto_upgrade_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Auto Upgrade At"},"last_warning_90_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Warning 90 At"},"last_warning_100_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Warning 100 At"},"last_block_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Block At"},"estimated_usage_percentage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Usage Percentage"},"estimated_reach_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Reach Date"},"cycle_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cycle Start"},"cycle_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cycle End"},"bundle_status":{"$ref":"#/components/schemas/BundleOnboardingStatus"}},"type":"object","required":["status","usage_status","bundle_status"],"title":"SubscriptionUsageAndBundleStatusSchema"},"SubscriptionUsageStatus":{"type":"string","enum":["ok","limit-reached"],"title":"SubscriptionUsageStatus"},"TargetValidationResultApiDTO":{"properties":{"target_id":{"type":"string","title":"Target Id"},"target_kind":{"$ref":"#/components/schemas/ValidationTargetKind"},"label":{"type":"string","title":"Label"},"engine_available":{"type":"boolean","title":"Engine Available"},"status":{"$ref":"#/components/schemas/ValidationStatus"},"findings":{"items":{"$ref":"#/components/schemas/FindingApiDTO"},"type":"array","title":"Findings"},"summary":{"$ref":"#/components/schemas/ValidationSummaryApiDTO"}},"type":"object","required":["target_id","target_kind","label","engine_available","status"],"title":"TargetValidationResultApiDTO"},"TestAceObservationRequest":{"properties":{"account_id":{"type":"integer","maximum":2147483647.0,"exclusiveMinimum":0.0,"title":"Account Id"},"store_integration_id":{"type":"integer","maximum":2147483647.0,"exclusiveMinimum":0.0,"title":"Store Integration Id"},"customer_id":{"type":"integer","maximum":9.223372036854776e+18,"exclusiveMinimum":0.0,"title":"Customer Id"},"source":{"type":"string","maxLength":512,"minLength":1,"title":"Source"},"event_type":{"type":"string","maxLength":512,"minLength":1,"title":"Event Type"},"event_data":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object","title":"Event Data"}},"additionalProperties":false,"type":"object","required":["account_id","store_integration_id","customer_id","source","event_type","event_data"],"title":"TestAceObservationRequest","description":"A generic source observation with server-owned identity and timestamps."},"TestJourneyApiDTO":{"properties":{"channel":{"$ref":"#/components/schemas/JourneyChannel","description":"The channel to test on; decides the required recipient (email for 'email', phone_number otherwise). A Support journey sends the test on this channel when it is set and is one of its store's order-updates channels (the journey's own channel when none are saved), and rejects it with 422 otherwise or when the channel has no sender configured. Every other journey sends on its own channel.","default":"sms"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"products":{"items":{"$ref":"#/components/schemas/TestProductApiDTO"},"type":"array","title":"Products"},"returning_customer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Returning Customer"},"test_variant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Variant Id"}},"type":"object","required":["products"],"title":"TestJourneyApiDTO"},"TestJourneyResponseApiDTO":{"properties":{"workflow_id":{"type":"string","title":"Workflow Id"},"journey_participation_id":{"type":"string","title":"Journey Participation Id"}},"type":"object","required":["workflow_id","journey_participation_id"],"title":"TestJourneyResponseApiDTO"},"TestProductApiDTO":{"properties":{"product_id":{"type":"string","title":"Product Id"},"variant_id":{"type":"string","title":"Variant Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["product_id","variant_id"],"title":"TestProductApiDTO"},"TierDefinitionsSchema":{"properties":{"low":{"$ref":"#/components/schemas/RateTierDefinitionSchema"},"medium":{"$ref":"#/components/schemas/RateTierDefinitionSchema"},"high":{"$ref":"#/components/schemas/RateTierDefinitionSchema"}},"type":"object","required":["low","medium","high"],"title":"TierDefinitionsSchema"},"TierRatesSchema":{"properties":{"low":{"$ref":"#/components/schemas/RateCellSchema"},"medium":{"$ref":"#/components/schemas/RateCellSchema"},"high":{"$ref":"#/components/schemas/RateCellSchema"}},"type":"object","required":["low","medium","high"],"title":"TierRatesSchema"},"TimeUnit":{"type":"string","enum":["seconds","minutes","hours"],"title":"TimeUnit"},"TrafficMetadata":{"properties":{"referrer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer"},"utm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Campaign"},"utm_term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Term"},"utm_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Content"},"gclid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gclid"},"fbclid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fbclid"}},"additionalProperties":false,"type":"object","title":"TrafficMetadata"},"TrafficSource":{"type":"string","enum":["paid-search","direct-traffic","referral","social-traffic","organic-search"],"title":"TrafficSource"},"URLBulkSchema":{"properties":{"urls":{"items":{"$ref":"#/components/schemas/URLSchema"},"type":"array","title":"Urls"}},"type":"object","required":["urls"],"title":"URLBulkSchema"},"URLClickSchema":{"properties":{"client_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Ip"},"client_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Agent"},"client_referrer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Referrer"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"}},"type":"object","required":["created_datetime"],"title":"URLClickSchema"},"URLCreateBulkSchema":{"properties":{"urls":{"items":{"$ref":"#/components/schemas/URLCreateSchema"},"type":"array","maxItems":100,"minItems":1,"title":"Urls"}},"type":"object","required":["urls"],"title":"URLCreateBulkSchema"},"URLCreateSchema":{"properties":{"is_shortened":{"type":"boolean","title":"Is Shortened","default":false},"account_id":{"type":"integer","title":"Account Id"},"store_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Store Integration Id"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"url":{"type":"string","minLength":1,"format":"uri","title":"Url"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"alias":{"type":"string","title":"Alias"},"bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket"},"short_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Url"}},"type":"object","required":["account_id","url","alias"],"title":"URLCreateSchema"},"URLSchema":{"properties":{"id":{"type":"integer","title":"Id"},"account_id":{"type":"integer","title":"Account Id"},"url":{"type":"string","minLength":1,"format":"uri","title":"Url"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"is_shortened":{"type":"boolean","title":"Is Shortened"},"alias":{"type":"string","title":"Alias"},"short_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Url"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"custom_domain":{"anyOf":[{"$ref":"#/components/schemas/CustomDomainSchema"},{"type":"null"}]}},"type":"object","required":["id","account_id","url","created_datetime","is_shortened","alias"],"title":"URLSchema"},"URLWithClicksSchema":{"properties":{"id":{"type":"integer","title":"Id"},"account_id":{"type":"integer","title":"Account Id"},"url":{"type":"string","minLength":1,"format":"uri","title":"Url"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"is_shortened":{"type":"boolean","title":"Is Shortened"},"alias":{"type":"string","title":"Alias"},"short_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Url"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"custom_domain":{"anyOf":[{"$ref":"#/components/schemas/CustomDomainSchema"},{"type":"null"}]},"clicks":{"items":{"$ref":"#/components/schemas/URLClickSchema"},"type":"array","title":"Clicks"}},"type":"object","required":["id","account_id","url","created_datetime","is_shortened","alias","clicks"],"title":"URLWithClicksSchema"},"UniversalContent":{"properties":{"header":{"$ref":"#/components/schemas/UniversalContentHeader"},"footer":{"anyOf":[{"$ref":"#/components/schemas/UniversalContentFooter"},{"type":"null"}]},"socials":{"$ref":"#/components/schemas/UniversalContentSocials"}},"additionalProperties":false,"type":"object","title":"UniversalContent"},"UniversalContentBusinessName":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^[^\\x00]*$"},{"type":"null"}],"title":"Text"},"visible":{"type":"boolean","title":"Visible","default":true}},"additionalProperties":false,"type":"object","title":"UniversalContentBusinessName"},"UniversalContentFooter":{"properties":{"business_name":{"$ref":"#/components/schemas/UniversalContentBusinessName"},"postal_address":{"$ref":"#/components/schemas/UniversalContentPostalAddress"}},"additionalProperties":false,"type":"object","required":["postal_address"],"title":"UniversalContentFooter"},"UniversalContentHeader":{"properties":{"logo_width_px":{"anyOf":[{"type":"integer","maximum":560.0,"minimum":1.0},{"type":"null"}],"title":"Logo Width Px"},"logo_alignment":{"type":"string","enum":["left","center","right"],"title":"Logo Alignment","default":"center"},"logo_visible":{"type":"boolean","title":"Logo Visible","default":true}},"additionalProperties":false,"type":"object","title":"UniversalContentHeader"},"UniversalContentPostalAddress":{"properties":{"text":{"type":"string","maxLength":500,"minLength":1,"pattern":"^[^\\x00]*$","title":"Text"},"visible":{"type":"boolean","title":"Visible","default":true}},"additionalProperties":false,"type":"object","required":["text"],"title":"UniversalContentPostalAddress"},"UniversalContentSocialLink":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"visible":{"type":"boolean","title":"Visible","default":true}},"additionalProperties":false,"type":"object","title":"UniversalContentSocialLink"},"UniversalContentSocials":{"properties":{"instagram":{"$ref":"#/components/schemas/UniversalContentSocialLink"},"facebook":{"$ref":"#/components/schemas/UniversalContentSocialLink"},"tiktok":{"$ref":"#/components/schemas/UniversalContentSocialLink"},"youtube":{"$ref":"#/components/schemas/UniversalContentSocialLink"},"pinterest":{"$ref":"#/components/schemas/UniversalContentSocialLink"}},"additionalProperties":false,"type":"object","title":"UniversalContentSocials"},"UpdateAutoUpgradeSchema":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"UpdateAutoUpgradeSchema"},"UpdateJourneyGroupApiDTO":{"properties":{"channels":{"items":{"$ref":"#/components/schemas/JourneyChannel"},"type":"array","minItems":1,"title":"Channels"},"message_type":{"anyOf":[{"$ref":"#/components/schemas/JourneyMessageMode"},{"type":"null"}]}},"type":"object","required":["channels"],"title":"UpdateJourneyGroupApiDTO"},"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"},"ValidationResultApiDTO":{"properties":{"engine_available":{"type":"boolean","title":"Engine Available"},"status":{"$ref":"#/components/schemas/ValidationStatus"},"results":{"items":{"$ref":"#/components/schemas/TargetValidationResultApiDTO"},"type":"array","title":"Results"},"summary":{"$ref":"#/components/schemas/ValidationSummaryApiDTO"},"validated_at":{"type":"string","format":"date-time","title":"Validated At"}},"type":"object","required":["engine_available","status","validated_at"],"title":"ValidationResultApiDTO"},"ValidationStatus":{"type":"string","enum":["ok","issues","engine_unavailable"],"title":"ValidationStatus"},"ValidationSummaryApiDTO":{"properties":{"warning_count":{"type":"integer","title":"Warning Count","default":0},"error_count":{"type":"integer","title":"Error Count","default":0}},"type":"object","title":"ValidationSummaryApiDTO"},"ValidationTargetKind":{"type":"string","enum":["primary","variant"],"title":"ValidationTargetKind"},"VariableFormat":{"type":"string","enum":["text","url","number","readable","date"],"title":"VariableFormat","description":"How a value is written for the shopper."},"VariableType":{"type":"string","enum":["text","email","url","integer","decimal","boolean","datetime"],"title":"VariableType"},"VariantDTO":{"properties":{"id":{"type":"string","title":"Id"},"message_instructions":{"type":"string","title":"Message Instructions"},"weight":{"type":"integer","minimum":1.0,"title":"Weight"}},"type":"object","required":["id","message_instructions","weight"],"title":"VariantDTO"},"VisitedPageSchema":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"},"search_query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Query"},"visit_count":{"type":"integer","title":"Visit Count","default":1},"last_visit_datetime":{"type":"string","format":"date-time","title":"Last Visit Datetime"},"type":{"type":"string","const":"other","title":"Type","default":"other"}},"type":"object","required":["last_visit_datetime"],"title":"VisitedPageSchema"},"VisitedProductPageSchema":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"},"search_query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Query"},"visit_count":{"type":"integer","title":"Visit Count","default":1},"last_visit_datetime":{"type":"string","format":"date-time","title":"Last Visit Datetime"},"type":{"type":"string","const":"product","title":"Type","default":"product"},"product":{"$ref":"#/components/schemas/InteractedProductSchema"}},"type":"object","required":["last_visit_datetime","product"],"title":"VisitedProductPageSchema"},"VisitorFormFieldName":{"type":"string","enum":["email","phone","first_name","last_name"],"title":"VisitorFormFieldName"},"VisitorFormFieldType":{"type":"string","enum":["email","phone","text"],"title":"VisitorFormFieldType"},"VisitorFormFieldsSchema":{"properties":{"name":{"$ref":"#/components/schemas/VisitorFormFieldName"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"type":{"$ref":"#/components/schemas/VisitorFormFieldType"},"required":{"type":"boolean","title":"Required"}},"type":"object","required":["name","type","required"],"title":"VisitorFormFieldsSchema"},"VisitorFormOnSuccessContentSchema":{"properties":{"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","title":"VisitorFormOnSuccessContentSchema"},"VisitorFormStepSchema":{"properties":{"cta":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta"},"fields":{"items":{"$ref":"#/components/schemas/VisitorFormFieldsSchema"},"type":"array","title":"Fields"}},"type":"object","required":["fields"],"title":"VisitorFormStepSchema"},"VisitorFormSubmissionSchema":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string","format":"phone"},{"type":"null"}],"title":"Phone"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"campaign_id":{"type":"string","title":"Campaign Id"},"shop_name":{"type":"string","title":"Shop Name"},"guest_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guest Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"ab_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ab Variant"}},"type":"object","required":["campaign_id","shop_name"],"title":"VisitorFormSubmissionSchema"},"VisitorFormSubscriberType":{"type":"string","enum":["email","sms"],"title":"VisitorFormSubscriberType"},"VisitorFormTargetType":{"type":"string","enum":["shopify","gorgias"],"title":"VisitorFormTargetType"},"VisitorFormTargetsSchema":{"properties":{"type":{"$ref":"#/components/schemas/VisitorFormTargetType"},"subscriber_types":{"items":{"$ref":"#/components/schemas/VisitorFormSubscriberType"},"type":"array","title":"Subscriber Types"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"}},"additionalProperties":false,"type":"object","required":["type","subscriber_types"],"title":"VisitorFormTargetsSchema"},"Weekday":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"],"title":"Weekday"},"WelcomeCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"welcome","title":"Type","default":"welcome"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/WelcomeFlowConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"WelcomeCreateJourneyApiDTO"},"WelcomeFlowConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"wait_time_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wait Time Minutes","default":1440}},"type":"object","title":"WelcomeFlowConfigurationApiDTO"},"WelcomeJourneyConfigurationPrivateApiDTO":{"properties":{"wait_time_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wait Time Minutes","default":1440}},"type":"object","title":"WelcomeJourneyConfigurationPrivateApiDTO"},"WhatsAppTemplateParameterSpecApiDTO":{"properties":{"component":{"type":"string","enum":["body","header","button"],"title":"Component"},"key":{"type":"string","title":"Key"},"guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guidance"}},"type":"object","required":["component","key"],"title":"WhatsAppTemplateParameterSpecApiDTO","description":"Reply-context mirror of the event ``WhatsAppTemplateParameterSpec`` (AIJ-3212).\n\nOne WhatsApp MARKETING-template variable ai-agent fills for the cold step. Mirrored locally\n(snake_case ApiDTO) rather than importing the event schema, keeping the API layer independent\nof the Kafka event module — same split as ``DiscountConfigurationApiDTO``."},"WinbackCreateJourneyApiDTO":{"properties":{"included_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Included Audience List Ids"},"excluded_audience_list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excluded Audience List Ids"},"type":{"type":"string","const":"win_back","title":"Type","default":"win_back"},"store_integration_id":{"type":"integer","title":"Store Integration Id"},"store_name":{"type":"string","title":"Store Name"},"store_type":{"type":"string","title":"Store Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"message_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Instructions"},"channel":{"$ref":"#/components/schemas/JourneyChannel","default":"sms"},"whatsapp_template_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Whatsapp Template Id"},"messaging_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingType"},{"type":"null"}],"description":"The messaging rail of the campaign: \"marketing\", \"transactional\" or null; null means marketing. Campaign journeys only: a non-null value on any other journey type is rejected with 422. An unknown value is rejected with 422. On create, an omitted or null value means marketing; on update, an omitted field keeps the stored value. The value can change only while the campaign is draft or scheduled and a change is rejected with 422 otherwise; null and \"marketing\" are the same value. \"transactional\" is rejected with 422 while the engage-support-campaigns feature is off for the account, unless it restates the campaign's stored value."},"timing_offset":{"type":"integer","minimum":0.0,"title":"Timing Offset","description":"Delay in minutes before this instance fires (e.g. 10080 = 7 days)","default":0},"execution_mode_override":{"anyOf":[{"$ref":"#/components/schemas/JourneyParticipationExecutionMode"},{"type":"null"}]},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantDTO"},"type":"array"},{"type":"null"}],"title":"Variants"},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignCreateApiDTO"},{"type":"null"}]},"configuration":{"anyOf":[{"$ref":"#/components/schemas/WinbackJourneyConfigurationApiDTO"},{"type":"null"}]}},"type":"object","required":["store_integration_id","store_name","store_type"],"title":"WinbackCreateJourneyApiDTO"},"WinbackJourneyConfigurationApiDTO":{"properties":{"discount_configuration_source":{"type":"string","enum":["store","journey"],"title":"Discount Configuration Source","default":"journey"},"max_follow_up_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Follow Up Messages"},"follow_up_wait_minutes":{"anyOf":[{"type":"integer","maximum":43200.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Wait Minutes"},"sms_sender_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender Number"},"sms_sender_integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Sender Integration Id"},"offer_discount":{"type":"boolean","title":"Offer Discount","default":false},"max_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Discount Percent"},"discount_code_message_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Code Message Threshold"},"discount_code":{"anyOf":[{"$ref":"#/components/schemas/DiscountConfigurationApiDTO"},{"type":"null"}]},"include_image":{"type":"boolean","title":"Include Image","default":false},"rcs_enabled":{"type":"boolean","title":"Rcs Enabled","default":false},"tone_of_voice_guidance":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Tone Of Voice Guidance"},"inactive_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Inactive Days","default":30},"cooldown_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cooldown Days","default":30}},"type":"object","title":"WinbackJourneyConfigurationApiDTO"},"WinbackJourneyConfigurationPrivateApiDTO":{"properties":{"inactive_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Inactive Days","default":30},"cooldown_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cooldown Days","default":30}},"type":"object","title":"WinbackJourneyConfigurationPrivateApiDTO"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"},"IDPBearerToken":{"type":"http","scheme":"bearer"},"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}