{
 "openapi": "3.0.1",
 "info": {
  "title": "Oferty Erli API",
  "version": "2026-10-08",
  "description": "Wystawianie i zarządzanie ofertami na Erli na podstawie produktów z PIM.\n\nAdres bazowy: `https://{instancja}-sales-offers-erli-api.enterprise.sellrocket.pl` — `{instancja}` to nazwa Twojej instancji Sellrocket, którą otrzymasz przy jej uruchomieniu.\n\nWszystkie żądania wymagają nagłówka `Authorization: Bearer <token>` — zobacz [Uwierzytelnianie](../../start/uwierzytelnianie/).\n\n**Specyfikacja OpenAPI:** [oferty-erli.json](../../specs/oferty-erli.json) — do importu w Postmanie/Insomnii lub generowania klienta."
 },
 "servers": [
  {
   "url": "https://{instancja}-sales-offers-erli-api.enterprise.sellrocket.pl",
   "variables": {
    "instancja": {
     "default": "twoja-instancja",
     "description": "Nazwa Twojej instancji Sellrocket"
    }
   }
  }
 ],
 "tags": [
  {
   "name": "Połączenia"
  },
  {
   "name": "Oferty"
  },
  {
   "name": "Produkty z PIM"
  },
  {
   "name": "Katalog Erli"
  }
 ],
 "paths": {
  "/api/Connections/GetAllConnections": {
   "get": {
    "tags": [
     "Połączenia"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ConnectionResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ConnectionResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ConnectionResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "get-connections-getallconnections",
    "summary": "Pobierz połączenia Erli",
    "description": "Lista połączeń (kont) Erli skonfigurowanych w instancji."
   }
  },
  "/api/Connections/GetConnection/{connectionId}": {
   "get": {
    "tags": [
     "Połączenia"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-connections-getconnection-connectionid",
    "summary": "Pobierz połączenie Erli po ID",
    "description": "Szczegóły i ustawienia ofertowania jednego połączenia Erli."
   }
  },
  "/api/Connections/UpdateConnectionSettings": {
   "put": {
    "tags": [
     "Połączenia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateConnectionSettingsRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateConnectionSettingsRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateConnectionSettingsRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-connections-updateconnectionsettings",
    "summary": "Zaktualizuj ustawienia połączenia",
    "description": "Zmienia ustawienia ofertowania dla połączenia Erli."
   }
  },
  "/api/ErliCatalog/GetCategoryAttributes": {
   "get": {
    "tags": [
     "Katalog Erli"
    ],
    "parameters": [
     {
      "name": "ConnectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "CategoryId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ErliCategoryAttributeResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ErliCategoryAttributeResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ErliCategoryAttributeResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "get-erlicatalog-getcategoryattributes",
    "summary": "Pobierz atrybuty kategorii Erli",
    "description": "Atrybuty (parametry) wymagane i opcjonalne dla wybranej kategorii Erli."
   }
  },
  "/api/ErliCatalog/GetDeliveryPriceLists": {
   "get": {
    "tags": [
     "Katalog Erli"
    ],
    "parameters": [
     {
      "name": "ConnectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ErliDeliveryPriceListResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ErliDeliveryPriceListResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ErliDeliveryPriceListResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "get-erlicatalog-getdeliverypricelists",
    "summary": "Pobierz cenniki dostaw Erli",
    "description": "Cenniki dostaw dostępne na koncie Erli — do przypisania w ofercie."
   }
  },
  "/api/ErliCatalog/SearchCategories": {
   "get": {
    "tags": [
     "Katalog Erli"
    ],
    "parameters": [
     {
      "name": "ConnectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "SearchTerm",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/SearchCategoriesResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SearchCategoriesResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/SearchCategoriesResponse"
        }
       }
      }
     }
    },
    "operationId": "get-erlicatalog-searchcategories",
    "summary": "Wyszukaj kategorie Erli",
    "description": "Wyszukiwanie kategorii w drzewie kategorii Erli."
   }
  },
  "/api/Offers/CancelMarketplaceOfferImport": {
   "post": {
    "tags": [
     "Oferty"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CancelMarketplaceOfferImportRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CancelMarketplaceOfferImportRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CancelMarketplaceOfferImportRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/CancelMarketplaceOfferImportResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CancelMarketplaceOfferImportResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/CancelMarketplaceOfferImportResponse"
        }
       }
      }
     }
    },
    "operationId": "post-offers-cancelmarketplaceofferimport",
    "summary": "Anuluj import ofert z Erli",
    "description": "Przerywa trwający import istniejących ofert z Erli."
   }
  },
  "/api/Offers/EndOffers": {
   "post": {
    "tags": [
     "Oferty"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/EndOffersRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/EndOffersRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/EndOffersRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/OfferActionResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OfferActionResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/OfferActionResponse"
        }
       }
      }
     }
    },
    "operationId": "post-offers-endoffers",
    "summary": "Zakończ oferty",
    "description": "Kończy wskazane oferty na Erli."
   }
  },
  "/api/Offers/GetMarketplaceOfferImportDetails": {
   "get": {
    "tags": [
     "Oferty"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "importId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "result",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/OfferImportDetailResult"
        }
       ]
      }
     },
     {
      "name": "search",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/MarketplaceOfferImportDetailsResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MarketplaceOfferImportDetailsResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/MarketplaceOfferImportDetailsResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-offers-getmarketplaceofferimportdetails",
    "summary": "Pobierz szczegóły importu ofert",
    "description": "Postęp i wynik importu ofert z Erli."
   }
  },
  "/api/Offers/GetMarketplaceOfferImports": {
   "get": {
    "tags": [
     "Oferty"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "skip",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "take",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/MarketplaceOfferImportsPageResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MarketplaceOfferImportsPageResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/MarketplaceOfferImportsPageResponse"
        }
       }
      }
     }
    },
    "operationId": "get-offers-getmarketplaceofferimports",
    "summary": "Pobierz listę importów ofert",
    "description": "Historia importów istniejących ofert z Erli."
   }
  },
  "/api/Offers/GetOffers": {
   "get": {
    "tags": [
     "Oferty"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "statuses",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "$ref": "#/components/schemas/OfferStatus"
       }
      }
     },
     {
      "name": "skip",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "take",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/OffersPageResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OffersPageResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/OffersPageResponse"
        }
       }
      }
     }
    },
    "operationId": "get-offers-getoffers",
    "summary": "Pobierz listę ofert",
    "description": "Oferty Erli powiązane z produktami w Sellrocket, z filtrowaniem i stronicowaniem."
   }
  },
  "/api/Offers/RelistOffers": {
   "post": {
    "tags": [
     "Oferty"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/RelistOffersRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/RelistOffersRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/RelistOffersRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/OfferActionResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OfferActionResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/OfferActionResponse"
        }
       }
      }
     }
    },
    "operationId": "post-offers-relistoffers",
    "summary": "Wznów oferty",
    "description": "Ponownie wystawia zakończone oferty na Erli."
   }
  },
  "/api/Offers/RetryOffers": {
   "post": {
    "tags": [
     "Oferty"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/RetryOffersRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/RetryOffersRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/RetryOffersRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/RetryOffersResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RetryOffersResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/RetryOffersResponse"
        }
       }
      }
     }
    },
    "operationId": "post-offers-retryoffers",
    "summary": "Ponów nieudane operacje",
    "description": "Ponawia wystawienie lub aktualizację ofert zakończonych błędem."
   }
  },
  "/api/Offers/SetOffersAutoRenew": {
   "post": {
    "tags": [
     "Oferty"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SetOffersAutoRenewRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SetOffersAutoRenewRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SetOffersAutoRenewRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/OfferActionResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OfferActionResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/OfferActionResponse"
        }
       }
      }
     }
    },
    "operationId": "post-offers-setoffersautorenew",
    "summary": "Ustaw automatyczne wznawianie",
    "description": "Włącza lub wyłącza automatyczne wznawianie wskazanych ofert."
   }
  },
  "/api/Offers/StartMarketplaceOfferImport": {
   "post": {
    "tags": [
     "Oferty"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/StartMarketplaceOfferImportRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/StartMarketplaceOfferImportRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/StartMarketplaceOfferImportRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Accepted",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/StartMarketplaceOfferImportResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/StartMarketplaceOfferImportResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/StartMarketplaceOfferImportResponse"
        }
       }
      }
     }
    },
    "operationId": "post-offers-startmarketplaceofferimport",
    "summary": "Rozpocznij import ofert z Erli",
    "description": "Importuje istniejące oferty z konta Erli i wiąże je z produktami. Przydatne przy migracji."
   }
  },
  "/api/Offers/SubmitOffersBatch": {
   "post": {
    "tags": [
     "Oferty"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SubmitOffersBatchRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SubmitOffersBatchRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SubmitOffersBatchRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Accepted",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/SubmitOffersBatchResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SubmitOffersBatchResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/SubmitOffersBatchResponse"
        }
       }
      }
     }
    },
    "operationId": "post-offers-submitoffersbatch",
    "summary": "Wystaw lub zaktualizuj oferty (paczka)",
    "description": "Wystawia nowe lub aktualizuje istniejące oferty Erli dla wielu produktów naraz."
   }
  },
  "/api/Offers/SyncOffers": {
   "post": {
    "tags": [
     "Oferty"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/SyncOffersResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SyncOffersResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/SyncOffersResponse"
        }
       }
      }
     }
    },
    "operationId": "post-offers-syncoffers",
    "summary": "Synchronizuj oferty",
    "description": "Pobiera aktualny stan ofert z Erli i aktualizuje go w Sellrocket."
   }
  },
  "/api/PimProducts/GetCatalogs": {
   "get": {
    "tags": [
     "Produkty z PIM"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PimCatalogResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PimCatalogResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PimCatalogResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "get-pimproducts-getcatalogs",
    "summary": "Pobierz katalogi PIM",
    "description": "Katalogi produktów dostępne do wystawiania na Erli."
   }
  },
  "/api/PimProducts/GetCategories": {
   "get": {
    "tags": [
     "Produkty z PIM"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PimCategoryResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PimCategoryResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PimCategoryResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "get-pimproducts-getcategories",
    "summary": "Pobierz kategorie PIM",
    "description": "Kategorie produktów z PIM — do filtrowania przy wystawianiu."
   }
  },
  "/api/PimProducts/GetManufacturers": {
   "get": {
    "tags": [
     "Produkty z PIM"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PimManufacturerResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PimManufacturerResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PimManufacturerResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "get-pimproducts-getmanufacturers",
    "summary": "Pobierz producentów PIM",
    "description": "Producenci z PIM — do filtrowania przy wystawianiu."
   }
  },
  "/api/PimProducts/GetProducts": {
   "get": {
    "tags": [
     "Produkty z PIM"
    ],
    "parameters": [
     {
      "name": "ConnectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PageNumber",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "PageSize",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "CatalogId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "ProductName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ProductIds",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "SkuCollection",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "EanCollection",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ManufacturerIds",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "integer",
        "format": "int64"
       }
      }
     },
     {
      "name": "PriceFrom",
      "in": "query",
      "schema": {
       "type": "number",
       "format": "double"
      }
     },
     {
      "name": "PriceTo",
      "in": "query",
      "schema": {
       "type": "number",
       "format": "double"
      }
     },
     {
      "name": "QuantityFrom",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "QuantityTo",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "IncludeIds",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "ExcludeIds",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "SortBy",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "SortOrder",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PimCategoryIds",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "integer",
        "format": "int64"
       }
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/PimProductsPageResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PimProductsPageResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/PimProductsPageResponse"
        }
       }
      }
     }
    },
    "operationId": "get-pimproducts-getproducts",
    "summary": "Pobierz produkty do wystawienia",
    "description": "Produkty z PIM wraz z informacją o powiązanych ofertach Erli."
   }
  }
 },
 "components": {
  "schemas": {
   "ProblemDetails": {
    "type": "object",
    "properties": {
     "type": {
      "type": "string",
      "nullable": true
     },
     "title": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "detail": {
      "type": "string",
      "nullable": true
     },
     "instance": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": {}
   },
   "UpdateConnectionSettingsRequest": {
    "required": [
     "connectionId",
     "listing",
     "polling"
    ],
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "string"
     },
     "listing": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ConnectionListingDefaultsDto"
       }
      ]
     },
     "polling": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ConnectionPollingDto"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "ConnectionListingDefaultsDto": {
    "required": [
     "dispatchTimeDays",
     "offerStatus",
     "throttleRequestsPerMinute"
    ],
    "type": "object",
    "properties": {
     "dispatchTimeDays": {
      "type": "integer",
      "format": "int32"
     },
     "taxRate": {
      "type": "string",
      "nullable": true
     },
     "offerStatus": {
      "type": "string"
     },
     "throttleRequestsPerMinute": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "ConnectionPollingDto": {
    "required": [
     "intervalSeconds",
     "maxHours",
     "maxOffersPerRound"
    ],
    "type": "object",
    "properties": {
     "intervalSeconds": {
      "type": "integer",
      "format": "int32"
     },
     "maxHours": {
      "type": "integer",
      "format": "int32"
     },
     "maxOffersPerRound": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "ConnectionResponse": {
    "required": [
     "connectionId",
     "createdAt",
     "id",
     "listing",
     "name",
     "polling",
     "updatedAt"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "connectionId": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     },
     "listing": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ConnectionListingDefaultsDto"
       }
      ]
     },
     "polling": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ConnectionPollingDto"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "ErliAttributeValueResponse": {
    "required": [
     "id",
     "name"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "ErliCategoryAttributeResponse": {
    "required": [
     "dictionaryValues",
     "id",
     "name",
     "required",
     "type"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string"
     },
     "type": {
      "type": "string"
     },
     "required": {
      "type": "boolean"
     },
     "maxValues": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "min": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "max": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "precision": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "unit": {
      "type": "string",
      "nullable": true
     },
     "dictionaryValues": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ErliAttributeValueResponse"
      }
     }
    },
    "additionalProperties": false
   },
   "ErliCategoryBreadcrumbResponse": {
    "required": [
     "id",
     "name"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "ErliCategoryResponse": {
    "required": [
     "breadcrumb",
     "id",
     "leaf",
     "name",
     "path"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string"
     },
     "leaf": {
      "type": "boolean"
     },
     "path": {
      "type": "string"
     },
     "breadcrumb": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ErliCategoryBreadcrumbResponse"
      }
     }
    },
    "additionalProperties": false
   },
   "ErliDeliveryPriceListResponse": {
    "required": [
     "id",
     "name"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "SearchCategoriesResponse": {
    "required": [
     "categories",
     "dictionaryReady"
    ],
    "type": "object",
    "properties": {
     "dictionaryReady": {
      "type": "boolean"
     },
     "categories": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ErliCategoryResponse"
      }
     }
    },
    "additionalProperties": false
   },
   "CancelMarketplaceOfferImportRequest": {
    "required": [
     "connectionId",
     "importId"
    ],
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "string"
     },
     "importId": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "EndOffersRequest": {
    "required": [
     "connectionId",
     "offerIds"
    ],
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "string"
     },
     "offerIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      }
     }
    },
    "additionalProperties": false
   },
   "RelistOffersRequest": {
    "required": [
     "connectionId",
     "offerIds"
    ],
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "string"
     },
     "offerIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      }
     }
    },
    "additionalProperties": false
   },
   "RetryOffersRequest": {
    "required": [
     "connectionId",
     "offerIds"
    ],
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "string"
     },
     "offerIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      }
     }
    },
    "additionalProperties": false
   },
   "SetOffersAutoRenewRequest": {
    "required": [
     "connectionId",
     "enabled",
     "offerIds"
    ],
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "string"
     },
     "offerIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      }
     },
     "enabled": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "StartMarketplaceOfferImportRequest": {
    "required": [
     "autoRenewImported",
     "connectionId",
     "matchByEan",
     "matchBySku"
    ],
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "string"
     },
     "marketplaceIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "matchByEan": {
      "type": "boolean"
     },
     "matchBySku": {
      "type": "boolean"
     },
     "pimCatalogId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "autoRenewImported": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "SubmitOfferAttribute": {
    "required": [
     "id",
     "type",
     "values"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "type": {
      "type": "string"
     },
     "values": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "name": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "SubmitOffersBatchItem": {
    "required": [
     "attributes",
     "categoryId",
     "deliveryPriceList",
     "imageUrls",
     "name",
     "pimProductId",
     "price",
     "stock"
    ],
    "type": "object",
    "properties": {
     "pimProductId": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string"
     },
     "price": {
      "type": "number",
      "format": "double"
     },
     "stock": {
      "type": "integer",
      "format": "int32"
     },
     "deliveryPriceList": {
      "type": "string"
     },
     "categoryId": {
      "type": "integer",
      "format": "int64"
     },
     "attributes": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/SubmitOfferAttribute"
      }
     },
     "imageUrls": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "sku": {
      "type": "string",
      "nullable": true
     },
     "weightKg": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "dispatchTimeDays": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "taxRate": {
      "type": "string",
      "nullable": true
     },
     "clientRowId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "SubmitOffersBatchRequest": {
    "required": [
     "offers"
    ],
    "type": "object",
    "properties": {
     "offers": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/SubmitOffersBatchItem"
      }
     }
    },
    "additionalProperties": false
   },
   "AcceptedOfferResponse": {
    "required": [
     "index",
     "offerId",
     "pimProductId"
    ],
    "type": "object",
    "properties": {
     "index": {
      "type": "integer",
      "format": "int32"
     },
     "pimProductId": {
      "type": "integer",
      "format": "int64"
     },
     "offerId": {
      "type": "integer",
      "format": "int64"
     },
     "clientRowId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "CancelMarketplaceOfferImportResponse": {
    "required": [
     "cancelled"
    ],
    "type": "object",
    "properties": {
     "cancelled": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "MarketplaceOfferImportDetailResponse": {
    "required": [
     "externalId",
     "id",
     "processedAt",
     "result"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "externalId": {
      "type": "string"
     },
     "marketplaceId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "result": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OfferImportDetailResult"
       }
      ]
     },
     "message": {
      "type": "string",
      "nullable": true
     },
     "linkedProductId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "processedAt": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "MarketplaceOfferImportDetailsResponse": {
    "required": [
     "details",
     "import",
     "totalDetails"
    ],
    "type": "object",
    "properties": {
     "import": {
      "allOf": [
       {
        "$ref": "#/components/schemas/MarketplaceOfferImportResponse"
       }
      ]
     },
     "totalDetails": {
      "type": "integer",
      "format": "int32"
     },
     "details": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/MarketplaceOfferImportDetailResponse"
      }
     }
    },
    "additionalProperties": false
   },
   "MarketplaceOfferImportResponse": {
    "required": [
     "autoRenewImported",
     "connectionId",
     "existingCount",
     "failedCount",
     "id",
     "importedCount",
     "linkedCount",
     "matchByEan",
     "matchBySku",
     "requestedCount",
     "startedAt",
     "status"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "connectionId": {
      "type": "string"
     },
     "connectionName": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OfferImportStatus"
       }
      ]
     },
     "startedAt": {
      "type": "string",
      "format": "date-time"
     },
     "completedAt": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "requestedCount": {
      "type": "integer",
      "format": "int32"
     },
     "matchByEan": {
      "type": "boolean"
     },
     "matchBySku": {
      "type": "boolean"
     },
     "pimCatalogId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "autoRenewImported": {
      "type": "boolean"
     },
     "importedCount": {
      "type": "integer",
      "format": "int32"
     },
     "existingCount": {
      "type": "integer",
      "format": "int32"
     },
     "linkedCount": {
      "type": "integer",
      "format": "int32"
     },
     "failedCount": {
      "type": "integer",
      "format": "int32"
     },
     "errorMessage": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "MarketplaceOfferImportsPageResponse": {
    "required": [
     "items",
     "total"
    ],
    "type": "object",
    "properties": {
     "total": {
      "type": "integer",
      "format": "int32"
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/MarketplaceOfferImportResponse"
      }
     }
    },
    "additionalProperties": false
   },
   "OfferActionResponse": {
    "required": [
     "rejected",
     "succeededOfferIds"
    ],
    "type": "object",
    "properties": {
     "succeededOfferIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      }
     },
     "rejected": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/RejectedOfferResponse"
      }
     }
    },
    "additionalProperties": false
   },
   "OfferResponse": {
    "required": [
     "autoRenew",
     "createdAt",
     "externalId",
     "id",
     "name",
     "origin",
     "price",
     "status",
     "stock",
     "submitAttempts",
     "updatedAt"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "pimProductId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "externalId": {
      "type": "string"
     },
     "origin": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OfferOrigin"
       }
      ]
     },
     "name": {
      "type": "string"
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "sku": {
      "type": "string",
      "nullable": true
     },
     "productEan": {
      "type": "string",
      "nullable": true
     },
     "productSku": {
      "type": "string",
      "nullable": true
     },
     "price": {
      "type": "number",
      "format": "double"
     },
     "stock": {
      "type": "integer",
      "format": "int32"
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OfferStatus"
       }
      ]
     },
     "submitAttempts": {
      "type": "integer",
      "format": "int32"
     },
     "lastErrorCode": {
      "type": "string",
      "nullable": true
     },
     "lastErrorMessage": {
      "type": "string",
      "nullable": true
     },
     "errorDetails": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      },
      "nullable": true
     },
     "marketplaceId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "slug": {
      "type": "string",
      "nullable": true
     },
     "offerUrl": {
      "type": "string",
      "nullable": true
     },
     "buyableProblems": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "autoRenew": {
      "type": "boolean"
     },
     "endedAt": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "lastSyncedAt": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "lastSubmittedAt": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "activatedAt": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "OfferSyncSummaryResponse": {
    "required": [
     "imported",
     "markedActive",
     "markedEnded",
     "markedMissing",
     "remoteProducts",
     "renewBlocked",
     "renewed",
     "updated"
    ],
    "type": "object",
    "properties": {
     "remoteProducts": {
      "type": "integer",
      "format": "int32"
     },
     "imported": {
      "type": "integer",
      "format": "int32"
     },
     "updated": {
      "type": "integer",
      "format": "int32"
     },
     "markedActive": {
      "type": "integer",
      "format": "int32"
     },
     "markedEnded": {
      "type": "integer",
      "format": "int32"
     },
     "markedMissing": {
      "type": "integer",
      "format": "int32"
     },
     "renewed": {
      "type": "integer",
      "format": "int32"
     },
     "renewBlocked": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "OfferValidationIssueResponse": {
    "required": [
     "code",
     "field",
     "message"
    ],
    "type": "object",
    "properties": {
     "field": {
      "type": "string"
     },
     "code": {
      "type": "string"
     },
     "message": {
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "OffersPageResponse": {
    "required": [
     "items",
     "total"
    ],
    "type": "object",
    "properties": {
     "total": {
      "type": "integer",
      "format": "int32"
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OfferResponse"
      }
     }
    },
    "additionalProperties": false
   },
   "RejectedOfferResponse": {
    "required": [
     "index",
     "issues",
     "pimProductId"
    ],
    "type": "object",
    "properties": {
     "index": {
      "type": "integer",
      "format": "int32"
     },
     "pimProductId": {
      "type": "integer",
      "format": "int64"
     },
     "issues": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OfferValidationIssueResponse"
      }
     },
     "clientRowId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "RetryOffersResponse": {
    "required": [
     "rejected",
     "retriedOfferIds"
    ],
    "type": "object",
    "properties": {
     "retriedOfferIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      }
     },
     "rejected": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/RejectedOfferResponse"
      }
     }
    },
    "additionalProperties": false
   },
   "StartMarketplaceOfferImportResponse": {
    "required": [
     "alreadyRunning",
     "importId"
    ],
    "type": "object",
    "properties": {
     "importId": {
      "type": "integer",
      "format": "int64"
     },
     "alreadyRunning": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "SubmitOffersBatchResponse": {
    "required": [
     "accepted",
     "rejected"
    ],
    "type": "object",
    "properties": {
     "accepted": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AcceptedOfferResponse"
      }
     },
     "rejected": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/RejectedOfferResponse"
      }
     }
    },
    "additionalProperties": false
   },
   "SyncOffersResponse": {
    "required": [
     "skipped"
    ],
    "type": "object",
    "properties": {
     "skipped": {
      "type": "boolean"
     },
     "skipReason": {
      "type": "string",
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OfferSyncSummaryResponse"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OfferImportDetailResult": {
    "enum": [
     "Added",
     "Existing",
     "Linked",
     "Failed"
    ],
    "type": "string"
   },
   "OfferImportStatus": {
    "enum": [
     "Running",
     "Completed",
     "Failed",
     "Cancelled"
    ],
    "type": "string"
   },
   "OfferOrigin": {
    "enum": [
     "Listed",
     "Imported"
    ],
    "type": "string"
   },
   "OfferStatus": {
    "enum": [
     "ToSubmit",
     "Queued",
     "Active",
     "Failed",
     "Unknown",
     "Ended"
    ],
    "type": "string"
   },
   "PimCatalogResponse": {
    "required": [
     "id",
     "isDefault"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "isDefault": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "PimCategoryResponse": {
    "required": [
     "id"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PimManufacturerResponse": {
    "required": [
     "id"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PimProductResponse": {
    "required": [
     "hasVariants",
     "id",
     "name",
     "quantity"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string"
     },
     "sku": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "price": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantity": {
      "type": "integer",
      "format": "int32"
     },
     "weightKg": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "vat": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "hasVariants": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "PimProductsPageResponse": {
    "required": [
     "items",
     "totalRecords"
    ],
    "type": "object",
    "properties": {
     "totalRecords": {
      "type": "integer",
      "format": "int32"
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PimProductResponse"
      }
     }
    },
    "additionalProperties": false
   }
  },
  "securitySchemes": {
   "Bearer": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "JWT",
    "description": "Token API wygenerowany w panelu Sellrocket."
   }
  }
 },
 "security": [
  {
   "Bearer": []
  }
 ]
}