Edit Supplier
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
PUT
{{subdomain}}/api2
Last modified:2025-03-23 23:11:40
Maintainer:Not configured
id
: Supplier ID (required)supplier_number
(string): Unique supplier identifier/codebusiness_name
(string): Business namefirst_name
(string): First name of contact personlast_name
(string): Last name of contact personemail
(string): Email addresspassword
(string): Password for supplier portal accessphone1
(string): Primary phone numberphone2
(string): Secondary phone numberaddress1
(string): Street address line 1address2
(string): Street address line 2city
(string): Citystate
(string): State/provincepostal_code
(string): Postal/ZIP codecountry_code
(string): 2-letter country code (e.g., US, UK)website
(string): Website URLtax_registration
(string): Tax registration numbernotes
(string): Internal notes about the supplieractive
(integer): Status (0: inactive, 1: active)custom_fields
(object): Custom field values{
"result": "success",
"code": 200,
"data": {
"Supplier": {
"id": 1,
// Updated supplier fields...
}
},
"message": "Supplier updated successfully"
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{subdomain}}/api2/api2/suppliers/{{id}}.json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"Supplier": {
"business_name": "Supply Company Ltd",
"phone1": "555-9999",
"email": "updated.supplier@example.com",
"website": "https://supplyco-ltd.example.com",
"notes": "Primary vendor for all office supplies",
"custom_fields": {
"payment_terms": "Net 15",
"preferred_vendor": "Yes"
}
}
}'
Response Response Example
200 - Success Response
{
"result": "success",
"code": 200,
"data": {
"Supplier": {
"id": 1,
"business_name": "Supply Company Ltd",
"phone1": "555-9999",
"email": "updated.supplier@example.com",
"modified": "2023-03-24 09:15:22"
}
},
"message": "Supplier updated successfully"
}
Request
Body Params text/plain