{"openapi":"3.0.1","info":{"title":"Importer mapping","description":"Importer mapping.","termsOfService":"https://developer.cimpress.io/legal/api-terms-of-service","contact":{"name":"Garuda Squad","email":"ctgarudasquad@cimpress.com"},"version":"0"},"servers":[{"url":"/"}],"security":[{"auth0":[]},{"cimpressAccessToken":[]}],"tags":[{"name":"Healthcheck","description":"API to determine the health of the service."},{"name":"Jobs","description":"API to create mappings from compressed data."}],"paths":{"/v0/jobs":{"post":{"tags":["Jobs"],"requestBody":{"description":"Start the job to create mappings from compressed data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}}},"deprecated":true,"x-codegen-request-body-name":"job"}},"/v0/jobs/{jobId}":{"get":{"tags":["Jobs"],"parameters":[{"name":"jobId","in":"path","description":"A unique identifier representing the job.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStatus"}}}}},"deprecated":true}},"/v0/uploadCsv":{"get":{"tags":["UploadCSV"],"parameters":[{"name":"fileName","in":"query","description":"name of the csv file without extension","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCsvResponse"}}}}}}},"/v1/jobs":{"post":{"tags":["Jobs"],"requestBody":{"description":"Start the job to create mappings from compressed/csv data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequestV2"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponseV2"}}}}},"x-codegen-request-body-name":"job"}},"/v1/jobs/{jobId}":{"get":{"tags":["Jobs"],"parameters":[{"name":"jobId","in":"path","description":"A unique identifier representing the job.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStatusV2"}}}}}}},"/v1/enums/jobStatuses":{"get":{"tags":["Enum"],"summary":"Get all jobStatuses.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnumJobResponse"}}}}}}},"/v1/enums/domains":{"get":{"tags":["Enum"],"summary":"Get all domains.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnumDomainResponse"}}}}}}},"/v1/domainConfiguration":{"get":{"tags":["Configuration"],"summary":"Get all domain configuration.","parameters":[{"name":"targetDomain","in":"query","description":"Target domain to get domain configuration","schema":{"type":"string","enum":["LeadTimes","Manufacturing","FCProductLink"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/domainConfigurationResponse"}}}}}}},"/livecheck":{"head":{"tags":["Healthcheck"],"summary":"Performs a healthcheck on the service","responses":{"200":{"description":"The service is healthy","content":{"application/json":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"percentageComplete":{"type":"number"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"}}},"preview":{"type":"object","properties":{"href":{"type":"string"}}}}},"error":{"type":"object","properties":{"message":{"type":"string"},"clientResponse":{"type":"string"},"serviceName":{"type":"string"},"additionalData":{"type":"object","properties":{}}}},"metaData":{"type":"object","properties":{}}}},"JobStatusV2":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"percentageComplete":{"type":"number"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"}}},"preview":{"type":"object","properties":{"href":{"type":"string"}}},"csvFileUrl":{"type":"object","properties":{"href":{"type":"string"}}}}},"error":{"type":"object","properties":{"message":{"type":"string"},"clientResponse":{"type":"string"},"serviceName":{"type":"string"},"additionalData":{"type":"object","properties":{}}}},"metaData":{"type":"object","properties":{}}}},"JobRequest":{"type":"object","properties":{"s3FileInputUrl":{"type":"string"},"processOptions":{"type":"object","properties":{"referenceProduct":{"type":"object","properties":{"productId":{"type":"string"},"version":{"type":"string"}}},"targetDomain":{"type":"string","enum":["LeadTimes","Manufacturing"]},"labels":{"type":"array","items":{"type":"string"}},"attributesMetadata":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}}}}}}}},"JobResponse":{"type":"object","properties":{"jobId":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"}}}}},"percentageComplete":{"type":"number"},"s3FileInputUrl":{"type":"string"},"processOptions":{"type":"object","properties":{"labels":{"type":"array","items":{"type":"string"}},"referenceProduct":{"type":"object","properties":{"productId":{"type":"string"},"version":{"type":"string"}}},"targetDomain":{"type":"string","enum":["LeadTimes","Manufacturing"]},"attributesMetadata":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}}}}}}}},"JobRequestV1":{"type":"object","properties":{"accountId":{"type":"string"},"s3FileInputUrl":{"type":"string"},"processOptions":{"type":"object","properties":{"referenceProduct":{"type":"object","properties":{"productId":{"type":"string"},"version":{"type":"string"}}},"nonProductConditions":{"type":"object","properties":{"fulfillmentConfigurationId":{"type":"string"},"buyerAccounts":{"type":"array","items":{"type":"string"}}}},"targetDomain":{"type":"string","enum":["LeadTimes","Manufacturing","FCProductLink"]},"status":{"type":"string","description":"Only supported for Manufacturing targetDomain. Defaults to 'staged' if not provided.","enum":["staged","current"]},"labels":{"type":"array","items":{"type":"string"}},"attributesMetadata":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}}}}}}}},"JobRequestV2":{"type":"object","properties":{"accountId":{"type":"string"},"s3FileInputUrl":{"type":"string"},"processOptions":{"type":"object","properties":{"referenceProduct":{"type":"object","properties":{"productId":{"type":"string"},"version":{"type":"string"}}},"nonProductConditions":{"type":"object","properties":{"fulfillmentConfigurationId":{"type":"string"},"buyerAccounts":{"type":"array","items":{"type":"string"}}}},"targetDomain":{"type":"string","enum":["LeadTimes","Manufacturing","FCProductLink"]},"status":{"type":"string","description":"Only supported for Manufacturing targetDomain. Defaults to 'staged' if not provided.","enum":["staged","current"]},"labels":{"type":"array","items":{"type":"string"}},"attributesMetadata":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"type":{"type":"string"}}}}}}}},"UploadCsvResponse":{"type":"object","properties":{"fileKey":{"type":"string"},"preSignedURLInfo":{"type":"object","properties":{"preSignedURL":{"type":"string"},"expires":{"type":"string"},"authorizedAction":{"type":"string"},"s3Uri":{"type":"string"}}}}},"JobResponseV1":{"type":"object","properties":{"jobId":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"}}}}},"percentageComplete":{"type":"number"},"accountId":{"type":"string"},"s3FileInputUrl":{"type":"string"},"processOptions":{"type":"object","properties":{"labels":{"type":"array","items":{"type":"string"}},"referenceProduct":{"type":"object","properties":{"productId":{"type":"string"},"version":{"type":"string"}}},"nonProductConditions":{"type":"object","properties":{"fulfillmentConfigurationId":{"type":"string"},"buyerAccounts":{"type":"array","items":{"type":"string"}}}},"targetDomain":{"type":"string","enum":["LeadTimes","Manufacturing","FCProductLink"]},"attributesMetadata":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}}}}}}}},"JobResponseV2":{"type":"object","properties":{"jobId":{"type":"string"},"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string"}}},"csvFileUrl":{"type":"object","properties":{"href":{"type":"string"}}}}},"percentageComplete":{"type":"number"},"accountId":{"type":"string"},"s3FileInputUrl":{"type":"string"},"processOptions":{"type":"object","properties":{"labels":{"type":"array","items":{"type":"string"}},"referenceProduct":{"type":"object","properties":{"productId":{"type":"string"},"version":{"type":"string"}}},"nonProductConditions":{"type":"object","properties":{"fulfillmentConfigurationId":{"type":"string"},"buyerAccounts":{"type":"array","items":{"type":"string"}}}},"targetDomain":{"type":"string","enum":["LeadTimes","Manufacturing","FCProductLink"]},"attributesMetadata":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"type":{"type":"string"}}}}}}}},"EnumJobResponse":{"type":"array","items":{"type":"string"}},"EnumDomainResponse":{"type":"array","items":{"type":"string"}},"domainConfigurationResponse":{"type":"array","items":{"type":"object","properties":{"targetDomain":{"type":"string","enum":["LeadTimes","Manufacturing","FCProductLink"]},"inputDomains":{"type":"array","items":{"type":"string"}}}}}},"securitySchemes":{"auth0":{"type":"oauth2","description":"Authentication with Auth0.","flows":{"implicit":{"authorizationUrl":"https://cimpress.auth0.com","scopes":{}}}},"cimpressAccessToken":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://oauth.cimpress.io/authorize","scopes":{}}}}}},"x-original-swagger-version":"2.0"}