List Suppliers
suppliers.list_suppliers(SupplierListSuppliersParams**kwargs) -> SyncCursorPage[SupplierListSuppliersResponse]
GET/api/v2/public/suppliers
Suppliers for the organisation, ordered by supplier code. Deleted suppliers are not returned. Use it to find the supplier_code values the order, delivery and receipt endpoints expect.
List Suppliers
import os
from colleqtive_sdk import Colleqtive
client = Colleqtive(
bearer_token=os.environ.get("COLLEQTIVE_BEARER_TOKEN"), # This is the default and can be omitted
)
page = client.suppliers.list_suppliers()
page = page.list[0]
print(page.country_region_id){
"page_size": 0,
"page_start": 0,
"total_count": 0,
"list": [
{
"allow_create_receipt": true,
"is_direct_vendor": true,
"city": "city",
"country_region_id": "country_region_id",
"name": "name",
"reason_code": 0,
"supplier_code": "supplier_code"
}
],
"list_body": {
"foo": "bar"
},
"list_filters": {
"foo": [
"string"
]
},
"next_page": 0,
"previous_page": 0,
"project_last_modified_date": "project_last_modified_date",
"scroll_id": "scroll_id",
"server_time": "server_time",
"sort_column": "sort_column",
"sort_order": "sort_order",
"task_last_modified_date": "task_last_modified_date"
}{
"code": 401,
"status": "error",
"message": "Authentication failed.",
"error": "unauthorized",
"error_description": "Authentication failed."
}{
"code": 500,
"status": "fail",
"message": "The request could not be processed.",
"error": "internal_error",
"error_description": "The request could not be processed."
}Returns Examples
{
"page_size": 0,
"page_start": 0,
"total_count": 0,
"list": [
{
"allow_create_receipt": true,
"is_direct_vendor": true,
"city": "city",
"country_region_id": "country_region_id",
"name": "name",
"reason_code": 0,
"supplier_code": "supplier_code"
}
],
"list_body": {
"foo": "bar"
},
"list_filters": {
"foo": [
"string"
]
},
"next_page": 0,
"previous_page": 0,
"project_last_modified_date": "project_last_modified_date",
"scroll_id": "scroll_id",
"server_time": "server_time",
"sort_column": "sort_column",
"sort_order": "sort_order",
"task_last_modified_date": "task_last_modified_date"
}{
"code": 401,
"status": "error",
"message": "Authentication failed.",
"error": "unauthorized",
"error_description": "Authentication failed."
}{
"code": 500,
"status": "fail",
"message": "The request could not be processed.",
"error": "internal_error",
"error_description": "The request could not be processed."
}