{"openapi":"3.1.1","info":{"title":"Cognis Public API — Products and catalog","version":"1.0.0","description":"Manual products, images, commerce catalog/prices, sourcing, GMC per product, currencies, SKU check, variant costs. Authenticate with `Authorization: Bearer cogn_…`. Base: https://api.cognissuite.com/api/v1. Max 30 operations for ChatGPT Custom GPT Actions."},"servers":[{"url":"https://api.cognissuite.com/api/v1","description":"Production"},{"url":"http://localhost:3013/api/v1","description":"Local"}],"tags":[{"name":"Commerce Catalog","description":"Commerce Catalog API"},{"name":"Commerce Products","description":"Commerce Products API"}],"paths":{"/org/{orgId}/ecom/products/{productId}/images/{imageId}":{"delete":{"operationId":"deleteImage","summary":"Delete Image","description":"Public API endpoint: ecomProduct.deleteImage\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"imageId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"ok":true},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}},"patch":{"operationId":"patchImage","summary":"Patch Image","description":"Public API endpoint: ecomProduct.patchImage\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"imageId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"id":"epi-1","productId":"prod-1","fileUploadId":"fu-1","brandId":null,"lang":null,"sortOrder":0,"shopifyMediaId":null,"filename":"hero.jpg","contentType":"image/jpeg","sizeBytes":12000,"publicCdnUrl":null,"createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-01T19:42:28.687Z"},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brandId":{"type":"string","nullable":true},"lang":{"type":"string","enum":["en","sv","no","da","fi","de","it","nl","pl","pt","es","fr"],"nullable":true},"sortOrder":{"type":"integer","minimum":0}},"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/sync-shopify-images-all":{"post":{"operationId":"enqueueSyncAllShopifyImages","summary":"Enqueue Sync All Shopify Images","description":"Public API endpoint: ecomProduct.enqueueSyncAllShopifyImages\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"queued":12,"totalShopifyLinked":40,"truncated":true,"staggerMs":4000,"maxPerRun":500},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/{productId}/ecom-translations/enqueue-ai-fill-missing":{"post":{"operationId":"enqueueAiFillMissingTranslations","summary":"Enqueue Ai Fill Missing Translations","description":"Public API endpoint: ecomProduct.enqueueAiFillMissingTranslations\n\n**Required scopes:** `org:ecom:translations:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:translations:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"enqueued":true},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/{productId}/commerce-catalog":{"get":{"operationId":"getCommerceCatalog","summary":"Get Commerce Catalog","description":"Public API endpoint: ecomProduct.getCommerceCatalog\n\n**Required scopes:** `org:ecom:collections:read`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"brandId","in":"query","required":false,"schema":{"type":"string"}},{"name":"fxValuationDay","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"catalogProduct":{"id":"4dtYvFotyxXQlSwSIZOaYi","orgId":"30xai4apis3cuAPoFPp1u","brandId":null,"title":"Example","slug":"example","description":null,"vendor":null,"productType":null,"tags":[],"status":"draft","isPublishedAtStorefront":true,"omitFromStorefrontCollectionListings":false,"defaultImageUrl":null,"seoTitle":null,"seoDescription":null,"linkedMarketingProductId":"4dtYvFotyxXQlSwSIZOaYk","shopifyProductId":null,"createdAt":"1970-01-01T00:00:00.000Z","updatedAt":"1970-01-01T00:00:00.000Z"},"options":[],"variants":[{"id":"4dtYvFotyxXQlSwSIZOaYm","title":"Default","sku":"SKU-1","option1":null,"option2":null,"option3":null,"position":0,"isDefault":true,"allowNegativeInventory":true,"imageUrl":null,"prices":[{"id":"4dtYvFotyxXQlSwSIZOaYn","variantId":"4dtYvFotyxXQlSwSIZOaYm","currency":"usd","unitAmountMinor":"1999","compareAtAmountMinor":null,"kind":"default","tierKey":null,"isActive":true,"activeFrom":null,"activeUntil":null,"autoConvertUnitFromFx":false}]}],"fxValuation":{"dayISO":"2026-01-01","usdToQuote":{"EUR":"0.92"},"ratesRefreshed":false}},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}},"put":{"operationId":"putCommerceCatalog","summary":"Put Commerce Catalog","description":"Public API endpoint: ecomProduct.putCommerceCatalog\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"catalogProduct":{"id":"4dtYvFotyxXQlSwSIZOaYi","orgId":"30xai4apis3cuAPoFPp1u","brandId":null,"title":"Example","slug":"example","description":null,"vendor":null,"productType":null,"tags":[],"status":"draft","isPublishedAtStorefront":true,"omitFromStorefrontCollectionListings":false,"defaultImageUrl":null,"seoTitle":null,"seoDescription":null,"linkedMarketingProductId":"4dtYvFotyxXQlSwSIZOaYk","shopifyProductId":null,"createdAt":"1970-01-01T00:00:00.000Z","updatedAt":"1970-01-01T00:00:00.000Z"},"options":[],"variants":[{"id":"4dtYvFotyxXQlSwSIZOaYm","title":"Default","sku":"SKU-1","option1":null,"option2":null,"option3":null,"position":0,"isDefault":true,"allowNegativeInventory":true,"imageUrl":null,"prices":[{"id":"4dtYvFotyxXQlSwSIZOaYn","variantId":"4dtYvFotyxXQlSwSIZOaYm","currency":"usd","unitAmountMinor":"1999","compareAtAmountMinor":null,"kind":"default","tierKey":null,"isActive":true,"activeFrom":null,"activeUntil":null,"autoConvertUnitFromFx":false}]}],"fxValuation":{"dayISO":"2026-01-01","usdToQuote":{"EUR":"0.92"},"ratesRefreshed":false}},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brandId":{"type":"string"},"createIfMissing":{"type":"boolean"},"catalogPatch":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":512},"description":{"type":"string","nullable":true},"status":{"type":"string","enum":["active","draft","archived"]},"isPublishedAtStorefront":{"type":"boolean"},"omitFromStorefrontCollectionListings":{"type":"boolean"}},"additionalProperties":false},"options":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":2},"name":{"type":"string","minLength":1,"maxLength":128},"values":{"type":"array","items":{"type":"string","maxLength":256},"maxItems":256}},"required":["position","name","values"],"additionalProperties":false}},"variants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string","nullable":true},"sku":{"type":"string","nullable":true},"option1":{"type":"string","nullable":true},"option2":{"type":"string","nullable":true},"option3":{"type":"string","nullable":true},"position":{"type":"integer"},"isDefault":{"type":"boolean"},"imageUrl":{"anyOf":[{"type":"string","maxLength":2048},{"type":"string","enum":[""]}],"nullable":true},"allowNegativeInventory":{"type":"boolean"},"initialOnHand":{"type":"integer","minimum":0},"prices":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","minLength":3,"maxLength":3},"unitAmountMinor":{"type":"string","pattern":"^[0-9]+$"},"compareAtAmountMinor":{"type":"string","pattern":"^[0-9]+$","nullable":true},"kind":{"type":"string","enum":["default","sale","tier"]},"autoConvertUnitFromFx":{"type":"boolean"}},"required":["currency","unitAmountMinor"],"additionalProperties":false}}},"additionalProperties":false},"minItems":1}},"required":["variants"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/{productId}/shopify-admin-url":{"get":{"operationId":"getShopifyAdminUrl","summary":"Get Shopify Admin Url","description":"Public API endpoint: ecomProduct.getShopifyAdminUrl\n\n**Required scopes:** `org:ecom:collections:read`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"url":"https://example.myshopify.com/admin/products/123"},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}}},"/org/{orgId}/ecom/products/{productId}/collections":{"get":{"operationId":"listCollections","summary":"List Collections","description":"Public API endpoint: ecomProduct.listCollections\n\n**Required scopes:** `org:ecom:collections:read`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object"}},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":[{"collectionId":"ecoll-1","collectionName":"Spring","collectionSlug":"spring","sortOrder":0,"createdAt":"2025-01-01T19:42:28.687Z"}],"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}}},"/org/{orgId}/ecom/products/{productId}/images":{"get":{"operationId":"listImages","summary":"List Images","description":"Public API endpoint: ecomProduct.listImages\n\n**Required scopes:** `org:ecom:collections:read`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object"}},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":[{"id":"epi-1","productId":"prod-1","fileUploadId":"fu-1","brandId":null,"lang":null,"sortOrder":0,"shopifyMediaId":null,"filename":"hero.jpg","contentType":"image/jpeg","sizeBytes":12000,"publicCdnUrl":null,"createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-01T19:42:28.687Z"}],"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}},"post":{"operationId":"postImage","summary":"Post Image","description":"Public API endpoint: ecomProduct.postImage\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"id":"epi-1","productId":"prod-1","fileUploadId":"fu-1","brandId":null,"lang":null,"sortOrder":0,"shopifyMediaId":null,"filename":"hero.jpg","contentType":"image/jpeg","sizeBytes":12000,"publicCdnUrl":null,"createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-01T19:42:28.687Z"},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileUploadId":{"type":"string"},"brandId":{"type":"string","nullable":true},"lang":{"type":"string","enum":["en","sv","no","da","fi","de","it","nl","pl","pt","es","fr"],"nullable":true},"sortOrder":{"type":"integer","minimum":0}},"required":["fileUploadId"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/{productId}/collection-candidates":{"get":{"operationId":"listCollectionCandidates","summary":"List Collection Candidates","description":"Public API endpoint: ecomProduct.listCollectionCandidates\n\n**Required scopes:** `org:ecom:collections:read`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object"}},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":[{"id":"ecoll-2","name":"Summer","slug":"summer"}],"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}}},"/org/{orgId}/ecom/commerce-catalog/variants/{commerceVariantId}/finance-variant-costs":{"get":{"operationId":"listVariantFinanceCosts","summary":"List Variant Finance Costs","description":"Public API endpoint: ecomCommerce.listVariantFinanceCosts\n\n**Required scopes:** `org:ecom:collections:read`","tags":["Commerce Catalog"],"x-scopes":["org:ecom:collections:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"commerceVariantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object"}},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":[{"id":"fvc_example123","commerceVariantId":"cpv_example456","sku":"SKU-001","costAmount":"12.5000","currency":"USD","validFrom":"2026-01-01T00:00:00.000Z","validTo":null,"source":"manual","sourceRef":null,"createdAt":"2026-01-01T00:00:00.000Z"}],"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}},"post":{"operationId":"postVariantFinanceCost","summary":"Post Variant Finance Cost","description":"Public API endpoint: ecomCommerce.postVariantFinanceCost\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Catalog"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"commerceVariantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"id":"fvc_example123","commerceVariantId":"cpv_example456","sku":"SKU-001","costAmount":"12.5000","currency":"USD","validFrom":"2026-01-01T00:00:00.000Z","validTo":null,"source":"manual","sourceRef":null,"createdAt":"2026-01-01T00:00:00.000Z"},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"costAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,4})?$"},"currency":{"type":"string","minLength":3,"maxLength":3},"validFrom":{"type":"string","format":"date-time"},"validTo":{"type":"string","format":"date-time","nullable":true},"source":{"type":"string","enum":["manual","product_ingest","import_csv","api"]},"sourceRef":{"type":"string","maxLength":512,"nullable":true}},"required":["costAmount","currency"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/{productId}/sourcing-links":{"get":{"operationId":"listSourcingLinks","summary":"List Sourcing Links","description":"Public API endpoint: ecomProduct.listSourcingLinks\n\n**Required scopes:** `org:ecom:collections:read`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object"}},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":[{"id":"psl_example123","type":"url","url":"https://www.aliexpress.com/item/1005008806380297.html","marketplace":"aliexpress","costAmount":12.5,"costCurrency":"usd","createdAt":"2026-01-01T00:00:00.000Z"}],"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}},"put":{"operationId":"putSourcingLinks","summary":"Put Sourcing Links","description":"Public API endpoint: ecomProduct.putSourcingLinks\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object"}},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":[{"id":"psl_example123","type":"url","url":"https://www.aliexpress.com/item/1005008806380297.html","marketplace":"aliexpress","costAmount":12.5,"costCurrency":"usd","createdAt":"2026-01-01T00:00:00.000Z"}],"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["url"],"default":"url"},"url":{"type":"string","format":"uri","maxLength":2048},"marketplace":{"type":"string","maxLength":32,"nullable":true},"costAmount":{"type":"number","exclusiveMinimum":true,"minimum":0,"nullable":true},"costCurrency":{"type":"string","minLength":3,"maxLength":3,"nullable":true}},"required":["url"],"additionalProperties":false},"maxItems":20}},"required":["links"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/product-summaries":{"get":{"operationId":"listSummaries","summary":"List Summaries","description":"Public API endpoint: ecomProduct.listSummaries\n\n**Required scopes:** `org:ecom:collections:read`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"excludeCollectionId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object"}},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":[{"id":"prod-1","name":"Example product","slug":"example-product","brandId":"10","brandName":"Acme"}],"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}}},"/org/{orgId}/ecom/products":{"get":{"operationId":"list","summary":"List","description":"Public API endpoint: ecomProduct.list\n\n**Required scopes:** `org:ecom:collections:read`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"fromDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"toDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"dateBy","in":"query","required":false,"schema":{"type":"string","enum":["createdAt","updatedAt"],"default":"createdAt"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["id","name","slug","brandId","orgId","integrationType","externalId","externalHandle","createdAt","updatedAt","description","createdBy"]},"order":{"type":"string","enum":["asc","desc"],"default":"desc"}},"required":["field"],"additionalProperties":false},"default":[{"field":"createdAt","order":"desc"}]}},{"name":"fields","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["id","name","slug","brandId","orgId","integrationType","externalId","externalHandle","createdAt","updatedAt","description","createdBy"]},"default":["id"]}},{"name":"filters","in":"query","required":false,"schema":{"type":"object","properties":{"type":{"type":"string","enum":["group"]},"op":{"type":"string","enum":["and","or"]},"children":{"type":"array","items":{"anyOf":[{},{"type":"object","properties":{"type":{"type":"string","enum":["rule"]},"field":{"type":"string","enum":["id","name","slug","brandId","orgId","integrationType","externalId","externalHandle","createdAt","updatedAt","description","createdBy"]},"operator":{"type":"string","enum":["eq","neq","in","not_in","is_set","is_not_set","gt","gte","lt","lte","between","contains","not_contains","starts_with","ends_with"]},"value":{}},"required":["type","field","operator"],"additionalProperties":false}]},"minItems":1}},"required":["type","op","children"],"additionalProperties":false}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"id":"1","name":"Product 1","description":"Example Product Description","slug":"product-1","integrationType":"shopify","externalId":"213120","externalHandle":"product-handle","createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-02T10:15:00.000Z","brandId":"1","orgId":"1","createdBy":null},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}}},"/org/{orgId}/ecom/commerce-catalog/sku-check":{"post":{"operationId":"postSkuCheck","summary":"Post Sku Check","description":"Public API endpoint: ecomCommerce.postSkuCheck\n\n**Required scopes:** `org:ecom:collections:read`","tags":["Commerce Catalog"],"x-scopes":["org:ecom:collections:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"conflicts":["ACME-001"]},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"skus":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":200},"excludeCommerceProductId":{"type":"string"},"excludeLinkedMarketingProductId":{"type":"string"}},"required":["skus"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/manual-product":{"post":{"operationId":"createManual","summary":"Create Manual","description":"Public API endpoint: ecomProduct.createManual\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"id":"1","name":"Product 1","description":"Example Product Description","slug":"product-1","integrationType":"shopify","externalId":"213120","externalHandle":"product-handle","createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-02T10:15:00.000Z","brandId":"1","orgId":"1","createdBy":null},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"storefrontHandleHint":{"type":"string","maxLength":512},"brandId":{"type":"string","minLength":1},"ecomDescription":{"type":"string","maxLength":20000}},"required":["name"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/{productId}/commerce-catalog/fill-prices-from-fx":{"post":{"operationId":"fillCommerceCatalogPricesFromFx","summary":"Fill Commerce Catalog Prices From Fx","description":"Public API endpoint: ecomProduct.fillCommerceCatalogPricesFromFx\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"prices":[{"currency":"EUR","unitAmountMinor":"1840"}],"valuationDay":"2026-01-01","ratesRefreshed":false,"fxValuation":{"dayISO":"2026-01-01","usdToQuote":{"EUR":"0.92"},"ratesRefreshed":false}},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brandId":{"type":"string"},"anchorCurrency":{"allOf":[{"type":"string"},{"type":"string","pattern":"^[A-Z]{3}$"}]},"anchorUnitAmountMinor":{"type":"string","pattern":"^[0-9]+$"},"dayISO":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["anchorCurrency","anchorUnitAmountMinor"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/{productId}/ecom-translations/seed-from-primary":{"post":{"operationId":"seedTranslationsFromPrimary","summary":"Seed Translations From Primary","description":"Public API endpoint: ecomProduct.seedTranslationsFromPrimary\n\n**Required scopes:** `org:ecom:translations:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:translations:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"written":0,"skippedSlugConflicts":0,"skippedNoSource":0},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/{productId}/images/sync-shopify":{"post":{"operationId":"syncImagesFromShopify","summary":"Sync Images From Shopify","description":"Public API endpoint: ecomProduct.syncImagesFromShopify\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"synced":3,"shopifyMediaTotal":5,"skippedDownloads":0,"syncCap":50},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/brands/{brandId}/ecom/commerce-currencies":{"get":{"operationId":"listBrandCurrencies","summary":"List Brand Currencies","description":"List Cognis OLTP storefront currencies for a brand (`commerce_brand_currencies`).\n\n**Required scopes:** `brand:settings:read`","tags":["Commerce Catalog"],"x-scopes":["brand:settings:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string","description":"Brand ID (prefix: br_)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object"}},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":[],"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}},"put":{"operationId":"putBrandCurrencies","summary":"Put Brand Currencies","description":"Replace enabled/default flags for brand storefront currencies (`commerce_brand_currencies`).\n\n**Required scopes:** `brand:settings:write`","tags":["Commerce Catalog"],"x-scopes":["brand:settings:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string","description":"Brand ID (prefix: br_)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object"}},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":[],"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencies":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","CAD","AUD","NZD","SEK","NOK","DKK","CHF","PLN","CZK"]},"enabled":{"type":"boolean"},"isDefault":{"type":"boolean"},"position":{"type":"integer","minimum":0}},"required":["currency","enabled","isDefault"],"additionalProperties":false},"minItems":1}},"required":["currencies"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/{productId}/ecom-description":{"put":{"operationId":"putEcomDescription","summary":"Put Ecom Description","description":"Public API endpoint: ecomProduct.putEcomDescription\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"changed":true},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","maxLength":20000}},"required":["text"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/products/{productId}/sync-gmc":{"post":{"operationId":"syncGmc","summary":"Sync Gmc","description":"Push one storefront-published catalog product into the brand Google Merchant Center sub-account under the org MCA.\n\n**Required scopes:** `org:ecom:collections:write`","tags":["Commerce Products"],"x-scopes":["org:ecom:collections:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"brandId":"71xBzz4f8IryLqHXNXs3Fq","productId":"1EMPkVAtoQdWqulEy8vIpN","syncStatus":"active","productCount":1},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brandId":{"type":"string","minLength":1}},"additionalProperties":false}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key (prefix: cogn_) from Account → Developer"}},"schemas":{"ErrorResponse":{"type":"object","required":["success","message","errors"],"properties":{"success":{"type":"boolean","enum":[false]},"message":{"type":"string","description":"Human-readable error message"},"errors":{"type":"array","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"number","description":"Error code"},"message":{"type":"string"},"details":{"type":"object"}}}},"traceId":{"type":"string","description":"Request ID for tracing"},"params":{"type":"object","description":"Validation params for interpolation"},"readableMessage":{"type":"string","description":"Human-readable validation message"}}}}},"security":[{"bearerAuth":[]}]}