API
Home / Documentation /
βοΈ Getting Started
πͺ Outlet
βοΈ Settings
π§ Working With Counter
π° Working Denomination
π Make a Test Sale
π₯ Employee Management
π Attendance
π Working with Tax
π¦ Account
π¦ Working (General Item)
π¦ Working (Variation Item)
π± Working (IMEI Item)
π·οΈ Working (Serial Item)
π Working (Medicine Item)
π³ Working (Installment Item)
π§ Working (Service Item)
π Stock (General Item)
π Stock (Variation Item)
π Stock (IMEI Item)
π Stock (Serial Item)
π Stock (Medicine Item)
π Stock (Installment Item)
π₯ Purchase (General Item)
π₯ Purchase (Variation Item)
π₯ Purchase (IMEI Item)
π₯ Purchase (Serial Item)
π₯ Purchase (Medicine Item)
π₯ Purchase (Installment Item)
π·οΈ Barcode & Label
π¨οΈ Working with Printer
π Sale (General Item)
π Sale (Variation Item)
π Sale (IMEI Item)
π Sale (Serial Item)
π Sale (Medicine Item)
π Sale (Installment Item)
π§ Sale (Service Item)
π List Sale
π Multivendor e-Commerce
π§ Working with Email
π¬ Working with SMS
π³ Payment Gateway Setting
π¬ Working with WhatsApp
π€ Working with Customer
π’ Working with Supplier
π€ Purchase Return (General Item)
π€ Purchase Return (Variation Item)
π€ Purchase Return (IMEI Item)
π€ Purchase Return (Serial Item)
π€ Purchase Return (Medicine Item)
π€ Purchase Return (Installment Item)
π Sale Return (General Item)
π Sale Return (Variation Item)
π Sale Return (IMEI Item)
π Sale Return (Serial Item)
π Sale Return (Medicine Item)
π Sale Return (Installment Item)
π Dashboard
π Promotion & Coupon
π Loyalty
π³ Installment Sale
π§ Warranty/Servicing
π Income
π Expense
π° Salary/Payroll
π Quotation
π Transfer (General Item)
π Transfer (Variation Item)
π Transfer (IMEI Item)
π Transfer (Serial Item)
π Transfer (Medicine Item)
π Transfer (Installment Item)
β Damage (General Item)
β Damage (Variation Item)
β Damage (IMEI Item)
β Damage (Serial Item)
β Damage (Medicine Item)
β Damage (Installment Item)
π’ Fixed Asset
π Report
π Update Software
β Uninstall License
What is API?
An API, or Application Programming Interface, is a set of rules and protocols that allows different software applications to communicate with each other. APIs define the methods and data formats that applications can use to request and exchange information.
How to run Swagger API Documentation
Please go to api_documentation/swagger and open index.js. Now look for your-domain.com in line 4 and replace this with your domain with extension.
FiNPOS provides API for product add and sell.
API TokenΒ must be generated before working with API.
To generateΒ API TokeΒ expand the βSettingsβ menu from the left sidebar and click on the βSettingβ menu.
Generate an API by clicking the Generate button.
Product API Description
You can use the following example API to add items.
{
"api_auth_key": "c10edad9-e361-4ba1-97e3-387f27ba4265",
"name": "Wardrobe",
"alternative_name": "wardrobe",
"type": "General_Product",
"category_name": "",
"brand_name": "RFL",
"supplier_name": "Mr.RFL",
"alert_quantity": "5",
"unit_type": "Single Unit",
"purchase_unit_name": "PCS",
"sale_unit_name": "PCS",
"conversion_rate": "1",
"purchase_price": "33",
"whole_sale_price": "40",
"sale_price": "55",
"description": "Item description",
"warranty": "1",
"warranty_type": "Year",
"guarantee": "1",
"guarantee_type": "Month",
"photo": "test.png",
"loyalty_point": "0",
"del_status": "Live",
"opening_stock": [
{
"iem_description": "",
"stock_quantity": "20",
"outlet_name": "Mirput"
},
{
"iem_description": "",
"stock_quantity": "20",
"outlet_name": "Uttara"
}
],
"tax_information": [
{
"tax_field_name": "CGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "SGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "IGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "Vat",
"tax_field_percentage": "20"
}
]
} You can use the following example API to edit items.
{
"api_auth_key": "c10edad9-e361-4ba1-97e3-387f27ba4265",
"name": "Wardrobe",
"alternative_name": "wardrobe",
"type": "General_Product",
"category_name": "",
"brand_name": "RFL",
"supplier_name": "Mr.RFL",
"alert_quantity": "5",
"unit_type": "Single Unit",
"purchase_unit_name": "PCS",
"sale_unit_name": "PCS",
"conversion_rate": "1",
"purchase_price": "33",
"whole_sale_price": "40",
"sale_price": "55",
"description": "Item description",
"warranty": "1",
"warranty_type": "Year",
"guarantee": "1",
"guarantee_type": "Month",
"photo": "test.png",
"loyalty_point": "0",
"del_status": "Live",
"opening_stock": [
{
"iem_description": "",
"stock_quantity": "20",
"outlet_name": "Mirput"
},
{
"iem_description": "",
"stock_quantity": "20",
"outlet_name": "Uttara"
}
],
"tax_information": [
{
"tax_field_name": "CGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "SGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "IGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "Vat",
"tax_field_percentage": "20"
}
]
} You can use the following example API to update items.
{
"api_auth_key": "c10edad9-e361-4ba1-97e3-387f27ba4265",
"name": "Wardrobe",
"alternative_name": "wardrobe",
"type": "General_Product",
"category_name": "",
"brand_name": "RFL",
"supplier_name": "Mr.RFL",
"alert_quantity": "5",
"unit_type": "Single Unit",
"purchase_unit_name": "PCS",
"sale_unit_name": "PCS",
"conversion_rate": "1",
"purchase_price": "33",
"whole_sale_price": "40",
"sale_price": "55",
"description": "Item description",
"warranty": "1",
"warranty_type": "Year",
"guarantee": "1",
"guarantee_type": "Month",
"photo": "test.png",
"loyalty_point": "0",
"del_status": "Live",
"opening_stock": [
{
"iem_description": "",
"stock_quantity": "20",
"outlet_name": "Mirput"
},
{
"iem_description": "",
"stock_quantity": "20",
"outlet_name": "Uttara"
}
],
"tax_information": [
{
"tax_field_name": "CGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "SGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "IGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "Vat",
"tax_field_percentage": "20"
}
]
} You can use the following example API to view the list of items.
{
"api_auth_key": "c10edad9-e361-4ba1-97e3-387f27ba4265",
"name": "Wardrobe",
"alternative_name": "wardrobe",
"type": "General_Product",
"category_name": "",
"brand_name": "RFL",
"supplier_name": "Mr.RFL",
"alert_quantity": "5",
"unit_type": "Single Unit",
"purchase_unit_name": "PCS",
"sale_unit_name": "PCS",
"conversion_rate": "1",
"purchase_price": "33",
"whole_sale_price": "40",
"sale_price": "55",
"description": "Item description",
"warranty": "1",
"warranty_type": "Year",
"guarantee": "1",
"guarantee_type": "Month",
"photo": "test.png",
"loyalty_point": "0",
"del_status": "Live",
"opening_stock": [
{
"iem_description": "",
"stock_quantity": "20",
"outlet_name": "Mirput"
},
{
"iem_description": "",
"stock_quantity": "20",
"outlet_name": "Uttara"
}
],
"tax_information": [
{
"tax_field_name": "CGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "SGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "IGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "Vat",
"tax_field_percentage": "20"
}
]
} you can use the following example API to delete items.
{
"api_auth_key": "c10edad9-e361-4ba1-97e3-387f27ba4265",
"name": "Wardrobe",
"alternative_name": "wardrobe",
"type": "General_Product",
"category_name": "",
"brand_name": "RFL",
"supplier_name": "Mr.RFL",
"alert_quantity": "5",
"unit_type": "Single Unit",
"purchase_unit_name": "PCS",
"sale_unit_name": "PCS",
"conversion_rate": "1",
"purchase_price": "33",
"whole_sale_price": "40",
"sale_price": "55",
"description": "Item description",
"warranty": "1",
"warranty_type": "Year",
"guarantee": "1",
"guarantee_type": "Month",
"photo": "test.png",
"loyalty_point": "0",
"del_status": "Live",
"opening_stock": [
{
"iem_description": "",
"stock_quantity": "20",
"outlet_name": "Mirput"
},
{
"iem_description": "",
"stock_quantity": "20",
"outlet_name": "Uttara"
}
],
"tax_information": [
{
"tax_field_name": "CGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "SGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "IGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "Vat",
"tax_field_percentage": "20"
}
]
} Sale API Example
An example of the Sale API is given below.
{
"api_auth_key": "c10edad9-e361-4ba1-97e3-387f27ba4265",
"customer_name": "Waziha Azhar",
"employee_name": "",
"total_items": "2",
"sub_total": "22",
"paid_amount": "22",
"previous_due": "0",
"due_amount": "0",
"disc": "0",
"disc_actual": "0",
"vat": "0",
"rounding": "0",
"total_payable": "22",
"total_item_discount_amount": "22",
"sub_total_with_discount": "22",
"sub_total_discount_amount": "22",
"total_discount_amount": "22",
"delivery_charge": "22",
"charge_type": "2",
"sub_total_discount_value": "2",
"sub_total_discount_type": "2",
"sale_date": "2",
"date_time": "2",
"grand_total": "2",
"delivery_partner_name": "2",
"delivery_status": "2",
"due_date_time": "2",
"account_note": "2",
"account_type": "2",
"sale_vat_objects": [
{
"tax_field_name": "CGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "SGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "IGST",
"tax_field_percentage": "20"
},
{
"tax_field_name": "Vat",
"tax_field_percentage": "20"
}
],
"random_code": "2",
"note": "",
"order_date_time": "2",
"added_date": "2",
"outlet_name": "Mirpur",
"items": [
{
"item_id": "2",
"quantity": "2",
"menu_price_without_discount": "2",
"menu_price_with_discount": "2",
"menu_unit_price": "2",
"purchase_price": "2",
"menu_vat_percentage": "2",
"menu_taxes": "2",
"menu_discount_value": "2",
"discount_type": "2",
"menu_note": "2",
"discount_amount": "2",
"item_type": "2",
"expiry_imei_serial": "2",
"sales_id": "2",
"is_promo_item": "2",
"promo_parent_id": "2",
"item_seller_id": "2",
"delivery_status": "2",
"loyalty_point_earn": "2"
}
],
"payment_details": [
{
"payment_name": "Cash",
"currency_type": "",
"multi_currency": "",
"multi_currency_rate": "",
"amount": "",
"usage_point": "",
"sale_id": "",
"added_date": ""
}
]
} 