Skip to content

Suppliers

Returns a list of suppliers configured for your account.

GET/api/v1/suppliers
ParameterTypeDefaultDescription
namestring-Filter suppliers by name (case-insensitive substring match). For example, name=acme matches “Acme Corp”, “ACME Supplies”, etc.
Terminal window
curl -X GET "https://api.prediko.io/api/v1/suppliers" \
-H "Authorization: Bearer YOUR_API_KEY"
# With name filter
curl -X GET "https://api.prediko.io/api/v1/suppliers?name=acme" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Acme Corp",
"address": {
"address1": "123 Supplier St",
"address2": null,
"city": "Shenzhen",
"province": "Guangdong",
"country": "CN",
"zip": "518000"
},
"lead_time": 14,
"currency": "USD",
"minimum_order_quantity": 100,
"minimum_order_type": "units",
"moqs": [
{
"warehouse_name": "Main Warehouse",
"minimum_order_quantity": 100,
"minimum_order_type": "units"
}
],
"lead_times": [
{
"warehouse_name": "Main Warehouse",
"lead_time": 14
}
]
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Global Supplies Ltd",
"address": {
"address1": "456 Trade Ave",
"address2": "Building B",
"city": "London",
"province": null,
"country": "GB",
"zip": "EC1A 1BB"
},
"lead_time": 21,
"currency": "GBP",
"minimum_order_quantity": 500,
"minimum_order_type": "currency",
"moqs": [],
"lead_times": []
}
],
"total": 2
}
FieldTypeDescription
dataarrayList of supplier objects
totalintegerTotal number of suppliers
FieldTypeDescription
idstringUnique supplier identifier (UUID)
namestringSupplier name (unique identifier)
addressobjectAddress details (see Address Object below)
lead_timeintegerDefault lead time in days
currencystringDefault currency for transactions
minimum_order_quantitynumberDefault minimum order quantity
minimum_order_typestringMOQ type: units or currency
moqsarrayWarehouse-specific MOQs (see MOQ Object below)
lead_timesarrayWarehouse-specific lead times (see Lead Time Object below)
FieldTypeDescription
address1stringPrimary address line
address2stringSecondary address line
citystringCity name
provincestringState/province
countrystringCountry code
zipstringPostal/ZIP code
FieldTypeDescription
warehouse_namestringWarehouse name
minimum_order_quantitynumberMinimum order quantity for this warehouse
minimum_order_typestringMOQ type: units or currency
FieldTypeDescription
warehouse_namestringWarehouse name
lead_timeintegerLead time in days for this warehouse
StatusDescription
401Invalid or missing API key
500Internal server error