# Update Suppliers Update existing supplier information including contact details, email addresses, and physical addresses. Keeping supplier information current ensures accurate purchase order delivery and communication. ## Update a Supplier Use the PUT method with `/v2/suppliers/{supplier_id}` to update an existing supplier's information. ### Path Parameters | Parameter | Type | Description | | --- | --- | --- | | `supplier_id` | *string* | The unique identifier of the supplier to update | ### Request Body Properties The request body accepts the same properties as the create operation. `supplier_name` is required; all other fields are optional. | Property | Type | Required | Description | | --- | --- | --- | --- | | `supplier_name` | *string* | **Required** | Name of the supplier company | | `supplier_email` | *string* (email) | Optional | Email address for sending purchase orders | | `address_line_1` | *string* | Optional | First line of address | | `address_line_2` | *string* | Optional | Second line of address | | `city` | *string* | Optional | City | | `state` | *string* | Optional | State or province code | | `postal_code` | *string* | Optional | Postal or ZIP code | | `country_code` | *string* | Optional | ISO 3166-1 alpha-2 country code | | `contact_name` | *string* | Optional | Primary contact person's name | | `contact_phone` | *string* | Optional | Contact phone number | ### Response On success, returns a confirmation message: ```json { "message": "Supplier updated successfully" } ``` ### Example Request & Response **PUT /v2/suppliers/{supplier_id}** ## Validation Rules ### Required Fields - `supplier_name` must be provided and cannot be empty ### Email Validation - `supplier_email` must be a valid email format if provided - Format: `name@domain.com` ### Country Codes - `country_code` must be a valid ISO 3166-1 alpha-2 code - Examples: "US", "CA", "GB", "DE", "FR", "AU" ### Phone Numbers - No strict format required - use your preferred format - Include country code for international numbers (+44, +1, etc.) - Include extensions if needed (555-0100 ext 123) ## Error Handling Common errors when updating suppliers: **400 Bad Request** - Missing `supplier_name` - Email format validation failure - Invalid country code **404 Not Found** - Supplier ID not found ## Related Resources - [Manage Suppliers](/suppliers/overview) - Overview of supplier operations - [Create Suppliers](/suppliers/create) - Add new suppliers - [List Suppliers](/suppliers/list) - Retrieve supplier information - [Create Purchase Orders](/purchase-orders/create) - Order products from suppliers