Suppliers
1. Create a supplier
Request
cURL
Codecurl --location 'https://api.erp.staging.slade360edi.com/api/business_partners/suppliers/' \ --header 'Authorization: Bearer <token>' \ --data '{ "partner_name": "Michelle Obama", "country": "KEN", "currency": "7494025d-f48c-4975-9548-53a0cdeca66b", "is_customer": false, "is_supplier": false, "supplier_type":"MEDICAL_EQUIPMENT" }'
Response
JSON
Code{ "id": "fca25d38-be25-4d68-bafc-6a3307862768", "code": 11486, "supplier_amount_owed": 0, "customer_credit_utilized": null, "supplier_credit_utilized": null, "payables_account": { "id": "332576b0-8d74-429a-aa0f-50c95e5aa9e2", "name": "Michelle Obama Payables", "description": "Michelle Obama Payables", "is_active": true, "_identifiers": "", "number": "2001-0008", "tag": "payables" }, "receivables_account": null, "supplier_deposits_account": { "id": "7e4e2de7-0b21-48e3-ac08-bb461f477c35", "name": "Michelle Obama Supplier Deposits Account", "description": "Michelle Obama supplier account.", "is_active": true, "_identifiers": "deposits", "number": "7000-0008", "tag": "deposits" }, "customer_deposits_account": null, "billing_accounts": [], "business_partner_person": null, "identifiers": [], "business_partner_id": null, "business_partner_photo": null, "business_partner_attachments": [], "business_partner_contact": [], "customer_sync_to_etims": false, "active": true, "slade_code": null, "partner_name": "Michelle Obama", "description": null, "physical_address": null, "country": "KEN", "town": null, "box_number": null, "credit_limit": null, "is_supplier": true, "is_customer": false, "supplier_type": "MEDICAL_EQUIPMENT", "customer_type": null, "bp_type": null, "phone_number": null, "email_address": null, "customer_tax_pin": null, "currency": "7494025d-f48c-4975-9548-53a0cdeca66b", "parent": null }
2. List all suppliers
Request
cURL
Codecurl --location 'https://api.erp.staging.slade360edi.com/api/business_partners/suppliers/?page_size=2' \ --header 'Authorization: Bearer <token>'
Response
JSON
Code{ "count": 8, "next": "https://api.erp.staging.slade360edi.com/api/business_partners/suppliers/?page=2&page_size=2", "previous": null, "page_size": 2, "current_page": 1, "total_pages": 4, "start_index": 1, "end_index": 2, "results": [ { "id": "fca25d38-be25-4d68-bafc-6a3307862768", "code": 11486, "supplier_amount_owed": 0.0, "customer_credit_utilized": null, "supplier_credit_utilized": null, "payables_account": { "id": "332576b0-8d74-429a-aa0f-50c95e5aa9e2", "name": "Michelle Obama Payables", "description": "Michelle Obama Payables", "is_active": true, "_identifiers": "", "number": "2001-0008", "tag": "payables" }, "receivables_account": null, "supplier_deposits_account": { "id": "7e4e2de7-0b21-48e3-ac08-bb461f477c35", "name": "Michelle Obama Supplier Deposits Account", "description": "Michelle Obama supplier account.", "is_active": true, "_identifiers": "deposits", "number": "7000-0008", "tag": "deposits" }, "customer_deposits_account": null, "billing_accounts": [], "business_partner_person": null, "identifiers": [], "business_partner_id": null, "business_partner_photo": null, "business_partner_attachments": [], "business_partner_contact": [], "customer_sync_to_etims": false, "active": true, "created": "2024-09-23T15:10:35.871016+03:00", "created_by": "dfe0f146-8921-4efb-9f23-572c3edaec2c", "updated": "2024-09-23T15:10:35.871028+03:00", "updated_by": "dfe0f146-8921-4efb-9f23-572c3edaec2c", "slade_code": null, "partner_name": "Michelle Obama", "description": null, "physical_address": null, "country": "KEN", "town": null, "box_number": null, "credit_limit": null, "is_supplier": true, "is_customer": false, "supplier_type": "MEDICAL_EQUIPMENT", "customer_type": null, "bp_type": null, "phone_number": "+254722000001", "email_address": null, "customer_tax_pin": null, "organisation": "18d2cb54-b4dd-4b2c-baad-13df951bfed9", "currency": "7494025d-f48c-4975-9548-53a0cdeca66b", "parent": null }, { "id": "88502735-b11f-4ad6-b528-6a349b0db42d", "code": 11481, "supplier_amount_owed": 0.0, "customer_credit_utilized": null, "supplier_credit_utilized": null, "payables_account": { "id": "a0f05554-090c-4ec1-8f01-75a0e96dc582", "name": "Samson Muoki Payables", "description": "Samson Muoki Payables", "is_active": true, "_identifiers": "", "number": "2001-0007", "tag": "payables" }, "receivables_account": null, "supplier_deposits_account": { "id": "be66499f-2b13-49ce-a4c3-92c19e570bfa", "name": "Samson Muoki Supplier Deposits Account", "description": "Samson Muoki supplier account.", "is_active": true, "_identifiers": "deposits", "number": "7000-0007", "tag": "deposits" }, "customer_deposits_account": null, "billing_accounts": [], "business_partner_person": null, "identifiers": [], "business_partner_id": null, "business_partner_photo": null, "business_partner_attachments": [], "business_partner_contact": [], "customer_sync_to_etims": false, "active": true, "created": "2024-09-16T14:49:40.664712+03:00", "created_by": "28a4210c-64b8-4695-b033-96d7696e7507", "updated": "2024-09-16T14:49:40.664720+03:00", "updated_by": "28a4210c-64b8-4695-b033-96d7696e7507", "slade_code": null, "partner_name": "Samson Muoki", "description": null, "physical_address": null, "country": "KEN", "town": null, "box_number": null, "credit_limit": null, "is_supplier": true, "is_customer": false, "supplier_type": "STATIONERY", "customer_type": null, "bp_type": null, "phone_number": null, "email_address": null, "customer_tax_pin": null, "organisation": "18d2cb54-b4dd-4b2c-baad-13df951bfed9", "currency": "f6e049a0-10fd-4d9f-8470-571c9efa546c", "parent": null } ] }
Customers
1. Create a customer
Request
cURL
Codecurl --location 'https://api.erp.staging.slade360edi.com/api/business_partners/customers/' \ --header 'Authorization: Bearer <token>' \ --data '{ "partner_name": "Barak Obama", "country": "KEN", "currency": "7494025d-f48c-4975-9548-53a0cdeca66b", "is_customer": true, "customer_type":"PATIENT" }'
Response
JSON
Code{ "id": "eb0588b5-e4c3-41cb-acfd-ca5910ac8a21", "code": 11484, "customer_amount_owed": 0, "customer_credit_utilized": null, "supplier_credit_utilized": null, "payables_account": null, "receivables_account": { "id": "3051b722-c1a4-48f4-a0fb-bf75d62edf2e", "name": "Barak Obama Receivables", "description": "Barak Obama Receivables", "is_active": true, "_identifiers": "", "number": "1150-11460", "tag": "receivables" }, "supplier_deposits_account": null, "customer_deposits_account": { "id": "7237b374-1011-4561-9f45-65a05845d556", "name": "Barak Obama Customer Deposits Account", "description": "Barak Obama customer account.", "is_active": true, "_identifiers": "deposits", "number": "2350-11479", "tag": "deposits" }, "billing_accounts": [], "business_partner_person": null, "identifiers": [], "business_partner_id": null, "business_partner_photo": null, "business_partner_attachments": [], "business_partner_contact": [], "customer_sync_to_etims": false, "active": true, "slade_code": null, "partner_name": "Barak Obama", "description": null, "physical_address": null, "country": "KEN", "town": null, "box_number": null, "credit_limit": null, "is_supplier": false, "is_customer": true, "supplier_type": null, "customer_type": "PATIENT", "bp_type": null, "phone_number": null, "email_address": null, "customer_tax_pin": null, "currency": "7494025d-f48c-4975-9548-53a0cdeca66b", "parent": null }
2. Get all customers
Request
cURL
Codecurl --location 'https://api.erp.staging.slade360edi.com/api/business_partners/customers/?page_size=2' \ --header 'Authorization: Bearer <token>'
Response
JSON
Code{ "count": 11461, "next": "https://api.erp.staging.slade360edi.com/api/business_partners/customers/?page=2&page_size=2", "previous": null, "page_size": 2, "current_page": 1, "total_pages": 5731, "start_index": 1, "end_index": 2, "results": [ { "id": "cd240869-ea65-4915-ae6b-46f9f1acd953", "code": 11487, "customer_amount_owed": 0.0, "customer_credit_utilized": null, "supplier_credit_utilized": null, "payables_account": null, "receivables_account": { "id": "389cd4ce-d8c4-4cc6-9a3d-ca5e15b14788", "name": "Biko Tajiri Receivables", "description": "Biko Tajiri Receivables", "is_active": true, "_identifiers": "", "number": "1150-11461", "tag": "receivables" }, "supplier_deposits_account": null, "customer_deposits_account": { "id": "f326f143-b3f9-4844-a973-6d8cb016e012", "name": "Biko Tajiri Customer Deposits Account", "description": "Biko Tajiri customer account.", "is_active": true, "_identifiers": "deposits", "number": "2350-11480", "tag": "deposits" }, "billing_accounts": [], "business_partner_person": null, "identifiers": [], "business_partner_id": null, "business_partner_photo": null, "business_partner_attachments": [], "business_partner_contact": [], "customer_sync_to_etims": false, "active": true, "created": "2024-09-25T09:16:05.236776+03:00", "created_by": "69950f92-e894-4635-8d1a-4d032e22ee79", "updated": "2024-09-25T09:16:05.236785+03:00", "updated_by": "69950f92-e894-4635-8d1a-4d032e22ee79", "slade_code": null, "partner_name": "Biko Tajiri", "description": null, "physical_address": null, "country": "KEN", "town": null, "box_number": null, "credit_limit": null, "is_supplier": false, "is_customer": true, "supplier_type": null, "customer_type": "PATIENT", "bp_type": null, "phone_number": null, "email_address": null, "customer_tax_pin": null, "organisation": "18d2cb54-b4dd-4b2c-baad-13df951bfed9", "currency": "f6e049a0-10fd-4d9f-8470-571c9efa546c", "parent": null }, { "id": "eb0588b5-e4c3-41cb-acfd-ca5910ac8a21", "code": 11484, "customer_amount_owed": 112000.0, "customer_credit_utilized": null, "supplier_credit_utilized": null, "payables_account": null, "receivables_account": { "id": "3051b722-c1a4-48f4-a0fb-bf75d62edf2e", "name": "Barak Obama Receivables", "description": "Barak Obama Receivables", "is_active": true, "_identifiers": "", "number": "1150-11460", "tag": "receivables" }, "supplier_deposits_account": null, "customer_deposits_account": { "id": "7237b374-1011-4561-9f45-65a05845d556", "name": "Barak Obama Customer Deposits Account", "description": "Barak Obama customer account.", "is_active": true, "_identifiers": "deposits", "number": "2350-11479", "tag": "deposits" }, "billing_accounts": [], "business_partner_person": null, "identifiers": [], "business_partner_id": null, "business_partner_photo": null, "business_partner_attachments": [], "business_partner_contact": [], "customer_sync_to_etims": false, "active": true, "created": "2024-09-23T14:45:16.591360+03:00", "created_by": "dfe0f146-8921-4efb-9f23-572c3edaec2c", "updated": "2024-09-23T14:45:16.591371+03:00", "updated_by": "dfe0f146-8921-4efb-9f23-572c3edaec2c", "slade_code": null, "partner_name": "Barak Obama", "description": null, "physical_address": null, "country": "KEN", "town": null, "box_number": null, "credit_limit": null, "is_supplier": false, "is_customer": true, "supplier_type": null, "customer_type": "PATIENT", "bp_type": null, "phone_number": "+254722000000", "email_address": null, "customer_tax_pin": "A676732878B", "organisation": "18d2cb54-b4dd-4b2c-baad-13df951bfed9", "currency": "7494025d-f48c-4975-9548-53a0cdeca66b", "parent": null } ] }
Last modified on

