{"openapi":"3.0.1","info":{"title":"Supplier Data API","description":"API for Supplier Data\n","termsOfService":"https://developer.cimpress.io/legal/api-terms-of-service","contact":{"name":"CTGarudaSquad","email":"CTGarudaSquad@cimpress.com"},"version":"0.0.1"},"servers":[{"url":"/"}],"security":[{"auth0":[]}],"paths":{"/v1/accounts/{accountId}/supplierDataResources":{"get":{"tags":["Supplier Data"],"summary":"Get Supplier Data Resources","deprecated":true,"operationId":"getSupplierDataResourceId","parameters":[{"name":"accountId","in":"path","description":"Account Id","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","description":"Default value - 1","schema":{"type":"integer"}},{"name":"limit","in":"query","description":"Default value - 10","schema":{"type":"integer"}}],"responses":{"200":{"description":"Supplier Data.","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"string"},"count":{"type":"string"},"offset":{"type":"string"},"supplierData":{"type":"array","items":{"$ref":"#/components/schemas/SupplierDataResources"}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}},"x-codegen-request-body-name":"body"}},"/v0/accounts/{accountId}/supplierData":{"get":{"tags":["Supplier Data"],"summary":"Get All Supplier Data","deprecated":true,"operationId":"getSupplierData","parameters":[{"name":"accountId","in":"path","description":"Account Id","required":true,"schema":{"type":"string"}},{"name":"productId","in":"query","description":"Product Id","schema":{"type":"string"}},{"name":"productVersion","in":"query","description":"Product Version","schema":{"type":"string","pattern":"^[0-9]+$|^\\*$"}},{"name":"tag","in":"query","description":"Enter the tag to return the rules for which the tag is attched","schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter based on status","schema":{"type":"string","enum":["staged","current"]}},{"name":"shouldIncludeDraft","in":"query","description":"Should include draft details along with current version.","schema":{"type":"boolean"}},{"name":"offset","in":"query","description":"Default value - 1","schema":{"type":"integer"}},{"name":"limit","in":"query","description":"Default value - 10","schema":{"type":"integer"}}],"responses":{"200":{"description":"Supplier Data.","headers":{"Cache-Control":{"description":"It is set as public, max-age=300 by default","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"translate":{"type":"string"}}}}},"_embedded":{"type":"object","properties":{"count":{"type":"number"},"total":{"type":"number"},"offset":{"type":"number"},"supplierDataMappings":{"type":"array","items":{"$ref":"#/components/schemas/SupplierDataAssignments"}}}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}},"patch":{"tags":["Supplier Data"],"summary":"Append Supplier Data","deprecated":true,"operationId":"appendSupplierData","parameters":[{"name":"accountId","in":"path","description":"accountId","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"status of the condition","schema":{"type":"string","enum":["staged","current"],"default":"staged"},"required":false}],"requestBody":{"description":"Collection of mappings and other filters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchSupplierData"}}},"required":false},"responses":{"200":{"description":"Created Supplier Data","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"supplierDataResourceId":{"type":"string"},"ruleId":{"type":"string"},"ruleVersionId":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}},"translate":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}}}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}},"x-codegen-request-body-name":"body"}},"/v0/accounts/{accountId}/supplierData:translate":{"get":{"tags":["Translate"],"summary":"Translate Supplier Data.","deprecated":true,"operationId":"translateSupplierDataByConfigUrl","parameters":[{"name":"accountId","in":"path","description":"Supplier Data Resource Id","required":true,"schema":{"type":"string"}},{"name":"productConfigurationUrl","in":"query","description":"product configuration url.","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"status of the condition","schema":{"type":"string","enum":["staged","current"],"default":"current"},"required":false}],"responses":{"200":{"description":"Translate Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SupplierOutputAttribute"}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/supplierProductResources":{"get":{"tags":["Supplier Product Resources"],"summary":"Get Supplier Data Resources","operationId":"getSupplierProductResources","parameters":[{"name":"productId","in":"query","description":"ProductId","required":true,"schema":{"type":"string"}},{"name":"productVersion","in":"query","description":"Product Version","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","description":"Default value - 1","schema":{"type":"integer"}},{"name":"limit","in":"query","description":"Default value - 10","schema":{"type":"integer"}},{"name":"resourceType","in":"query","description":"Resource Type of supplier product resources","required":true,"schema":{"$ref":"#/components/schemas/V1ResourceType"}},{"name":"status","in":"query","description":"It will return current version by default","schema":{"type":"string","enum":["current","archived","staged","non_current"],"default":"current"}},{"name":"exactMatch","in":"query","description":"when set to true does exact match for the given filters by excluding the default resources","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Supplier Data.","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"string"},"count":{"type":"string"},"offset":{"type":"string"},"supplierData":{"type":"array","items":{"$ref":"#/components/schemas/SupplierProductResources"}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/accounts/{accountId}/supplierProductResources:appendMappingRules":{"patch":{"tags":["Supplier Product Resources"],"summary":"Append new mappings to an existing mapping of a resource and publish a new current version of it.","operationId":"appendMappingRules","parameters":[{"name":"accountId","in":"path","required":true,"description":"Supplier account ID that owns the Supplier Data rule","schema":{"type":"string"}}],"requestBody":{"description":"Identifies the target SPF rule (via path accountId + body conditions) and the mappings to append","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendMappingRulesRequest"}}}},"responses":{"200":{"description":"A new rule version referencing the updated Mapper mapping has been created and set as current","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendMappingRulesResponse"}}}},"400":{"description":"Invalid request payload or validation failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No matching Supplier Data rule found for the given condition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The supplier attributes passed already exist in the current Supplier Data Mapping","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-codegen-request-body-name":"body"}},"/v1/supplierProductResources:carryOver":{"post":{"deprecated":true,"tags":["Carry Over"],"summary":"Carry over supplier product resources for a products new version","operationId":"carryOverSupplierProductResources","requestBody":{"description":"new product version resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CarryOverSupplierProductResource"}}}},"responses":{"200":{"description":"Successfull CarryOver","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CarryOverSupplierProductResourceResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-codegen-request-body-name":"body"}},"/v0/supplierProductResources/staticTranslations":{"put":{"tags":["Static Translation Migrate"],"summary":"Create Static Translation in our new system","operationId":"staticTranslation","requestBody":{"description":"Product Details to Migrate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrateStaticTranslation"}}}},"responses":{"200":{"description":"Successful Migration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1PatchSupplierProductResourceResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-codegen-request-body-name":"body"}},"/v0/supplierData/rules/{ruleId}/versions/current":{"get":{"tags":["Status"],"summary":"Returns all the versions for a given rule id.","deprecated":true,"operationId":"getRuleCurrentVersion","parameters":[{"name":"ruleId","in":"path","description":"Rule Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Supplier Data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetStatusResponse"}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v0/supplierProductResources":{"post":{"tags":["Supplier Product Resources"],"summary":"Create supplier product resource identifier","operationId":"createSupplierProductResource","requestBody":{"description":"supplier accountId","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSupplierProductResource"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSupplierProductResourceResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-codegen-request-body-name":"body"}},"/v0/accounts/{accountId}/supplierProductResources":{"get":{"tags":["Supplier Product Resources"],"summary":"Get Supplier Data Resources","operationId":"getSupplierProductResourceId","parameters":[{"name":"accountId","in":"path","description":"Account Id","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","description":"Default value - 1","schema":{"type":"integer"}},{"name":"limit","in":"query","description":"Default value - 10","schema":{"type":"integer"}}],"responses":{"200":{"description":"Supplier Data.","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"string"},"count":{"type":"string"},"offset":{"type":"string"},"supplierData":{"type":"array","items":{"$ref":"#/components/schemas/SupplierProductResources"}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/supplierProductResources/{supplierProductResourceId}":{"patch":{"tags":["Supplier Product Resources"],"summary":"Patch supplier product resource","operationId":"V1PatchSupplierProductResource","parameters":[{"name":"supplierProductResourceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter based on status","schema":{"type":"string","enum":["staged","current"],"default":"staged"}}],"requestBody":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1PatchSupplierProductResource"}}}},"responses":{"200":{"description":"Created supplier data in given supplierProductResource container id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1PatchSupplierProductResourceResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-codegen-request-body-name":"body"},"get":{"tags":["Supplier Product Resources"],"summary":"Get All Supplier Product Resources","operationId":"V1GetAllSupplierProductResourceId","parameters":[{"name":"supplierProductResourceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","description":"Default value - 0","schema":{"type":"integer","default":0}},{"name":"limit","in":"query","description":"Default value - 10","schema":{"type":"integer","maximum":1000,"default":10}},{"name":"resourceType","in":"query","description":"Resource Type of supplier product resources","required":true,"schema":{"$ref":"#/components/schemas/V1ResourceType"}},{"name":"tag","in":"query","description":"Filter based on tag","schema":{"type":"string"}},{"name":"status","in":"query","description":"It will return current version by default","schema":{"type":"string","enum":["current","archived","staged","non_current"],"default":"current"}},{"name":"productId","in":"query","description":"Product Id","schema":{"type":"string"}},{"name":"productVersion","in":"query","description":"Product Version","schema":{"type":"string"}},{"name":"fulfillerId","in":"query","description":"Fulfiller Id","schema":{"type":"string"}},{"name":"fulfillmentLocationId","in":"query","description":"Fulfillment Location Id","schema":{"type":"string"}},{"name":"buyerAccountId","in":"query","description":"Buyer Account Id","schema":{"type":"string"}},{"name":"serviceLevel","in":"query","description":"Service Level","schema":{"type":"string"}},{"name":"shouldIncludeDraft","in":"query","description":"false by default","schema":{"type":"boolean","default":false}},{"name":"exactMatch","in":"query","description":"when set to true does exact match for the given filters by excluding the default resources","schema":{"type":"boolean","default":false}},{"name":"fetchTags","in":"query","description":"when set to true the service fetches tags data else it does not","schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"Supplier Product Resource.","content":{"application/json":{"schema":{"type":"object","properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"translate":{"type":"string"}}}}},"_embedded":{"type":"object","properties":{"count":{"type":"number"},"total":{"type":"number"},"offset":{"type":"number"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/V1SupplierProductResourceVersions"}}}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/accounts/{accountId}/supplierProductResources":{"patch":{"tags":["Supplier Product Resources"],"summary":"Patch supplier product resource","operationId":"V2PatchSupplierProductResource","parameters":[{"name":"accountId","in":"path","required":true,"description":"Supplier Account ID","schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter based on status","schema":{"type":"string","enum":["staged","current"],"default":"staged"}}],"requestBody":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1PatchSupplierProductResource"}}}},"responses":{"200":{"description":"Created supplier data in given supplierProductResource container id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1PatchSupplierProductResourceResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-codegen-request-body-name":"body"},"get":{"tags":["Supplier Product Resources"],"summary":"Get All Supplier Product Resources","operationId":"V2GetAllSupplierProductResourceId","parameters":[{"name":"accountId","in":"path","required":true,"description":"Supplier Account ID","schema":{"type":"string"}},{"name":"offset","in":"query","description":"Default value - 0","schema":{"type":"integer","default":0}},{"name":"limit","in":"query","description":"Default value - 10","schema":{"type":"integer","maximum":1000,"default":10}},{"name":"resourceType","in":"query","description":"Resource Type of supplier product resources","required":true,"schema":{"$ref":"#/components/schemas/V1ResourceType"}},{"name":"tag","in":"query","description":"Filter based on tag","schema":{"type":"string"}},{"name":"status","in":"query","description":"It will return current version by default","schema":{"type":"string","enum":["current","archived","staged","non_current"],"default":"current"}},{"name":"productId","in":"query","description":"Product Id","schema":{"type":"string"}},{"name":"productVersion","in":"query","description":"Product Version","schema":{"type":"string"}},{"name":"fulfillerId","in":"query","description":"Fulfiller Id","schema":{"type":"string"}},{"name":"fulfillmentLocationId","in":"query","description":"Fulfillment Location Id","schema":{"type":"string"}},{"name":"buyerAccountId","in":"query","description":"Buyer Account Id","schema":{"type":"string"}},{"name":"serviceLevel","in":"query","description":"Service Level","schema":{"type":"string"}},{"name":"shouldIncludeDraft","in":"query","description":"false by default","schema":{"type":"boolean","default":false}},{"name":"exactMatch","in":"query","description":"when set to true does exact match for the given filters by excluding the default resources","schema":{"type":"boolean","default":false}},{"name":"fetchTags","in":"query","description":"when set to true the service fetches tags data else it does not","schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"Supplier Product Resource.","content":{"application/json":{"schema":{"type":"object","properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"translate":{"type":"string"}}}}},"_embedded":{"type":"object","properties":{"count":{"type":"number"},"total":{"type":"number"},"offset":{"type":"number"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/V1SupplierProductResourceVersions"}}}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/supplierProductResources/rules/{ruleId}/versions":{"get":{"tags":["Supplier Product Resources Versions"],"summary":"Returns all the versions for a given rule id.","operationId":"V1getSupplierProductRuleVersions","parameters":[{"name":"ruleId","in":"path","description":"Rule Id","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"resourceType","in":"query","description":"ResourceType","required":true,"schema":{"$ref":"#/components/schemas/V1ResourceType"}},{"name":"offset","in":"query","description":"Offset for pagination","schema":{"type":"number","default":0}},{"name":"limit","in":"query","description":"Number of records to be returned in a call","schema":{"type":"number","default":10}}],"responses":{"200":{"description":"Rule Versions of given ruleId","content":{"application/json":{"schema":{"type":"object","properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"translate":{"type":"string"}}}}},"_embedded":{"type":"object","properties":{"ruleId":{"type":"string"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/V1SupplierProductResourceVersionRecord"}},"count":{"type":"number"},"total":{"type":"number"},"offset":{"type":"number"}}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/supplierProductResources/rules/{ruleId}/versions/{versionId}":{"get":{"tags":["Supplier Product Resources Versions"],"summary":"Returns the specific version of the rule.","operationId":"V1GetSupplierProductRuleVersionId","parameters":[{"name":"ruleId","in":"path","description":"Rule Id","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"versionId","in":"path","description":"Version Id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Rule Version Data of given ruleId and ruleVersionId","content":{"application/json":{"schema":{"type":"object","properties":{"ruleId":{"type":"string"},"versionId":{"type":"string"},"conditions":{"$ref":"#/components/schemas/V1ConditionMap"},"resourceType":{"type":"string"},"resourceUrl":{"type":"string"},"accountId":{"type":"string"},"metadata":{"$ref":"#/components/schemas/Metadata"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"status":{"type":"string"},"_links":{"type":"object","properties":{"self":{"$ref":"#/components/schemas/Link"}}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/supplierProductResources/rules/{ruleId}/versions/{versionId}:setCurrent":{"patch":{"tags":["Supplier Product Resources Status"],"summary":"Update the status of rule version to current.","operationId":"updateSupplierProductResourceToCurrentStatusBasedOnResourceType","parameters":[{"name":"ruleId","in":"path","description":"Rule Id","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Version Id","required":true,"schema":{"type":"string"}},{"name":"resourceType","in":"query","description":"ResourceType","required":true,"schema":{"$ref":"#/components/schemas/V1ResourceType"}}],"responses":{"204":{"description":"Updated status of version id to current"},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/supplierProductResources/rules/{ruleId}:setArchive":{"patch":{"tags":["Supplier Product Resources Status"],"summary":"Update the status of rule to archive.","operationId":"Update SupplierProductResource To Archive Status","parameters":[{"name":"ruleId","in":"path","description":"Rule Id","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"resourceType","in":"query","description":"ResourceType","required":true,"schema":{"$ref":"#/components/schemas/V1ResourceType"}}],"responses":{"204":{"description":"Updated the status of rule to archive."},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/supplierProductResources/rules/{ruleId}:setUnarchive":{"patch":{"tags":["Supplier Product Resources Status"],"summary":"Update the status of rule to unarchive.","operationId":"unArchive the Rule","parameters":[{"name":"ruleId","in":"path","description":"Rule Id","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"resourceType","in":"query","description":"ResourceType","required":true,"schema":{"$ref":"#/components/schemas/V1ResourceType"}}],"responses":{"204":{"description":"Updated the status of rule to unarchive"},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/supplierProductResources/rules/{ruleId}/status/{status}":{"get":{"tags":["Supplier Product Resources Status"],"summary":"Returns the all the rule version with given status.","operationId":"V1getSupplierProductRuleDraftVersion","parameters":[{"name":"ruleId","in":"path","description":"Rule Id","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"path","description":"Status","required":true,"schema":{"type":"string","enum":["current","staged","archived"]}},{"name":"resourceType","in":"query","description":"ResourceType","required":true,"schema":{"$ref":"#/components/schemas/V1ResourceType"}}],"responses":{"200":{"description":"Rule Versions with given Status","content":{"application/json":{"schema":{"type":"object","properties":{"versions":{"type":"array","items":{"$ref":"#/components/schemas/V1GetSupplierProductStatusResponse"}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}}}},"/v1/supplierProductResources/{supplierProductResourceId}/leadTime:translate":{"get":{"tags":["Production Time Translate"],"summary":"Resolve Lead Time","operationId":"v1getResolvedProductionTime","parameters":[{"name":"supplierProductResourceId","in":"path","description":"Supplier Product Resource Id","required":true,"schema":{"type":"string"}},{"name":"fulfillmentConfigurationUrl","in":"query","description":"Fulfillment Configuration Url","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"status of Prouduction Time resource","schema":{"type":"string","enum":["staged","current"],"default":"current"},"required":false},{"name":"productConfigurationUrl","in":"query","description":"Product Configuration Url","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Translated Production Time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionTimeResponse"}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"422":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}},"x-codegen-request-body-name":"body"},"post":{"tags":["Production Time Translate"],"summary":"Resolve Lead Time","operationId":"v1postResolveProductionTime","parameters":[{"name":"supplierProductResourceId","in":"path","description":"ResourceId for supplier product resource.","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"status of Supplier Data Mappings resource","schema":{"type":"string","enum":["staged","current"],"default":"current"},"required":false}],"requestBody":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1PostProductionTimeTranslate"}}}},"responses":{"200":{"description":"Created Supplier Data","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SupplierOutputAttribute"}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}},"x-codegen-request-body-name":"body"}},"/v1/supplierProductResources/{supplierProductResourceId}/supplierDataMapping:translate":{"get":{"tags":["Supplier Data Mapping Translate"],"summary":"Resolve supplier product resource","operationId":"resolveSupplierDataMappings","parameters":[{"name":"productConfigurationUrl","in":"query","description":"Product Configuration Url","required":true,"schema":{"type":"string"}},{"name":"supplierProductResourceId","in":"path","description":"ResourceId for supplier product resource.","required":true,"schema":{"type":"string"}},{"name":"fulfillmentConfigurationUrl","in":"query","description":"Fulfillment Configuration Url","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"status of Supplier Data Mappings resource","schema":{"type":"string","enum":["staged","current"],"default":"current"},"required":false}],"responses":{"200":{"description":"Created Supplier Data","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SupplierOutputAttribute"}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}},"x-codegen-request-body-name":"body"},"post":{"tags":["Supplier Data Mapping Translate"],"summary":"Resolve Supplier Data Mappings","operationId":"postTranslateProductionTime","parameters":[{"name":"supplierProductResourceId","in":"path","description":"ResourceId for supplier product resource.","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"status of Supplier Data Mappings resource","schema":{"type":"string","enum":["staged","current"],"default":"current"},"required":false}],"requestBody":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSupplierDataMappingTranslate"}}}},"responses":{"200":{"description":"Created Supplier Data","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SupplierOutputAttribute"}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}},"x-codegen-request-body-name":"body"}},"/v1/supplierProductResources/{supplierProductResourceId}/resolvedResource":{"get":{"tags":["Resolve"],"summary":"Resolve supplier product resource","operationId":"V1ResolveSupplierProductResource","parameters":[{"name":"supplierProductResourceId","in":"path","description":"Supplier Product Resource Id","required":true,"schema":{"type":"string"}},{"name":"productConfigurationUrl","in":"query","description":"Product Configuration Url","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Status of the Supplier Data Resource","required":false,"schema":{"type":"string","enum":["staged","current"]}},{"name":"fulfillmentConfigurationUrl","in":"query","description":"Fulfillment Configuration Url","required":true,"schema":{"type":"string"}},{"name":"resourceType","in":"query","description":"Resource Type","required":true,"schema":{"$ref":"#/components/schemas/V1ResourceType"}}],"responses":{"200":{"description":"Created Supplier Data","content":{"application/json":{"schema":{"type":"object","properties":{"supplierProductResourceId":{"type":"string"},"ruleId":{"type":"string"},"versionId":{"type":"string"},"resourceType":{"type":"string"},"resourceUrl":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}},"translate":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}}}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}},"x-codegen-request-body-name":"body"}},"/v1/supplierProductResources/{supplierProductResourceId}/resolve":{"get":{"tags":["Resolve"],"summary":"Resolve supplier product resource","operationId":"V1Resolve","parameters":[{"name":"supplierProductResourceId","in":"path","description":"Supplier Product Resource Id","required":true,"schema":{"type":"string"}},{"name":"productId","in":"query","description":"ProductId","required":false,"schema":{"type":"string"}},{"name":"productVersion","in":"query","description":"Product version","required":false,"schema":{"type":"string"}},{"name":"fulfillerId","in":"query","description":"Fulfiller Id","required":false,"schema":{"type":"string"}},{"name":"fulfillmentlocationId","in":"query","description":"Fulfillment Location Id","required":false,"schema":{"type":"string"}},{"name":"buyerAccountId","in":"query","description":"Buyer Account Id","required":false,"schema":{"type":"string"}},{"name":"serviceLevel","in":"query","description":"Service Level","required":false,"schema":{"type":"string"}},{"name":"exactMatch","in":"query","description":"when set to true does exact match for the given filters by excluding the default resources","required":false,"schema":{"type":"boolean","default":false}},{"name":"status","in":"query","description":"Status of the Supplier Data Resource","required":false,"schema":{"type":"string","enum":["staged","current"],"default":"current"}},{"name":"resourceType","in":"query","description":"Resource Type","required":true,"schema":{"$ref":"#/components/schemas/V1ResourceType"}}],"responses":{"200":{"description":"Created Supplier Data","content":{"application/json":{"schema":{"type":"object","properties":{"supplierProductResourceId":{"type":"string"},"ruleId":{"type":"string"},"versionId":{"type":"string"},"resourceType":{"type":"string"},"mappingResourceUrl":{"type":"string"},"conditions":{"type":"object","properties":{"productId":{"type":"string"},"productVersion":{"type":"string"},"fulfillerId":{"type":"string"},"fulfillmentLocationId":{"type":"string"},"serviceLevel":{"type":"string"},"buyerAccountId":{"type":"string"}}},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}},"translate":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}}}}}}}}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}},"x-codegen-request-body-name":"body"}},"/v1/availableInputs/{productId}":{"get":{"tags":["AvailableInputs"],"summary":"Get the list of available attributeinputs from supplier data and product.","parameters":[{"name":"productId","in":"path","description":"The product Id","required":true,"schema":{"type":"string"}},{"name":"productVersion","in":"query","description":"Product Version","schema":{"type":"string"}},{"name":"accountId","in":"query","description":"Account Id","required":true,"schema":{"type":"string"}},{"name":"fulfillerId","in":"query","description":"Fulfiller Id","schema":{"type":"string"}},{"name":"fulfillmentLocationId","in":"query","description":"Fulfillment Location Id","schema":{"type":"string"}},{"name":"serviceLevel","in":"query","description":"Service Level","schema":{"type":"string"}},{"name":"includeProductAttributes","in":"query","description":"Include product attributes in the available inputs","schema":{"type":"boolean","default":false}},{"name":"includeResourceAttributes","in":"query","description":"Resource types whose attributes should be included in the available inputs","schema":{"type":"string","enum":["supplierDataMapping","leadTime","skuConfiguration","serviceLevel","fulfillmentLocation","packs","fulfillmentDeliveryOption","expectations","capacity","supplierIntegration","cutOffTime","surface"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequiredInputsResponse"}},"text/json":{"schema":{"$ref":"#/components/schemas/RequiredInputsResponse"}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The request was not authenticated."},"403":{"description":"The request was authenticated, but the scope of authorization was insufficient to perform this operation."},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}}},"x-codegen-request-body-name":"body"}},"/livecheck":{"get":{"tags":["Livecheck"],"summary":"Runs a healthcheck to ensure that the service is running.","operationId":"getLivecheck","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"head":{"tags":["Livecheck"],"summary":"Runs a healthcheck to ensure that the service is running.","operationId":"headLivecheck","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"resourceType":{"type":"string","enum":["supplierDataMapping","productionTime","skuConfiguration"],"default":"supplierDataMapping"},"V1ResourceType":{"type":"string","enum":["supplierDataMapping","leadTime","skuConfiguration","serviceLevel","fulfillmentLocation","packs","fulfillmentDeliveryOption","expectations","capacity","supplierIntegration","cutOffTime","surface","supplierSku"],"default":"supplierDataMapping"},"GetSupplierProductStatusResponse":{"description":"Key value Evaluate response consisting PMD attribute resolution","type":"object","properties":{"ruleId":{"type":"string"},"ruleVersionId":{"type":"string"},"conditions":{"$ref":"#/components/schemas/ConditionMap"},"resourceType":{"type":"string"},"resourceUrl":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"version":{"type":"number"},"status":{"type":"string"}}},"V1GetSupplierProductStatusResponse":{"type":"object","properties":{"ruleId":{"type":"string"},"versionId":{"type":"string"},"conditions":{"$ref":"#/components/schemas/V1ConditionMap"},"resourceType":{"type":"string"},"resourceUrl":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"version":{"type":"number"},"status":{"type":"string"}}},"SupplierProductResourceVersions":{"type":"object","properties":{"ruleId":{"type":"string"},"versionId":{"type":"string"},"conditions":{"type":"object","properties":{"productId":{"type":"string"},"productVersion":{"type":"string"},"fulfillerId":{"type":"string"},"fulfillmentLocation":{"type":"string"},"serviceLevel":{"type":"string"},"buyerAccount":{"type":"string"}}},"version":{"type":"number"},"resourceType":{"$ref":"#/components/schemas/resourceType"},"resourceUrl":{"type":"string"},"status":{"type":"string","enum":["staged","current","archived","non_current"]},"draftVersionId":{"type":"string"},"Metadata":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}},"createdBy":{"type":"string"},"createdAt":{"type":"string"}}}}},"V1SupplierProductResourceVersions":{"type":"object","properties":{"ruleId":{"type":"string"},"versionId":{"type":"string"},"condition":{"type":"object","properties":{"productId":{"type":"string"},"productVersion":{"type":"string"},"fulfillerId":{"type":"string"},"fulfillmentLocationId":{"type":"string"},"serviceLevel":{"type":"string"},"buyerAccountId":{"type":"string"}}},"version":{"type":"number"},"resourceType":{"$ref":"#/components/schemas/V1ResourceType"},"resourceUrl":{"type":"string"},"status":{"type":"string","enum":["staged","current","archived","non_current"]},"draftVersionId":{"type":"string"},"Metadata":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}},"createdBy":{"type":"string"},"createdAt":{"type":"string"}}}}},"Metadata":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}}},"GetStatusResponse":{"description":"Key value Evaluate response consisting PMD attribute resolution","type":"object","properties":{"ruleId":{"type":"string"},"ruleVersionId":{"type":"string"},"productId":{"type":"string"},"productVersion":{"type":"string"},"conditions":{"type":"object"},"mappingResourceUrl":{"type":"string"},"includeProductAttributes":{"type":"boolean"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"version":{"type":"number"},"status":{"type":"string"}}},"SupplierMapping":{"type":"object","properties":{"supplierData":{"items":{"$ref":"#/components/schemas/SupplierDataAssignments"}}}},"SupplierAttribute":{"type":"object","properties":{"attributeName":{"type":"string"},"operator":{"type":"string"},"values":{"type":"array","description":"The list of values associated with an attributeKey","items":{"$ref":"#/components/schemas/SupplierValue"}}}},"SupplierDataAssignments":{"type":"object","properties":{"ruleId":{"type":"string"},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/ConditionMap"}},"version":{"type":"number"},"mappingResourceUrl":{"type":"string"},"includeProductAttributes":{"type":"boolean"},"status":{"type":"string","enum":["staged","current"]},"draftVersionId":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"metadata":{"type":"object","properties":{"createdAt":{"type":"string"},"createdBy":{"type":"string"}}}}},"SupplierDataResources":{"type":"object","properties":{"supplierDataResourceId":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}},"translate":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}}}}}},"SupplierProductResources":{"type":"object","properties":{"supplierProductResourceId":{"type":"string"},"accountId":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}}}}}},"RuleData":{"type":"object","properties":{"ruleId":{"type":"string"},"ruleVersionId":{"type":"string"},"status":{"type":"string"}}},"VersionRecord":{"type":"object","properties":{"versionId":{"type":"string"},"isCurrent":{"type":"boolean"},"isDraft":{"type":"boolean"},"includeProductAttributes":{"type":"boolean"},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"}}}}}}},"LinksHal":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"}}},"translate":{"type":"object","properties":{"href":{"type":"string"}}}}},"SupplierProductResourceVersionRecord":{"type":"object","properties":{"ruleVersionId":{"type":"string"},"status":{"type":"string"},"metadata":{"$ref":"#/components/schemas/Metadata"},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"_links":{"$ref":"#/components/schemas/LinksHal"}}},"V1SupplierProductResourceVersionRecord":{"type":"object","properties":{"versionId":{"type":"string"},"status":{"type":"string"},"metadata":{"$ref":"#/components/schemas/Metadata"},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"_links":{"$ref":"#/components/schemas/LinksHal"}}},"CreateSupplierData":{"type":"object","properties":{"supplierData":{"type":"array","items":{"$ref":"#/components/schemas/PatchSupplierData"}}}},"PatchSupplierData":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/ConditionMap"}},"mappingResource":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"includeProductAttributes":{"type":"boolean"}}},"UpdateStatusData":{"type":"object","properties":{"ruleVersionId":{"type":"string"}}},"ConditionMap":{"type":"object","example":{"productId":"CIM-PFH34DE3","productVersion":"1","fulfiller":"*","fulfillmentLocation":"*","buyerAccount":"*","serviceLevel":"*"}},"V1ConditionMap":{"type":"object","example":{"productId":"CIM-PFH34DE3","productVersion":"1","fulfiller":"*","fulfillmentLocationId":"*","buyerAccountId":"*","serviceLevel":"*"}},"SupplierOutputAttribute":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"unitOfMeasure":{"type":"string"}}},"MapperInputAttribute":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"TranslationBase":{"type":"object","properties":{"sourceElements":{"type":"array","items":{"$ref":"#/components/schemas/MapperInputAttribute"}}}},"ProductAndSupplierAttributeModel":{"required":["key","source","value"],"type":"object","properties":{"class":{"type":"string","description":"The name of class"},"subClass":{"type":"string","description":"subClass"},"key":{"type":"string","description":"The name of this attribute"},"value":{"type":"string","description":"The value for this attribute."},"unitOfMeasure":{"type":"string","description":"The unit of measure for this attribute."},"source":{"type":"string","description":"Source of the attribute.","enum":["productManufacturingData","productConfiguration.attributes","productConfiguration.variables"]}},"description":"Merged Product and Supplier Attributes."},"SupplierMcpAttributeDependency":{"required":["supplierAttributeKey"],"type":"object","properties":{"supplierAttributeKey":{"type":"string"},"mcpAttributeKeys":{"type":"array","items":{"type":"string"}}},"description":"Supplier to MCP attribute"},"KeyValueModel":{"required":["attributeName"],"type":"object","properties":{"attributeName":{"type":"string"},"attributeValue":{"type":"string"}},"description":"Key-value map of the attribute name and selected value."},"SupplierDataVersion":{"type":"object","properties":{"version":{"type":"number"},"accountId":{"type":"string"},"versionId":{"type":"string"},"href":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}},"translate":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}}}}},"description":"supplier data version"},"SupplierValue":{"required":["type"],"type":"object","properties":{"type":{"type":"string","description":"The type of specification, driving how this specification should be interpreted.","enum":["formula","numberLiteral","range","stringLiteral"]},"stringLiteral":{"type":"string","description":"A single string value, used when type is 'stringLiteral'."},"numberLiteral":{"type":"string","description":"A single numeric value, used when type is 'numberLiteral'."},"formula":{"type":"string","description":"A formula that calculates a value, used when type is 'formula'."}},"description":"Specifies value(s) for a constraint or attribute."},"Condition":{"type":"object","properties":{"productId":{"type":"string","description":"fulfiller product id."},"productVersion":{"type":"string","description":"fulfiller product version."},"fulfillerId":{"type":"string","description":"fulfiller id."},"fulfillmentLocation":{"type":"string","description":"fulfiller's plant location."},"buyerAccount":{"type":"string","description":"buyer account id."},"serviceLevel":{"type":"string","description":"fulfillment configuration url."}},"additionalProperties":false},"V1Condition":{"type":"object","properties":{"productId":{"type":"string","description":"fulfiller product id."},"productVersion":{"type":"string","description":"fulfiller product version."},"fulfillerId":{"type":"string","description":"fulfiller id."},"fulfillmentLocationId":{"type":"string","description":"fulfiller's plant location."},"buyerAccountId":{"type":"string","description":"buyer account id."},"serviceLevel":{"type":"string","description":"fulfillment configuration url."}},"additionalProperties":false},"CreateSupplierProductResource":{"type":"object","properties":{"accountId":{"type":"string","description":"supplier/business account id."}},"required":["accountId"]},"PatchSupplierProductResource":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/Condition"},"resourceType":{"$ref":"#/components/schemas/resourceType"},"resourceUrl":{"type":"string","description":"supplier resource url for given resourceType."},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["resourceType","resourceUrl"]},"AppendMappingRulesRangeValue":{"type":"object","required":["minimum","increment"],"properties":{"minimum":{"type":"number","description":"Inclusive start of the range"},"maximum":{"type":"number","description":"Inclusive end of the range"},"increment":{"type":"number","description":"Step size between values in the range"}}},"AppendMappingRulesConditionAttribute":{"oneOf":[{"$ref":"#/components/schemas/AppendMappingRulesConditionAttributeString"},{"$ref":"#/components/schemas/AppendMappingRulesConditionAttributeNumber"}],"discriminator":{"propertyName":"type","mapping":{"string":"#/components/schemas/AppendMappingRulesConditionAttributeString","number":"#/components/schemas/AppendMappingRulesConditionAttributeNumber"}}},"AppendMappingRulesConditionAttributeString":{"type":"object","required":["key","type","values","operator"],"properties":{"key":{"type":"string","description":"Product attribute key used as condition"},"type":{"type":"string","enum":["string"],"description":"String attribute type"},"values":{"type":"array","description":"Values must be string type","items":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","enum":["string"]},"value":{"type":"string"}}}},"operator":{"type":"string","enum":["is","isNot","isGreaterThan","isLessThan","isLessThanEqualTo","isGreaterThanEqualTo"],"description":"Comparison operator"}}},"AppendMappingRulesConditionAttributeNumber":{"type":"object","required":["key","type","values","operator"],"properties":{"key":{"type":"string","description":"Product attribute key used as condition"},"type":{"type":"string","enum":["number"],"description":"Number attribute type"},"values":{"type":"array","description":"Values can be range or number","items":{"oneOf":[{"$ref":"#/components/schemas/AppendMappingRulesConditionAttributeNumberValueRange"},{"$ref":"#/components/schemas/AppendMappingRulesConditionAttributeNumberValueNumber"}]}},"operator":{"type":"string","enum":["is","isNot","isGreaterThan","isLessThan","isLessThanEqualTo","isGreaterThanEqualTo"],"description":"Comparison operator"}}},"AppendMappingRulesConditionAttributeNumberValueRange":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","enum":["range"]},"value":{"$ref":"#/components/schemas/AppendMappingRulesRangeValue"}}},"AppendMappingRulesConditionAttributeNumberValueNumber":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","enum":["number"],"description":"Declares a numeric condition value type"},"value":{"type":"string","description":"Numeric condition value passed as a string (for example, \"1\")"}}},"AppendMappingRulesTargetAttribute":{"oneOf":[{"$ref":"#/components/schemas/AppendMappingRulesTargetAttributeString"},{"$ref":"#/components/schemas/AppendMappingRulesTargetAttributeNumber"},{"$ref":"#/components/schemas/AppendMappingRulesTargetAttributeFormula"}],"discriminator":{"propertyName":"type","mapping":{"string":"#/components/schemas/AppendMappingRulesTargetAttributeString","number":"#/components/schemas/AppendMappingRulesTargetAttributeNumber","formula":"#/components/schemas/AppendMappingRulesTargetAttributeFormula"}}},"AppendMappingRulesTargetAttributeString":{"type":"object","required":["key","type","value"],"properties":{"key":{"type":"string","description":"Supplier data attribute key to set"},"type":{"type":"string","enum":["string"],"description":"String type attribute"},"value":{"type":"string","description":"String value for the supplier data attribute"}}},"AppendMappingRulesTargetAttributeNumber":{"type":"object","required":["key","type","value"],"properties":{"key":{"type":"string","description":"Supplier data attribute key to set"},"type":{"type":"string","enum":["number"],"description":"Number type attribute"},"value":{"type":"string","description":"Numeric value for the supplier data attribute, passed as a string (for example, \"1\")"}}},"AppendMappingRulesTargetAttributeFormula":{"type":"object","required":["key","type","value"],"properties":{"key":{"type":"string","description":"Supplier data attribute key to set"},"type":{"type":"string","enum":["formula"],"description":"Formula type attribute"},"value":{"type":"string","description":"Formula string for the supplier data attribute"}}},"AppendMappingRule":{"type":"object","required":["conditionAttributes","targetAttributes"],"properties":{"isDirect":{"type":"boolean","description":"Set isDirect to true to create a direct mappings."},"conditionAttributes":{"type":"array","description":"Product attribute conditions that must be satisfied for this rule to apply. Empty array means the rule is static (always applies).","items":{"$ref":"#/components/schemas/AppendMappingRulesConditionAttribute"}},"targetAttributes":{"type":"array","minItems":1,"maxItems":1,"description":"Supplier data attributes to set when conditions are met","items":{"$ref":"#/components/schemas/AppendMappingRulesTargetAttribute"}}}},"AppendMappingRulesCondition":{"allOf":[{"$ref":"#/components/schemas/V1Condition"},{"type":"object","required":["productId"]}]},"AppendMappingRulesRequest":{"type":"object","required":["resourceType","conditions","mappingRules"],"properties":{"resourceType":{"$ref":"#/components/schemas/V1ResourceType"},"conditions":{"$ref":"#/components/schemas/AppendMappingRulesCondition"},"mappingRules":{"type":"array","minItems":1,"description":"One or more mapping rules to append. Static rules use an empty conditionAttributes array; conditional rules provide one or more conditionAttributes. Set isDirect to true to create direct mappings.","items":{"$ref":"#/components/schemas/AppendMappingRule"}}},"example":{"resourceType":"string","conditions":{"productId":"string","productVersion":"string","fulfillerId":"string","fulfillmentLocationId":"string","buyerAccountId":"string","serviceLevel":"string"},"mappingRules":[{"conditionAttributes":[],"targetAttributes":[{"key":"BusinessProductId","type":"string","value":"BP-12345"}]},{"conditionAttributes":[{"key":"Brand","type":"string","values":[{"type":"string","value":"FlexFit"},{"type":"string","value":"BoldFit"}],"operator":"is"}],"targetAttributes":[{"key":"productVariantId","type":"string","value":"CIM-6MAM2QKG_1"}]},{"isDirect":true,"conditionAttributes":[{"key":"Trim Height","type":"string","operator":"is","values":[{"type":"string","value":"*"}]}],"targetAttributes":[{"key":"Trim Height","type":"string","value":"#{Trim Height}"}]},{"conditionAttributes":[{"key":"Trim Height Length","type":"number","operator":"is","values":[{"type":"range","value":{"minimum":1,"maximum":10,"increment":1}}]}],"targetAttributes":[{"key":"Deco Trim Type","type":"string","value":"Large"}]}]}},"AppendMappingRulesResponse":{"type":"object","properties":{"resourceType":{"type":"string","description":"Resource type of the updated rule"},"conditions":{"$ref":"#/components/schemas/V1Condition"},"ruleId":{"type":"string","description":"Identifier of the Supplier Data rule whose version was updated"},"ruleVersionId":{"type":"string","description":"ID of the newly created rule version (now current)"},"status":{"type":"string","description":"Status of the new rule version"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"}}},"mappingVersion":{"type":"object","description":"Direct link to the newly created Mapper mapping version","properties":{"href":{"type":"string","example":"https://api.mapper.cimpress.io/v1/mappings/{mappingId}/versions/{versionId}"}}}}}}},"V1PatchSupplierProductResource":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/V1Condition"},"resourceType":{"$ref":"#/components/schemas/V1ResourceType"},"resourceUrl":{"type":"string","description":"supplier resource url for given resourceType."},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["resourceType","resourceUrl"]},"V1CarryOverSupplierProductResource":{"type":"object","properties":{"resource":{"type":"object","properties":{"version":{"type":"integer","format":"int32"},"productId":{"type":"string"}}}}},"MigrateStaticTranslation":{"type":"object","properties":{"productId":{"type":"string"},"accountId":{"type":"string"},"translationAttributes":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Name of the attribute."},"value":{"type":"string","description":"Value of the attribute."}}}}},"required":["productId","accountId","translationAttributes"]},"PostSupplierDataMappingTranslate":{"type":"object","properties":{"sourceElements":{"type":"array","items":{"$ref":"#/components/schemas/MapperInputAttribute"}}}},"PostProductionTimeTranslate":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/Condition"},"selections":{"$ref":"#/components/schemas/Selections"}}},"V1PostProductionTimeTranslate":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/V1Condition"},"selections":{"$ref":"#/components/schemas/Selections"}}},"ProductionTimeResponse":{"type":"object","required":["time","unit"],"properties":{"time":{"type":"integer","format":"int32","minimum":0},"unit":{"type":"string","enum":["DD","HH"]}}},"Selections":{"type":"object","additionalProperties":{"type":"string"},"example":{"Finish":"No Finish","Weight":"90 g"}},"Links":{"type":"object","required":["self"],"properties":{"self":{"$ref":"#/components/schemas/Link"}}},"Link":{"type":"object","properties":{"href":{"type":"string"}}},"ErrorResponse":{"required":["logEventId","message"],"type":"object","additionalProperties":false,"properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}},"CreateSupplierProductResourceResponse":{"type":"object","properties":{"supplierProductResourceId":{"type":"string"}}},"PatchSupplierProductResourceResponse":{"type":"object","additionalProperties":false,"properties":{"accountId":{"type":"string","description":"supplier/business account id."},"supplierProductResourceId":{"type":"string","description":"supplierProductResourceId."},"ruleId":{"type":"string","description":"the ruleId is the identifier  of the condition, against which a resource is set."},"ruleVersionId":{"type":"string","description":"version of the rule."},"ruleStatus":{"type":"string","description":"status of the rule."},"_links":{"$ref":"#/components/schemas/LinksHal"}}},"V1PatchSupplierProductResourceResponse":{"type":"object","additionalProperties":false,"properties":{"accountId":{"type":"string","description":"supplier/business account id."},"supplierProductResourceId":{"type":"string","description":"supplierProductResourceId."},"ruleId":{"type":"string","description":"the ruleId is the identifier  of the condition, against which a resource is set."},"versionId":{"type":"string","description":"version of the rule."},"status":{"type":"string","description":"status of the rule."},"_links":{"$ref":"#/components/schemas/LinksHal"}}},"V1CarryOverSupplierProductResourceResponse":{"type":"object","properties":{"message":{"type":"string"}}},"RequiredInputsResponse":{"required":["inputs"],"type":"object","properties":{"inputs":{"type":"array","items":{"$ref":"#/components/schemas/InputDefinition"}}},"additionalProperties":false},"InputDefinition":{"oneOf":[{"$ref":"#/components/schemas/StringInputDefinition"},{"$ref":"#/components/schemas/NumericInputDefinition"}],"discriminator":{"propertyName":"type"}},"AvailableInputScope":{"type":"string","enum":["supplierDataMapping","product","leadTime","skuConfiguration","serviceLevel","fulfillmentLocation","packs","fulfillmentDeliveryOption","expectations","capacity","supplierIntegration","cutOffTime","surface"],"default":"supplierDataMapping"},"StringInputDefinition":{"required":["name","scope","type","values"],"type":"object","properties":{"name":{"type":"string"},"scope":{"$ref":"#/components/schemas/AvailableInputScope"},"type":{"type":"string","enum":["string"]},"values":{"type":"array","items":{"$ref":"#/components/schemas/StringLiteralInputValue"}}},"additionalProperties":false},"NumericInputDefinition":{"required":["name","scope","type","values"],"type":"object","properties":{"name":{"type":"string"},"scope":{"$ref":"#/components/schemas/AvailableInputScope"},"type":{"type":"string","enum":["numeric"]},"values":{"type":"array","items":{"$ref":"#/components/schemas/NumericInputValue"}}},"additionalProperties":false},"InputType":{"enum":["string","numeric"],"type":"string"},"InputValue":{"oneOf":[{"$ref":"#/components/schemas/StringLiteralInputValue"},{"$ref":"#/components/schemas/NumericInputValue"}],"discriminator":{"propertyName":"type"}},"NumericInputValue":{"oneOf":[{"$ref":"#/components/schemas/NumberLiteralInputValue"},{"$ref":"#/components/schemas/RangeInputValue"},{"$ref":"#/components/schemas/FormulaInputValue"}],"discriminator":{"propertyName":"type"}},"StringLiteralInputValue":{"required":["type","stringLiteral"],"type":"object","properties":{"type":{"type":"string","enum":["stringLiteral"]},"stringLiteral":{"type":"string"}},"additionalProperties":false},"NumberLiteralInputValue":{"required":["type","numberLiteral"],"type":"object","properties":{"type":{"type":"string","enum":["numberLiteral"]},"numberLiteral":{"type":"string"}},"additionalProperties":false},"RangeInputValue":{"required":["type","range"],"type":"object","properties":{"type":{"type":"string","enum":["range"]},"range":{"$ref":"#/components/schemas/InputRange"}},"additionalProperties":false},"FormulaInputValue":{"required":["type","formula"],"type":"object","properties":{"type":{"type":"string","enum":["formula"]},"formula":{"type":"string"}},"additionalProperties":false},"InputRange":{"type":"object","properties":{"minimum":{"type":"string","nullable":true},"maximum":{"type":"string","nullable":true},"increment":{"type":"string","nullable":true}},"additionalProperties":false}},"responses":{"CreatedSupplierDataResponse":{"description":"Created Supplier Data","content":{"*/*":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"supplierDataResourceId":{"type":"string"},"supplierDataVersionId":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}},"translate":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}}}}}}}}},"ResolveSupplierDataResponse":{"description":"Resolve Supplier Data Response Model","content":{"*/*":{"schema":{"type":"object","properties":{"supplierProductResourceId":{"type":"string"},"ruleId":{"type":"string"},"ruleVersion":{"type":"string"},"resourceType":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}},"translate":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"}}}}}}}}}},"ErrorResponseModel":{"description":"Error Response Model","content":{"*/*":{"schema":{"required":["logEventId","message"],"type":"object","properties":{"message":{"type":"string"},"logEventId":{"type":"string"},"details":{"type":"object","properties":{}}}}}}},"ProductAndSupplierAttributesResponse":{"description":"Attributes","content":{"*/*":{"schema":{"type":"object","properties":{"attributes":{"type":"array","items":{"$ref":"#/components/schemas/ProductAndSupplierAttributeModel"}}}}}}},"SupplierAttributeMcpDependencyResponse":{"description":"Supplier to MCP attribute dependency.","content":{"*/*":{"schema":{"type":"object","properties":{"attributesDependencies":{"type":"array","items":{"$ref":"#/components/schemas/SupplierMcpAttributeDependency"}}}}}}},"SupplierAttributeModelResponse":{"description":"Supplier Data.","content":{"*/*":{"schema":{"type":"object","properties":{"count":{"type":"number"},"total":{"type":"number"},"supplierDataMappings":{"type":"array","items":{"$ref":"#/components/schemas/SupplierDataAssignments"}}}}}}},"SupplierAttributeResolveResponse":{"description":"Supplier attributes.","content":{"*/*":{"schema":{"type":"object","properties":{"supplierAttributes":{"type":"object","properties":{}}}}}}},"SupplierAttributeResponse":{"description":"Supplier data attributes.","content":{"*/*":{"schema":{"type":"object","properties":{"attributes":{"type":"array","items":{"$ref":"#/components/schemas/SupplierAttribute"}}}}}}},"SupplierDataVersionsResponse":{"description":"Key value Evaluate response consisting PMD attribute resolution","content":{"*/*":{"schema":{"type":"object","properties":{"count":{"type":"number"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SupplierDataVersion"}}}}}}},"TranslateOutputResponse":{"description":"Translate Response","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SupplierOutputAttribute"}}}}},"ValidateAttributeModelResponse":{"description":"Key value Evaluate response consisting PMD attribute resolution","content":{"*/*":{"schema":{"type":"object","example":{"Finish":"No Finish","Weight":"90 g"}}}}},"ValidateMultiOutputAttributeModelResponse":{"description":"Key value Evaluate response consisting PMD attribute resolution","content":{"*/*":{"schema":{"type":"object","example":{"Finish":["No Finish","Matte"],"Weight":["90 g","50 g"]}}}}}},"securitySchemes":{"auth0":{"type":"oauth2","description":"Authentication with Auth0","flows":{"implicit":{"authorizationUrl":"https://cimpress.auth0.com/authorize","scopes":{}}}}}}}