Suppliers

Update a supplier

Changes the fields of the body. The other fields keep their values.

patch/api/v1/sa/inventory/suppliers/{supplierId}

Request

  • Base URL: https://app.sellerassistant.app (the document declares no server; this is the origin it was published from)
  • URL: https://app.sellerassistant.app/api/v1/sa/inventory/suppliers/{supplierId}
  • Auth: one of:
    • API key in query parameter api_key
    • API key in header X-Api-Key

Path parameters

supplierIdinteger required
Example:1

Request body

namestring
websitestring

The website must be one no other supplier of the team holds.

payment_terms'Not selected' | 'Net 15' | 'Net 30' | 'Net 45' | 'Net 60' | 'COD' | 'Prepaid' nullable

The label the read answers.

contactsstring nullable
status'New' | 'Contacted' | 'No response' | 'Negotiation' | 'Approved' | 'Active' | 'On hold' | 'Rejected'

The label the read answers.

warehouse_idinteger nullable
responsible_user_idinteger
currencystring nullable
addressstring nullable
phonestring nullable
contact_namestring nullable
movnumber nullable
free_shipping_ovnumber nullable
sold_by_caseboolean nullable
lead_time_mininteger nullable
lead_time_maxinteger nullable
type'Not selected' | 'Distributor' | 'Manufacturer' | 'Brand' | 'Wholesaler' nullable

The label the read answers.

payment_methodstring[] nullable

The labels the read answers.

Example request

{
  "name": "Updated Name",
  "website": "updated.com",
  "payment_terms": "Net 45",
  "contacts": "new@contact.com",
  "status": "Contacted",
  "responsible_user_id": 4,
  "currency": "EUR",
  "address": "456 Not Main St",
  "phone": "+9876543210",
  "contact_name": "Jane Smith",
  "mov": 5000.75,
  "free_shipping_ov": 150,
  "sold_by_case": true,
  "lead_time_min": 3,
  "lead_time_max": 7,
  "type": "Manufacturer",
  "payment_method": [
    "Credit card",
    "ACH"
  ]
}

Response

Successful response

Example response

{
  "data": {
    "id": 1,
    "team_id": 123,
    "user_id": 456,
    "name": "Acme Wholesalers",
    "website": "https://acme.com",
    "status": "New",
    "type": "Distributor",
    "payment_method": [
      "Credit card",
      "ACH"
    ],
    "payment_terms": "Net 30",
    "currency": "USD",
    "contacts": "contact@acme.com",
    "contact_name": "John Doe",
    "phone": "+1234567890",
    "address": "123 Main St, City, State",
    "default_prep_center_id": 3,
    "note": "Preferred supplier for electronics",
    "mov": 5000.75,
    "free_shipping_ov": 150,
    "lead_time_min": 3,
    "lead_time_max": 10,
    "created_at": "2025-12-22T10:00:00Z",
    "updated_at": "2025-12-22T12:30:00Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.