{"info":{"_postman_id":"0dfb5766-2ceb-413f-9085-b69ec1d284fc","name":"Base Finance+ API","description":"<html><head></head><body><p><strong>Tổng hợp APIs của các apps thuộc bộ Base Finance+</strong></p>\n<p><em>Một số lưu ý:</em></p>\n<p><strong>(1) Cách khai báo và mã hóa dữ liệu đầu vào dạng bảng</strong></p>\n<p>Xét ví dụ, để tạo 1 Đơn bán hàng tại Base Income, cần cung cấp dữ liệu đầu vào cho bảng Sản phẩm (Items).</p>\n<p><strong>B1:</strong> Tại key \"custom_item_lines\", khai báo (các) bảng chứa dữ liệu đầu vào và cấu trúc đọc của từng bảng.</p>\n<ul>\n<li><p>Nếu tại đầu gửi, dữ liệu được chứa tại 1 bảng có key \"san_pham\", gồm 4 cột là Tên sản phẩm, Tên mã dòng tiền vào, Số tiền (không gồm thuế), Tên chính sách thuế, thì khai báo cấu trúc đọc là \"san_pham:name.1-code.2-amount_excl.3-tax_policy.4\", trong đó 1, 2, 3, 4 là index cột tương ứng tại đầu gửi dữ liệu.</p>\n</li>\n<li><p>Nếu tại đầu gửi, dữ liệu được chứa tại nhiều bảng, thì ngăn cách giữa các cấu trúc đọc bằng dấu phẩy.</p>\n</li>\n</ul>\n<p><strong>B2:</strong> Tại key \"san_pham\", khai báo giá trị trong bảng được mã hóa như sau:</p>\n<ul>\n<li><p>B2.1: Tạo mảng dữ liệu theo cấu trúc:<br>  [<br>  ‘0’ =&gt; ‘Sản phẩm Alpha’,<br>  ‘1’ =&gt; ‘A01’<br>  ‘2’ =&gt; 10000000,<br>  ‘3’ =&gt; VAT 10%<br>  ]</p>\n</li>\n<li><p>B2.2: Dùng hàm json_encode (PHP)</p>\n</li>\n<li><p>B2.3: Dùng hàm base64_encode (PHP)</p>\n</li>\n</ul>\n<p>Tương tự, thực hiện lặp lại B2 với mỗi key/bảng chứa dữ liệu đầu vào cho bảng Sản phẩm (Items).</p>\n<p><strong>(2) Cách khai báo và mã hóa dữ liệu đầu vào tại Danh mục báo cáo</strong></p>\n<p>Xét ví dụ, để tạo 1 khoản Giảm trừ doanh thu tại Base Income và muốn gắn Danh mục báo cáo (Reporting Categories) cho khoản giảm trừ này, với Chiều dữ liệu là Khu vực (mã chiều = khuvuc) và Thẻ là Miền Bắc (ID của thẻ = 3).</p>\n<ul>\n<li><p><strong>B1:</strong> Tạo mảng dữ liệu theo cấu trúc:<br>  [ { \"dimension_code\": node_id } ]<br>  tức là:<br>  [ { \"khuvuc\": 3 } ]</p>\n</li>\n<li><p><strong>B2:</strong> Dùng hàm base64_encode (PHP)</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"26402107","collectionId":"0dfb5766-2ceb-413f-9085-b69ec1d284fc","publishedId":"2s9YsGiYxE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-05T09:09:34.000Z"},"item":[{"name":"1. Base Finance","item":[{"name":"1.1 Revenue Units","item":[{"name":"1.1.1 Get all Revenue Units","id":"3c6bef61-8014-4a8a-8dd6-74fe7cedb350","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/revenueunits/get","description":"<p>Dùng để lấy dữ liệu của tất cả Đơn vị doanh thu trên Base Finance</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","revenueunits","get"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3c6bef61-8014-4a8a-8dd6-74fe7cedb350"},{"name":"1.1.2 Get all Revenue Centers","id":"c2a20a8e-ef06-403c-aba9-57449b55afdd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/revenuecenters/get","description":"<p>Dùng để lấy dữ liệu của tất cả Trung tâm doanh thu trên Base Finance</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","revenuecenters","get"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2a20a8e-ef06-403c-aba9-57449b55afdd"}],"id":"5f72b5ce-8b46-4fe9-8936-0e25e275cf9b","_postman_id":"5f72b5ce-8b46-4fe9-8936-0e25e275cf9b","description":""},{"name":"1.2 Budgets","item":[{"name":"1.2.1 Create a Budget","id":"d0bb11cc-245c-4ca2-85ff-95d22a891bbf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username hoặc creator_username","value":"trungphan","description":"<p>Người tạo</p>\n","type":"text"},{"key":"name","value":"Ngân sách HN","description":"<p>Tên ngân sách</p>\n","type":"text"},{"key":"content ","value":"Ngân sách cho văn phòng HN","description":"<p>Mô tả và chính sách phân bổ</p>\n","type":"text"},{"key":"purpose","value":"Dự trù chi tiêu trong quý cho văn phòng","description":"<p>Mục đích ngân sách</p>\n","type":"text","uuid":"d3708d92-823d-40b3-b1fe-ec83980f9258"},{"key":"owners","value":"trungphan","description":"<p>Danh sách người phụ trách của ngân sách</p>\n","type":"text","uuid":"edb66cc4-2765-43b6-ad93-37014da4c868"},{"key":"has_teams","value":"0","description":"<p>Có nhóm người theo dõi hay không (mặc định là không, điền 0/1)</p>\n","type":"text","uuid":"5402d354-2c8d-4f9b-afd0-728308198ada"},{"key":"teams","value":"basehn","description":"<p>Danh sách nhóm người theo dõi</p>\n","type":"text","uuid":"9344b7ac-c683-46e7-bf66-f5f76bf5d965"},{"key":"watchers","value":"trungphan, bichtran","description":"<p>Danh sách người theo dõi ngân sách</p>\n","type":"text","uuid":"3095278c-845e-4041-b5ad-b3da863e9794"},{"key":"budget_center","value":"Ngân sách Base","description":"<p>Tên trung tâm ngân sách</p>\n","type":"text","uuid":"8c44a8db-5b32-4cec-87da-e4899c960a1b"}]},"url":"https://finance.{{domain}}/webhook/budget/create","description":"<p>Dùng để lấy dữ liệu của tất cả Mã dòng tiền vào trên Base Finance</p>\n","urlObject":{"protocol":"https","path":["webhook","budget","create"],"host":["finance","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0bb11cc-245c-4ca2-85ff-95d22a891bbf"},{"name":"1.2.2 Allocate a Budget","id":"a864f7e2-0baa-40fc-a577-79546f5373a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"trungphan","description":"<p>Người phân bổ</p>\n","type":"text"},{"key":"budget_name","value":"Ngân sách HN","description":"<p>Tên ngân sách muốn phân bổ</p>\n","type":"text"},{"key":"year","value":"2025","description":"<p>Năm muốn phân bổ ngân sách</p>\n","type":"text"},{"key":"index","value":"6","description":"<p>Tháng muốn phân bổ ngân sách (1-12)</p>\n","type":"text","uuid":"2241f014-36d9-4d22-bba8-6de3432c4d6b"},{"key":"amount","value":"100000","description":"<p>Số tiền muốn phân bổ cho ngân sách</p>\n","type":"text","uuid":"902c2ea7-6d79-4b6f-8203-94a65fdb088d"},{"key":"overspend","value":"1","description":"<p>Có cho phép vượt chi không (mặc định là có, điền 0/1)</p>\n","type":"text","uuid":"52d0cc43-a637-471a-a6d4-65346ce37cf1"}]},"url":"https://finance.{{domain}}/webhook/budget/allocate","description":"<p>Dùng để lấy dữ liệu của tất cả Mã dòng tiền vào trên Base Finance</p>\n","urlObject":{"protocol":"https","path":["webhook","budget","allocate"],"host":["finance","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a864f7e2-0baa-40fc-a577-79546f5373a5"},{"name":"1.2.3 Update followers of a Budget","id":"56299c1f-5b5b-42c2-acb6-7f632e1a1b30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username hoặc creator_username","value":"trungphan","description":"<p>Người tạo</p>\n","type":"text"},{"key":"budget_name","value":"Ngân sách HN","description":"<p>Tên ngân sách</p>\n","type":"text"},{"key":"watchers","value":"trungphan, bichtran","description":"<p>Danh sách người theo dõi ngân sách</p>\n","type":"text"}]},"url":"https://finance.{{domain}}/webhook/budget/update.followers","description":"<p>Dùng để lấy dữ liệu của tất cả Mã dòng tiền vào trên Base Finance</p>\n","urlObject":{"protocol":"https","path":["webhook","budget","update.followers"],"host":["finance","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"56299c1f-5b5b-42c2-acb6-7f632e1a1b30"}],"id":"df424ba6-43dd-42b9-bc5f-985a71c69a85","_postman_id":"df424ba6-43dd-42b9-bc5f-985a71c69a85","description":""},{"name":"1.3 Inflow Codes","item":[{"name":"1.3.1 Get all Inflow Codes","id":"66981327-3ca4-44ce-8190-5a17ff447f17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"updated_from","value":"1687763732","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm bắt đầu *. Chuyển đổi Unix Timestamp</p>\n","type":"text"},{"key":"updated_to","value":"1687763732","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm kết thúc *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/inflowcodes/get","description":"<p>Dùng để lấy dữ liệu của tất cả Mã dòng tiền vào trên Base Finance</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","inflowcodes","get"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"66981327-3ca4-44ce-8190-5a17ff447f17"},{"name":"1.3.2 Get all Inflow Code Groups","id":"756f9c4e-d905-400d-8953-b341f69ed3b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"updated_from","value":"1687763732","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm bắt đầu *. Chuyển đổi Unix Timestamp</p>\n","type":"text"},{"key":"updated_to","value":"1687763732","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm kết thúc *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/inflowcodegroups/get","description":"<p>Dùng để lấy dữ liệu của tất cả Nhóm mã dòng tiền vào trên Base Finance</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","inflowcodegroups","get"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"756f9c4e-d905-400d-8953-b341f69ed3b1"}],"id":"4fb0c477-216c-4c9c-b622-7c263efdc0dd","_postman_id":"4fb0c477-216c-4c9c-b622-7c263efdc0dd","description":""},{"name":"1.4 Custom Dimensions","item":[{"name":"1.4.1 Create Node","id":"1a8dbcac-b2a9-40cb-8376-e1c9902ac553","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{finance_access_token}}","description":"<p>App Access Token của Finance *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người tạo *</p>\n","type":"text"},{"key":"dimension_code","value":"theocuahang","description":"<p>Code của dimension *. Ví dụ chiều \"Theo cửa hàng\" có code là \"theocuahang\".</p>\n","type":"text"},{"key":"breadcrumb_node","value":"Hà Nội/Cửa hàng 47 Nguyễn Tuân","description":"<p>Tên node và tên folder (nếu có) *. Ví dụ tạo thẻ \"Cửa hàng 47 Nguyễn Tuân\" trong folder \"Hà Nội\".</p>\n","type":"text"}]},"url":"https://finance.{{domain}}/extapi/v1/dimension/node/create","description":"<p>Dùng để tạo Thẻ dữ liệu trong 1 Chiều dữ liệu tùy chỉnh trên Base Finance</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","dimension","node","create"],"host":["finance","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a8dbcac-b2a9-40cb-8376-e1c9902ac553"}],"id":"5f209653-325c-4b77-8c67-c67b9870b06f","_postman_id":"5f209653-325c-4b77-8c67-c67b9870b06f","description":""}],"id":"0d66d394-3777-4dd5-9a6a-533b5a73821d","_postman_id":"0d66d394-3777-4dd5-9a6a-533b5a73821d","description":""},{"name":"2. Base Income","item":[{"name":"2.1 Inflows","item":[{"name":"2.1.1 Create an Inflow","id":"f5d19ab0-fdd7-4206-ba16-59eadf463b5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người tạo *</p>\n","type":"text"},{"key":"name","value":"NGUYEN VAN A THANH TOAN","description":"<p>Tên Khoản tiền vào *</p>\n","type":"text"},{"key":"amount","value":"1000000","description":"<p>Số tiền *</p>\n","type":"text"},{"key":"receive_date","value":"05/01/2024","description":"<p>Ngày thu *</p>\n","type":"text"},{"key":"cash_account_id","value":"1","description":"<p>ID của Tài khoản thu (Cash Account) tại Base Finance *</p>\n","type":"text"},{"key":"metatype","value":"revenue","description":"<p>Kiểu dòng tiền vào *, nhập revenue nếu là Doanh thu, other nếu là Khác, transfer nếu là Chuyển nội bộ, hoặc outflow_refund nếu là Hoàn ứng khoản tiền ra</p>\n","type":"text"},{"key":"code_id","value":"123","description":"<p>(Nếu là Doanh thu hoặc Khác) ID của Mã dòng tiền vào</p>\n","type":"text"},{"key":"reference","value":"https://www.giaodich.com/id=234","description":"<p>Tham chiếu</p>\n","type":"text"},{"key":"uuid","value":"234","description":"<p>Mã tham chiếu</p>\n","type":"text"},{"key":"followers","value":"ducdo","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Phiếu thu xuất trước","description":"<p>Mô tả</p>\n","type":"text"},{"key":"categories","value":"khu_vuc-khuvuc","description":"<p>Danh mục. Dữ liệu được lấy từ 1 trường có key là \"khu_vuc\" tại đầu gửi dữ liệu, tương ứng với chiều dữ liệu tùy chỉnh có code là \"khuvuc\" tại Base Finance, tạo thành 1 cặp. Nếu có nhiều cặp, ngăn cách giữa các cặp bằng dấu phẩy.</p>\n","type":"text"},{"key":"khu_vuc","value":"Miền Bắc","description":"<p>Giá trị tại trường \"khu_vuc\". Lấy tên thẻ dữ liệu tại Base Finance.</p>\n","type":"text"},{"key":"custom_tinh_trang_phieu_thu","value":"Đã xuất phiếu thu","description":"<p>Giá trị tại trường tùy chỉnh \"custom_tinh_trang_phieu_thu\" tại Base Income</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/inflow/create","description":"<p>Dùng để tạo Khoản tiền vào trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","inflow","create"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5d19ab0-fdd7-4206-ba16-59eadf463b5c"},{"name":"2.1.2 Get an Inflow","id":"5fb93018-2771-4cdd-a5a6-7f2826b5e87c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"id","value":"1","description":"<p>ID của khoản tiền vào *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/inflow/get","description":"<p>Dùng để lấy dữ liệu của 1 Khoản tiền vào trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","inflow","get"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5fb93018-2771-4cdd-a5a6-7f2826b5e87c"},{"name":"2.1.3 Get all Inflows","id":"056fb3e3-6b12-439e-a070-2e09a6f6dd6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"view_type","value":"cashaccounts","description":"<p>Lọc theo Xem theo, nhập \"following_cash_account\", \"following_inflows\" hoặc \"cashaccounts\"</p>\n","type":"text"},{"key":"view_by_id","value":"394","description":"<p>Nếu lọc Xem theo - Tài khoản tiền (\"cashaccounts\"), nhập ID của Tài khoản tiền</p>\n","type":"text"},{"key":"filter_date_by","value":"this_year","description":"<p>Lọc theo Thời gian (Ngày thu), mặc định là Tháng này, có thể nhập \"today\", \"this_year\" hoặc \"date_range\"</p>\n","type":"text"},{"key":"receive_date_from","value":"01/01/2024","description":"<p>Nếu lọc theo Khoảng thời gian (\"date_range\"), nhập ngày bắt đầu, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"receive_date_to","value":"31/01/2024","description":"<p>Nếu lọc theo Khoảng thời gian (\"date_range\"), nhập ngày kết thúc, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"tab","value":"all","description":"<p>Nếu lọc theo Tab, không truyền tab hoặc nhập \"all\", \"revenue_to_review\" hoặc \"refunded\"</p>\n","type":"text"},{"key":"q","value":"NGUYEN VAN A CHUYEN KHOAN","description":"<p>Tìm theo tên khoản tiền vào</p>\n","type":"text"},{"key":"amount_received_from","value":"0","description":"<p>Lọc theo Số tiền, nhập giá trị bắt đầu</p>\n","type":"text"},{"key":"amount_received_to","value":"10000000","description":"<p>Lọc theo Số tiền, nhập giá trị kết thúc</p>\n","type":"text"},{"key":"metatype","value":"revenue","description":"<p>Lọc theo Kiểu, nhập \"revenue\", \"other\", \"transfer\" hoặc \"outflow_refund\"</p>\n","type":"text"},{"key":"income_id","value":"548","description":"<p>Lọc theo Đơn bán hàng, nhập ID của Đơn bán hàng</p>\n","type":"text"},{"key":"inflow_code","value":"1","description":"<p>Lọc theo Mã dòng tiền vào, nhập ID của Mã dòng tiền vào</p>\n","type":"text"},{"key":"cash_account_id","value":"1","description":"<p>Lọc theo Tài khoản thu, nhập ID của Tài khoản tiền</p>\n","type":"text"},{"key":"user_id","value":"1","description":"<p>Lọc theo Tạo bởi, nhập ID của User</p>\n","type":"text"},{"key":"since_from","value":"1687763732","description":"<p>Lọc theo Thời gian tạo (Tạo lúc/Created at), bắt đầu từ, chuyển đổi Unix Timestamp</p>\n","type":"text"},{"key":"since_to","value":"1687763732","description":"<p>Lọc theo Thời gian tạo (Tạo lúc/Created at), kết thúc lúc, chuyển đổi Unix Timestamp</p>\n","type":"text"},{"key":"updated_from","value":"1687763732","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm bắt đầu, chuyển đổi Unix Timestamp</p>\n","type":"text"},{"key":"updated_to","value":"1687763732","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm kết thúc, chuyển đổi Unix Timestamp</p>\n","type":"text"},{"key":"sort_column","value":"receive_date","description":"<p>Sắp xếp theo cột, nhập \"receive_date\", \"create_at\", \"amount_received\"</p>\n","type":"text"},{"key":"sort_order","value":"desc","description":"<p>Thứ tự sắp xếp, nhập \"desc\" hoặc \"asc\"</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/inflows/get","description":"<p>Dùng để lấy dữ liệu của tất cả Khoản tiền vào trên Base Income, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","inflows","get"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"056fb3e3-6b12-439e-a070-2e09a6f6dd6d"},{"name":"2.1.4 Get all Inflows by last update time","id":"45851c24-9e92-4a8a-a349-e1df3d5048c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"updated_from","value":"1705487100","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm bắt đầu *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"updated_to","value":"1705487130","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm kết thúc *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/inflows/last.update","description":"<p>Dùng để lấy dữ liệu của tất cả Khoản tiền vào trên Base Income, lọc theo Thời gian cập nhật gần nhất</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","inflows","last.update"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"45851c24-9e92-4a8a-a349-e1df3d5048c4"}],"id":"8346df9f-e2e8-4682-93ea-6d3419f84544","_postman_id":"8346df9f-e2e8-4682-93ea-6d3419f84544","description":""},{"name":"2.2 Incomes","item":[{"name":"Incomes","item":[{"name":"2.2.1 Create an Income","id":"68c1edd5-4cf4-485b-909a-93b0b158a934","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Đơn bán hàng - Công ty ABC","description":"<p>Tên Đơn bán hàng *</p>\n","type":"text"},{"key":"creator_username","value":"ducdo","description":"<p>Username của người tạo * </p>\n","type":"text"},{"key":"since","value":"1708403983","description":"<p>Ngày tạo *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"record_date","value":"01/01/2024","description":"<p>Ngày ghi nhận đơn bán hàng *</p>\n","type":"text"},{"key":"customer_name","value":"Công ty ABC","description":"<p>Tên Khách hàng *</p>\n","type":"text"},{"key":"customer_tax_code","value":"123456789","description":"<p>Mã số thuế của khách hàng</p>\n","type":"text"},{"key":"customer_address","value":"47 Nguyễn Tuân, Hà Nội","description":"<p>Địa chỉ của khách hàng</p>\n","type":"text"},{"key":"buyer_full_name","value":"CÔNG TY CP ABC","description":"<p>Tên người mua của khách hàng</p>\n","type":"text"},{"key":"buyer_email","value":"emailcongty@abc.com","description":"<p>Email người mua của khách hàng</p>\n","type":"text"},{"key":"buyer_phone_number","value":"0912345678","description":"<p>Số điện thoại người mua của khách hàng</p>\n","type":"text"},{"key":"ir_full_name","value":"Nguyen Van A","description":"<p>Tên người nhận hóa đơn của khách hàng</p>\n","type":"text"},{"key":"ir_email","value":"a.nguyen@abc.com","description":"<p>Email người nhận hóa đơn của khách hàng</p>\n","type":"text"},{"key":"ir_phone_number","value":"0912345678","description":"<p>Số điện thoại người nhận hóa đơn của khách hàng</p>\n","type":"text"},{"key":"revenue_unit","value":"Phòng KD 1 CN Hà Nội","description":"<p>Tên Đơn vị doanh thu *, lấy từ danh sách tại Base Finance</p>\n","type":"text"},{"key":"revenue_center","value":"CN Hà Nội","description":"<p>Tên Trung tâm doanh thu, lấy từ danh sách tại Base Finance</p>\n","type":"text"},{"key":"salesperson","value":"ducdo","description":"<p>Username của nhân viên kinh doanh *</p>\n","type":"text"},{"key":"mode_read_items","value":"0","description":"<p>Cách lấy dữ liệu bảng Sản phẩm, mặc định để trống hoặc nhập \"0\" để lấy theo cách 0 (theo cấu trúc dạng bảng), hoặc nhập \"1\" để lấy theo cách 1 (theo cấu trúc danh sách giống như Import Đơn bán hàng từ Excel)</p>\n","type":"text"},{"key":"custom_item_lines","value":"san_pham:name.0-code.1-amount_excl.2-tax_policy.3-tax_amount.4","description":"<p>(Nếu theo cách 0) Bảng Sản phẩm *. Dữ liệu được lấy từ 1 bảng có key \"san_pham\" tại đầu gửi dữ liệu, gồm 5 cột: Tên sản phẩm, Tên mã dòng tiền vào, Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, trong đó tên mã dòng tiền vào, tên chính sách thuế lấy từ danh sách tại Base Finance. Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_item_lines","value":"san_pham:product_code.0-quantity.1-unit_price.2-tax_policy.3-tax_amount.4","description":"<p>(Nếu theo cách 0 và có Số lượng, Đơn giá) Bảng Sản phẩm *. Dữ liệu được lấy từ 1 bảng có key \"san_pham\" tại đầu gửi dữ liệu, gồm 5 cột: Tên Hàng hóa, dịch vụ, Số lượng, Đơn giá, Tên chính sách thuế, Số tiền thuế, trong đó tên hàng hóa, dịch vụ, tên chính sách thuế lấy từ danh sách tại Base Finance. Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"san_pham","value":"{{Giá trị tại bảng \"san_pham\" đã được mã hóa}}","description":"<p>(Nếu theo cách 0) Giá trị tại bảng \"san_pham\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_item_lines","value":"Sản phẩm Alpha_1_1000000_Doanh thu bán hàng hóa_1000000_VAT 10%_","description":"<p>(Nếu theo cách 1) Bảng Sản phẩm *. Dữ liệu được lấy từ 1 cột có cấu trúc tương tự cột Sản phẩm khi nhập Đơn bán hàng từ Excel.</p>\n","type":"text"},{"key":"single_code","value":"Sản phẩm Alpha","description":"<p>(Nếu đơn luôn chỉ có 1 sản phẩm) Tên mã dòng tiền vào *, lấy từ danh sách tại Base Finance</p>\n","type":"text"},{"key":"single_amount","value":"1000000","description":"<p>(Nếu đơn luôn chỉ có 1 sản phẩm) Số tiền (không gồm thuế) *</p>\n","type":"text"},{"key":"tax_policy","value":"VAT 10%","description":"<p>(Nếu đơn luôn chỉ có 1 sản phẩm) Tên chính sách thuế, lấy từ danh sách tại Base Finance</p>\n","type":"text"},{"key":"mode_read_deductions","value":"0","description":"<p>(Nếu đơn có phí giảm trừ) Cách lấy dữ liệu bảng Chi phí cấn trừ, mặc định để trống hoặc nhập \"0\" để lấy theo cách 0 (theo cấu trúc dạng bảng), hoặc nhập \"1\" để lấy theo cách 1 (theo cấu trúc danh sách giống như Import Đơn bán hàng từ Excel)</p>\n","type":"text"},{"key":"custom_deduction_lines","value":"phi_giam_tru:name.0-budget.1-outflow_code.2-amount_excl.3-tax_policy.4-tax_amount.5-record_date.6","description":"<p>(Nếu theo cách 0) Bảng Chi phí cấn trừ *. Dữ liệu được lấy từ 1 bảng có có key \"phi_giam_tru\" tại đầu gửi dữ liệu, gồm 7 cột: \nTên phí, Tên ngân sách, Tên mã dòng tiền ra, Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, Ngày ghi nhận, trong đó tên ngân sách, tên mã dòng tiền ra và tên chính sách thuế lấy từ danh sách tại Base Finance.</p>\n<p> Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. </p>\n<p>Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_deduction_lines","value":"phi_giam_tru:name.0-budget.1-outflow_code.2-amount_excl.3-tax_policy.4-tax_amount.5-record_date.6-deductible_vat.7","description":"<p>﻿(Nếu đơn có phí giảm trừ) Bảng Phí giảm trừ *. Dữ liệu được lấy từ 1 bảng có có key \"phi_giam_tru\" tại đầu gửi dữ liệu, gồm 8 cột:\nTên phí, Tên ngân sách, Tên mã dòng tiền ra, Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, Ngày ghi nhận,Chọn khấu trừ thuế giá trị gia tăng (có/không) , trong đó tên ngân sách, tên mã dòng tiền ra và tên chính sách thuế lấy từ danh sách tại Base Finance.</p>\n<p>Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. </p>\n<p>Nếu Khấu trừ thuế giá trị gia tăng bằng 1 thì là có khấu trừ, bằng 0 thì là không khấu trừ. </p>\n<p>Mặc định là có khấu trừ. </p>\n<p>Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. </p>\n<p>Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text","uuid":"976d720e-d325-41d7-9203-e9d5a42ecaf7"},{"key":"custom_deductions_lines","value":"phi_giam_tru_doanh_thu:name.0-amount_excl.1-tax_policy.2-tax_amount.3-record_date.4-inflow_code.5-is_deduct_income_value.6","description":"<p>(Nếu đơn có phí giảm trừ doanh thu) Bảng Phí giảm trừ doanh thu *. Dữ liệu được lấy từ 1 bảng có có key \"phi_giam_tru_doanh_thu\" tại đầu gửi dữ liệu, gồm 7 cột:\nTên phí giảm trừ doanh thu,Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, Ngày ghi nhận, mã dòng tiền vào, cột đánh dấu là mã giảm trừ doanh thu. Trong đó mã dòng tiền có tài khoản kế toán là mã giảm trừ doanh thu vào được lấy từ Base Finance\nNếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1.<br />Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. \nĐọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text","uuid":"bd03db15-cbd6-44c9-a06b-b770b82e299f"},{"key":"custom_deductions_lines","value":"phi_giam_tru_doanh_thu:product_code.0-quantity.1-unit_price.2-inflow_code.3-tax_policy.4-record_date.5-is_deduct_income_value.6","description":"<p>(Nếu đơn có phí giảm trừ doanh thu) Bảng Phí giảm trừ doanh thu *. Dữ liệu được lấy từ 1 bảng có có key \"phi_giam_tru_doanh_thu\" tại đầu gửi dữ liệu, gồm 7 cột:</p>\n<p>Tên hàng hóa/dịch vụ giảm trừ, Số lượng, Đơn giá, Mã dòng tiền vào, Tên chính sách thuế, Ngày ghi nhận, Cột đánh dấu là mã giảm trừ doanh thu.</p>\n<p>Trong đó Tên hàng hóa/dịch vụ giảm trừ, tên chính sách thuế lấy từ danh sách tại Base Finance.</p>\n<p>Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text","uuid":"72ebf791-65b5-410c-813b-3a0abeab1dbc"},{"key":"due_date","value":"31/01/2024","description":"<p>Hạn thu *</p>\n","type":"text"},{"key":"phi_giam_tru","value":"{{Giá trị tại bảng \"phi_giam_tru\" đã được mã hóa}}","description":"<p>(Nếu theo cách 0) Giá trị tại bảng \"phi_giam_tru\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"phi_giam_tru_doanh_thu","value":"{{Giá trị tại bảng \"phi_giam_tru\" đã được mã hóa}}","description":"<p>(Nếu theo cách 0) Giá trị tại bảng \"phi_giam_tru_doanh_thu\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text","uuid":"bbeedc05-506d-472f-8483-cc361fe824d7"},{"key":"custom_deduction_lines","value":"Phí ngân hàng_Ngân sách khác_Chi phí khác_100000_KCT__07/12/2024","description":"<p>(Nếu theo cách 1) Bảng Chi phí cấn trừ *. Dữ liệu được lấy từ 1 cột có cấu trúc tương tự cột Chi phí cấn trừ khi nhập Đơn bán hàng từ Excel.</p>\n","type":"text"},{"key":"mode_read_estimated_receivings","value":"0","description":"<p>(Nếu đơn dự thu thành nhiều đợt) Cách lấy dữ liệu bảng Các đợt dự thu, , mặc định để trống hoặc nhập \"0\" để lấy theo cách 0 (theo cấu trúc dạng bảng), hoặc nhập \"1\" để lấy theo cách 1 (theo cấu trúc danh sách giống như Import Đơn bán hàng từ Excel)</p>\n","type":"text"},{"key":"custom_due_date_lines","value":"cac_dot_du_thu:due_date.0-to_be_received.1","description":"<p>(Nếu theo cách 0) Bảng Các đợt dự thu *. Dữ liệu được lấy từ 1 bảng có key \"cac_dot_du_thu\" tại đầu gửi dữ liệu, gồm 2 cột: Ngày dự thu (dd/mm/yyyy), Số tiền dự thu. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu</p>\n","type":"text"},{"key":"cac_dot_du_thu","value":"{{Giá trị tại bảng \"cac_dot_du_thu\" đã được mã hóa}}","description":"<p>(Nếu theo cách 0) Giá trị tại bảng \"cac_dot_du_thu\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu</p>\n","type":"text"},{"key":"custom_due_date_lines","value":"30/11/2024_500000,31/12/2024_500000","description":"<p>(Nếu theo cách 1) Bảng Các đợt dự thu *. Dữ liệu được lấy từ 1 cột có cấu trúc tương tự cột Các đợt dự thu khi nhập Đơn bán hàng từ Excel.</p>\n","type":"text"},{"key":"mode_read_inflows","value":"0","description":"<p>(Nếu đơn đã thu) Cách lấy dữ liệu bảng Các đợt thực thu, mặc định để trống hoặc nhập \"0\" để lấy theo cách 0 (theo cấu trúc dạng bảng), hoặc nhập \"1\" để lấy theo cách 1 (theo cấu trúc danh sách giống như Import Đơn bán hàng từ Excel)</p>\n","type":"text"},{"key":"inflows","value":"{{Giá trị tại bảng Các đợt thực thu đã được mã hóa}}","description":"<p>(Nếu theo cách 0) Giá trị tại bảng Các đợt thực thu *. Dữ liệu được lấy từ 1 bảng tại đầu gửi dữ liệu, gồm 3 cột: Ngày thực thu (dd/mm/yyyy), Số tiền thực thu, Tên tài khoản tiền, trong đó tên tài khoản tiền lấy tại Base Finance. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"inflows","value":"30/11/2024_500000_Tiền mặt,31/12/2024_500000_Tài khoản TPBank","description":"<p>(Nếu theo cách 1) Bảng Các đợt thực thu *. Dữ liệu được lấy từ 1 cột có cấu trúc tương tự cột Các đợt thực thu khi nhập Đơn bán hàng từ Excel.</p>\n","type":"text"},{"key":"link","value":"https://www.hopdong.com/id=234","description":"<p>Tham chiếu</p>\n","type":"text"},{"key":"uuid","value":"234","description":"<p>Mã tham chiếu</p>\n","type":"text"},{"key":"followers","value":"ducdo","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Đơn bán hàng đã nhận hàng","description":"<p>Mô tả</p>\n","type":"text"},{"key":"transform_categories_keys","value":"khu_vuc-khuvuc","description":"<p>Danh mục. Dữ liệu được lấy từ 1 trường có key là \"khu_vuc\" tại đầu gửi dữ liệu, tương ứng với chiều dữ liệu tùy chỉnh có code là \"khuvuc\" tại Base Finance, tạo thành 1 cặp. Nếu có nhiều cặp, ngăn cách giữa các cặp bằng dấu phẩy.</p>\n","type":"text"},{"key":"khu_vuc","value":"Miền Bắc","description":"<p>Giá trị tại trường \"khu_vuc\". Lấy tên thẻ dữ liệu tại Base Finance.</p>\n","type":"text"},{"key":"custom_tinh_trang_nhan_hang","value":"Đã nhận hàng","description":"<p>Giá trị tại trường tùy chỉnh \"custom_tinh_trang_nhan_hang\" tại Base Income</p>\n","type":"text"}]},"url":"https://income.{{domain}}/webhook/income/create.waiting.receive/{{income_type_token}}","description":"<p>Dùng để tạo 1 Đơn bán hàng trên Income</p>\n","urlObject":{"protocol":"https","path":["webhook","income","create.waiting.receive","{{income_type_token}}"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"68c1edd5-4cf4-485b-909a-93b0b158a934"},{"name":"2.2.2 Edit Info","id":"0424bf41-e197-4cdd-a97e-c71b1bea8edf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"creator_username","value":"ducdo","description":"<p>Username của người sửa *</p>\n","type":"text"},{"key":"uuid","value":"234","description":"<p>Mã tham chiếu *</p>\n","type":"text"},{"key":"income_since","value":"01/01/2024","description":"<p>Ngày tạo</p>\n","type":"text"},{"key":"income_name","value":"Đơn bán hàng - Công ty XYZ","description":"<p>Sửa tên đơn bán hàng</p>\n","type":"text"},{"key":"revenue_unit","value":"Phòng KD 2 - Hà Nội","description":"<p>Sửa Đơn vị doanh thu</p>\n","type":"text"},{"key":"salesperson","value":"bichtran","description":"<p>Sửa Nhân viên kinh doanh</p>\n","type":"text"},{"key":"record_date","value":"20/07/2024","description":"<p>Sửa Ngày ghi nhận</p>\n","type":"text"},{"key":"due_date","value":"31/07/2024","description":"<p>Sửa hạn thu</p>\n","type":"text"},{"key":"transform_categories_keys","value":"khu_vuc-khuvuc","description":"<p>Danh mục. Dữ liệu được lấy từ 1 trường có key là \"khu_vuc\" tại đầu gửi dữ liệu, tương ứng với chiều dữ liệu tùy chỉnh có code là \"khuvuc\" tại Base Finance, tạo thành 1 cặp. Nếu có nhiều cặp, ngăn cách giữa các cặp bằng dấu phẩy.</p>\n","type":"text"},{"key":"khu_vuc","value":"Miền Bắc","description":"<p>Sửa giá trị tại trường \"khu_vuc\". Lấy tên thẻ dữ liệu tại Base Finance.</p>\n","type":"text"},{"key":"followers","value":"ducdo","description":"<p>Sửa người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"transform_files_keys","value":"https://data/...","description":"<p>Sửa tệp đính kèm, dạng text (link)</p>\n","type":"text"},{"key":"income_content","value":"Đơn bán hàng đã nhận hàng","description":"<p>Sửa mô tả</p>\n","type":"text"},{"key":"custom_tinh_trang_nhan_hang","value":"Đã nhận hàng","description":"<p>Sửa giá trị tại trường tùy chỉnh \"custom_tinh_trang_nhan_hang\" tại Base Income</p>\n","type":"text"}]},"url":"https://income.{{domain}}/webhook/income/soft.update/{{income_type_token}}","description":"<p>Dùng để sửa thông tin của 1 Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["webhook","income","soft.update","{{income_type_token}}"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0424bf41-e197-4cdd-a97e-c71b1bea8edf"},{"name":"2.2.3 Cancel an Income","id":"a6600b87-00b6-4bb7-9928-bb9423c9468b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"creator_username","value":"ducdo","description":"<p>Username của người sửa *</p>\n","type":"text"},{"key":"uuid","value":"234","description":"<p>Mã tham chiếu *</p>\n","type":"text"},{"key":"since","value":"01/01/2024","description":"<p>Ngày tạo *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/webhook/income/cancel/{{income_type_token}}","description":"<p>Dùng để hủy 1 Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["webhook","income","cancel","{{income_type_token}}"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6600b87-00b6-4bb7-9928-bb9423c9468b"},{"name":"2.2.4 Mark an Income as Invoiced","id":"267f63c9-8dbe-4d5e-876d-1ca7d8f509a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"creator_username","value":"ducdo","description":"<p>Username của người thực hiện *</p>\n","type":"text"},{"key":"uuid","value":"234","description":"<p>Mã tham chiếu của đơn bán hàng *</p>\n","type":"text"},{"key":"income_since","value":"01/01/2024","description":"<p>Ngày tạo đơn bán hàng *</p>\n","type":"text"},{"key":"transform_files_keys","value":"invoice_files-custom_file_hoa_don","description":"<p>Chuyển đổi giá trị tại trường \"custom_file_hóa đơn\" thành file Hóa đơn tại Income</p>\n","type":"text"},{"key":"custom_file_hoa_don","value":"{Dữ liệu file hóa đơn}","description":"<p>Giá trị tại trường \"custom_file_hoa_don\" chứa file hóa đơn tại đầu gửi dữ liệu</p>\n","type":"text"}]},"url":"https://income.{{domain}}/webhook/income/mark.invoiced/{{income_type_token}}","description":"<p>Dùng để đánh dấu Đã lập hóa đơn cho 1 Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["webhook","income","mark.invoiced","{{income_type_token}}"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"267f63c9-8dbe-4d5e-876d-1ca7d8f509a3"},{"name":"2.2.6 Create Inflows linked","id":"44ec88b1-a16f-459e-a18a-c1f44945e166","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"id","value":"234","description":"<p>ID đơn bán hàng *</p>\n","type":"text"},{"key":"uuid","value":"234","description":"<p>Mã tham chiếu của đơn bán hàng * (nếu không có id)</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người tạo khoản tiền vào *</p>\n","type":"text"},{"key":"since","value":"1705487100","description":"<p>Thời gian tạo khoản tiền vào *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"inflows","value":"{{Giá trị tại bảng Thực thu mới đã được mã hóa}}","description":"<p>Giá trị tại bảng Thực thu mới *. Dữ liệu được lấy từ 1 bảng tại đầu gửi dữ liệu, gồm 6 cột: Ngày thực thu * (dd/mm/yyyy), Số tiền thực thu *, Tên tài khoản tiền *, Tên khoản tiền vào, Mã tham chiếu, Mô tả, trong đó tên tài khoản tiền lấy tại Base Finance. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/income/record.inflows","description":"<p>Dùng để tạo Khoản tiền vào và gắn với 1 Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","income","record.inflows"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"44ec88b1-a16f-459e-a18a-c1f44945e166"},{"name":"2.2.7 Get an Income","id":"a53e6b34-e5dd-43de-ae52-354772994a3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"id","value":"1","description":"<p>ID của đơn bán hàng *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/income/get","description":"<p>Dùng để lấy dữ liệu của 1 Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","income","get"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a53e6b34-e5dd-43de-ae52-354772994a3c"},{"name":"2.2.8 Get all Incomes","id":"4c119cbb-3655-49df-ab2a-851bb1879908","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"view_type","value":"my_incomes","description":"<p>Lọc theo Xem theo, nhập \"following\", \"my_incomes\", \"all_revenue_units\", \"revenuecenters\" hoặc \"revenueunits\"</p>\n","type":"text"},{"key":"view_by_id","value":"1","description":"<p>Nếu lọc Xem theo - Đơn vị doanh thu (\"revenueunits\") hoặc Trung tâm doanh thu (\"revenuecenters\"), nhập ID của Đơn vị doanh thu hoặc Trung tâm doanh thu</p>\n","type":"text"},{"key":"filter_date_by","value":"this_year","description":"<p>Lọc theo Thời gian, mặc định là Tháng này, có thể nhập \"today\", \"this_year\" hoặc \"date_range\"</p>\n","type":"text"},{"key":"date_from","value":"01/01/2024","description":"<p>Nếu lọc theo Khoảng thời gian (\"date_range\"), nhập ngày bắt đầu, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"date_to","value":"31/01/2024","description":"<p>Nếu lọc theo Khoảng thời gian (\"date_range\"), nhập ngày kết thúc, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"view_list_by","value":"all","description":"<p>Nếu lọc theo Tab, nhập \"all\", \"received\" hoặc \"remaining\"</p>\n","type":"text"},{"key":"q","value":"HĐ Công ty CP ABC","description":"<p>Tìm theo tên đơn bán hàng</p>\n","type":"text"},{"key":"status","value":"waiting_receive","description":"<p>Lọc theo Trạng thái, nhập \"draft\", \"waiting_receive\", \"partially_received\", \"fully_received\", \"done\", \"cancelled\"</p>\n","type":"text"},{"key":"income_type_id","value":"1","description":"<p>Lọc theo Loại đơn bán hàng, nhập ID của Loại đơn bán hàng</p>\n","type":"text"},{"key":"customer_id","value":"1","description":"<p>Lọc theo Khách hàng, nhập ID của Khách hàng</p>\n","type":"text"},{"key":"revenue_unit_id","value":"1","description":"<p>Lọc theo Đơn vị doanh thu, nhập ID của Đơn vị doanh thu</p>\n","type":"text"},{"key":"salesperson","value":"ducdo","description":"<p>Lọc theo Nhân viên kinh doanh, nhập username</p>\n","type":"text"},{"key":"user_id","value":"1","description":"<p>Lọc theo Tạo bởi, nhập ID của User</p>\n","type":"text"},{"key":"remaining_amount_from","value":"0","description":"<p>Lọc theo số tiền Giá trị đơn bán hàng, nhập giá trị bắt đầu</p>\n","type":"text"},{"key":"remaining_amount_to","value":"1000000","description":"<p>Lọc theo số tiền Giá trị đơn bán hàng, nhập giá trị kết thúc</p>\n","type":"text"},{"key":"received_from","value":"0","description":"<p>Lọc theo số tiền Đã thu, nhập giá trị bắt đầu</p>\n","type":"text"},{"key":"received_to","value":"1000000","description":"<p>Lọc theo số tiền Đã thu, nhập giá trị kết thúc</p>\n","type":"text"},{"key":"remaining_from","value":"0","description":"<p>Lọc theo số tiền Còn phải thu, nhập giá trị bắt đầu</p>\n","type":"text"},{"key":"remaining_to","value":"1000000","description":"<p>Lọc theo số tiền Còn phải thu, nhập giá trị kết thúc</p>\n","type":"text"},{"key":"due_date_from","value":"01/01/2024","description":"<p>Lọc theo Hạn thu, nhập ngày bắt đầu, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"due_date_to","value":"31/01/2024","description":"<p>Lọc theo Hạn thu, nhập ngày kết thúc, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"updated_from","value":"1687763732","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm bắt đầu, chuyển đổi Unix Timestamp</p>\n","type":"text"},{"key":"updated_to","value":"1687763732","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm kết thúc, chuyển đổi Unix Timestamp</p>\n","type":"text"},{"key":"sort_column","value":"receive_date","description":"<p>Sắp xếp theo cột, nhập \"receive_date\", \"create_at\", \"amount_received\"</p>\n","type":"text"},{"key":"sort_order","value":"desc","description":"<p>Thứ tự sắp xếp, nhập \"desc\" hoặc \"asc\"</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/incomes/get","description":"<p>Dùng để lấy dữ liệu của tất cả Đơn bán hàng trên Base Income, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","incomes","get"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c119cbb-3655-49df-ab2a-851bb1879908"},{"name":"2.2.9 Get all Incomes by last update time","id":"8f853391-a920-4653-b49a-bc026f78361b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"updated_from","value":"1705487100","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm bắt đầu *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"updated_to","value":"1705487130","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm kết thúc *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/incomes/last.update","description":"<p>Dùng để lấy dữ liệu của tất cả Đơn bán hàng trên Base Income, lọc theo Thời gian cập nhật gần nhất</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","incomes","last.update"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f853391-a920-4653-b49a-bc026f78361b"}],"id":"d306d2a5-592b-4b2e-8229-b8d27761f546","_postman_id":"d306d2a5-592b-4b2e-8229-b8d27761f546","description":""},{"name":"Adjustments","item":[{"name":"2.2.10 Add an Adjustment","id":"23eef2da-9a9f-4a9b-8a77-3219a165b493","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người thêm điều chỉnh *</p>\n","type":"text"},{"key":"income_id","value":"1","description":"<p>ID của Đơn bán hàng *</p>\n","type":"text"},{"key":"name","value":"Điều chỉnh Phụ lục 1","description":"<p>Tên của khoản điều chỉnh *</p>\n","type":"text"},{"key":"code","value":"HD151PL123","description":"<p>Mã phân biệt khoản điều chỉnh *, do người thêm điều chỉnh tự đặt</p>\n","type":"text"},{"key":"content","value":"Điều chỉnh theo Phụ lục 1, ký ngày 03/07/2024","description":"<p>Mô tả của khoản điều chỉnh</p>\n","type":"text"},{"key":"record_date","value":"03/07/2024","description":"<p>Ngày ghi nhận điều chỉnh *</p>\n","type":"text"},{"key":"change_items","value":"1","description":"<p>Nhập 1 nếu có điều chỉnh Sản phẩm, dịch vụ, hoặc 0 nếu không điều chỉnh Sản phẩm, dịch vụ *</p>\n","type":"text"},{"key":"custom_item_lines","value":"san_pham:name.0-code.1-amount_excl.2-tax_policy.3-tax_amount.4-id.5","description":"<p>(Nếu có điều chỉnh Sản phẩm, dịch vụ) Bảng Sản phẩm sau khi điều chỉnh *. Dữ liệu được lấy từ 1 bảng có key \"san_pham\" tại đầu gửi dữ liệu, gồm 6 cột: Tên sản phẩm, Tên mã dòng tiền vào, Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, ID của dòng sản phẩm, dịch vụ (nếu đã có), trong đó tên mã dòng tiền vào, tên chính sách thuế lấy từ danh sách tại Base Finance. Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_item_lines","value":"san_pham:product_code.0-quantity.1-unit_price.2-tax_policy.3-tax_amount.4-id.5","description":"<p>(Nếu có điều chỉnh Sản phẩm, dịch vụ) Bảng Sản phẩm, nếu có Số lượng và Đơn giá *. Dữ liệu được lấy từ 1 bảng có key \"san_pham\" tại đầu gửi dữ liệu, gồm 6 cột: Tên Hàng hóa, dịch vụ, Số lượng, Đơn giá, Tên chính sách thuế, Số tiền thuế, ID của dòng sản phẩm, dịch vụ (nếu đã có), trong đó tên hàng hóa, dịch vụ, tên chính sách thuế lấy từ danh sách tại Base Finance. Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"san_pham","value":"{{Giá trị tại bảng \"san_pham\" đã được mã hóa}}","description":"<p>(Nếu có điều chỉnh Sản phẩm, dịch vụ) Giá trị tại bảng \"san_pham\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"is_multiple_due_date","value":"1","description":"<p>Nhập 1 nếu điều chỉnh Các đợt dự thu từ 1 đợt thành nhiều đợt * </p>\n","type":"text"},{"key":"custom_due_date_lines","value":"cac_dot_du_thu:due_date.0-to_be_received.1","description":"<p>(Nếu có điều chỉnh Các đợt dự thu) Bảng Các đợt dự thu *. Dữ liệu được lấy từ 1 bảng có key \"cac_dot_du_thu\" tại đầu gửi dữ liệu, gồm 2 cột: Ngày dự thu (dd/mm/yyyy), Số tiền dự thu. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu</p>\n","type":"text"},{"key":"cac_dot_du_thu","value":"{{Giá trị tại bảng \"cac_dot_du_thu\" đã được mã hóa}}","description":"<p>(Nếu có điều chỉnh Các đợt dự thu) Giá trị tại bảng \"cac_dot_du_thu\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu</p>\n","type":"text"},{"key":"approved_usernames","value":"bichtran, ngocnguyen04","description":"<p>(Nếu điều chỉnh đã được duyệt) Username của những người đã duyệt điều chỉnh, ngăn cách giữa các username bằng dấu phẩy *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/amendment/create","description":"<p>Dùng để thêm Điều chỉnh mới cho Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","amendment","create"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"23eef2da-9a9f-4a9b-8a77-3219a165b493"},{"name":"2.2.11 Delete an Adjustment","id":"8be84a19-7119-4d85-960a-5a084abeefd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người xóa điều chỉnh *</p>\n","type":"text"},{"key":"amendment_id","value":"15121","description":"<p>ID của khoản điều chỉnh *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/amendment/remove","description":"<p>Dùng để xóa 1 Điều chỉnh của Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","amendment","remove"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8be84a19-7119-4d85-960a-5a084abeefd8"},{"name":"2.2.12 Get an Adjustment","id":"ab3d7ac2-9268-47ac-94e2-04d7d8013ee2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"amendment_id","value":"15121","description":"<p>ID của khoản điều chỉnh *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/amendment/get","description":"<p>Dùng để lấy dữ liệu 1 Điều chỉnh của Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","amendment","get"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ab3d7ac2-9268-47ac-94e2-04d7d8013ee2"}],"id":"7a27b33f-57d9-4154-b5b2-124f7790cb16","_postman_id":"7a27b33f-57d9-4154-b5b2-124f7790cb16","description":""}],"id":"0ea2a0d3-57d4-4264-ad7b-8cb1d3aac6b8","description":"<p>*{{income_type_token}}:</p>\n<p>Trên Base Income &gt; Cài đặt &gt; Loại đơn bán hàng, mở Webhooks của Loại đơn bán hàng muốn chọn, income_type_token là đoạn mã được dùng trong các endpoint.</p>\n","_postman_id":"0ea2a0d3-57d4-4264-ad7b-8cb1d3aac6b8"},{"name":"2.3 Incomes & Inflows","item":[{"name":"2.3.1 Link Inflow to Income","id":"376fc621-9c64-465a-a2fa-7cff45370f3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người thực hiện *</p>\n","type":"text"},{"key":"income_id","value":"123","description":"<p>ID của đơn bán hàng *</p>\n","type":"text"},{"key":"inflow_ids","value":"242,412,124","description":"<p>ID của khoản tiền vào *. Nếu có nhiều khoản tiền vào, ngăn cách giữa các ID bằng dấu phẩy.</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/income/link.inflows","description":"<p>Dùng để gắn Khoản tiền vào với Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","income","link.inflows"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"376fc621-9c64-465a-a2fa-7cff45370f3a"},{"name":"2.3.1 Unlink Inflow from Income","id":"6160339a-81f0-40a7-a922-b21e4fa6adc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người thực hiện *</p>\n","type":"text"},{"key":"income_id","value":"123","description":"<p>ID của đơn bán hàng *</p>\n","type":"text"},{"key":"inflow_ids","value":"242,412,124","description":"<p>ID của khoản tiền vào *. Nếu có nhiều khoản tiền vào, ngăn cách giữa các ID bằng dấu phẩy.</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/income/unlink.inflows","description":"<p>Dùng để bỏ gắn Khoản tiền vào với Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","income","unlink.inflows"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6160339a-81f0-40a7-a922-b21e4fa6adc6"}],"id":"2cfc074f-b77a-4ed8-b0d9-8ad7e7ae77dc","_postman_id":"2cfc074f-b77a-4ed8-b0d9-8ad7e7ae77dc","description":""},{"name":"2.4 Deductions","item":[{"name":"2.4.1 Add a Sales Deduction","id":"3cfbca2b-a077-48e1-8b23-2165d8f5bc52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người thêm khoản giảm trừ *</p>\n","type":"text"},{"key":"name","value":"Giảm trừ doanh thu","description":"<p>Tên của khoản giảm trừ *</p>\n","type":"text"},{"key":"metatype","value":"sales_deduction","description":"<p>Kiểu khoản Giảm trừ * (Giảm trừ doanh thu hoặc Chi phí cấn trừ), nhập sales_deduction để tạo Giảm trừ doanh thu</p>\n","type":"text"},{"key":"customer_id","value":"230","description":"<p>ID của Khách hàng *</p>\n","type":"text"},{"key":"income_id","value":"4151","description":"<p>ID của Đơn bán hàng</p>\n","type":"text"},{"key":"custom_item_lines","value":"hang_muc_giam_tru:name.0-code.1-amount_excl.2-tax_policy.3-tax_amount.4-categories.5","description":"<p>Bảng Hạng mục giảm trừ *. Dữ liệu được lấy từ 1 bảng có key \"hang_muc_giam_tru\" tại đầu gửi dữ liệu, gồm 5 cột: Tên hạng mục, Tên mã dòng tiền vào, Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, trong đó tên mã dòng tiền vào, tên chính sách thuế lấy từ danh sách tại Base Finance, mã dòng tiền vào phải gắn với Tài khoản kế toán Giảm trừ doanh thu (TK 521). Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo, mã hóa dữ liệu đầu vào dạng bảng và dữ liệu đầu vào tại Danh mục trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_item_lines","value":"hang_muc_giam_tru:product_code.0-quantity.1-unit_price.2-tax_policy.3-tax_amount.4-categories.5","description":"<p>Bảng Hạng mục giảm trừ, nếu có Số lượng và Đơn giá *. Dữ liệu được lấy từ 1 bảng có key \"san_pham\" tại đầu gửi dữ liệu, gồm 5 cột: Tên Hàng hóa, dịch vụ giảm trừ, Số lượng, Đơn giá, Tên chính sách thuế, Số tiền thuế, trong đó tên hàng hóa, dịch vụ, tên chính sách thuế lấy từ danh sách tại Base Finance, mã dòng tiền vào phải gắn với Tài khoản kế toán Giảm trừ doanh thu (TK 521). Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"hang_muc_giam_tru","value":"{{Giá trị tại bảng \"hang_muc_giam_tru\" đã được mã hóa}}","description":"<p>Giá trị tại bảng \"hang_muc_giam_tru\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu</p>\n","type":"text"},{"key":"record_date","value":"09/09/2024","description":"<p>Ngày ghi nhận khoản giảm trừ *</p>\n","type":"text"},{"key":"deduct_from_receivable_amount_of_income","value":"3000000","description":"<p>(Nếu giảm trừ dự thu của Đơn bán hàng) Số tiền giảm trừ *</p>\n","type":"text"},{"key":"obj_categories","value":"{{Giá trị Danh mục báo cáo đã được mã hóa}}","description":"<p>Đọc cách khai báo, mã hóa dữ liệu đầu vào tại Danh mục trên đầu tài liệu.</p>\n","type":"text"},{"key":"reference","value":"https://www.hopdong.com/id=234","description":"<p>Tham chiếu</p>\n","type":"text"},{"key":"uuid","value":"234","description":"<p>Mã tham chiếu</p>\n","type":"text"},{"key":"followers","value":"ducdo","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Giảm giá hàng bán ngày 09/09/2024","description":"<p>Mô tả của khoản giảm trừ</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/deduction/create.sales.deduction","description":"<p>Dùng để thêm khoản Giảm trừ doanh thu mới trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","deduction","create.sales.deduction"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3cfbca2b-a077-48e1-8b23-2165d8f5bc52"},{"name":"2.4.2 Add a Deducted Fee","id":"fa01934f-adb9-471a-bd73-31ffee22293d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người thêm khoản giảm trừ *</p>\n","type":"text"},{"key":"name","value":"Chi phí cấn trừ","description":"<p>Tên của khoản giảm trừ *</p>\n","type":"text"},{"key":"metatype","value":"\ndeducted_fee","description":"<p>Kiểu khoản Giảm trừ * (Giảm trừ doanh thu hoặc Chi phí cấn trừ), nhập \ndeducted_fee để tạo Chi phí cấn trừ</p>\n","type":"text"},{"key":"customer_id","value":"230","description":"<p>ID của Khách hàng *</p>\n","type":"text"},{"key":"income_id","value":"4151","description":"<p>ID của Đơn bán hàng</p>\n","type":"text"},{"key":"custom_deduction_lines","value":"hang_muc_giam_tru:name.0-budget.1-outflow_code.2-amount_excl.3-tax_policy.4-tax_amount.5-categories.6","description":"<p>Bảng Hạng mục giảm trừ *. Dữ liệu được lấy từ 1 bảng có key \"hang_muc_giam_tru\" tại đầu gửi dữ liệu, gồm 7 cột: Tên hạng mục, Tên ngân sách, Tên mã dòng tiền ra, Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, Danh mục báo cáo, trong đó tên ngân sách, tên mã dòng tiền ra, tên chính sách thuế lấy từ danh sách tại Base Finance. Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo, mã hóa dữ liệu đầu vào dạng bảng và dữ liệu đầu vào tại Danh mục trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_deduction_lines","value":"hang_muc_giam_tru:name.0-budget.1-outflow_code.2-amount_excl.3-tax_policy.4-tax_amount.5-categories.6-deductible_vat.7","description":"<p>Bảng Hạng mục giảm trừ *. Dữ liệu được lấy từ 1 bảng có key \"hang_muc_giam_tru\" tại đầu gửi dữ liệu, gồm 8 cột: \nTên hạng mục, Tên ngân sách, Tên mã dòng tiền ra, Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, Danh mục báo cáo, Chọn khấu trừ thuế giá trị gia tăng ( có, không) , trong đó tên ngân sách, tên mã dòng tiền ra, tên chính sách thuế lấy từ danh sách tại Base Finance. </p>\n<p>Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1.</p>\n<p>Nếu Khấu trừ thuế giá trị gia tăng bằng 1 thì là có khấu trừ, bằng 0 thì là không khấu trừ. </p>\n<p>Mặc định là có khấu trừ. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. </p>\n<p>Đọc cách khai báo, mã hóa dữ liệu đầu vào dạng bảng và dữ liệu đầu vào tại Danh mục trên đầu tài liệu.</p>\n","type":"text","uuid":"5b3cc980-0660-4975-9517-57b932caba8e"},{"key":"hang_muc_giam_tru","value":"{{Giá trị tại bảng \"hang_muc_giam_tru\" đã được mã hóa}}","description":"<p>Giá trị tại bảng \"hang_muc_giam_tru\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu</p>\n","type":"text"},{"key":"record_date","value":"09/09/2024","description":"<p>Ngày ghi nhận khoản giảm trừ *</p>\n","type":"text"},{"key":"deduct_from_receivable_amount_of_income","value":"3000000","description":"<p>(Nếu giảm trừ dự thu của Đơn bán hàng) Số tiền giảm trừ *</p>\n","type":"text"},{"key":"obj_categories","value":"{{Giá trị Danh mục báo cáo đã được mã hóa}}","description":"<p>Đọc cách khai báo, mã hóa dữ liệu đầu vào tại Danh mục trên đầu tài liệu.</p>\n","type":"text"},{"key":"reference","value":"https://www.hopdong.com/id=234","description":"<p>Tham chiếu</p>\n","type":"text"},{"key":"uuid","value":"234","description":"<p>Mã tham chiếu</p>\n","type":"text"},{"key":"followers","value":"ducdo","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Cấn trừ phí COD ngày 09/09/2024","description":"<p>Mô tả của khoản giảm trừ</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/deduction/create.deducted.fee","description":"<p>Dùng để thêm khoản Chi phí cấn trừ mới trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","deduction","create.deducted.fee"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa01934f-adb9-471a-bd73-31ffee22293d"},{"name":"2.4.3 Edit Sales Deduction","id":"fb9a13a8-8bae-45ee-b99d-74332fd918ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"ardeduction_id","value":"1214","description":"<p>ID của khoản giảm trừ cần chỉnh sửa *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người chỉnh sửa *</p>\n","type":"text"},{"key":"name","value":"Giảm trừ doanh thu","description":"<p>Tên của khoản giảm trừ *</p>\n","type":"text"},{"key":"metatype","value":"sales_deduction","description":"<p>Kiểu khoản Giảm trừ * (Giảm trừ doanh thu hoặc Chi phí cấn trừ), nhập sales_deduction để tạo Giảm trừ doanh thu</p>\n","type":"text"},{"key":"customer_id","value":"230","description":"<p>ID của Khách hàng *</p>\n","type":"text"},{"key":"income_id","value":"4151","description":"<p>ID của Đơn bán hàng</p>\n","type":"text"},{"key":"custom_item_lines","value":"hang_muc_giam_tru:name.0-code.1-amount_excl.2-tax_policy.3-tax_amount.4-categories.5","description":"<p>Bảng Hạng mục giảm trừ *. Dữ liệu được lấy từ 1 bảng có key \"hang_muc_giam_tru\" tại đầu gửi dữ liệu, gồm 5 cột: Tên hạng mục, Tên mã dòng tiền vào, Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, trong đó tên mã dòng tiền vào, tên chính sách thuế lấy từ danh sách tại Base Finance, mã dòng tiền vào phải gắn với Tài khoản kế toán Giảm trừ doanh thu (TK 521). Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo, mã hóa dữ liệu đầu vào dạng bảng và dữ liệu đầu vào tại Danh mục trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_item_lines","value":"hang_muc_giam_tru:product_code.0-quantity.1-unit_price.2-tax_policy.3-tax_amount.4-categories.5","description":"<p>Bảng Hạng mục giảm trừ, nếu có Số lượng và Đơn giá *. Dữ liệu được lấy từ 1 bảng có key \"san_pham\" tại đầu gửi dữ liệu, gồm 5 cột: Tên Hàng hóa, dịch vụ giảm trừ, Số lượng, Đơn giá, Tên chính sách thuế, Số tiền thuế, trong đó tên hàng hóa, dịch vụ, tên chính sách thuế lấy từ danh sách tại Base Finance, mã dòng tiền vào phải gắn với Tài khoản kế toán Giảm trừ doanh thu (TK 521). Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"hang_muc_giam_tru","value":"{{Giá trị tại bảng \"hang_muc_giam_tru\" đã được mã hóa}}","description":"<p>Giá trị tại bảng \"hang_muc_giam_tru\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu</p>\n","type":"text"},{"key":"record_date","value":"09/09/2024","description":"<p>Ngày ghi nhận khoản giảm trừ *</p>\n","type":"text"},{"key":"deduct_from_receivable_amount_of_income","value":"3000000","description":"<p>(Nếu giảm trừ dự thu của Đơn bán hàng) Sửa số tiền giảm trừ *</p>\n","type":"text"},{"key":"obj_categories","value":"{{Giá trị Danh mục báo cáo đã được mã hóa}}","description":"<p>Đọc cách khai báo, mã hóa dữ liệu đầu vào tại Danh mục trên đầu tài liệu.</p>\n","type":"text"},{"key":"reference","value":"https://www.hopdong.com/id=234","description":"<p>Tham chiếu</p>\n","type":"text"},{"key":"uuid","value":"234","description":"<p>Mã tham chiếu</p>\n","type":"text"},{"key":"followers","value":"ducdo","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Giảm giá hàng bán ngày 09/09/2024","description":"<p>Mô tả của khoản giảm trừ</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/deduction/edit.sales.deduction","description":"<p>Dùng để chỉnh sửa khoản Giảm trừ doanh thu trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","deduction","edit.sales.deduction"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb9a13a8-8bae-45ee-b99d-74332fd918ca"},{"name":"2.4.4 Edit Deducted Fee","id":"1dc921a1-e15c-4aee-b634-1d2745d23d89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"ardeduction_id","value":"1214","description":"<p>ID của khoản giảm trừ cần chỉnh sửa *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người chỉnh sửa *</p>\n","type":"text"},{"key":"name","value":"Chi phí cấn trừ","description":"<p>Tên của khoản giảm trừ *</p>\n","type":"text"},{"key":"metatype","value":"deducted_fee","description":"<p>Kiểu khoản Giảm trừ * (Giảm trừ doanh thu hoặc Chi phí cấn trừ), nhập \ndeducted_fee để tạo Chi phí cấn trừ</p>\n","type":"text"},{"key":"customer_id","value":"230","description":"<p>ID của Khách hàng *</p>\n","type":"text"},{"key":"income_id","value":"4151","description":"<p>ID của Đơn bán hàng</p>\n","type":"text"},{"key":"custom_deduction_lines","value":"hang_muc_giam_tru:name.0-budget.1-outflow_code.2-amount_excl.3-tax_policy.4-tax_amount.5-categories.6","description":"<p>Bảng Hạng mục giảm trừ *. Dữ liệu được lấy từ 1 bảng có key \"hang_muc_giam_tru\" tại đầu gửi dữ liệu, gồm 7 cột: Tên hạng mục, Tên ngân sách, Tên mã dòng tiền ra, Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, Danh mục báo cáo, trong đó tên ngân sách, tên mã dòng tiền ra, tên chính sách thuế lấy từ danh sách tại Base Finance. Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo, mã hóa dữ liệu đầu vào dạng bảng và dữ liệu đầu vào tại Danh mục trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_deduction_lines","value":"hang_muc_giam_tru:name.0-budget.1-outflow_code.2-amount_excl.3-tax_policy.4-tax_amount.5-categories.6-deductible_vat.7","description":"<p>Bảng Hạng mục giảm trừ *. Dữ liệu được lấy từ 1 bảng có key \"hang_muc_giam_tru\" tại đầu gửi dữ liệu, gồm 8 cột: \nTên hạng mục, Tên ngân sách, Tên mã dòng tiền ra, Số tiền (không gồm thuế), Tên chính sách thuế, Số tiền thuế, Danh mục báo cáo, Chọn khấu trừ thuế giá trị gia tăng ( có, không) , trong đó tên ngân sách, tên mã dòng tiền ra, tên chính sách thuế lấy từ danh sách tại Base Finance. </p>\n<p>Nếu chỉ dùng Chính sách thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1. </p>\n<p>Nếu Khấu trừ thuế giá trị gia tăng bằng 1 thì là có khấu trừ, bằng 0 thì là không khấu trừ. Mặc định là có khấu trừ. </p>\n<p>Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo, mã hóa dữ liệu đầu vào dạng bảng và dữ liệu đầu vào tại Danh mục trên đầu tài liệu.</p>\n","type":"text","uuid":"e927ff6b-9044-4237-a1cd-50146e7140d7"},{"key":"hang_muc_giam_tru","value":"{{Giá trị tại bảng \"hang_muc_giam_tru\" đã được mã hóa}}","description":"<p>Giá trị tại bảng \"hang_muc_giam_tru\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu</p>\n","type":"text"},{"key":"record_date","value":"09/09/2024","description":"<p>Ngày ghi nhận khoản giảm trừ *</p>\n","type":"text"},{"key":"deduct_from_receivable_amount_of_income","value":"3000000","description":"<p>(Nếu giảm trừ dự thu của Đơn bán hàng) Số tiền giảm trừ *</p>\n","type":"text"},{"key":"obj_categories","value":"{{Giá trị Danh mục báo cáo đã được mã hóa}}","description":"<p>Đọc cách khai báo, mã hóa dữ liệu đầu vào tại Danh mục trên đầu tài liệu.</p>\n","type":"text"},{"key":"reference","value":"https://www.hopdong.com/id=234","description":"<p>Tham chiếu</p>\n","type":"text"},{"key":"uuid","value":"234","description":"<p>Mã tham chiếu</p>\n","type":"text"},{"key":"followers","value":"ducdo","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Cấn trừ phí COD ngày 09/09/2024","description":"<p>Mô tả của khoản giảm trừ</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/deduction/edit.deducted.fee","description":"<p>Dùng để chỉnh sửa khoản Chi phí cấn trừ trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","deduction","edit.deducted.fee"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1dc921a1-e15c-4aee-b634-1d2745d23d89"},{"name":"2.4.5 Link Deduction to Income","id":"b7af56b2-0371-4588-b5de-5b5b3641af97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người thực hiện *</p>\n","type":"text"},{"key":"ardeduction_id","value":"124","description":"<p>ID của khoản giảm trừ *</p>\n","type":"text"},{"key":"income_id","value":"123","description":"<p>ID của đơn bán hàng *</p>\n","type":"text"},{"key":"deduct_from_receivable_amount_of_income","value":"3000000","description":"<p>(Nếu giảm trừ dự thu của Đơn bán hàng) Số tiền giảm trừ *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/deduction/link.income","description":"<p>Dùng để gắn Khoản giảm trừ với Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","deduction","link.income"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b7af56b2-0371-4588-b5de-5b5b3641af97"},{"name":"2.4.6 Refund","id":"67e28e71-997c-4024-9c3b-69e442dddddc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người thực hiện *</p>\n","type":"text"},{"key":"ardeduction_id","value":"124","description":"<p>ID của khoản giảm trừ *</p>\n","type":"text"},{"key":"income_id","value":"123","description":"<p>ID của đơn bán hàng *</p>\n","type":"text"},{"key":"refund_amount","value":"3000000","description":"<p>Số tiền hoàn lại *</p>\n","type":"text"},{"key":"refund_date","value":"09/09/2024","description":"<p>Ngày hoàn lại *</p>\n","type":"text"},{"key":"cash_account_id","value":"24","description":"<p>ID của Tài khoản tiền *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/deduction/refund","description":"<p>Dùng để hoàn lại tiền cho Khoản giảm trừ trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","deduction","refund"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"67e28e71-997c-4024-9c3b-69e442dddddc"},{"name":"2.4.7 Delete Deduction","id":"6f083d3a-10e8-41db-b90b-7bf082f294a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người thực hiện *</p>\n","type":"text"},{"key":"ardeduction_id","value":"124","description":"<p>ID của khoản giảm trừ *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/deduction/remove","description":"<p>Dùng để xóa Khoản giảm trừ trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","deduction","remove"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f083d3a-10e8-41db-b90b-7bf082f294a5"},{"name":"2.4.8 Unlink Deduction from Income","id":"6b88dc07-2937-4870-b59b-e5b450b1d8b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"username","value":"ducdo","description":"<p>Username của người thực hiện *</p>\n","type":"text"},{"key":"used_deduction_id","value":"124","description":"<p>ID của liên kết giữa khoản giảm trừ với đơn bán hàng *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/deduction/remove.used.deduction","description":"<p>Dùng để bỏ gắn Khoản giảm trừ với Đơn bán hàng trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","deduction","remove.used.deduction"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b88dc07-2937-4870-b59b-e5b450b1d8b6"},{"name":"2.2.9 Get a Deduction","id":"4f808adc-7697-4326-921f-001747dfff19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{income_access_token}}","description":"<p>App Access Token của Income *</p>\n","type":"text"},{"key":"id","value":"1","description":"<p>ID của khoản giảm trừ *</p>\n","type":"text"}]},"url":"https://income.{{domain}}/extapi/v1/deduction/get","description":"<p>Dùng để lấy dữ liệu của 1 Khoản giảm trừ trên Base Income</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","deduction","get"],"host":["income","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f808adc-7697-4326-921f-001747dfff19"}],"id":"b2ed639e-6f36-4d63-bea6-8cd56267e1f6","_postman_id":"b2ed639e-6f36-4d63-bea6-8cd56267e1f6","description":""}],"id":"0ea2cc25-5c66-47e8-a4a7-1b76c787f1dc","_postman_id":"0ea2cc25-5c66-47e8-a4a7-1b76c787f1dc","description":""},{"name":"3. Base Expense","item":[{"name":"3.1 Expense Reports","item":[{"name":"3.1.1 Get an Expense Report","event":[{"listen":"test","script":{"id":"68e17b93-7849-484a-bb54-aa94fe68faf7","exec":[""],"type":"text/javascript","packages":{}}}],"id":"2e524a6a-ae87-41d5-8035-d246438287cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","type":"text","description":"<p>App Access Token của Expense *</p>\n"},{"key":"id","value":"1","description":"<p>ID của bộ hồ sơ chi phí *</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/report/detail","description":"<p>Dùng để lấy dữ liệu của 1 Bộ hồ sơ chi phí trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","report","detail"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e524a6a-ae87-41d5-8035-d246438287cd"},{"name":"3.1.2 Get all Expense Reports","id":"9d1cd737-a0f3-4743-bc62-a845a14dfddc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","description":"<p>App Access Token của Expense *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"tab","value":"all","description":"<p>Lọc theo Tab, mặc định khi để trống sẽ lọc Đang theo dõi, nhập \"me\" để lọc Của tôi, hoặc \"all\" để lọc Tất cả </p>\n","type":"text"},{"key":"q","value":"Bộ hồ sơ Mua hàng","description":"<p>Tìm theo tên bộ hồ sơ chi phí</p>\n","type":"text"},{"key":"status","value":"processing","description":"<p>Lọc theo Trạng thái, nhập \"processing\", \"closed\"</p>\n","type":"text"},{"key":"report_type","value":"134","description":"<p>Lọc theo Loại Bộ hồ sơ chi phí, nhập ID của Loại Bộ hồ sơ chi phí</p>\n","type":"text"},{"key":"proposed_value_from","value":"0","description":"<p>Lọc theo số tiền Tổng chi dự kiến, nhập giá trị bắt đầu</p>\n","type":"text"},{"key":"proposed_value_to","value":"10000000","description":"<p>Lọc theo số tiền Tổng chi dự kiến, nhập giá trị kết thúc</p>\n","type":"text"},{"key":"creator_id","value":"1","description":"<p>Lọc theo Tạo bởi, nhập ID của người tạo</p>\n","type":"text"},{"key":"since_from","value":"01/01/2024","description":"<p>Lọc theo Tạo lúc, nhập ngày bắt đầu, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"since_to","value":"31/01/2024","description":"<p>Lọc theo Tạo lúc, nhập ngày kết thúc, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"categories","value":"theoduan_123","description":"<p>Lọc theo Danh mục, nhập theo cấu trúc {Code của chiều dữ liệu}_{ID của thẻ dữ liệu}</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/report/get","description":"<p>Dùng để lấy dữ liệu của tất cả Bộ hồ sơ chi phí trên Base Expense, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","report","get"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d1cd737-a0f3-4743-bc62-a845a14dfddc"},{"name":"3.1.3 Create an Expense Report","id":"9d8b45da-82a2-4ab0-9a25-7683c89217d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Bộ hồ sơ Công tác phí HN - HCM 22/06/2024","description":"<p>Tên Bộ hồ sơ *</p>\n","type":"text"},{"key":"username","value":"hungnguyen","description":"<p>Username của người tạo * </p>\n","type":"text"},{"key":"propose_value","value":"12000000","description":"<p>Tổng chi dự kiến</p>\n","type":"text"},{"key":"link","value":"https://www.timeoff.base.vn/id=234","description":"<p>Đường dẫn tham chiếu</p>\n","type":"text"},{"key":"spenders","value":"hungnguyen,vietphan","description":"<p>Username của người chi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"followers","value":"hungnguyen,vietphan","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Team Business đi công tác TP. HCM","description":"<p>Mô tả</p>\n","type":"text"},{"key":"custom_dia_diem_cong_tac","value":"TP. Hồ Chí Minh","description":"<p>Giá trị tại trường tùy chỉnh \"custom_dia_diem_cong_tac\" tại Base Expense</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/webhook/report/create/{{expense_report_type_token}}","description":"<p>Dùng để tạo Bộ hồ sơ trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["webhook","report","create","{{expense_report_type_token}}"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d8b45da-82a2-4ab0-9a25-7683c89217d7"},{"name":"3.1.4 Edit Proposed Value","id":"ec088806-eaac-488d-91f5-0b30d503d3a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"hungnguyen","description":"<p>Username của người tạo * </p>\n","type":"text"},{"key":"cashflow_report_id","value":"254","description":"<p>ID của Bộ hồ sơ tại Base Expense *</p>\n","type":"text"},{"key":"propose_value","value":"15000000","description":"<p>Sửa Tổng chi dự kiến *</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/webhook/report/create/{{expense_report_type_token}}","description":"<p>Dùng để chỉnh sửa Tổng chi dự kiến của Bộ hồ sơ trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["webhook","report","create","{{expense_report_type_token}}"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec088806-eaac-488d-91f5-0b30d503d3a8"}],"id":"35dbfb45-0381-42b9-8969-865502b1913a","_postman_id":"35dbfb45-0381-42b9-8969-865502b1913a","description":""},{"name":"3.2 Expenses","item":[{"name":"3.2.1 Get an Expense","event":[{"listen":"test","script":{"id":"68e17b93-7849-484a-bb54-aa94fe68faf7","exec":[""],"type":"text/javascript","packages":{}}}],"id":"bdc1be41-c193-4e9a-9da0-5a5bf9e39ec4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","type":"text","description":"<p>App Access Token của Expense *</p>\n"},{"key":"id","value":"1","description":"<p>ID của chi phí *</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/expenses/detail","description":"<p>Dùng để lấy dữ liệu của 1 Chi phí trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","expenses","detail"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"fda7f509-4e80-41c0-8f51-a09d6e77cd21","name":"3.1.1 Get an Expense","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"2389-LPOMCRFH5ACQYSKAHXWH728796SF25S7QVFG2HMMCRCYKTH2CNQEV9Z9U72JFZLY-FVJ2QDZ9CWJU6SKAETTSRUSQSUGS48FF9WP7D4PFDUXKET5X93HWZHVD2KSVPPP8","type":"text","description":"App Access Token của Expense *"},{"key":"id","value":"262","description":"ID của chi phí *","type":"text"}]},"url":"https://expense.base.com.vn/extapi/v1/expenses/detail"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 14 Jun 2024 02:43:08 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=2592000"},{"key":"Content-Security-Policy","value":"frame-ancestors 'self' *.base.com.vn;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Set-Cookie","value":"basessid=j49grtu6jfvrpmld27jp1libdd7aou8nsbuh844q6nobrmj411unkhtn49u60b57hemt4trv89ouamrd5vadfvtjug9gkgba6h1rt172qdo228dvkkpgpro3jslehe3u; path=/; domain=.base.com.vn; secure; HttpOnly"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Type","value":"application/json"},{"key":"Via","value":"1.1 google"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 1,\n    \"message\": \"\",\n    \"data\": null,\n    \"httpCode\": \"200\",\n    \"supplier\": {\n        \"name\": \"---\"\n    },\n    \"item_lines\": [\n        {\n            \"hid\": \"MTc2Mi5pdGVtbGluZXM\",\n            \"type\": \"itemlines\",\n            \"link\": \"base-expense://expenses/?show=item&id=262\",\n            \"token\": \"abef8ab4d490787b71693b76b248b252\",\n            \"id\": \"1762\",\n            \"object_type\": \"expenseitems\",\n            \"object_id\": \"262\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"code_id\": \"74\",\n            \"name\": \"Chi phí đi lại\",\n            \"tax\": {\n                \"amount\": \"290909\",\n                \"tax_rate\": 9.999996562500108\n            },\n            \"amount\": \"3200000.00\",\n            \"since\": \"1709020409\",\n            \"last_update\": \"1714795487\",\n            \"system_id\": \"2389\",\n            \"invoice_id\": \"-1\",\n            \"budget_id\": \"47\",\n            \"categories\": [\n                {\n                    \"theochinhanh\": \"361\"\n                },\n                {\n                    \"theochiendich\": \"70\"\n                }\n            ]\n        },\n        {\n            \"hid\": \"MTc2My5pdGVtbGluZXM\",\n            \"type\": \"itemlines\",\n            \"link\": \"base-expense://expenses/?show=item&id=262\",\n            \"token\": \"abef8ab4d490787b71693b76b248b252\",\n            \"id\": \"1763\",\n            \"object_type\": \"expenseitems\",\n            \"object_id\": \"262\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"code_id\": \"74\",\n            \"name\": \"Chi phí nơi nghỉ\",\n            \"tax\": {\n                \"amount\": \"147000\",\n                \"tax_rate\": 10\n            },\n            \"amount\": \"1617000.00\",\n            \"since\": \"1709020409\",\n            \"last_update\": \"1714795487\",\n            \"system_id\": \"2389\",\n            \"invoice_id\": \"69\",\n            \"budget_id\": \"47\",\n            \"categories\": [\n                {\n                    \"theodonhang\": \"386\"\n                }\n            ]\n        },\n        {\n            \"hid\": \"MTc2NC5pdGVtbGluZXM\",\n            \"type\": \"itemlines\",\n            \"link\": \"base-expense://expenses/?show=item&id=262\",\n            \"token\": \"abef8ab4d490787b71693b76b248b252\",\n            \"id\": \"1764\",\n            \"object_type\": \"expenseitems\",\n            \"object_id\": \"262\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"code_id\": \"74\",\n            \"name\": \"Chi phí khác\",\n            \"tax\": {},\n            \"amount\": \"183000.00\",\n            \"since\": \"1709020409\",\n            \"last_update\": \"1714795487\",\n            \"system_id\": \"2389\",\n            \"invoice_id\": \"-1\",\n            \"budget_id\": \"47\",\n            \"categories\": []\n        }\n    ],\n    \"invoices\": [\n        {\n            \"hid\": \"NjkuaW52b2ljZXM\",\n            \"type\": \"invoices\",\n            \"files\": [],\n            \"id\": \"69\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"name\": \"Hóa đơn CÔNG TY TNHH A\",\n            \"content\": \"\",\n            \"payment_date\": \"1690218000\",\n            \"issue_date\": \"1690218000\",\n            \"metatype\": \"invoice\",\n            \"subcreators\": [],\n            \"book_number\": \"\",\n            \"invoice_number\": \"1187811\",\n            \"form_no\": \"1\",\n            \"serial_no\": \"C23TCV\",\n            \"seller_id\": \"0\",\n            \"seller_type\": \"\",\n            \"seller_name\": \"CÔNG TY TNHH A\",\n            \"seller_address\": \"Tầng 7 TTTM Gigamall, Số 240-242 Phạm Văn Đồng, Phường Hiệp Bình Chánh, Thành\\n                    phố Thủ Đức, Thành phố Hồ Chí Minh, Việt Nam\",\n            \"seller_tax_code\": \"4165415121\",\n            \"buyer_id\": \"0\",\n            \"buyer_type\": \"\",\n            \"buyer_name\": \"CÔNG TY CỔ PHẦN B\",\n            \"buyer_address\": \"Số 14, đường số 34, khu phố 2, Phường An Khánh,TP Thủ Đức , TP Hồ Chí Minh\",\n            \"buyer_tax_code\": \"5641561151\",\n            \"line_items\": [\n                {\n                    \"name\": \"Nước chanh leo ALC\",\n                    \"quantity\": 1,\n                    \"unit_price\": 60000,\n                    \"tax_rate\": 10,\n                    \"tax_amount\": 0,\n                    \"item_amount\": 60000,\n                    \"discount\": 60000,\n                    \"price\": 0,\n                    \"amount\": 0\n                },\n                {\n                    \"name\": \"Set buffet (NL) (C)\",\n                    \"quantity\": 2,\n                    \"unit_price\": 319000,\n                    \"tax_rate\": 10,\n                    \"tax_amount\": 62700,\n                    \"item_amount\": 638000,\n                    \"discount\": 11000,\n                    \"price\": 627000,\n                    \"amount\": 689700\n                },\n                {\n                    \"name\": \"Buffet HS - SV (C)\",\n                    \"quantity\": 2,\n                    \"unit_price\": 279000,\n                    \"tax_rate\": 10,\n                    \"tax_amount\": 55800,\n                    \"item_amount\": 558000,\n                    \"discount\": 0,\n                    \"price\": 558000,\n                    \"amount\": 613800\n                },\n                {\n                    \"name\": \"Set buffet (TE) (C)\",\n                    \"quantity\": 2,\n                    \"unit_price\": 96000,\n                    \"tax_rate\": 10,\n                    \"tax_amount\": 19200,\n                    \"item_amount\": 192000,\n                    \"discount\": 0,\n                    \"price\": 192000,\n                    \"amount\": 211200\n                },\n                {\n                    \"name\": \"Kichi Jumbo\",\n                    \"quantity\": 2,\n                    \"unit_price\": 39000,\n                    \"tax_rate\": 10,\n                    \"tax_amount\": 7800,\n                    \"item_amount\": 78000,\n                    \"discount\": 0,\n                    \"price\": 78000,\n                    \"amount\": 85800\n                },\n                {\n                    \"name\": \"Khăn Lạnh Golden Gate\",\n                    \"quantity\": 3,\n                    \"unit_price\": 5000,\n                    \"tax_rate\": 10,\n                    \"tax_amount\": 1500,\n                    \"item_amount\": 15000,\n                    \"discount\": 0,\n                    \"price\": 15000,\n                    \"amount\": 16500\n                }\n            ],\n            \"total_amount\": \"1470000.00\",\n            \"tax\": \"147000.00\",\n            \"tax_rate\": \"10.0000\",\n            \"item_id\": \"262\",\n            \"discount\": \"71000.00\",\n            \"total_payment\": \"1617000.00\",\n            \"followers\": [\n                \"ketoan\",\n                \"ceo\"\n            ],\n            \"status\": \"100\",\n            \"system_id\": \"2389\",\n            \"last_update\": \"1708146237\",\n            \"token\": \"10de4141ce70f86dcbfe229bfb392e08\",\n            \"since\": \"1708146206\",\n            \"outflow_id\": \"3420\",\n            \"create_from\": \"\",\n            \"year\": \"2023\",\n            \"data\": {\n                \"total_item_amount\": 1541000\n            },\n            \"invoice\": {\n                \"id\": \"QRV6WX7FXAHWQQMFAM43AFQGRAV9K4FY\",\n                \"fid\": \"202402:sys2389:expense:17:12:UCC5MWXNDJ:25f644a68ba9100569a8e68e0bca51f8:JLDQS94XMERXWHZVD4YRAKAJADL8QA4N3SES74DSDD5Z6TFLWVGCK39L4G6GDN5NC4NTGMW43827NE2XY9E3EM.VEQPS96WBPBGSAN97YC8NJE6C7YGGG6HCVZJEQM8ZCGHPR4U7WDYJNF4NZFJJECR-WUPB2JNHCM3ZRUX5LMD47QY7APYJNVCAZMAY9GMJPNUBTQC6APRJE2K72CELJC7JGPVC2ZXLX6G6WWA4BAHVWR-6368ccd3818653133b25b468af240245_186546_cpkczhwk.xml\",\n                \"type\": \"file\",\n                \"name\": \"6368ccd3818653133b25b468af240245_186546_CPKCZHWKMKUXN.xml\",\n                \"size\": 17412,\n                \"image\": 0,\n                \"username\": \"ceo\",\n                \"since\": 1708146206,\n                \"is_templated\": 0,\n                \"origin\": 0,\n                \"dimension\": [],\n                \"url\": \"https://data-devgcs.basecdn.net/202402/sys2389/expense/17/12/UCC5MWXNDJ/25f644a68ba9100569a8e68e0bca51f8/JLDQS94XMERXWHZVD4YRAKAJADL8QA4N3SES74DSDD5Z6TFLWVGCK39L4G6GDN5NC4NTGMW43827NE2XY9E3EM/94/69/a1/29/2a/8df5eec3789105837322c16d6d505db6/6368ccd3818653133b25b468af240245_186546_cpkczhwk.xml\",\n                \"src\": \"https://data-devgcs.basecdn.net/202402/sys2389/expense/17/12/UCC5MWXNDJ/25f644a68ba9100569a8e68e0bca51f8/JLDQS94XMERXWHZVD4YRAKAJADL8QA4N3SES74DSDD5Z6TFLWVGCK39L4G6GDN5NC4NTGMW43827NE2XY9E3EM/94/69/a1/29/2a/8df5eec3789105837322c16d6d505db6/6368ccd3818653133b25b468af240245_186546_cpkczhwk.xml\",\n                \"download\": \"https://api.base.com.vn/files/download?fid=202402:sys2389:expense:17:12:UCC5MWXNDJ:25f644a68ba9100569a8e68e0bca51f8:JLDQS94XMERXWHZVD4YRAKAJADL8QA4N3SES74DSDD5Z6TFLWVGCK39L4G6GDN5NC4NTGMW43827NE2XY9E3EM.VEQPS96WBPBGSAN97YC8NJE6C7YGGG6HCVZJEQM8ZCGHPR4U7WDYJNF4NZFJJECR-WUPB2JNHCM3ZRUX5LMD47QY7APYJNVCAZMAY9GMJPNUBTQC6APRJE2K72CELJC7JGPVC2ZXLX6G6WWA4BAHVWR-6368ccd3818653133b25b468af240245_186546_cpkczhwk.xml&name=6368ccd3818653133b25b468af240245_186546_CPKCZHWKMKUXN.xml\"\n            },\n            \"display_invoice\": {\n                \"id\": \"EJFTQ3Z3Y9TXD4HDSJMX4HS6CVS78YSH\",\n                \"fid\": \"202402:sys2389:expense:17:12:UCC5MWXNDJ:25f644a68ba9100569a8e68e0bca51f8:YHEKY9D7ZFP9F4R39JKF587SXKRVM54FNP6VZ9AQ8UK7JJDCMY6M4NCFCE7KPCM6JEX4FRZTW9BAPQTM62D67F.QLP6NPL6HRV6ZRTLJAES22KHPMNVGLYSRTGGEMGL997LBUBFH5SNEA9W95ZA4S5E-FRGHFTYJ2FJL48DHDFHM54QGQFGZFXNJZ75WXPWQJW4Q5683GHFMJAQEDFN5TK53LWJ4A8CZGQB9UBFB4EXMPQ-1574063_c23tcv_12062023_1_.pdf\",\n                \"type\": \"file\",\n                \"name\": \"1574063_C23TCV_12062023 1 .pdf\",\n                \"size\": 228776,\n                \"image\": 0,\n                \"username\": \"ceo\",\n                \"since\": 1708146208,\n                \"is_templated\": 0,\n                \"origin\": 0,\n                \"dimension\": [],\n                \"url\": \"https://data-devgcs.basecdn.net/202402/sys2389/expense/17/12/UCC5MWXNDJ/25f644a68ba9100569a8e68e0bca51f8/YHEKY9D7ZFP9F4R39JKF587SXKRVM54FNP6VZ9AQ8UK7JJDCMY6M4NCFCE7KPCM6JEX4FRZTW9BAPQTM62D67F/f0/17/e1/3a/84/76a689de76730802186ed20451198a42/1574063_c23tcv_12062023_1_.pdf\",\n                \"src\": \"https://data-devgcs.basecdn.net/202402/sys2389/expense/17/12/UCC5MWXNDJ/25f644a68ba9100569a8e68e0bca51f8/YHEKY9D7ZFP9F4R39JKF587SXKRVM54FNP6VZ9AQ8UK7JJDCMY6M4NCFCE7KPCM6JEX4FRZTW9BAPQTM62D67F/f0/17/e1/3a/84/76a689de76730802186ed20451198a42/1574063_c23tcv_12062023_1_.pdf\",\n                \"download\": \"https://api.base.com.vn/files/download?fid=202402:sys2389:expense:17:12:UCC5MWXNDJ:25f644a68ba9100569a8e68e0bca51f8:YHEKY9D7ZFP9F4R39JKF587SXKRVM54FNP6VZ9AQ8UK7JJDCMY6M4NCFCE7KPCM6JEX4FRZTW9BAPQTM62D67F.QLP6NPL6HRV6ZRTLJAES22KHPMNVGLYSRTGGEMGL997LBUBFH5SNEA9W95ZA4S5E-FRGHFTYJ2FJL48DHDFHM54QGQFGZFXNJZ75WXPWQJW4Q5683GHFMJAQEDFN5TK53LWJ4A8CZGQB9UBFB4EXMPQ-1574063_c23tcv_12062023_1_.pdf&name=1574063_C23TCV_12062023+1+.pdf\"\n            },\n            \"embed_link\": \"https://expense.base.com.vn/_embed/invoices?invoice=69\"\n        }\n    ],\n    \"outflows\": [\n        {\n            \"link\": \"base-expense://outflows?show=outflow&id=3420\",\n            \"hid\": \"MzQyMC5vdXRmbG93cw\",\n            \"files\": [],\n            \"token\": \"80f925c007c1c8574fc41fc66c8495ed\",\n            \"type\": \"outflows\",\n            \"id\": \"3420\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"report_id\": \"0\",\n            \"metatype\": \"payment\",\n            \"code_id\": \"0\",\n            \"account_id\": \"6\",\n            \"transaction_id\": \"0\",\n            \"supplier_id\": \"0\",\n            \"item_ids\": [\n                \"262\"\n            ],\n            \"categories\": [],\n            \"source\": \"\",\n            \"flag_transaction\": \"0\",\n            \"name\": \"(EID:262) Thanh toán công tác phí\",\n            \"content\": \"\",\n            \"form\": [],\n            \"followers\": [\n                \"ketoan\",\n                \"ceo\"\n            ],\n            \"watchers\": [],\n            \"record_date\": \"1714755600\",\n            \"payment_date\": \"1714795488\",\n            \"workflow\": \"sequential\",\n            \"advance_refund_ids\": [\n                \"1557\"\n            ],\n            \"advance_refunds\": [\n                {\n                    \"id\": \"1557\",\n                    \"amount\": 5000000,\n                    \"name\": \"Refund from (EID:261) Tạm ứng chi phí đi công tác\",\n                    \"content\": \"\",\n                    \"link\": \"base-expense://outflows/?show=outflow&id=1557\",\n                    \"type\": \"outflows\"\n                }\n            ],\n            \"recipient_id\": \"90468\",\n            \"recipient_type\": \"user\",\n            \"payment_info\": {},\n            \"payment_type\": \"cash\",\n            \"bank_transaction_id\": \"\",\n            \"refunded_amount\": \"0.0000\",\n            \"pending_refund_amount\": \"0.0000\",\n            \"multiple_code\": \"1\",\n            \"data\": {\n                \"posts\": 1\n            },\n            \"since\": \"1714795487\",\n            \"last_update\": \"1714795488\",\n            \"system_id\": \"2389\",\n            \"status\": \"1\",\n            \"approved\": [\n                {\n                    \"username\": \"ketoan\",\n                    \"note\": \"\"\n                },\n                {\n                    \"username\": \"ceo\",\n                    \"note\": \"\"\n                }\n            ],\n            \"rejected\": [],\n            \"amount\": \"5000000.00\",\n            \"advance\": \"5000000.00\",\n            \"remaining\": \"0.00\",\n            \"account_transaction_id\": \"0\",\n            \"is_itemizable\": \"1\",\n            \"tax\": {\n                \"amount\": 437909\n            },\n            \"payment_deadline\": \"1708966800\",\n            \"budget_id\": \"0\",\n            \"approved_refunds\": [],\n            \"pending_refunds\": [],\n            \"is_created_transaction_manually\": \"0\",\n            \"tax_type\": \"consumption\",\n            \"to_account_id\": \"0\",\n            \"approvers\": [\n                {\n                    \"username\": \"ketoan\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                },\n                {\n                    \"username\": \"ceo\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                }\n            ],\n            \"stats\": {\n                \"posts\": 1,\n                \"likes\": 0\n            },\n            \"acl\": {\n                \"manage\": 0,\n                \"view\": 0,\n                \"approve\": 0,\n                \"edit\": 0,\n                \"follow\": 0\n            },\n            \"embed_link\": \"https://expense.base.com.vn/_embed/outflows?outflow=3420&source=service\",\n            \"bank_transaction_files\": []\n        }\n    ],\n    \"advance_refunds\": [\n        {\n            \"link\": \"base-expense://outflows?show=outflow&id=1557\",\n            \"hid\": \"MTU1Ny5vdXRmbG93cw\",\n            \"files\": [],\n            \"token\": \"89d44cb157e17471ce8a9d95af7293c9\",\n            \"type\": \"outflows\",\n            \"id\": \"1557\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"report_id\": \"0\",\n            \"metatype\": \"advance\",\n            \"code_id\": \"74\",\n            \"account_id\": \"12\",\n            \"transaction_id\": \"0\",\n            \"supplier_id\": \"0\",\n            \"item_ids\": [\n                \"261\"\n            ],\n            \"categories\": [\n                {\n                    \"theodonhang\": \"376\"\n                }\n            ],\n            \"source\": \"\",\n            \"flag_transaction\": \"0\",\n            \"name\": \"(EID:261) Tạm ứng chi phí đi công tác\",\n            \"content\": \"\",\n            \"form\": [],\n            \"followers\": [\n                \"ceo\"\n            ],\n            \"watchers\": [],\n            \"record_date\": \"1708966800\",\n            \"payment_date\": \"1708966800\",\n            \"workflow\": \"sequential\",\n            \"advance_refund_ids\": [],\n            \"advance_refunds\": [],\n            \"recipient_id\": \"90468\",\n            \"recipient_type\": \"user\",\n            \"payment_info\": {},\n            \"payment_type\": \"cash\",\n            \"bank_transaction_id\": \"\",\n            \"refunded_amount\": \"5000000.0000\",\n            \"pending_refund_amount\": \"0.0000\",\n            \"multiple_code\": \"0\",\n            \"data\": {\n                \"posts\": 3\n            },\n            \"since\": \"1709018233\",\n            \"last_update\": \"1709018262\",\n            \"system_id\": \"2389\",\n            \"status\": \"500\",\n            \"approved\": [\n                {\n                    \"username\": \"ceo\",\n                    \"note\": \"\"\n                }\n            ],\n            \"rejected\": [],\n            \"amount\": \"7000000.00\",\n            \"advance\": \"0.00\",\n            \"remaining\": \"7000000.00\",\n            \"account_transaction_id\": \"0\",\n            \"is_itemizable\": \"1\",\n            \"tax\": {},\n            \"payment_deadline\": \"1708966800\",\n            \"budget_id\": \"0\",\n            \"approved_refunds\": [\n                {\n                    \"id\": \"3420\",\n                    \"amount\": 5000000\n                }\n            ],\n            \"pending_refunds\": [],\n            \"is_created_transaction_manually\": \"0\",\n            \"tax_type\": \"\",\n            \"to_account_id\": \"0\",\n            \"approvers\": [\n                {\n                    \"username\": \"ceo\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                }\n            ],\n            \"stats\": {\n                \"posts\": 3,\n                \"likes\": 0\n            },\n            \"acl\": {\n                \"manage\": 0,\n                \"view\": 0,\n                \"approve\": 0,\n                \"edit\": 0,\n                \"follow\": 0\n            },\n            \"embed_link\": \"https://expense.base.com.vn/_embed/outflows?outflow=1557&source=service\",\n            \"bank_transaction_files\": []\n        }\n    ],\n    \"item_followings\": [\n        {\n            \"type\": \"expensefollowings\",\n            \"hid\": \"NzE0LmV4cGVuc2Vmb2xsb3dpbmdz\",\n            \"user_id\": \"90468\",\n            \"name\": \"Thanh toán công tác phí\",\n            \"content\": \"\",\n            \"supplier_id\": \"0\",\n            \"recipient_id\": \"90468\",\n            \"recipient_type\": \"user\",\n            \"payment_info\": {},\n            \"stage\": \"10\",\n            \"workflow\": \"sequential\",\n            \"form\": [],\n            \"code_id\": \"0\",\n            \"type_id\": \"0\",\n            \"policy_id\": \"0\",\n            \"advance_outflows\": [\n                {\n                    \"id\": \"1557\",\n                    \"amount\": 5000000,\n                    \"name\": \"Refund from (EID:261) Tạm ứng chi phí đi công tác\",\n                    \"content\": \"\",\n                    \"link\": \"base-expense://outflows/?show=outflow&id=1557\",\n                    \"type\": \"outflows\"\n                }\n            ],\n            \"payment_type\": \"cash\",\n            \"tax\": {\n                \"amount\": 437909\n            },\n            \"amount\": \"5000000.00\",\n            \"remaining\": \"0.00\",\n            \"advance\": \"5000000.00\",\n            \"files\": [],\n            \"since\": \"1709020409\",\n            \"last_update\": \"1714795487\",\n            \"report_id\": \"0\",\n            \"metatype\": \"claim\",\n            \"status\": \"100\",\n            \"creator_id\": \"90468\",\n            \"approvers\": [\n                {\n                    \"username\": \"ceo\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                }\n            ],\n            \"approved\": [\n                {\n                    \"username\": \"ceo\",\n                    \"note\": \"\"\n                }\n            ],\n            \"rejected\": [],\n            \"cancelled\": {},\n            \"recurrence_config\": [],\n            \"record_date\": \"1714755600\",\n            \"categories\": [],\n            \"is_itemizable\": \"1\",\n            \"payment_deadline\": \"1708966800\",\n            \"tax_type\": \"consumption\",\n            \"source\": \"\",\n            \"id\": \"262\",\n            \"follower_id\": \"90468\"\n        },\n        {\n            \"type\": \"expensefollowings\",\n            \"hid\": \"NzEzLmV4cGVuc2Vmb2xsb3dpbmdz\",\n            \"user_id\": \"90468\",\n            \"name\": \"Thanh toán công tác phí\",\n            \"content\": \"\",\n            \"supplier_id\": \"0\",\n            \"recipient_id\": \"90468\",\n            \"recipient_type\": \"user\",\n            \"payment_info\": {},\n            \"stage\": \"10\",\n            \"workflow\": \"sequential\",\n            \"form\": [],\n            \"code_id\": \"0\",\n            \"type_id\": \"0\",\n            \"policy_id\": \"0\",\n            \"advance_outflows\": [\n                {\n                    \"id\": \"1557\",\n                    \"amount\": 5000000,\n                    \"name\": \"Refund from (EID:261) Tạm ứng chi phí đi công tác\",\n                    \"content\": \"\",\n                    \"link\": \"base-expense://outflows/?show=outflow&id=1557\",\n                    \"type\": \"outflows\"\n                }\n            ],\n            \"payment_type\": \"cash\",\n            \"tax\": {\n                \"amount\": 437909\n            },\n            \"amount\": \"5000000.00\",\n            \"remaining\": \"0.00\",\n            \"advance\": \"5000000.00\",\n            \"files\": [],\n            \"since\": \"1709020409\",\n            \"last_update\": \"1714795487\",\n            \"report_id\": \"0\",\n            \"metatype\": \"claim\",\n            \"status\": \"100\",\n            \"creator_id\": \"90468\",\n            \"approvers\": [\n                {\n                    \"username\": \"ceo\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                }\n            ],\n            \"approved\": [\n                {\n                    \"username\": \"ceo\",\n                    \"note\": \"\"\n                }\n            ],\n            \"rejected\": [],\n            \"cancelled\": {},\n            \"recurrence_config\": [],\n            \"record_date\": \"1714755600\",\n            \"categories\": [],\n            \"is_itemizable\": \"1\",\n            \"payment_deadline\": \"1708966800\",\n            \"tax_type\": \"consumption\",\n            \"source\": \"\",\n            \"id\": \"262\",\n            \"follower_id\": \"90469\"\n        }\n    ],\n    \"item\": {\n        \"link\": \"base-expense://expenses?show=item&id=262\",\n        \"type\": \"expenseitems\",\n        \"hid\": \"MjYyLmV4cGVuc2VpdGVtcw\",\n        \"token\": \"201b4868409304ec5c7ea7421b217905\",\n        \"id\": \"262\",\n        \"user_id\": \"90468\",\n        \"username\": \"ceo\",\n        \"name\": \"Thanh toán công tác phí\",\n        \"content\": \"\",\n        \"supplier_id\": \"0\",\n        \"recipient_id\": \"90468\",\n        \"recipient_type\": \"user\",\n        \"categories\": [],\n        \"recurrence_config\": [],\n        \"payment_info\": {},\n        \"workflow\": \"sequential\",\n        \"payment_type\": \"cash\",\n        \"tax\": {\n            \"amount\": 437909\n        },\n        \"amount\": \"5000000.00\",\n        \"remaining\": \"0.00\",\n        \"files\": [],\n        \"since\": \"1709020409\",\n        \"last_update\": \"1714795487\",\n        \"report_id\": \"0\",\n        \"metatype\": \"claim\",\n        \"status\": \"100\",\n        \"budget_id\": \"0\",\n        \"multiple_code\": \"1\",\n        \"source\": \"\",\n        \"record_date\": \"1714755600\",\n        \"followers\": [\n            \"ketoan\",\n            \"ceo\"\n        ],\n        \"approved\": [\n            {\n                \"username\": \"ceo\",\n                \"note\": \"\"\n            }\n        ],\n        \"rejected\": [],\n        \"cancelled\": {},\n        \"advance\": \"5000000.00\",\n        \"form\": [],\n        \"code_id\": \"0\",\n        \"type_id\": \"0\",\n        \"policy_id\": \"0\",\n        \"is_itemizable\": \"1\",\n        \"payment_deadline\": \"1708966800\",\n        \"tax_type\": \"consumption\",\n        \"advance_outflows\": [\n            {\n                \"id\": \"1557\",\n                \"amount\": 5000000,\n                \"name\": \"Refund from (EID:261) Tạm ứng chi phí đi công tác\",\n                \"content\": \"\",\n                \"link\": \"base-expense://outflows/?show=outflow&id=1557\",\n                \"type\": \"outflows\"\n            }\n        ],\n        \"data\": {\n            \"actions\": [\n                \"create\"\n            ],\n            \"posts\": 2\n        },\n        \"approvers\": [\n            {\n                \"username\": \"ceo\",\n                \"signed\": 0,\n                \"role\": \"approver\",\n                \"approved\": 1\n            }\n        ],\n        \"stats\": {\n            \"posts\": 2,\n            \"likes\": 0\n        },\n        \"acl\": {\n            \"manage\": 0,\n            \"view\": 0,\n            \"approve\": 0,\n            \"edit\": 0,\n            \"follow\": 0\n        },\n        \"embed_link\": \"https://expense.base.com.vn/_embed/expenses?item=262\",\n        \"app_key\": \"expense\"\n    },\n    \"activity_logs\": [\n        {\n            \"id\": \"3693\",\n            \"name\": \"<b>Nguyễn Hiệp</b> approved the expense <b>Thanh toán công tác phí</b>\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"date_index\": \"1714755600\",\n            \"time\": \"1714795488\",\n            \"object_id\": \"262\",\n            \"metatype\": \"expenseitems\",\n            \"url\": \"base-expense://expenses?show=item&id=262\",\n            \"event\": \"item.approved\",\n            \"content\": \"\",\n            \"data\": {\n                \"icon\": \"rq_act_approved\",\n                \"icon_color\": \"alt1 more\"\n            },\n            \"changes\": [],\n            \"since\": \"1714795488\",\n            \"message\": \"<b>Nguyễn Hiệp</b> approved the expense <b>Thanh toán công tác phí</b>\"\n        },\n        {\n            \"id\": \"3690\",\n            \"name\": \"Expense Item Thanh toán công tác phí created outflow by Nguyễn Hiệp\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"date_index\": \"1714755600\",\n            \"time\": \"1714795487\",\n            \"object_id\": \"262\",\n            \"metatype\": \"expenseitems\",\n            \"url\": \"base-expense://expenses?show=item&id=262\",\n            \"event\": \"item.updated\",\n            \"content\": \"\",\n            \"data\": {\n                \"icon\": \"rq_act_updated\",\n                \"icon_color\": \"alt1 more\"\n            },\n            \"changes\": [],\n            \"since\": \"1714795487\",\n            \"message\": \"Expense Item Thanh toán công tác phí created outflow by Nguyễn Hiệp\"\n        },\n        {\n            \"id\": \"1678\",\n            \"name\": \"<b> Nguyễn Nam </b> created the expense <b>Thanh toán công tác phí</b>\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"date_index\": \"1708966800\",\n            \"time\": \"1709020410\",\n            \"object_id\": \"262\",\n            \"metatype\": \"expenseitems\",\n            \"url\": \"base-expense://expenses/?show=item&id=262\",\n            \"event\": \"item.created\",\n            \"content\": \"\",\n            \"data\": {\n                \"icon\": \"rq_act_created\",\n                \"icon_color\": \"alt1 more\"\n            },\n            \"changes\": [],\n            \"since\": \"1709020410\",\n            \"message\": \"<b> Nguyễn Nam </b> created the expense <b>Thanh toán công tác phí</b>\"\n        }\n    ],\n    \"html\": \"\",\n    \"__js\": \"Render.finish();\",\n    \"_page_data\": []\n}"}],"_postman_id":"bdc1be41-c193-4e9a-9da0-5a5bf9e39ec4"},{"name":"3.2.2 Get all Expenses","id":"58ef9d3e-1d97-42a9-8a6f-9fb4bde19cca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","description":"<p>App Access Token của Expense *</p>\n","type":"text"},{"key":"username","value":"hungnguyen","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"q","value":"Chi phí 123","description":"<p>Tìm theo tên chi phí</p>\n","type":"text"},{"key":"sort_by","value":"create_date_nto","description":"<p>Sắp xếp theo, nhập \"create_date_nto\", \"create_date_otn\", \"amount_htl\", \"amount_lth\", \"report_asc\" hoặc \"report_desc\"</p>\n","type":"text"},{"key":"status","value":"draft","description":"<p>Lọc theo Trạng thái, nhập \"draft\", \"pending_approval\", \"pending_finalization\", \"pending_outflow\", \"outflow_created\", \"approved\", \"more_info\", \"rejected\", \"done\", \"cancelled\", \"outflow_partially_created\", \"outflow_fully_created\"</p>\n","type":"text"},{"key":"metatype","value":"claim","description":"<p>Lọc theo Kiểu, nhập \"claim\", \"advance\"</p>\n","type":"text"},{"key":"expense_type","value":"1","description":"<p>Lọc theo Loại Chi phí, nhập ID của Loại Chi phí</p>\n","type":"text"},{"key":"payment_method","value":"cash","description":"<p>Lọc theo Công ty trả bằng, nhập \"cash\", \"transfer\"</p>\n","type":"text"},{"key":"supplier_recipient","value":"1","description":"<p>Lọc theo Công ty trả cho nhà cung cấp, nhập ID của NCC</p>\n","type":"text"},{"key":"remaining_min","value":"0","description":"<p>Lọc theo số tiền Công ty cần trả, nhập giá trị bắt đầu</p>\n","type":"text"},{"key":"remaining_max","value":"10000000","description":"<p>Lọc theo số tiền Công ty cần trả, nhập giá trị kết thúc</p>\n","type":"text"},{"key":"creator_id","value":"1","description":"<p>Lọc theo Tạo bởi, nhập ID của người tạo</p>\n","type":"text"},{"key":"create_date_from","value":"01/01/2024","description":"<p>Lọc theo Tạo lúc, nhập ngày bắt đầu, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"create_date_to","value":"31/01/2024","description":"<p>Lọc theo Tạo lúc, nhập ngày kết thúc, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/expenses/get","description":"<p>Dùng để lấy dữ liệu của tất cả Chi phí trên Base Expense, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","expenses","get"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"58ef9d3e-1d97-42a9-8a6f-9fb4bde19cca"},{"name":"3.2.3 Get all Expenses by last update time","id":"649008ed-be9c-4183-bd7d-4d8b09b24cf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","description":"<p>App Access Token của Expense *</p>\n","type":"text"},{"key":"start","value":"1705487100","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm bắt đầu *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"end","value":"1705487130","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm kết thúc *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/expenses/by.time","description":"<p>Dùng để lấy dữ liệu của tất cả Chi phí trên Base Expense, lọc theo Thời gian cập nhật gần nhất</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","expenses","by.time"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"649008ed-be9c-4183-bd7d-4d8b09b24cf7"},{"name":"3.2.4 Create an Expense Claim","id":"efa04c80-5eaa-4f5e-93db-29627a02d12e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Thanh toán chi phí công tác","description":"<p>Tên Chi phí *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người tạo * </p>\n","type":"text"},{"key":"metatype","value":"claim","description":"<p>Kiểu Chi phí *</p>\n","type":"text"},{"key":"recipient_type","value":"user","description":"<p>Công ty trả cho *, nhập \"user\" nếu trả cho người lao động, hoặc \"supplier\" nếu trả cho nhà cung cấp</p>\n","type":"text"},{"key":"recipient_name","value":"vietphan","description":"<p>(Nếu trả cho người lao động) Username của người lao động *</p>\n","type":"text"},{"key":"supplier_name","value":"Nhà cung cấp 1","description":"<p>(Nếu trả cho nhà cung cấp) Tên nhà cung cấp *</p>\n","type":"text"},{"key":"payment_type","value":"cash","description":"<p>Công ty trả bằng *, nhập \"cash\" nếu trả bằng tiền mặt, hoặc \"transfer\" nếu trả bằng chuyển khoản</p>\n","type":"text"},{"key":"bank_name","value":"TPBank","description":"<p>(Nếu trả bằng chuyển khoản) Tên ngân hàng *</p>\n","type":"text"},{"key":"account_number","value":"02082016868","description":"<p>(Nếu trả bằng chuyển khoản) Số tài khoản *</p>\n","type":"text"},{"key":"account_name_bank","value":"CONG TY CP BASE ENTERPRISE","description":"<p>(Nếu trả bằng chuyển khoản) Tên chủ tài khoản *</p>\n","type":"text"},{"key":"tax_type","value":"consumption","description":"<p>Kiểu Thuế *, nhập \"consumption\" nếu Thuế Tiêu dùng, hoặc \"income\" nếu Thuế Thu nhập</p>\n","type":"text"},{"key":"require_invoice","value":"0","description":"<p>Không yêu cầu đính kèm hóa đơn, nhập \"0\" *</p>\n","type":"text"},{"key":"custom_item_lines","value":"chi_tiet:item_names.0-item_amounts.1-tax_amounts.2","description":"<p>Bảng Chi tiết, nếu không có Số lượng, Đơn giá *. Dữ liệu được lấy từ 1 bảng có key \"chi_tiet\" tại đầu gửi dữ liệu, gồm 3 cột: \nTên hạng mục, Số tiền (có gồm thuế), Số tiền thuế. </p>\n<p>Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. </p>\n<p>Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_item_lines","value":"chi_tiet:item_product_codes.0-item_quantities.1-item_unit_prices.2-tax_amounts.3","description":"<p>Bảng Chi tiết, nếu có Số lượng và Đơn giá *. Dữ liệu được lấy từ 1 bảng có key \"chi_tiet\" tại đầu gửi dữ liệu, gồm 4 cột: \nTên Hàng hóa, dịch vụ, Số lượng, Đơn giá, Số tiền thuế. </p>\n<p>Trong đó, Tên Hàng hóa, dịch vụ lấy từ danh sách Hàng hóa, dịch vụ đã thiết lập trên Finance. </p>\n<p>Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. </p>\n<p>Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_item_lines","value":"chi_tiet:item_names.0-item_amounts.1-tax_policy.2-tax_amounts.3-deductible_vat.4-deductible_vat_acc.5","description":"<p>Bảng Chi tiết, nếu không có Số lượng, Đơn giá *. Dữ liệu được lấy từ 1 bảng có key “chi_tiet” tại đầu gửi dữ liệu, gồm các cột: \nTên hạng mục, Số tiền (có gồm thuế), Chính sách thuế, Số tiền thuế, Chọn khấu trừ thuế VAT hoặc không khấu trừ, Khấu trừ thuế VAT theo tài khoản 1331 hoặc 1332.</p>\n<p>Nếu chỉ dùng Chính sách Thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1.</p>\n<p>Nếu ‘deductible_vat’ = 1 thì Hạng mục sẽ được khấu trừ Thuế theo tài khoản kế toán VAT là 1331 hoặc 1332.</p>\n<p>Nếu ‘deductible_vat’ = 0 thì sẽ không có khấu trừ.</p>\n<p>Với consumption tax, nếu không có thuế thì điền giá trị tại Chính sách thuế là no_tax.</p>\n<p>Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text","uuid":"5e834bd7-c67e-45a5-b043-8fc9eb422177"},{"key":"chi_tiet","value":"{{Giá trị tại bảng \"chi_tiet\" đã được mã hóa}}","description":"<p>Giá trị tại bảng \"chi_tiet\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"payment_deadline","value":"22/06/2024","description":"<p>Hạn thanh toán</p>\n","type":"text"},{"key":"direct_manager","value":"hungnguyen","description":"<p>(Nếu yêu cầu quản lý trực tiếp duyệt) Username của quản lý trực tiếp, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"followers","value":"hungnguyen,vietphan","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Tạm ứng cho nhân viên trước khi đi công tác","description":"<p>Mô tả</p>\n","type":"text"},{"key":"custom_dia_diem_cong_tac","value":"TP. Hồ Chí Minh","description":"<p>Giá trị tại trường tùy chỉnh \"custom_dia_diem_cong_tac\" tại Base Expense</p>\n","type":"text"},{"key":"transform_categories_keys","value":"khu_vuc-khuvuc","description":"<p>Danh mục. Dữ liệu được lấy từ 1 trường có key là \"khu_vuc\" tại đầu gửi dữ liệu, tương ứng với chiều dữ liệu tùy chỉnh có code là \"khuvuc\" tại Base Finance, tạo thành 1 cặp. Nếu có nhiều cặp, ngăn cách giữa các cặp bằng dấu phẩy.</p>\n","type":"text"},{"key":"khu_vuc","value":"Miền Bắc","description":"<p>Giá trị tại trường \"khu_vuc\". Lấy tên thẻ dữ liệu tại Base Finance.</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/webhook/expense/create/{{expense_type_token}}","description":"<p>Dùng để tạo Chi phí Thanh toán trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["webhook","expense","create","{{expense_type_token}}"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"efa04c80-5eaa-4f5e-93db-29627a02d12e"},{"name":"3.2.5 Create an Expense Advance","id":"2ee964c3-5e79-436c-bebe-f9a9ab3631a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Tạm ứng chi phí công tác","description":"<p>Tên Chi phí *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người tạo * </p>\n","type":"text"},{"key":"metatype","value":"advance","description":"<p>Kiểu Chi phí *</p>\n","type":"text"},{"key":"recipient_type","value":"user","description":"<p>Công ty trả cho *, nhập \"user\" nếu trả cho người lao động, hoặc \"supplier\" nếu trả cho nhà cung cấp</p>\n","type":"text"},{"key":"recipient_name","value":"vietphan","description":"<p>(Nếu trả cho người lao động) Username của người lao động *</p>\n","type":"text"},{"key":"supplier_name","value":"Nhà cung cấp 1","description":"<p>(Nếu trả cho nhà cung cấp) Tên nhà cung cấp *</p>\n","type":"text"},{"key":"payment_type","value":"cash","description":"<p>Công ty trả bằng *, nhập \"cash\" nếu trả bằng tiền mặt, hoặc \"transfer\" nếu trả bằng chuyển khoản</p>\n","type":"text"},{"key":"bank_name","value":"TPBank","description":"<p>(Nếu trả bằng chuyển khoản) Tên ngân hàng *</p>\n","type":"text"},{"key":"account_number","value":"02082016868","description":"<p>(Nếu trả bằng chuyển khoản) Số tài khoản *</p>\n","type":"text"},{"key":"account_name_bank","value":"CONG TY CP BASE ENTERPRISE","description":"<p>(Nếu trả bằng chuyển khoản) Tên chủ tài khoản *</p>\n","type":"text"},{"key":"amount","value":"10000000","description":"<p>Số tiền Tạm ứng *</p>\n","type":"text"},{"key":"payment_deadline","value":"22/06/2024","description":"<p>Hạn thanh toán</p>\n","type":"text"},{"key":"direct_manager","value":"hungnguyen","description":"<p>(Nếu yêu cầu quản lý trực tiếp duyệt) Username của quản lý trực tiếp, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"followers","value":"hungnguyen,vietphan","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Tạm ứng cho nhân viên trước khi đi công tác","description":"<p>Mô tả</p>\n","type":"text"},{"key":"custom_dia_diem_cong_tac","value":"TP. Hồ Chí Minh","description":"<p>Giá trị tại trường tùy chỉnh \"custom_dia_diem_cong_tac\" tại Base Expense</p>\n","type":"text"},{"key":"transform_categories_keys","value":"khu_vuc-khuvuc","description":"<p>Danh mục. Dữ liệu được lấy từ 1 trường có key là \"khu_vuc\" tại đầu gửi dữ liệu, tương ứng với chiều dữ liệu tùy chỉnh có code là \"khuvuc\" tại Base Finance, tạo thành 1 cặp. Nếu có nhiều cặp, ngăn cách giữa các cặp bằng dấu phẩy.</p>\n","type":"text"},{"key":"khu_vuc","value":"Miền Bắc","description":"<p>Giá trị tại trường \"khu_vuc\". Lấy tên thẻ dữ liệu tại Base Finance.</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/webhook/expense/create/{{expense_type_token}}","description":"<p>Dùng để tạo Chi phí Tạm ứng trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["webhook","expense","create","{{expense_type_token}}"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ee964c3-5e79-436c-bebe-f9a9ab3631a2"},{"name":"3.2.6 Approve an Expense","id":"813c85a5-5025-4dda-b34a-692a2c694c03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"expense_item_id","value":"2458","description":"<p>ID của Chi phí *</p>\n","type":"text"},{"key":"budget_id","value":"12","description":"<p>ID của Ngân sách, bắt buộc nếu là Chi phí Thanh toán và chưa cài Ngân sách mặc định cho Loại Chi phí</p>\n","type":"text"},{"key":"code_id","value":"23","description":"<p>(Nếu là Chi phí Thanh toán) ID của Mã dòng tiền ra, bắt buộc nếu chưa cài Mã dòng tiền ra mặc định cho Loại Chi phí</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/webhook/expense/create/{{expense_type_token}}","description":"<p>Dùng để duyệt Chi phí với <strong>Luồng duyệt nâng cao (Advanced Approval)</strong> trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["webhook","expense","create","{{expense_type_token}}"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"813c85a5-5025-4dda-b34a-692a2c694c03"},{"name":"3.2.7 Reject an Expense","id":"84a4b19a-2fb9-49c8-9919-cc6b28021733","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"bichtran","description":"<p>Username của người từ chối duyệt *</p>\n","type":"text"},{"key":"expense_item_id","value":"2458","description":"<p>ID của Chi phí *</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/webhook/expense/reject/{{expense_type_token}}","description":"<p>Dùng để từ chối duyệt Chi phí trên Base Expense.</p>\n","urlObject":{"protocol":"https","path":["webhook","expense","reject","{{expense_type_token}}"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"84a4b19a-2fb9-49c8-9919-cc6b28021733"}],"id":"0944f440-5193-4a88-b603-724603ae6ed3","_postman_id":"0944f440-5193-4a88-b603-724603ae6ed3","description":""},{"name":"3.3 Outflows","item":[{"name":"3.3.1 Get an Outflow","id":"69121cc9-4412-42b9-910f-ddff2c8d9e02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","type":"text","description":"<p>App Access Token của Expense *</p>\n"},{"key":"id","value":"1","description":"<p>ID của khoản tiền ra *</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/outflows/detail","description":"<p>Dùng để lấy dữ liệu của 1 Khoản tiền ra trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","outflows","detail"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"8ecf9e3c-5764-4e3c-9bfc-a47e67181df4","name":"3.2.1 Get an Outflow","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"2389-LPOMCRFH5ACQYSKAHXWH728796SF25S7QVFG2HMMCRCYKTH2CNQEV9Z9U72JFZLY-FVJ2QDZ9CWJU6SKAETTSRUSQSUGS48FF9WP7D4PFDUXKET5X93HWZHVD2KSVPPP8","type":"text","description":"App Access Token của Expense *"},{"key":"id","value":"3420","description":"ID của khoản tiền ra *","type":"text"}]},"url":"https://expense.base.com.vn/extapi/v1/outflows/detail"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 14 Jun 2024 02:39:12 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=2592000"},{"key":"Content-Security-Policy","value":"frame-ancestors 'self' *.base.com.vn;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Type","value":"application/json"},{"key":"Via","value":"1.1 google"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 1,\n    \"message\": \"\",\n    \"data\": null,\n    \"httpCode\": \"200\",\n    \"outflow\": {\n        \"link\": \"base-expense://outflows?show=outflow&id=3420\",\n        \"hid\": \"MzQyMC5vdXRmbG93cw\",\n        \"files\": [],\n        \"token\": \"fb56dbe9a3578054f59060c185e1634c\",\n        \"type\": \"outflows\",\n        \"id\": \"3420\",\n        \"user_id\": \"90468\",\n        \"username\": \"ceo\",\n        \"report_id\": \"0\",\n        \"metatype\": \"payment\",\n        \"code_id\": \"0\",\n        \"account_id\": \"6\",\n        \"transaction_id\": \"0\",\n        \"supplier_id\": \"0\",\n        \"item_ids\": [\n            \"262\"\n        ],\n        \"categories\": [],\n        \"source\": \"\",\n        \"flag_transaction\": \"0\",\n        \"name\": \"(EID:262) Thanh toán công tác phí\",\n        \"content\": \"\",\n        \"form\": [],\n        \"followers\": [\n            \"ketoan\",\n            \"ceo\"\n        ],\n        \"watchers\": [],\n        \"record_date\": \"1714755600\",\n        \"payment_date\": \"1714795488\",\n        \"workflow\": \"sequential\",\n        \"advance_refund_ids\": [\n            \"1557\"\n        ],\n        \"advance_refunds\": [\n            {\n                \"id\": \"1557\",\n                \"amount\": 5000000,\n                \"name\": \"Refund from (EID:261) Tạm ứng chi phí đi công tác\",\n                \"content\": \"\",\n                \"link\": \"base-expense://outflows/?show=outflow&id=1557\",\n                \"type\": \"outflows\"\n            }\n        ],\n        \"recipient_id\": \"90468\",\n        \"recipient_type\": \"user\",\n        \"payment_info\": {},\n        \"payment_type\": \"cash\",\n        \"bank_transaction_id\": \"\",\n        \"refunded_amount\": \"0.0000\",\n        \"pending_refund_amount\": \"0.0000\",\n        \"multiple_code\": \"1\",\n        \"data\": {\n            \"posts\": 1\n        },\n        \"since\": \"1714795487\",\n        \"last_update\": \"1714795488\",\n        \"system_id\": \"2389\",\n        \"status\": \"1\",\n        \"approved\": [\n            {\n                \"username\": \"ketoan\",\n                \"note\": \"\"\n            },\n            {\n                \"username\": \"ceo\",\n                \"note\": \"\"\n            }\n        ],\n        \"rejected\": [],\n        \"amount\": \"5000000.00\",\n        \"advance\": \"5000000.00\",\n        \"remaining\": \"0.00\",\n        \"account_transaction_id\": \"0\",\n        \"is_itemizable\": \"1\",\n        \"tax\": {\n            \"amount\": 437909\n        },\n        \"payment_deadline\": \"1708966800\",\n        \"budget_id\": \"0\",\n        \"approved_refunds\": [],\n        \"pending_refunds\": [],\n        \"is_created_transaction_manually\": \"0\",\n        \"tax_type\": \"consumption\",\n        \"to_account_id\": \"0\",\n        \"approvers\": [\n            {\n                \"username\": \"ketoan\",\n                \"signed\": 0,\n                \"role\": \"approver\",\n                \"approved\": 1\n            },\n            {\n                \"username\": \"ceo\",\n                \"signed\": 0,\n                \"role\": \"approver\",\n                \"approved\": 1\n            }\n        ],\n        \"stats\": {\n            \"posts\": 1,\n            \"likes\": 0\n        },\n        \"acl\": {\n            \"manage\": 0,\n            \"view\": 0,\n            \"approve\": 0,\n            \"edit\": 0,\n            \"follow\": 0\n        },\n        \"embed_link\": \"https://expense.base.com.vn/_embed/outflows?outflow=3420&source=service\",\n        \"bank_transaction_files\": []\n    },\n    \"outflow_code\": {\n        \"name\": \"---\"\n    },\n    \"outflow_followings\": [\n        {\n            \"files\": [],\n            \"metatype\": \"payment\",\n            \"code_id\": \"0\",\n            \"account_id\": \"6\",\n            \"report_id\": \"0\",\n            \"transaction_id\": \"0\",\n            \"item_ids\": [\n                \"262\"\n            ],\n            \"workflow\": \"sequential\",\n            \"status\": \"1\",\n            \"stage\": \"10\",\n            \"name\": \"(EID:262) Thanh toán công tác phí\",\n            \"content\": \"\",\n            \"form\": [],\n            \"followers\": [\n                \"ketoan\",\n                \"ceo\"\n            ],\n            \"watchers\": [],\n            \"record_date\": \"1714755600\",\n            \"payment_date\": \"1714795488\",\n            \"categories\": [],\n            \"source\": \"\",\n            \"flag_transaction\": \"0\",\n            \"recipient_id\": \"90468\",\n            \"recipient_type\": \"user\",\n            \"payment_info\": {},\n            \"payment_type\": \"cash\",\n            \"bank_transaction_id\": \"\",\n            \"amount\": \"5000000.00\",\n            \"remaining\": \"0.00\",\n            \"advance\": \"5000000.00\",\n            \"supplier_id\": \"0\",\n            \"approvers\": [\n                {\n                    \"username\": \"ketoan\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                },\n                {\n                    \"username\": \"ceo\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                }\n            ],\n            \"rejected\": [],\n            \"approved\": [\n                {\n                    \"username\": \"ketoan\",\n                    \"note\": \"\"\n                },\n                {\n                    \"username\": \"ceo\",\n                    \"note\": \"\"\n                }\n            ],\n            \"data\": {},\n            \"since\": \"1714795487\",\n            \"last_update\": \"1714795488\",\n            \"account_transaction_id\": \"0\",\n            \"is_itemizable\": \"1\",\n            \"tax\": {\n                \"amount\": 437909\n            },\n            \"pending_refund_amount\": \"0.0000\",\n            \"refunded_amount\": \"0.0000\",\n            \"id\": \"3420\",\n            \"user_id\": \"90468\",\n            \"follower_id\": \"90468\"\n        },\n        {\n            \"files\": [],\n            \"metatype\": \"payment\",\n            \"code_id\": \"0\",\n            \"account_id\": \"6\",\n            \"report_id\": \"0\",\n            \"transaction_id\": \"0\",\n            \"item_ids\": [\n                \"262\"\n            ],\n            \"workflow\": \"sequential\",\n            \"status\": \"1\",\n            \"stage\": \"10\",\n            \"name\": \"(EID:262) Thanh toán công tác phí\",\n            \"content\": \"\",\n            \"form\": [],\n            \"followers\": [\n                \"ketoan\",\n                \"ceo\"\n            ],\n            \"watchers\": [],\n            \"record_date\": \"1714755600\",\n            \"payment_date\": \"1714795488\",\n            \"categories\": [],\n            \"source\": \"\",\n            \"flag_transaction\": \"0\",\n            \"recipient_id\": \"90468\",\n            \"recipient_type\": \"user\",\n            \"payment_info\": {},\n            \"payment_type\": \"cash\",\n            \"bank_transaction_id\": \"\",\n            \"amount\": \"5000000.00\",\n            \"remaining\": \"0.00\",\n            \"advance\": \"5000000.00\",\n            \"supplier_id\": \"0\",\n            \"approvers\": [\n                {\n                    \"username\": \"ketoan\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                },\n                {\n                    \"username\": \"ceo\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                }\n            ],\n            \"rejected\": [],\n            \"approved\": [\n                {\n                    \"username\": \"ketoan\",\n                    \"note\": \"\"\n                },\n                {\n                    \"username\": \"ceo\",\n                    \"note\": \"\"\n                }\n            ],\n            \"data\": {},\n            \"since\": \"1714795487\",\n            \"last_update\": \"1714795488\",\n            \"account_transaction_id\": \"0\",\n            \"is_itemizable\": \"1\",\n            \"tax\": {\n                \"amount\": 437909\n            },\n            \"pending_refund_amount\": \"0.0000\",\n            \"refunded_amount\": \"0.0000\",\n            \"id\": \"3420\",\n            \"user_id\": \"90468\",\n            \"follower_id\": \"90469\"\n        }\n    ],\n    \"supplier\": {\n        \"name\": \"---\"\n    },\n    \"account\": {\n        \"id\": \"6\",\n        \"hid\": \"Ni5jYXNoYWNjb3VudHM\",\n        \"token\": \"3e5e7e19483ab7282315f989c840715e\",\n        \"link\": \"base-expense://accounts/show/6\",\n        \"type\": \"cashaccounts\",\n        \"username\": \"ceo\",\n        \"user_id\": \"90468\",\n        \"name\": \"Tài khoản TPBank\",\n        \"content\": \"\",\n        \"status\": \"0\",\n        \"account_holder_bank_name\": \"TPBank\",\n        \"account_holder_number\": \"0208 2016 868\",\n        \"source\": \"\",\n        \"owners\": [\n            \"ceo\",\n            \"admin\",\n            \"ketoan\"\n        ],\n        \"currency\": \"\",\n        \"sys_balance\": \"206499805570.00\",\n        \"metatype\": \"checking\",\n        \"since\": \"1691940182\",\n        \"last_update\": \"1717992165\",\n        \"system_id\": \"2389\",\n        \"bank_balance\": \"203570153160.00\",\n        \"inflow\": \"0.00\",\n        \"outflow\": \"0.00\",\n        \"is_default\": \"1\",\n        \"is_default_outflow\": \"1\",\n        \"account_holder_name\": \"CÔNG TY CP BASE FINANCE\",\n        \"data\": {\n            \"color\": 0,\n            \"total_reconcile\": \"1535\",\n            \"last_transaction_since\": \"1717779600\",\n            \"begin_current_balance\": 0,\n            \"last_imported\": 1705415809\n        },\n        \"deleted\": \"0\",\n        \"acl\": {\n            \"manage\": 0,\n            \"view\": 0\n        },\n        \"conversion_balance\": 0,\n        \"export\": {\n            \"id\": \"6\",\n            \"hid\": \"Ni5jYXNoYWNjb3VudHM\",\n            \"token\": \"3e5e7e19483ab7282315f989c840715e\",\n            \"link\": \"base-expense://accounts/show/6\",\n            \"username\": \"ceo\",\n            \"user_id\": \"90468\",\n            \"name\": \"Tài khoản TPBank\",\n            \"content\": \"\",\n            \"status\": \"0\",\n            \"account_holder_bank_name\": \"TPBank\",\n            \"account_holder_number\": \"0208 2016 868\",\n            \"owners\": [\n                \"ceo\",\n                \"admin\",\n                \"ketoan\"\n            ],\n            \"currency\": \"\",\n            \"sys_balance\": \"206499805570.00\",\n            \"metatype\": \"checking\",\n            \"since\": \"1691940182\",\n            \"last_update\": \"1717992165\",\n            \"system_id\": \"2389\",\n            \"bank_balance\": \"203570153160.00\",\n            \"inflow\": \"0.00\",\n            \"outflow\": \"0.00\",\n            \"is_default\": \"1\",\n            \"account_holder_name\": \"CÔNG TY CP BASE FINANCE\"\n        },\n        \"last_transaction_since\": \"1717779600\",\n        \"begin_current_balance\": 0,\n        \"total_reconcile\": \"1535\",\n        \"webhooks\": {}\n    },\n    \"outflows_picked_to\": [],\n    \"linked_expenses\": [\n        {\n            \"link\": \"base-expense://expenses?show=item&id=262\",\n            \"type\": \"expenseitems\",\n            \"hid\": \"MjYyLmV4cGVuc2VpdGVtcw\",\n            \"token\": \"fe6a5bec801a1f2d266104e90f460697\",\n            \"id\": \"262\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"name\": \"Thanh toán công tác phí\",\n            \"content\": \"\",\n            \"supplier_id\": \"0\",\n            \"recipient_id\": \"90468\",\n            \"recipient_type\": \"user\",\n            \"categories\": [],\n            \"recurrence_config\": [],\n            \"payment_info\": {},\n            \"workflow\": \"sequential\",\n            \"payment_type\": \"cash\",\n            \"tax\": {\n                \"amount\": 437909\n            },\n            \"amount\": \"5000000.00\",\n            \"remaining\": \"0.00\",\n            \"files\": [],\n            \"since\": \"1709020409\",\n            \"last_update\": \"1714795487\",\n            \"report_id\": \"0\",\n            \"metatype\": \"claim\",\n            \"status\": \"100\",\n            \"budget_id\": \"0\",\n            \"multiple_code\": \"1\",\n            \"source\": \"\",\n            \"record_date\": \"1714755600\",\n            \"followers\": [\n                \"ketoan\",\n                \"ceo\"\n            ],\n            \"approved\": [\n                {\n                    \"username\": \"ceo\",\n                    \"note\": \"\"\n                }\n            ],\n            \"rejected\": [],\n            \"cancelled\": {},\n            \"advance\": \"5000000.00\",\n            \"form\": [],\n            \"code_id\": \"0\",\n            \"type_id\": \"0\",\n            \"policy_id\": \"0\",\n            \"is_itemizable\": \"1\",\n            \"payment_deadline\": \"1708966800\",\n            \"tax_type\": \"consumption\",\n            \"advance_outflows\": [\n                {\n                    \"id\": \"1557\",\n                    \"amount\": 5000000,\n                    \"name\": \"Refund from (EID:261) Tạm ứng chi phí đi công tác\",\n                    \"content\": \"\",\n                    \"link\": \"base-expense://outflows/?show=outflow&id=1557\",\n                    \"type\": \"outflows\"\n                }\n            ],\n            \"data\": {\n                \"actions\": [\n                    \"create\"\n                ],\n                \"posts\": 2\n            },\n            \"approvers\": [\n                {\n                    \"username\": \"ceo\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                }\n            ],\n            \"stats\": {\n                \"posts\": 2,\n                \"likes\": 0\n            },\n            \"acl\": {\n                \"manage\": 0,\n                \"view\": 0,\n                \"approve\": 0,\n                \"edit\": 0,\n                \"follow\": 0\n            },\n            \"embed_link\": \"https://expense.base.com.vn/_embed/expenses?item=262\",\n            \"app_key\": \"expense\"\n        }\n    ],\n    \"advance_refunds\": [\n        {\n            \"link\": \"base-expense://outflows?show=outflow&id=1557\",\n            \"hid\": \"MTU1Ny5vdXRmbG93cw\",\n            \"files\": [],\n            \"token\": \"4bcde992a90e293f9f69e84279539f02\",\n            \"type\": \"outflows\",\n            \"id\": \"1557\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"report_id\": \"0\",\n            \"metatype\": \"advance\",\n            \"code_id\": \"74\",\n            \"account_id\": \"12\",\n            \"transaction_id\": \"0\",\n            \"supplier_id\": \"0\",\n            \"item_ids\": [\n                \"261\"\n            ],\n            \"categories\": [\n                {\n                    \"theodonhang\": \"376\"\n                }\n            ],\n            \"source\": \"\",\n            \"flag_transaction\": \"0\",\n            \"name\": \"(EID:261) Tạm ứng chi phí đi công tác\",\n            \"content\": \"\",\n            \"form\": [],\n            \"followers\": [\n                \"ceo\"\n            ],\n            \"watchers\": [],\n            \"record_date\": \"1708966800\",\n            \"payment_date\": \"1708966800\",\n            \"workflow\": \"sequential\",\n            \"advance_refund_ids\": [],\n            \"advance_refunds\": [],\n            \"recipient_id\": \"90468\",\n            \"recipient_type\": \"user\",\n            \"payment_info\": {},\n            \"payment_type\": \"cash\",\n            \"bank_transaction_id\": \"\",\n            \"refunded_amount\": \"5000000.0000\",\n            \"pending_refund_amount\": \"0.0000\",\n            \"multiple_code\": \"0\",\n            \"data\": {\n                \"posts\": 3\n            },\n            \"since\": \"1709018233\",\n            \"last_update\": \"1709018262\",\n            \"system_id\": \"2389\",\n            \"status\": \"500\",\n            \"approved\": [\n                {\n                    \"username\": \"ceo\",\n                    \"note\": \"\"\n                }\n            ],\n            \"rejected\": [],\n            \"amount\": \"7000000.00\",\n            \"advance\": \"0.00\",\n            \"remaining\": \"7000000.00\",\n            \"account_transaction_id\": \"0\",\n            \"is_itemizable\": \"1\",\n            \"tax\": {},\n            \"payment_deadline\": \"1708966800\",\n            \"budget_id\": \"0\",\n            \"approved_refunds\": [\n                {\n                    \"id\": \"3420\",\n                    \"amount\": 5000000\n                }\n            ],\n            \"pending_refunds\": [],\n            \"is_created_transaction_manually\": \"0\",\n            \"tax_type\": \"\",\n            \"to_account_id\": \"0\",\n            \"approvers\": [\n                {\n                    \"username\": \"ceo\",\n                    \"signed\": 0,\n                    \"role\": \"approver\",\n                    \"approved\": 1\n                }\n            ],\n            \"stats\": {\n                \"posts\": 3,\n                \"likes\": 0\n            },\n            \"acl\": {\n                \"manage\": 0,\n                \"view\": 0,\n                \"approve\": 0,\n                \"edit\": 0,\n                \"follow\": 0\n            },\n            \"embed_link\": \"https://expense.base.com.vn/_embed/outflows?outflow=1557&source=service\",\n            \"bank_transaction_files\": []\n        }\n    ],\n    \"item_lines\": [\n        {\n            \"hid\": \"MzY1MS5pdGVtbGluZXM\",\n            \"type\": \"itemlines\",\n            \"link\": \"base-expense://outflows/?show=outflow&id=3420\",\n            \"token\": \"dc03bb2fba7bcacbd5b8bc2b32379ef3\",\n            \"id\": \"3651\",\n            \"object_type\": \"outflows\",\n            \"object_id\": \"3420\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"code_id\": \"74\",\n            \"name\": \"Chi phí đi lại\",\n            \"tax\": {\n                \"amount\": \"290909\",\n                \"tax_rate\": 9.999996562500108\n            },\n            \"amount\": \"3200000.00\",\n            \"since\": \"1714795487\",\n            \"last_update\": \"1714795487\",\n            \"system_id\": \"2389\",\n            \"invoice_id\": \"-1\",\n            \"budget_id\": \"47\",\n            \"categories\": [\n                {\n                    \"theochinhanh\": \"361\"\n                },\n                {\n                    \"theochiendich\": \"70\"\n                }\n            ]\n        },\n        {\n            \"hid\": \"MzY1Mi5pdGVtbGluZXM\",\n            \"type\": \"itemlines\",\n            \"link\": \"base-expense://outflows/?show=outflow&id=3420\",\n            \"token\": \"9917c646ff9e80a324dc9bd80876e57a\",\n            \"id\": \"3652\",\n            \"object_type\": \"outflows\",\n            \"object_id\": \"3420\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"code_id\": \"74\",\n            \"name\": \"Chi phí nơi nghỉ\",\n            \"tax\": {\n                \"amount\": \"147000\",\n                \"tax_rate\": 10\n            },\n            \"amount\": \"1617000.00\",\n            \"since\": \"1714795487\",\n            \"last_update\": \"1714795487\",\n            \"system_id\": \"2389\",\n            \"invoice_id\": \"69\",\n            \"budget_id\": \"47\",\n            \"categories\": [\n                {\n                    \"theodonhang\": \"386\"\n                }\n            ]\n        },\n        {\n            \"hid\": \"MzY1My5pdGVtbGluZXM\",\n            \"type\": \"itemlines\",\n            \"link\": \"base-expense://outflows/?show=outflow&id=3420\",\n            \"token\": \"51017e41179a6b707cccaef69b0ccba9\",\n            \"id\": \"3653\",\n            \"object_type\": \"outflows\",\n            \"object_id\": \"3420\",\n            \"user_id\": \"90468\",\n            \"username\": \"ceo\",\n            \"code_id\": \"74\",\n            \"name\": \"Chi phí khác\",\n            \"tax\": {},\n            \"amount\": \"183000.00\",\n            \"since\": \"1714795487\",\n            \"last_update\": \"1714795487\",\n            \"system_id\": \"2389\",\n            \"invoice_id\": \"-1\",\n            \"budget_id\": \"47\",\n            \"categories\": []\n        }\n    ]\n}"}],"_postman_id":"69121cc9-4412-42b9-910f-ddff2c8d9e02"},{"name":"3.3.2 Get all Outflows","id":"c42cc3f2-8398-4bd8-826f-fdd5b61b1b3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","description":"<p>App Access Token của Expense *</p>\n","type":"text"},{"key":"username","value":"hungnguyen","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"q","value":"Thanh toán chi phí 123","description":"<p>Tìm theo tên khoản tiền ra</p>\n","type":"text"},{"key":"sort_by","value":"create_date_nto","description":"<p>Sắp xếp theo, nhập \"create_date_nto\", \"create_date_otn\", \"amount_htl\", \"amount_lth\"</p>\n","type":"text"},{"key":"status","value":"pending_approval","description":"<p>Lọc theo Trạng thái, nhập \"pending_approval\", \"approved\", \"partially_refunded\". \"fully_refunded\", \"rejected\", \"done\", \"cancelled\"</p>\n","type":"text"},{"key":"metatype","value":"payment","description":"<p>Lọc theo Kiểu, nhập \"payment\", \"transfer\", \"advance\", \"other\"</p>\n","type":"text"},{"key":"payment_type","value":"cash","description":"<p>Lọc theo Công ty trả bằng, nhập \"cash\", \"transfer\"</p>\n","type":"text"},{"key":"remaining_min","value":"0","description":"<p>Lọc theo số tiền Công ty cần trả, nhập giá trị bắt đầu</p>\n","type":"text"},{"key":"remaining_max","value":"10000000","description":"<p>Lọc theo số tiền Công ty cần trả, nhập giá trị kết thúc</p>\n","type":"text"},{"key":"supplier_id","value":"1","description":"<p>Lọc theo Công ty trả cho nhà cung cấp, nhập ID của NCC</p>\n","type":"text"},{"key":"recipient_id","value":"1","description":"<p>Lọc theo Công ty trả cho người dùng, nhập ID của người dùng</p>\n","type":"text"},{"key":"creator_id","value":"1","description":"<p>Lọc theo Tạo bởi, nhập ID của người tạo</p>\n","type":"text"},{"key":"create_date_from","value":"01/01/2024","description":"<p>Lọc theo Tạo lúc, nhập ngày bắt đầu, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"create_date_to","value":"31/01/2024","description":"<p>Lọc theo Tạo lúc, nhập ngày kết thúc, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/outflows/get","description":"<p>Dùng để lấy dữ liệu của tất cả Khoản tiền ra trên Base Expense, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","outflows","get"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c42cc3f2-8398-4bd8-826f-fdd5b61b1b3d"},{"name":"3.3.3 Get all Outflows by last update time","id":"c5b84247-0df4-42c2-a0e7-0a6044c2727f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","description":"<p>App Access Token của Expense *</p>\n","type":"text"},{"key":"start","value":"1705487100","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm bắt đầu *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"end","value":"1705487130","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm kết thúc *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/outflows/by.time","description":"<p>Dùng để lấy dữ liệu của tất cả Khoản tiền ra trên Base Expense, lọc theo Thời gian cập nhật gần nhất</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","outflows","by.time"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c5b84247-0df4-42c2-a0e7-0a6044c2727f"},{"name":"3.3.4 Record Outflow from Expense","id":"25771b48-7045-4223-b911-c06715e5fe25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"expense_id","value":"1524","description":"<p>ID của Chi phí *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người tạo * </p>\n","type":"text"},{"key":"account_name","value":"Tài khoản TPBank","description":"<p>Tên Tài khoản tiền tại Base Finance *</p>\n","type":"text"},{"key":"remaining","value":"10000000","description":"<p>Số tiền ghi nhận Khoản tiền ra cho Chi phí *</p>\n","type":"text"},{"key":"record_date","value":"22/06/2024","description":"<p>Ngày ghi nhận của Khoản tiền ra</p>\n","type":"text"},{"key":"payment_deadline","value":"22/06/2024","description":"<p>Hạn thanh toán</p>\n","type":"text"},{"key":"outflow_approver_config","value":"0","description":"<p>Thiết lập danh sách người duyệt của Khoản tiền ra *, mặc định để trống hoặc nhập \"0\" để lấy danh sách người duyệt tại outflow_list_approvers, hoặc nhập \"1\" để lấy theo danh sách đã thiết lập trên hệ thống</p>\n","type":"text"},{"key":"outflow_list_approvers","value":"bichtran,luongnguyen","description":"<p>(Nếu outflow_approver_config để trống hoặc nhập 0) Username của người duyệt, ngăn cách giữa các username bằng dấu phẩy *</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/webhook/outflow/create/{{outflow_token}}","description":"<p>Dùng để tạo Khoản tiền ra Thanh toán/Tạm ứng từ 1 Chi phí trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["webhook","outflow","create","{{outflow_token}}"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"25771b48-7045-4223-b911-c06715e5fe25"},{"name":"3.2.5 Create an Outflow Payment/Other","id":"c7421807-c571-4fa6-be3a-5fd4d6187e35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Thanh toán chi phí công tác","description":"<p>Tên Chi phí *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người tạo * </p>\n","type":"text"},{"key":"metatype","value":"payment","description":"<p>Kiểu Khoản tiền ra *, mặc định để trống hoặc nhập \"payment\" nếu là Thanh toán, hoặc nhập \"other\" nếu là Khác</p>\n","type":"text"},{"key":"account_name","value":"Tài khoản TPBank","description":"<p>Tên Tài khoản tiền tại Base Finance *</p>\n","type":"text"},{"key":"recipient_type","value":"user","description":"<p>Công ty trả cho *, nhập \"user\" nếu trả cho người lao động, hoặc \"supplier\" nếu trả cho nhà cung cấp</p>\n","type":"text"},{"key":"recipient_name","value":"vietphan","description":"<p>(Nếu trả cho người lao động) Username của người lao động *</p>\n","type":"text"},{"key":"supplier_name","value":"Nhà cung cấp 1","description":"<p>(Nếu trả cho nhà cung cấp) Tên nhà cung cấp *</p>\n","type":"text"},{"key":"payment_type","value":"cash","description":"<p>Công ty trả bằng *, nhập \"cash\" nếu trả bằng tiền mặt, hoặc \"transfer\" nếu trả bằng chuyển khoản</p>\n","type":"text"},{"key":"bank_name","value":"TPBank","description":"<p>(Nếu trả bằng chuyển khoản) Tên ngân hàng *</p>\n","type":"text"},{"key":"account_number","value":"02082016868","description":"<p>(Nếu trả bằng chuyển khoản) Số tài khoản *</p>\n","type":"text"},{"key":"account_name_bank","value":"CONG TY CP BASE ENTERPRISE","description":"<p>(Nếu trả bằng chuyển khoản) Tên chủ tài khoản *</p>\n","type":"text"},{"key":"tax_type","value":"consumption","description":"<p>Kiểu Thuế *, nhập \"consumption\" nếu Thuế Tiêu dùng, hoặc \"income\" nếu Thuế Thu nhập</p>\n","type":"text"},{"key":"require_invoice","value":"0","description":"<p>Không yêu cầu đính kèm hóa đơn, nhập \"0\" *</p>\n","type":"text"},{"key":"custom_item_lines","value":"chi_tiet:item_names.0-budget_names.1-code_names.2-item_amounts.3-tax_amounts.4","description":"<p>Bảng Chi tiết *. Dữ liệu được lấy từ 1 bảng có key \"chi_tiet\" tại đầu gửi dữ liệu, gồm 5 cột: \nTên hạng mục, Tên ngân sách, Tên mã dòng tiền ra, Số tiền (có gồm thuế), Số tiền thuế. </p>\n<p>Trong đó tên ngân sách, tên mã dòng tiền ra lấy từ danh sách tại Base Finance. \nNếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. </p>\n<p>Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"custom_item_lines","value":"chi_tiet:item_names.0-budget_names.1-code_names.2-item_amounts.3-tax_policy.4-tax_amounts.5-deductible_vat.6-deductible_vat_acc.7","description":"<p>﻿Bảng Chi tiết *. Dữ liệu được lấy từ 1 bảng có key \"chi_tiet\" tại đầu gửi dữ liệu, gồm các cột: Tên hạng mục, Số tiền (có gồm thuế), Chính sách thuế, Số tiền thuế, Chọn khấu trừ thuế VAT hoặc không khấu trừ, Khấu trừ thuế VAT theo tài khoản 1331 hoặc 1332.</p>\n<p>Nếu chỉ dùng Chính sách Thuế, thì không cần Số tiền thuế; hoặc nếu dùng Số tiền thuế thay cho Chính sách thuế, thì điền giá trị tại Chính sách thuế là -1.</p>\n<p>Nếu 'deductible_vat' = 1 thì Hạng mục sẽ được khấu trừ Thuế theo tài khoản kế toán VAT là 1331 hoặc 1332.</p>\n<p>Nếu 'deductible_vat' = 0 thì sẽ không có khấu trừ.</p>\n<p>Với consumption tax, nếu không có thuế thì điền giá trị tại Chính sách thuế là no_tax.</p>\n<p>Nếu có nhiều bảng, ngăn cách giữa các cấu trúc bằng dấu phẩy. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text","uuid":"66c2eb8d-c608-413e-adff-286196b359a3"},{"key":"chi_tiet","value":"{{Giá trị tại bảng \"chi_tiet\" đã được mã hóa}}","description":"<p>Giá trị tại bảng \"chi_tiet\" *. Đọc cách khai báo và mã hóa dữ liệu đầu vào dạng bảng trên đầu tài liệu.</p>\n","type":"text"},{"key":"record_date","value":"22/06/2024","description":"<p>Ngày ghi nhận của Khoản tiền ra</p>\n","type":"text"},{"key":"payment_deadline","value":"22/06/2024","description":"<p>Hạn thanh toán</p>\n","type":"text"},{"key":"outflow_approver_config","value":"0","description":"<p>Thiết lập danh sách người duyệt của Khoản tiền ra *, mặc định để trống hoặc nhập \"0\" để lấy danh sách người duyệt tại outflow_list_approvers, hoặc nhập \"1\" để lấy theo danh sách đã thiết lập trên hệ thống</p>\n","type":"text"},{"key":"outflow_list_approvers","value":"bichtran,vietphan","description":"<p>(Nếu outflow_approver_config để trống hoặc nhập 0) Username của người duyệt, ngăn cách giữa các username bằng dấu phẩy *</p>\n","type":"text"},{"key":"followers","value":"hungnguyen,vietphan","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Tạm ứng cho nhân viên trước khi đi công tác","description":"<p>Mô tả</p>\n","type":"text"},{"key":"custom_dia_diem_cong_tac","value":"TP. Hồ Chí Minh","description":"<p>Giá trị tại trường tùy chỉnh \"custom_dia_diem_cong_tac\" tại Base Expense</p>\n","type":"text"},{"key":"transform_categories_keys","value":"van_phong-vanphong","description":"<p>Danh mục. Dữ liệu được lấy từ 1 trường có key là \"van_phong\" tại đầu gửi dữ liệu, tương ứng với chiều dữ liệu tùy chỉnh có code là \"vanphong\" tại Base Finance, tạo thành 1 cặp. Nếu có nhiều cặp, ngăn cách giữa các cặp bằng dấu phẩy.</p>\n","type":"text"},{"key":"van_phong","value":"VP Hà Nội","description":"<p>Giá trị tại trường \"van_phong\". Lấy tên thẻ dữ liệu tại Base Finance.</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/webhook/outflow/create/{{outflow_token}}","description":"<p>Dùng để tạo Khoản tiền ra Thanh toán/Khác trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["webhook","outflow","create","{{outflow_token}}"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7421807-c571-4fa6-be3a-5fd4d6187e35"},{"name":"3.3.6 Create an Outflow Advance","id":"af47fe37-73d4-4710-ac31-adba7b53fb0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Tạm ứng chi phí công tác","description":"<p>Tên Khoản tiền ra *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người tạo * </p>\n","type":"text"},{"key":"metatype","value":"advance","description":"<p>Kiểu Khoản tiền ra *</p>\n","type":"text"},{"key":"account_name","value":"Tài khoản TPBank","description":"<p>Tên Tài khoản tiền tại Base Finance *</p>\n","type":"text"},{"key":"recipient_type","value":"user","description":"<p>Công ty trả cho *, nhập \"user\" nếu trả cho người lao động, hoặc \"supplier\" nếu trả cho nhà cung cấp</p>\n","type":"text"},{"key":"recipient_name","value":"vietphan","description":"<p>(Nếu trả cho người lao động) Username của người lao động *</p>\n","type":"text"},{"key":"supplier_name","value":"Nhà cung cấp 1","description":"<p>(Nếu trả cho nhà cung cấp) Tên nhà cung cấp *</p>\n","type":"text"},{"key":"payment_type","value":"cash","description":"<p>Công ty trả bằng *, nhập \"cash\" nếu trả bằng tiền mặt, hoặc \"transfer\" nếu trả bằng chuyển khoản</p>\n","type":"text"},{"key":"bank_name","value":"TPBank","description":"<p>(Nếu trả bằng chuyển khoản) Tên ngân hàng *</p>\n","type":"text"},{"key":"account_number","value":"02082016868","description":"<p>(Nếu trả bằng chuyển khoản) Số tài khoản *</p>\n","type":"text"},{"key":"account_name_bank","value":"CONG TY CP BASE ENTERPRISE","description":"<p>(Nếu trả bằng chuyển khoản) Tên chủ tài khoản *</p>\n","type":"text"},{"key":"amount","value":"10000000","description":"<p>Số tiền Tạm ứng *</p>\n","type":"text"},{"key":"record_date","value":"22/06/2024","description":"<p>Ngày ghi nhận của Khoản tiền ra</p>\n","type":"text"},{"key":"payment_deadline","value":"22/06/2024","description":"<p>Hạn thanh toán</p>\n","type":"text"},{"key":"outflow_approver_config","value":"0","description":"<p>Thiết lập danh sách người duyệt của Khoản tiền ra *, mặc định để trống hoặc nhập \"0\" để lấy danh sách người duyệt tại outflow_list_approvers, hoặc nhập \"1\" để lấy theo danh sách đã thiết lập trên hệ thống</p>\n","type":"text"},{"key":"outflow_list_approvers","value":"bichtran,vietphan","description":"<p>(Nếu outflow_approver_config để trống hoặc nhập 0) Username của người duyệt, ngăn cách giữa các username bằng dấu phẩy *</p>\n","type":"text"},{"key":"followers","value":"hungnguyen,vietphan","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Tạm ứng cho nhân viên trước khi đi công tác","description":"<p>Mô tả</p>\n","type":"text"},{"key":"custom_dia_diem_cong_tac","value":"TP. Hồ Chí Minh","description":"<p>Giá trị tại trường tùy chỉnh \"custom_dia_diem_cong_tac\" tại Base Expense</p>\n","type":"text"},{"key":"transform_categories_keys","value":"van_phong-vanphong","description":"<p>Danh mục. Dữ liệu được lấy từ 1 trường có key là \"van_phong\" tại đầu gửi dữ liệu, tương ứng với chiều dữ liệu tùy chỉnh có code là \"vanphong\" tại Base Finance, tạo thành 1 cặp. Nếu có nhiều cặp, ngăn cách giữa các cặp bằng dấu phẩy.</p>\n","type":"text"},{"key":"van_phong","value":"VP Hà Nội","description":"<p>Giá trị tại trường \"van_phong\". Lấy tên thẻ dữ liệu tại Base Finance.</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/webhook/outflow/create/{{outflow_token}}","description":"<p>Dùng để tạo Khoản tiền ra Tạm ứng trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["webhook","outflow","create","{{outflow_token}}"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"af47fe37-73d4-4710-ac31-adba7b53fb0c"},{"name":"3.3.7 Create an Outflow Transfer","id":"31dbabb7-70ca-4393-a71d-976f51b83a71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Chuyển nội bộ từ TPBank về VIB","description":"<p>Tên Khoản tiền ra *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người tạo * </p>\n","type":"text"},{"key":"metatype","value":"transfer","description":"<p>Kiểu Khoản tiền ra *</p>\n","type":"text"},{"key":"account_name","value":"Tài khoản TPBank","description":"<p>Từ tài khoản *, nhập Tên Tài khoản tiền tại Base Finance *</p>\n","type":"text"},{"key":"to_account_name","value":"Tài khoản VIB","description":"<p>Đến tài khoản *, nhập Tên Tài khoản tiền tại Base Finance *</p>\n","type":"text"},{"key":"amount","value":"10000000","description":"<p>Số tiền Chuyển nội bộ *</p>\n","type":"text"},{"key":"record_date","value":"22/06/2024","description":"<p>Ngày ghi nhận của Khoản tiền ra</p>\n","type":"text"},{"key":"payment_deadline","value":"22/06/2024","description":"<p>Hạn thanh toán</p>\n","type":"text"},{"key":"outflow_approver_config","value":"0","description":"<p>Thiết lập danh sách người duyệt của Khoản tiền ra *, mặc định để trống hoặc nhập \"0\" để lấy danh sách người duyệt tại outflow_list_approvers, hoặc nhập \"1\" để lấy theo danh sách đã thiết lập trên hệ thống</p>\n","type":"text"},{"key":"outflow_list_approvers","value":"bichtran,vietphan","description":"<p>(Nếu outflow_approver_config để trống hoặc nhập 0) Username của người duyệt, ngăn cách giữa các username bằng dấu phẩy *</p>\n","type":"text"},{"key":"followers","value":"hungnguyen,vietphan","description":"<p>Username của người theo dõi, ngăn cách giữa các username bằng dấu phẩy</p>\n","type":"text"},{"key":"content","value":"Tạm ứng cho nhân viên trước khi đi công tác","description":"<p>Mô tả</p>\n","type":"text"},{"key":"custom_noi_dung_chuyen_khoan","value":"Chuyen noi bo TT phi dich vu","description":"<p>Giá trị tại trường tùy chỉnh \"custom_noi_dung_chuyen_khoan\" tại Base Expense</p>\n","type":"text"},{"key":"transform_categories_keys","value":"van_phong-vanphong","description":"<p>Danh mục. Dữ liệu được lấy từ 1 trường có key là \"van_phong\" tại đầu gửi dữ liệu, tương ứng với chiều dữ liệu tùy chỉnh có code là \"vanphong\" tại Base Finance, tạo thành 1 cặp. Nếu có nhiều cặp, ngăn cách giữa các cặp bằng dấu phẩy.</p>\n","type":"text"},{"key":"van_phong","value":"VP Hà Nội","description":"<p>Giá trị tại trường \"van_phong\". Lấy tên thẻ dữ liệu tại Base Finance.</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/webhook/outflow/create/{{outflow_token}}","description":"<p>Dùng để tạo Khoản tiền ra Chuyển nội bộ trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["webhook","outflow","create","{{outflow_token}}"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"31dbabb7-70ca-4393-a71d-976f51b83a71"}],"id":"e0eb9692-df2c-416e-9787-ca69d77ac2f9","_postman_id":"e0eb9692-df2c-416e-9787-ca69d77ac2f9","description":""},{"name":"3.4 Invoices","item":[{"name":"3.4.1 Get an Invoice","id":"bd55370a-9acf-4cd5-8ee5-3b7a7e648d02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","description":"<p>App Access Token của Expense *</p>\n","type":"text"},{"key":"id","value":"1","description":"<p>ID của hóa đơn *</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/invoices/detail","description":"<p>Dùng để lấy dữ liệu của 1 Hóa đơn trên Base Expense</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","invoices","detail"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd55370a-9acf-4cd5-8ee5-3b7a7e648d02"},{"name":"3.4.2 Get all Invoices","id":"7cc9302b-6110-4770-8549-7106cae4fa34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","type":"text","description":"<p>App Access Token của Expense *</p>\n"},{"key":"username","value":"hungnguyen","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"q","value":"Hóa đơn vé máy bay","description":"<p>Tìm theo tên hóa đơn</p>\n","type":"text"},{"key":"status","value":"draft","description":"<p>Lọc theo Trạng thái, nhập \"draft\", \"submitted\"</p>\n","type":"text"},{"key":"start","value":"01/01/2024","description":"<p>Lọc theo Ngày lập hóa đơn, nhập ngày bắt đầu, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"end","value":"31/01/2024","description":"<p>Lọc theo Ngày lập hóa đơn, nhập ngày kết thúc, định dạng dd/mm/yyyy</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/invoices/get","description":"<p>Dùng để lấy dữ liệu của tất cả Hóa đơn trên Base Expense, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","invoices","get"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7cc9302b-6110-4770-8549-7106cae4fa34"},{"name":"3.4.3 Get all Invoices by last update time","id":"7920d90a-6f8b-43db-b05e-98b9cd47ab09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{expense_access_token}}","description":"<p>App Access Token của Expense *</p>\n","type":"text"},{"key":"start","value":"1705487100","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm bắt đầu *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"end","value":"1705487130","description":"<p>Lọc theo Thời gian cập nhật gần nhất (Last updated at), nhập thời điểm kết thúc *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi trên 1 trang, mặc định 50, tối đa 500</p>\n","type":"text"}]},"url":"https://expense.{{domain}}/extapi/v1/invoices/by.time","description":"<p>Dùng để lấy dữ liệu của tất cả Hóa đơn trên Base Expense, lọc theo Thời gian cập nhật gần nhất</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","invoices","by.time"],"host":["expense","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7920d90a-6f8b-43db-b05e-98b9cd47ab09"}],"id":"197204b6-68d2-4771-b4c6-90f180152816","_postman_id":"197204b6-68d2-4771-b4c6-90f180152816","description":""}],"id":"11c167e8-ede0-48ca-8774-62a4a1a44b17","_postman_id":"11c167e8-ede0-48ca-8774-62a4a1a44b17","description":""},{"name":"4. Base BankFeeds","item":[{"name":"4.1 Create an SMS Banking Message","id":"60dc0588-08a5-47dc-9a6e-1c21ca43ffb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{bankfeeds_access_token}}","description":"<p>App Access Token của BankFeeds *</p>\n","type":"text"},{"key":"sender","value":"TPBank","description":"<p>Tên người gửi tin nhắn SMS Banking *</p>\n","type":"text"},{"key":"message","value":"(TPBank): 16:32;14/11/2023\nTK: xxxxxxxx868\nPS:+12,000,000VND\nND: NGUYEN VAN A THANH TOAN MUA HANG","description":"<p>Nội dung tin nhắn *</p>\n","type":"text"},{"key":"phone_number","value":"19001900","description":"<p>Số điện thoại gửi tin nhắn *</p>\n","type":"text"},{"key":"sent_date","value":"1698571947","description":"<p>Thời gian nhận được tin nhắn *. Chuyển đổi Unix Timestamp.</p>\n","type":"text"}]},"url":"https://bankfeeds.{{domain}}/extapi/v1/sms/message","description":"<p>Dùng để tạo 1 Tin nhắn ngân hàng trên Base BankFeeds</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","sms","message"],"host":["bankfeeds","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"60dc0588-08a5-47dc-9a6e-1c21ca43ffb2"},{"name":"4.2 Create a Mobile App Noti Message","id":"f7693424-0e79-4a8b-9405-ae54cec323f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{bankfeeds_access_token}}","type":"text","description":"<p>App Access Token của BankFeeds *</p>\n"},{"key":"sender","value":"TPBank Mobile","type":"text","description":"<p>Tên app gửi thông báo Mobile Banking *</p>\n"},{"key":"message","value":"(TPBank): 16/03/23; 15:30\nTK: xxxxx6868\nPS:+2,000,000VND\nSD: 100,000,000VND\nSD KHA DUNG: 100,000,000VND\nND: KHACH HANG NGUYEN VAN A THANH TOAN","type":"text","description":"<p>Nội dung thông báo *</p>\n"},{"key":"sent_date","value":"1678985492","type":"text","description":"<p>Thời gian nhận được thông báo *. Chuyển đổi Unix Timestamp.</p>\n"}]},"url":"https://bankfeeds.{{domain}}/extapi/v1/mobile/message","description":"<p>Dùng để tạo 1 Thông báo di động trên Base BankFeeds</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","mobile","message"],"host":["bankfeeds","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7693424-0e79-4a8b-9405-ae54cec323f7"},{"name":"4.3 Get Transactions by Created At","id":"3abb9383-b2a1-4fd3-a65c-58d1dae7f37c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{bankfeeds_access_token}}","description":"<p>App Access Token của BankFeeds *</p>\n","type":"text"},{"key":"created_date_from","value":"31/07/2024","description":"<p>Nhập thời điểm bắt đầu lọc *, định dạng dd/mm/yyyy hoặc chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"created_date_to","value":"31/07/2024","description":"<p>Nhập thời điểm kết thúc lọc *, định dạng dd/mm/yyyy hoặc chuyển đổi Unix Timestamp.</p>\n","type":"text"},{"key":"page","value":"1","description":"<p>Số thứ tự của trang cần lấy dữ liệu, mặc định 1</p>\n","type":"text"},{"key":"limit","value":"30","description":"<p>Số bản ghi trên 1 trang, mặc định 30</p>\n","type":"text"}]},"url":"https://bankfeeds.{{domain}}/extapi/v1/transaction/get","description":"<p>Dùng để lấy dữ liệu Giao dịch trên Base BankFeeds, lọc theo Thời gian tạo</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","transaction","get"],"host":["bankfeeds","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3abb9383-b2a1-4fd3-a65c-58d1dae7f37c"}],"id":"52358191-da42-41e4-a2e6-aad34ee08411","_postman_id":"52358191-da42-41e4-a2e6-aad34ee08411","description":""},{"name":"5. Base Asset","item":[{"name":"5.1 Create Assets","id":"b76a6f04-0f9f-42c1-a57d-f0f8ede749f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Màn hình máy tính DELL","description":"<p>Tên Tài sản *</p>\n","type":"text"},{"key":"creator_username","value":"vietphan","description":"<p>Username của người tạo * </p>\n","type":"text"},{"key":"code","value":"MHDELL123","description":"<p>(Nếu chỉ tạo 1 tài sản) Mã tài sản, có thể để trống để tự động tạo</p>\n","type":"text"},{"key":"quantity","value":"20","description":"<p>(Nếu tạo nhiều tài sản) Số lượng tài sản tạo ra, nếu nhập 0, 1 hoặc để trống thì chỉ tạo 1 tài sản</p>\n","type":"text"},{"key":"type_name","value":"Màn hình máy tính","description":"<p>Loại tài sản *, nhập tên Loại tài sản tại Base Asset</p>\n","type":"text"},{"key":"vendor_name","value":"Điện Máy Xanh","description":"<p>Nhà cung cấp *, nhập tên Nhà cung cấp tại Base Asset hoặc nhập tên Nhà cung mới để tạo mới</p>\n","type":"text"},{"key":"active_date","value":"25/06/2024","description":"<p>Ngày bắt đầu hoạt động của tài sản, có thể để trống để tự động lấy ngày hiện tại</p>\n","type":"text"},{"key":"purchase_price","value":"12000000","description":"<p>Giá mua tài sản</p>\n","type":"text"},{"key":"serial_number","value":"154615615151","description":"<p>(Nếu chỉ tạo 1 tài sản) Số serial của tài sản</p>\n","type":"text"},{"key":"tag_names","value":"Hà Nội, Marketing","description":"<p>Nhãn tài sản, nhập tên Nhãn tài sản tại Base Asset, ngăn cách giữa các nhãn bằng dấu phẩy</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/webhook/asset/create/{{location_token}}","description":"<p>Dùng để tạo một hoặc nhiều Tài sản trong 1 Địa điểm (Location) trên Base Asset</p>\n","urlObject":{"protocol":"https","path":["webhook","asset","create","{{location_token}}"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b76a6f04-0f9f-42c1-a57d-f0f8ede749f5"},{"name":"5.2 Dispose an Asset","id":"e39aafd7-107f-467b-aab3-f50c6cf83b5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"code","value":"MHDELL123","description":"<p>Mã tài sản *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người thanh lý * </p>\n","type":"text"},{"key":"action_date","value":"25/06/2024","description":"<p>Ngày thanh lý *</p>\n","type":"text"},{"key":"status_name","value":"Đã thanh lý","description":"<p>Trạng thái của tài sản sau khi thanh lý, nhập tên Trạng thái thể hiện đang không hoạt động tại Base Asset</p>\n","type":"text"},{"key":"sale_proceeds","value":"8000000","description":"<p>Số tiền thu được từ thanh lý</p>\n","type":"text"},{"key":"action_cost","value":"200000","description":"<p>Chi phí thanh lý</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/webhook/asset/dispose/{{location_token}}","description":"<p>Dùng để thanh lý 1 Tài sản trong 1 Địa điểm (Location) trên Base Asset</p>\n","urlObject":{"protocol":"https","path":["webhook","asset","dispose","{{location_token}}"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e39aafd7-107f-467b-aab3-f50c6cf83b5f"},{"name":"5.3 Custom Action","id":"d8972d73-6c4f-4584-8b2b-822f45d51789","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"code","value":"MHDELL123","description":"<p>Mã tài sản *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người thực hiện * </p>\n","type":"text"},{"key":"action_date","value":"25/06/2024","description":"<p>Ngày thực hiện *</p>\n","type":"text"},{"key":"status_name","value":"Đang sử dụng","description":"<p>(Nếu hành động làm thay đổi Trạng thái) Trạng thái *, nhập tên Trạng thái trên Base Asset</p>\n","type":"text"},{"key":"assignee","value":"bichtran","description":"<p>(Nếu hành động làm thay đổi Người sử dụng) Người sử dụng *, nhập username người sử dụng</p>\n","type":"text"},{"key":"location_name","value":"VP Hà Nội","description":"<p>(Nếu hành động làm thay đổi Địa điểm) Địa điểm *, nhập tên Địa điểm trên Base Asset</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/webhook/asset/custom.action/{{custom_action_token}}","description":"<p>Dùng để thực hiện 1 Hành động tùy chỉnh cho 1 Tài sản trên Base Asset</p>\n","urlObject":{"protocol":"https","path":["webhook","asset","custom.action","{{custom_action_token}}"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8972d73-6c4f-4584-8b2b-822f45d51789"},{"name":"5.4 Get all Assets","id":"851522d2-7f2b-4779-b82e-8f2d0d3d571b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"location_names","value":"VP Hà Nội","description":"<p>Lọc theo Địa điểm, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"type_names","value":"Màn hình máy tính","description":"<p>Lọc theo Loại tài sản, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"vendor_names","value":"Điện Máy Xanh","description":"<p>Lọc theo Nhà cung cấp, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"status_names","value":"Đang sử dụng","description":"<p>Lọc theo Trạng thái, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"tag_names","value":"Marketing","description":"<p>Lọc theo Nhãn tài sản, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi lấy ra, mặc định là tất cả</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/assets","description":"<p>Dùng để lấy dữ liệu của tất cả Tài sản trên Base Asset, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","assets"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"851522d2-7f2b-4779-b82e-8f2d0d3d571b"},{"name":"5.5 Get all Parts/Inventory","id":"bcfa91f1-9f00-4a79-afad-50c911a79e7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"location_names","value":"VP Hà Nội","description":"<p>Lọc theo Địa điểm, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"type_names","value":"Màn hình máy tính","description":"<p>Lọc theo Loại tài sản, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"vendor_names","value":"Điện Máy Xanh","description":"<p>Lọc theo Nhà cung cấp, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"tag_names","value":"Marketing","description":"<p>Lọc theo Nhãn tài sản, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"limit","value":"50","description":"<p>Số bản ghi lấy ra, mặc định là tất cả</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/stocks","description":"<p>Dùng để lấy dữ liệu của tất cả Linh kiện/Tồn kho trên Base Asset, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","stocks"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bcfa91f1-9f00-4a79-afad-50c911a79e7f"},{"name":"5.6 Get all Requests","id":"68b3f1e4-2928-4fa8-8efc-e0ec3730a8a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"request_names","value":"cấp tài sản","description":"<p>Tìm kiếm theo Tên tài sản</p>\n","type":"text"},{"key":"request_purposes","value":"Đề xuất cấp tài sản","description":"<p>Lọc theo Mục đích đề xuất, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"location_names","value":"VP Hà Nội","description":"<p>Lọc theo Địa điểm, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"status_names","value":"approved","description":"<p>Lọc theo Trạng thái đề xuất, nhập \"pending\", \"approved\", \"rejected\", mặc định khi để trống sẽ lọc Tất cả</p>\n","type":"text"},{"key":"request_date_from","value":"01/06/2024","description":"<p>Lọc theo Ngày tạo đề xuất, nhập ngày bắt đầu</p>\n","type":"text"},{"key":"request_date_to","value":"30/06/2024","description":"<p>Lọc theo Ngày tạo đề xuất, nhập ngày kết thúc</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/requests","description":"<p>Dùng để lấy dữ liệu của tất cả Đề xuất trên Base Asset, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","requests"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"68b3f1e4-2928-4fa8-8efc-e0ec3730a8a0"},{"name":"5.7 Get all Work Orders","id":"a89766fe-6d94-4005-a804-db831cbffc52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"location_names","value":"VP Hà Nội","description":"<p>Lọc theo Địa điểm, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"status_names","value":"approved","description":"<p>Lọc theo Trạng thái giao việc, nhập \"in_progress\", \"completed\", \"overdue\", mặc định khi để trống sẽ lọc Tất cả</p>\n","type":"text"},{"key":"start_date","value":"01/06/2024","description":"<p>Lọc theo Ngày bắt đầu của giao việc</p>\n","type":"text"},{"key":"due_date","value":"30/06/2024","description":"<p>Lọc theo Ngày hạn cuối của giao việc</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/work.orders","description":"<p>Dùng để lấy dữ liệu của tất cả Giao việc trên Base Asset, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","work.orders"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a89766fe-6d94-4005-a804-db831cbffc52"},{"name":"5.8 Get all Audits","id":"e7436eef-3e6a-47ac-b5da-e32ae9034246","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"location_names","value":"VP Hà Nội","description":"<p>Lọc theo Địa điểm, mặc định khi để trống sẽ lọc Tất cả </p>\n","type":"text"},{"key":"status_names","value":"approved","description":"<p>Lọc theo Trạng thái kiểm kê, nhập \"open\", \"closed\", mặc định khi để trống sẽ lọc Tất cả</p>\n","type":"text"},{"key":"start_date","value":"01/06/2024","description":"<p>Lọc theo Ngày bắt đầu của kiểm kê</p>\n","type":"text"},{"key":"end_date","value":"30/06/2024","description":"<p>Lọc theo Ngày hạn cuối của kiểm kê</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/audits","description":"<p>Dùng để lấy dữ liệu của tất cả Kiểm kê trên Base Asset, theo các bộ lọc</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","audits"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e7436eef-3e6a-47ac-b5da-e32ae9034246"},{"name":"5.9 Get all Transactions by Asset Code","id":"6147530e-ba23-4c40-97e9-69eb0b42b748","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"code","value":"MHDELL123","description":"<p>Mã của tài sản/ linh kiện/tồn kho *</p>\n","type":"text"},{"key":"object_type","value":"approved","description":"<p>Kiểu tài sản *, nhập \"asset\" nếu là Tài sản, hoặc \"stock\" nếu là Linh kiện/Tồn kho</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/transactions.by.code","description":"<p>Dùng để lấy dữ liệu giao dịch của 1 Tài sản hoặc 1 Linh kiện/Tồn kho trên Base Asset, theo Mã tài sản</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","transactions.by.code"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6147530e-ba23-4c40-97e9-69eb0b42b748"},{"name":"5.10 Get a Transaction by Transaction ID","id":"18531e52-98f5-4a44-93d5-5540b28000c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"},{"key":"username","value":"vietphan","description":"<p>Username của người muốn lấy dữ liệu *</p>\n","type":"text"},{"key":"ids","value":"2156","description":"<p>Mã ID của giao dịch *</p>\n","type":"text"},{"key":"object_type","value":"approved","description":"<p>Kiểu tài sản *, nhập \"asset\" nếu là Tài sản, hoặc \"stock\" nếu là Linh kiện/Tồn kho</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/transactions.by.id","description":"<p>Dùng để lấy dữ liệu 1 giao dịch trên Base Asset, theo Mã giao dịch</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","transactions.by.id"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"18531e52-98f5-4a44-93d5-5540b28000c2"},{"name":"5.11 Get List Locations","id":"edde65ce-2498-477e-9dfb-43878eca4065","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/locations","description":"<p>Dùng để lấy dữ liệu danh sách Địa điểm trên Base Asset</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","locations"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"edde65ce-2498-477e-9dfb-43878eca4065"},{"name":"5.12 Get List Vendors","id":"6f4a5971-d0ac-4193-a164-05c8d9707aa9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/vendors","description":"<p>Dùng để lấy dữ liệu danh sách Nhà cung cấp trên Base Asset</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","vendors"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f4a5971-d0ac-4193-a164-05c8d9707aa9"},{"name":"5.13 Get List Asset Types","id":"adcdf522-52a1-4ad5-8e9e-37cc7d7d4a74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/types","description":"<p>Dùng để lấy dữ liệu danh sách Loại tài sản trên Base Asset</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","types"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"adcdf522-52a1-4ad5-8e9e-37cc7d7d4a74"},{"name":"5.14 Get List Tags","id":"1646596d-f530-4bae-9a72-0012eccbb8ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/tags","description":"<p>Dùng để lấy dữ liệu danh sách Nhãn tài sản trên Base Asset</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","tags"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1646596d-f530-4bae-9a72-0012eccbb8ae"},{"name":"5.15 Get List Asset Status","id":"dd85c0a0-6f97-4c54-bd9c-e0a89a3293c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/statuses","description":"<p>Dùng để lấy dữ liệu danh sách Trạng thái tài sản trên Base Asset</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","statuses"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd85c0a0-6f97-4c54-bd9c-e0a89a3293c5"},{"name":"5.16 Get List Custom Actions","id":"338290cb-a5e0-4b52-8c0d-164b1eb1042e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/custom.actions","description":"<p>Dùng để lấy dữ liệu danh sách Hành động tùy chỉnh trên Base Asset</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","custom.actions"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"338290cb-a5e0-4b52-8c0d-164b1eb1042e"},{"name":"5.17 Get List Request Purposes","id":"5793f71a-b743-4344-b5c2-d0595d5b7771","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{asset_access_token}}","description":"<p>App Access Token của Asset *</p>\n","type":"text"}]},"url":"https://asset.{{domain}}/extapi/v1/asset/request.purposes","description":"<p>Dùng để lấy dữ liệu danh sách Mục đích đề xuất trên Base Asset</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","asset","request.purposes"],"host":["asset","{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5793f71a-b743-4344-b5c2-d0595d5b7771"}],"id":"bff1366d-e5fe-4c93-867e-18d726de12cb","_postman_id":"bff1366d-e5fe-4c93-867e-18d726de12cb","description":""}]}