# Update Partner Settings

Update the authenticated partner's settings. All fields are optional -
only provided fields will be updated. Partners cannot change their name or ID.

Endpoint: PATCH /partners/settings
Version: 1.0.2
Security: oauth2ClientCredentials

## Request fields (application/json):

  - `primaryColor` (string)
    Primary brand color (hex code)
    Example: "#1a73e8"

  - `secondaryColor` (string)
    Secondary brand color (hex code)
    Example: "#ffffff"

  - `logo` (string)
    URL or key of partner logo
    Example: "https://example.com/logo.png"

  - `phone` (string)
    Partner phone number
    Example: "555-123-4567"

  - `supportEmail` (string)
    Support email address
    Example: "support@partner.com"

  - `website` (string)
    Partner website URL
    Example: "https://partner.com"

  - `webhookUrl` (string)
    Webhook URL for order status notifications
    Example: "https://partner.com/webhooks/orders"

  - `billingAddressLine1` (string)
    Billing address line 1
    Example: "123 Main St"

  - `billingAddressLine2` (string)
    Billing address line 2
    Example: "Suite 100"

  - `billingCity` (string)
    Billing city
    Example: "San Francisco"

  - `billingState` (string)
    Billing state/province
    Example: "CA"

  - `billingPostalCode` (string)
    Billing postal/zip code
    Example: "94102"

  - `billingCountry` (string)
    Billing country
    Example: "US"

## Response 200 fields (application/json):

  - `id` (string)
    Unique partner identifier (read-only)
    Example: "2NxK7vPqYtR5mJnLkH3wZcB"

  - `name` (string)
    Partner name (read-only)
    Example: "Acme Health"

  - `description` (string,null)
    Partner description
    Example: "Leading telehealth provider"

  - `discount` (string,null)
    Human readable discount representation
    Example: "10%"

  - `discountValue` (number,null)
    Numeric discount value (0.0 to 1.0)
    Example: 0.1

  - `primaryColor` (string,null)
    Primary brand color (hex code)
    Example: "#1a73e8"

  - `secondaryColor` (string,null)
    Secondary brand color (hex code)
    Example: "#ffffff"

  - `logo` (string,null)
    URL or key of partner logo
    Example: "https://example.com/logo.png"

  - `phone` (string,null)
    Partner phone number
    Example: "555-123-4567"

  - `supportEmail` (string,null)
    Support email address
    Example: "support@partner.com"

  - `website` (string,null)
    Partner website URL
    Example: "https://partner.com"

  - `webhookUrl` (string,null)
    Webhook URL for order status notifications
    Example: "https://partner.com/webhooks/orders"

  - `billingAddressLine1` (string,null)
    Billing address line 1
    Example: "123 Main St"

  - `billingAddressLine2` (string,null)
    Billing address line 2
    Example: "Suite 100"

  - `billingCity` (string,null)
    Billing city
    Example: "San Francisco"

  - `billingState` (string,null)
    Billing state/province
    Example: "CA"

  - `billingPostalCode` (string,null)
    Billing postal/zip code
    Example: "94102"

  - `billingCountry` (string,null)
    Billing country
    Example: "US"

  - `createdAt` (string)
    Partner creation timestamp
    Example: "2023-10-01T12:00:00Z"

  - `updatedAt` (string)
    Partner last update timestamp
    Example: "2023-10-01T12:00:00Z"

## Response 401 fields (application/json):

  - `error` (string)
    Human-readable error message
    Example: "invalid_client"

## Response 422 fields (application/json):

  - `detail` (array)
    List of specific validation errors

  - `detail.loc` (array, required)
    Location of the error in the request body

  - `detail.type` (string, required)
    Type of validation error
    Enum: "missing", "invalid", "type_error"


