Add New Supplier
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
POST
{{subdomain}}/api2
Last modified:2025-03-23 23:11:40
Maintainer:Not configured
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 suppliercustom_fields
(object): Custom field values{
"result": "success",
"code": 201,
"data": {
"Supplier": {
"id": 3,
// Other supplier fields...
}
},
"message": "Supplier created successfully"
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{subdomain}}/api2/api2/suppliers.json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"Supplier": {
"supplier_number": "SUP003",
"business_name": "Tech Hardware Solutions",
"first_name": "Sarah",
"last_name": "Williams",
"email": "sarah.williams@techhardware.com",
"password": "securepassword123",
"phone1": "555-6543",
"phone2": "555-3456",
"address1": "123 Technology Parkway",
"address2": "Building B",
"city": "Austin",
"state": "TX",
"postal_code": "78701",
"country_code": "US",
"website": "https://techhardware.example.com",
"tax_registration": "34-5678901",
"notes": "Hardware components supplier",
"custom_fields": {
"payment_terms": "Net 45",
"lead_time": "2 weeks"
}
}
}'
Response Response Example
201 - Success Response
{
"result": "success",
"code": 201,
"data": {
"Supplier": {
"id": 3,
"supplier_number": "SUP001",
"business_name": "Supply Co",
"first_name": "Jane",
"last_name": "Smith",
"email": "jane.smith@example.com",
"created": "2023-03-23 15:30:42",
"modified": "2023-03-23 15:30:42",
"active": 1
}
},
"message": "Supplier created successfully"
}
Request
Body Params text/plain