# Add contract for company Add a contract for the given company. Endpoint: POST /api/2/companies/{companyId}/contracts Version: 0.0.7228 Security: BasicAuth, BearerAuth ## Path parameters: - `companyId` (integer, required) Unique identifier of a company in the system Example: 1 ## Request fields (application/json): - `contractType` (string, required) Type of the contract. Currently, only 2 types are supported: - Pricemonitor for manufacturers - Pricemonitor for resellers - `contractName` (string, required) Name of the new contract - `expirationDate` (string) Expiration date ## Response 200 fields (application/json): - `data` (object, required) - `data.active` (boolean) - `data.companyName` (string) - `data.contractId` (string) - `data.contractName` (string) - `data.contractType` (string) - `data.expirationDate` (string) ## Response 400 fields (application/json): - `errors` (array, required) List of errors that occurred during request processing Example: [{"code":"request.invalid","message":"The provided request data is invalid"},{"code":"resource.invalid","message":"The requested resource could not be found"}] - `errors.code` (string, required) Machine-readable error code for programmatic error handling. Typically follows a structured format like 'request.invalid' or 'resource.invalid'. Example: "request.invalid" - `errors.message` (string, required) Human-readable error message providing details about the issue Example: "The provided email address is not in a valid format"