Overview
The Supplier API provides comprehensive endpoints for managing business partners including suppliers/vendors, customers, and members. It handles contact information, financial relationships, and permissions.Supplier Management
Get Supplier Info
Retrieve detailed information about a specific supplier by ID.The unique identifier of the supplier
Response status code (200 for success)
List Suppliers
Retrieve a paginated list of suppliers with optional search filters.JSON string containing search parameters:
supplier: Supplier name filtertype: Type filter (供应商/客户/会员)contacts: Contact person filterphonenum: Phone number filtertelephone: Telephone filter
Create Supplier
Create a new supplier, customer, or member.Supplier/Company name
Type: “供应商” (Vendor), “客户” (Customer), or “会员” (Member)
Contact person name
Mobile phone number
Landline telephone
Email address
Physical address
Tax registration number
Bank name
Bank account number
Enable status (default: true)
Update Supplier
Update an existing supplier’s information.Supplier ID to update
Updated supplier name
Updated contact person
Updated phone number
Delete Supplier
Delete a supplier by ID.Supplier ID to delete
Batch Delete Suppliers
Delete multiple suppliers at once.Comma-separated supplier IDs (e.g., “1,2,3”)
Batch Set Status
Enable or disable multiple suppliers at once.true to enable, false to disable
Comma-separated supplier IDs
Supplier Selection
Find Customers by Select
Search for customers (type=“客户”) for dropdown selection.Search keyword
Filter by organization ID
Maximum number of results
Find Suppliers by Select
Search for suppliers/vendors (type=“供应商”) for dropdown selection.Search keyword
Filter by organization ID
Maximum number of results
Find Organizations by Select
Search for all business partners (both suppliers and customers).Search keyword
Filter by specific organization
Maximum number of results
Find Members by Select
Search for members (type=“会员”) for retail operations.Search keyword
Filter by organization ID
Maximum number of results
Validation
Check Name Exists
Check if a supplier name already exists.Supplier ID (use 0 for new supplier)
Supplier name to check
Response status code
Check Name and Type Exist
Check if a supplier name exists with a specific type.Supplier ID (use 0 for new)
Supplier name
Supplier type (供应商/客户/会员)
Financial Information
Get Begin Need by Organization
Get beginning balance and financial information for a supplier/customer.Organization/Supplier ID
Response status code
Batch Set Advance In
Recalculate advance payment balances for members.Comma-separated member IDs
Customer Permissions
Get All Customers
Get list of all customers (for permission management).Get User Customer Value
Get customer IDs accessible by a user.User business type (e.g., “UserCustomer”)
User ID
Response status code
Array of customer IDs accessible by the user
Import & Export
Import Vendors
Import vendor data from Excel file.Excel file containing vendor data
Response status code (200 for success)
Import result message
Import Customers
Import customer data from Excel file.Excel file containing customer data
Import Members
Import member data from Excel file.Excel file containing member data
Export Excel
Export supplier data to Excel file.Supplier name filter
Type filter (供应商/客户/会员)
Phone number filter
Telephone filter
Lookup by Name
Get Info by Name
Retrieve supplier information by name and type.Supplier name
Supplier type (供应商/客户/会员)
Response status code