# Create product supplier Creates a new Product Supplier record. Product Supplier resource in the Animal Health Data Store Endpoint: POST /site/{siteId}/ahds/v1/product-supplier Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier ## Request fields (application/json): - `contractPrice` (string, required) Contracted unit price from this supplier, as a decimal string. Example: "100.00" - `expectedPrice` (string, required) Expected unit price from this supplier, as a decimal string. Example: "100.00" - `extensions` (object) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Whether this product-supplier relationship is currently active. - `isDefaultSupplier` (boolean, required) Whether this supplier is the default supplier for the product. - `lastSupplierUpdateAt` (string,null) Timestamp of the last update received from the supplier for this product, if known. Example: "2025-01-01T00:00:00.000Z" - `listPrice` (string,null) Supplier list price, as a decimal string. May be null if unknown. Example: "100.00" - `productId` (string, required) Reference to the product associated with this supplier relationship. Example: "123e4567-e89b-12d3-a456-426614174000" - `productSupplierId` (string, required) Canonical identifier for this product-supplier relationship. Example: "123e4567-e89b-12d3-a456-426614174000" - `supplierCode` (string, required) Supplier-specific code or SKU for this product. - `supplierContactId` (string, required) Reference to the supplier contact entity. Example: "123e4567-e89b-12d3-a456-426614174000" - `taxRateId` (string, required) Reference to the tax rate applied to this product when supplied by this supplier. Example: "123e4567-e89b-12d3-a456-426614174000" - `unitOfMeasure` (string,null) Unit of measure used by this supplier for pricing and ordering (e.g., 'box', 'vial'). - `unitsPerOuter` (number, required) Number of sellable units contained in one outer/pack from this supplier. ## Response 201 fields (application/json): - `contractPrice` (string, required) Contracted unit price from this supplier, as a decimal string. Example: "100.00" - `createdAt` (string, required) Timestamp when this product-supplier record was created. Example: "2025-01-01T00:00:00.000Z" - `expectedPrice` (string, required) Expected unit price from this supplier, as a decimal string. Example: "100.00" - `extensions` (object, required) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Whether this product-supplier relationship is currently active. - `isDefaultSupplier` (boolean, required) Whether this supplier is the default supplier for the product. - `lastSupplierUpdateAt` (string,null, required) Timestamp of the last update received from the supplier for this product, if known. Example: "2025-01-01T00:00:00.000Z" - `listPrice` (string,null, required) Supplier list price, as a decimal string. May be null if unknown. Example: "100.00" - `productId` (string, required) Reference to the product associated with this supplier relationship. Example: "123e4567-e89b-12d3-a456-426614174000" - `productSupplierId` (string, required) Canonical identifier for this product-supplier relationship. Example: "123e4567-e89b-12d3-a456-426614174000" - `supplierCode` (string, required) Supplier-specific code or SKU for this product. - `supplierContactId` (string, required) Reference to the supplier contact entity. Example: "123e4567-e89b-12d3-a456-426614174000" - `taxRateId` (string, required) Reference to the tax rate applied to this product when supplied by this supplier. Example: "123e4567-e89b-12d3-a456-426614174000" - `unitOfMeasure` (string,null, required) Unit of measure used by this supplier for pricing and ordering (e.g., 'box', 'vial'). - `unitsPerOuter` (number, required) Number of sellable units contained in one outer/pack from this supplier. - `updatedAt` (string, required) Timestamp when this product-supplier record was last updated. Example: "2025-01-01T00:00:00.000Z" ## Response 400 fields ## Response 401 fields ## Response 409 fields