Daftra API
All Endpoints
Daftra Partners
All Endpoints
Daftra Partners
  1. Advance Payment Invoices
  • Welcome
  • Getting Started
  • Authorization
  • Validation Errors
  • API v1 Endpoints
    • Auth
      • Generate Access Token
    • Invoices
      • GET All Invoices
      • GET Single Invoice
      • Edit Invoices
      • Delete Invoices
      • Add New Invoice
    • Estimates
      • GET All Estimates
      • GET Single Estimate
      • Edit Estimates
      • Delete Estimates
      • Add New Estimate
    • Credit Notes
      • GET All Credit Notes
      • GET Single Credit Note
      • Edit Credit Notes
      • Delete Credit Notes
      • Add New Credit Note
    • Refund Receipts
      • GET All Refund Receipts
      • GET Single Refund Receipt
      • Edit Refund Receipts
      • Delete Refund Receipts
      • Add New Refund Receipt
    • Clients
      • GET All Clients
      • GET Single Client
      • Edit Clients
      • Delete Clients
      • Add New Client
    • Suppliers
      • GET All Suppliers
      • GET Single Supplier
      • Edit Suppliers
      • Delete Suppliers
      • Add New Supplier
    • Work Orders
      • GET Single Work Order
      • Edit Work Orders
      • Delete Work Orders
      • GET All Work Orders
      • Add New Work Order
    • Client Appointments
      • GET All Client Appointments
      • GET Single Client Appointment
      • Edit Client Appointments
      • Delete Client Appointments
      • Add New Client Appointment
    • Invoice Appointments
      • GET All Invoice Appointments
      • GET Single Invoice Appointment
      • Edit Invoice Appointments
      • Delete Invoice Appointments
      • Add New Invoice Appointment
    • Estimate Appointments
      • GET All Estimate Appointments
      • GET Single Estimate Appointment
      • Edit Estimate Appointments
      • Delete Estimate Appointments
      • Add New Estimate Appointment
    • Work Order Appointments
      • GET All Work Order Appointments
      • GET Single Work Order Appointment
      • Edit Work Order Appointments
      • Delete Work Order Appointments
      • Add New Work Order Appointment
    • Notes
      • GET All Notes
      • GET Single Note
      • Edit Notes
      • Delete Notes
      • Add New Note
    • Time Tracking
      • GET All Time Tracking
      • GET Single Time Tracking
      • Edit Time Tracking
      • Delete Time Tracking
      • Add New Time Tracking
    • Invoice Payments
      • GET All Invoice Payments
      • GET Single Invoice Payment
      • Edit Invoice Payments
      • Delete Invoice Payments
      • Add New Invoice Payment
    • Client Payments
      • GET All Client Payments
      • GET Single Client Payment
      • Edit Client Payments
      • Delete Client Payments
      • Add New Client Payment
    • Products
      • GET All Products
      • GET Single Product
      • Edit Products
      • Delete Products
      • Add New Product
    • Journals
      • GET All Journals
      • GET Single Journal
      • Edit Journals
      • Delete Journals
      • Add New Journal
    • Journal Accounts
      • GET All Journal Accounts
      • GET Single Journal Account
      • Edit Journal Accounts
      • Delete Journal Accounts
      • Add New Journal Account
    • Journal Cats
      • GET All Journal Cats
      • GET Single Journal Cat
      • Edit Journal Cats
      • Delete Journal Cats
      • Add New Journal Cat
    • Expenses
      • GET All Expenses
      • GET Single Expens
      • Edit Expenses
      • Delete Expenses
      • Add New Expens
    • Incomes
      • GET All Incomes
      • GET Single Income
      • Edit Incomes
      • Delete Incomes
      • Add New Income
    • Taxes
      • GET All Taxes
      • GET Single Taxe
      • Edit Taxes
      • Delete Taxes
      • Add New Taxe
    • Purchase Invoices
      • GET All Purchase Invoices
      • GET Single Purchase Invoice
      • Edit Purchase Invoices
      • Delete Purchase Invoices
      • Add New Purchase Invoice
    • Purchase Refunds
      • GET All Purchase Refunds
      • GET Single Purchase Refund
      • Edit Purchase Refunds
      • Delete Purchase Refunds
      • Add New Purchase Refund
    • Stock Transactions
      • GET All Stock Transactions
      • GET Single Stock Transaction
      • Edit Stock Transactions
      • Delete Stock Transactions
      • Add New Stock Transaction
    • Stores
      • GET All Stores
      • GET Single Store
      • Edit Stores
      • Delete Stores
      • Add New Store
    • Treasuries
      • GET All Treasuries
      • GET Single Treasury
      • Edit Treasuries
      • Delete Treasuries
      • Add New Treasury
    • Product Categories
      • GET All Product Categories
      • GET Single Product Category
    • Staff
      • GET Single Staff
      • GET All Staff
    • Client-attendance-log
      • Add New Client-attendance-log
    • General Listing
      • GET General Listing
    • Requsitions
      • GET All Requisitions
      • GET single Requisition
      • Edit Requisitions
      • Delete Requisitions
      • Add New Requisition
    • Booking
      • Add new Booking
      • Change Booking Status
      • Convert booking to Invoice
      • Get All Bookings
      • Get Single Booking
      • Delete booking
    • Advance Payment Invoices
      • GET All Advance payment
        GET
      • GET Single Advance payment
        GET
      • Add Advance Payment
        POST
  • API v2 Endpoints
    • What's new
    • Filtering
    • Using API v2
      • Endpoints Structure
      • Data Fetching — Filtered
    • Leave Application
      • Get All Leave Applications
      • Get Single Leave Applications
      • Edit Leave Application
      • Add Leave Application
    • Purchase Debit Note
      • Purchase Debit Note
      • Purchase Debit Note
    • Branches
      • Get All Branches
    • Product Bundles
      • Add Product bundle
    • Follow Up Statuses
      • GET All Follow Up Statuses
      • GET Single Follow Up Status
      • Delete Follow Up Status
    • Follow Up Actions
      • GET All Follow Up Actions
      • GET Single Follow Up Action
      • Delete Follow Up Action
    • Attendance Logs
      • Get All Attendance Logs
      • Get Single Attendance Log
      • Add Attendance Log
    • Cost Centers
      • GET All Cost Centers
      • GET Single Cost Center
      • Edit Cost Center
      • Add New Cost Center
    • Payment Gateways
      • Get All Payment Methods
      • Get Single Payment Method
      • Add Payment Method
    • Points & Credits
      • Credit Usage
        • Get All Credit Usage
        • Get Single Credit Usage
        • Add New Credit Usage
        • Add Credit Usage Amount
        • Edit Credit Usage
        • Edit Credit Usage Amount
        • Get All Credit Usage Amount
        • Get Single Credit Usage Amount
      • Credit Types
        • Get All Credit types
        • Get Single Credit type
        • Add New Credit type
        • Edit Credit type
      • Credit Charges
        • Get All Credit Charges
        • Get Single Credit Charge
        • Add New Credit Charge
        • Edit Credit Charge
      • Packages
        • Get All Packages
        • Get Single Package
        • Add New Package
        • Edit Package
      • Packages Credit Types
        • Get All Package Credit Types
        • Get Single Package Credit Type
        • Add Package Credit Type
        • Edit Package Credit Type
    • Site
      • GET Site Info
  1. Advance Payment Invoices

GET Single Advance payment

Production
https://{{subdomain}}.daftra.com/v2/api/entity
Production
https://{{subdomain}}.daftra.com/v2/api/entity
GET
https://{{subdomain}}.daftra.com/v2/api/entity
/invoice/{ID}/1

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://.daftra.com/v2/api/entity/invoice//1' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
Response Response Example
{
    "id": 361,
    "no": "00015",
    "date": "2026-04-07",
    "staff_id": 0,
    "subscription_id": null,
    "store_id": 1,
    "type": 19,
    "po_number": "26",
    "client_id": 46,
    "is_offline": 1,
    "currency_code": "SAR",
    "client_business_name": "Doaa Abdelfattah",
    "client_first_name": null,
    "client_last_name": null,
    "client_email": "",
    "client_address1": "",
    "client_address2": null,
    "client_postal_code": null,
    "client_city": null,
    "client_state": null,
    "client_country_code": "SAR",
    "payment_status": 2,
    "draft": 0,
    "discount": 0,
    "due_after": 0,
    "issue_date": "2026-04-07",
    "summary_subtotal": 100,
    "summary_discount": 0,
    "summary_total": 100,
    "summary_paid": 100,
    "summary_unpaid": 0,
    "terms_id": null,
    "html_notes": "",
    "created": "2026-04-08 13:55:37",
    "modified": "2026-04-08 13:55:37",
    "required_terms_file": 0,
    "last_sent": null,
    "invoice_layout_id": 9,
    "estimate_id": 0,
    "shipping_option_id": null,
    "summary_refund": 0,
    "client_active_secondary_address": 0,
    "client_secondary_name": null,
    "client_secondary_address1": "",
    "client_secondary_address2": null,
    "client_secondary_city": null,
    "client_secondary_state": null,
    "client_secondary_postal_code": null,
    "client_secondary_country_code": null,
    "follow_up_status": null,
    "source_type": null,
    "source_id": null,
    "sales_person_id": -3,
    "extra_details": "{\"client_balance\":100,\"invoice_version\":2}",
    "discount_amount": 0,
    "shipping_amount": null,
    "work_order_id": null,
    "item_columns": "",
    "branch_id": 1,
    "requisition_delivery_status": null,
    "item_discount_amount": 0,
    "pos_shift_id": null,
    "requisitions": [],
    "adjustment_label": null,
    "adjustment_value": null,
    "order_source_id": null,
    "store": {
        "id": 1,
        "name": "Primary Warehouse",
        "active": 1
    },
    "clients": {
        "id": 46,
        "group_price_id": null,
        "is_offline": 1,
        "client_number": "*DSR202645",
        "staff_id": -3,
        "business_name": "Doaa Abdelfattah",
        "first_name": null,
        "last_name": null,
        "email": null,
        "password": null,
        "address1": "",
        "address2": null,
        "city": null,
        "state": null,
        "postal_code": null,
        "phone1": "+966547895120",
        "phone2": null,
        "country_code": null,
        "notes": null,
        "active_secondary_address": 0,
        "secondary_name": null,
        "secondary_address1": "",
        "secondary_address2": null,
        "secondary_city": null,
        "secondary_state": null,
        "secondary_postal_code": null,
        "secondary_country_code": null,
        "language_code": null,
        "default_currency_code": null,
        "last_login": null,
        "suspend": 0,
        "last_ip": null,
        "created": "2026-03-31 12:32:06",
        "modified": "2026-03-31 12:32:06",
        "follow_up_status": null,
        "category": "",
        "bn1": null,
        "bn1_label": null,
        "bn2_label": null,
        "bn2": null,
        "starting_balance": null,
        "photo": null,
        "birth_date": null,
        "gender": null,
        "map_location": null,
        "type": 2,
        "credit_limit": 0,
        "credit_period": 0,
        "branch_id": 1,
        "national_id": null,
        "attachment": null,
        "category_id": null,
        "secondary_follow_up_status": null,
        "timezone": 0,
        "tags": null,
        "assigned_users": null
    },
    "branch": {
        "id": 1,
        "name": "Main Branch",
        "status": 1,
        "created": "2024-12-10 09:33:10",
        "modified": "2024-12-10 09:33:10"
    },
    "payment": [
        {
            "invoice_id": 361,
            "client_id": null,
            "payment_method": "cash",
            "amount": 100,
            "transaction_id": "",
            "date": "2026-04-07 00:00:00",
            "email": null,
            "status": 1,
            "notes": null,
            "response_code": null,
            "response_message": null,
            "created": "2026-04-08 13:55:39",
            "currency_code": "SAR",
            "first_name": null,
            "last_name": null,
            "address1": "",
            "address2": null,
            "city": null,
            "state": null,
            "postal_code": null,
            "country_code": "SAR",
            "phone1": "+966547895120",
            "phone2": null,
            "attachment": null,
            "staff_id": -3,
            "payment_work_order_id": null,
            "treasury_id": 1,
            "pos_shift_id": null,
            "receipt_notes": null,
            "extra_details": null,
            "branch_id": 1,
            "id": 156,
            "added_by": 1
        }
    ],
    "invoice_item": [
        {
            "invoice_id": 361,
            "item": "خدمة",
            "description": "",
            "unit_price": 100,
            "quantity": 1,
            "tax1": 0,
            "tax2": 0,
            "product_id": 112,
            "col_3": "",
            "col_4": "",
            "col_5": null,
            "discount": null,
            "discount_type": null,
            "store_id": 1,
            "unit_factor": null,
            "unit_small_name": null,
            "unit_name": null,
            "display_order": 0,
            "summary_tax1": 0,
            "summary_tax2": 0,
            "col_6": null,
            "col_7": null,
            "col_8": null,
            "created": "2026-04-08 13:55:38",
            "modified": "2026-04-08 13:55:38",
            "unit_factor_id": null,
            "offer_id": null,
            "tracking_data": "{\"lot\": null, \"serial\": null, \"expiry_date\": null}",
            "serials": null,
            "extra_details": null,
            "calculated_discount": 0,
            "subtotal": 100,
            "id": 556,
            "sales_account_id": null,
            "cost_center_id": null,
            "sales_person_id": null
        }
    ],
    "invoice_documents": [],
    "invoice_custom_fields": [],
    "invoice_client": {
        "id": 46,
        "group_price_id": null,
        "is_offline": 1,
        "client_number": "*DSR202645",
        "staff_id": -3,
        "business_name": "Doaa Abdelfattah",
        "first_name": null,
        "last_name": null,
        "email": null,
        "password": null,
        "address1": "",
        "address2": null,
        "city": null,
        "state": null,
        "postal_code": null,
        "phone1": "+966547895120",
        "phone2": null,
        "country_code": null,
        "notes": null,
        "active_secondary_address": 0,
        "secondary_name": null,
        "secondary_address1": "",
        "secondary_address2": null,
        "secondary_city": null,
        "secondary_state": null,
        "secondary_postal_code": null,
        "secondary_country_code": null,
        "language_code": null,
        "default_currency_code": null,
        "last_login": null,
        "suspend": 0,
        "last_ip": null,
        "created": "2026-03-31 12:32:06",
        "modified": "2026-03-31 12:32:06",
        "follow_up_status": null,
        "category": "",
        "bn1": null,
        "bn1_label": null,
        "bn2_label": null,
        "bn2": null,
        "starting_balance": null,
        "photo": null,
        "birth_date": null,
        "gender": null,
        "map_location": null,
        "type": 2,
        "credit_limit": 0,
        "credit_period": 0,
        "branch_id": 1,
        "national_id": null,
        "attachment": null,
        "category_id": null,
        "secondary_follow_up_status": null,
        "timezone": 0,
        "tags": null,
        "assigned_users": null
    },
    "invoice_layout": {
        "id": 9,
        "field1": "Bill To:",
        "field2": "",
        "field3": "",
        "field4": "",
        "field5": "",
        "image": null,
        "staff_id": 0,
        "html": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n\t<head>\r\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n\t\t<title>Invoice Template</title>\r\n\t</head>\r\n\t<style type=\"text/css\">\r\n\t\t*{ margin:0; padding:0;}\r\n\t\tbody{ background:transparent; font:12px Arial, Helvetica, sans-serif }\r\n\t\t.invoice-wrap{ width:660px; margin:0 auto; background:#FFF; color:#000}\r\n\t\t.invoice-inner{ margin:0 30px; padding:20px 0}\r\n\t\t.invoice-address{border-top: 3px double #000000; margin: 35px 0; padding-top: 25px;}\r\n\t\t bold_title {font-weight:bold;}\r\n\t\t big_title{ font-size:18px; font-weight:100}\r\n\t\t.bussines-name{ font-size:18px; font-weight:100}\r\n\t\t.invoice-name{font-size:22px; font-weight:700}\r\n\t\t.listing-table th{background-color: #e5e5e5;border-bottom: 1px solid #555555;border-top: 1px solid #555555;font-weight: bold; text-align:left; padding:6px 4px}\r\n\t\t.listing-table td{border-bottom: 1px solid #555555; text-align:left; padding:5px 6px; vertical-align:top}\r\n\t\t.total-table td{ border-left: 1px solid #555555;}\r\n\t\t.total-row{ background-color: #e5e5e5;border-bottom: 1px solid #555555;border-top: 1px solid #555555;font-weight: bold;}\r\n\t\t.row-items{ margin:5px 0; display:block}\r\n\t\t.notes-block{ margin:50px 0 0 0}\r\n\t\r\ntr, td, th {\r\n    page-break-inside: avoid !important;\r\n} \r\n                                          \r\n.qr-code img {margin-top:10px}\r\n</style>\r\n\t<body>\r\n\t\t<div class=\"invoice-wrap\">\r\n{%html_sticky_header%}\r\n\t\t\t<div class=\"invoice-inner\">\r\n\t\t\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td align=\"left\" valign=\"top\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<img id=\"logo\" class='editable-area' src=\"{%logo%}\" width=\"{%logo-width%}\" height=\"{%logo-height%}\"/> \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td align=\"left\" valign=\"top\" >\r\n\t\t\t\t\t\t\t<div id=\"business_info\" class='editable-area'>\r\n\t\t\t\t\t\t\t\t{%business_info%}\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td valign=\"top\" align=\"right\">\r\n\t\t\t\t\t\t\t\t<p id=\"invoice_title\" class=\"editable-area invoice-name\">{%invoice_title%}</p><div class=\"qr-code\">\r\n{%sa_qr_code_image%}<br/>\r\n</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\r\n\r\n\t\t\t\t<div class=\"invoice-address\">\r\n\t\t\t\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td width=\"50%\" align=\"left\" valign=\"top\">\r\n\t\t\r\n\t\t\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t\t\t<td valign=\"top\" style=\"float: left;\" ><strong id=\"field1\" class='editable-area'>{%field1%}</strong></td>\r\n\t\t\t\t\t\t\t\t\t\t<td style=\"padding-left:20px;\" valign=\"top\"><div id=\"client_info\" class='editable-area'>{%client_info%}</div></td>\r\n\t\t\t\t\t\t\t\t\t</tr>\r\n<tr id=\"shipping_options\" style=\"display:none;\">\r\n\t\t\t\t\t\t\t\t\t\t<td valign=\"top\" style=\"float: left;\" ><br/><strong id=\"label_ship\" class='editable-area'>{%label_ship%}</strong></td>\r\n\t\t\t\t\t\t\t\t\t\t<td style=\"padding-left:20px;\" valign=\"top\"><br/><div id=\"ship_info\" class='editable-area'>{%ship_info%}</div></td>\r\n\t\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t\t</td>\r\n<td width=\"50%\" valign=\"top\" align=\"right\" >\r\n<table id=\"invoice_basics\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\" >\r\n\r\n<tr>\r\n<td  align=\"right\"><strong class=\"editable-area\" id=\"label_invoice_no\">{%label_invoice_no%}</strong></td>\r\n<td  style=\"padding-left:20px;\" align=\"left\" >{%invoice_number%}\r\n</td>\r\n</tr>\r\n<tr {%refund_invoice_number_condition%}>\r\n                                <td  align=\"right\"><strong class=\"editable-area\" id=\"refund_label_invoice_no\">{%refund_invoice_no_title%}</strong></td>\r\n                                <td  style=\"padding-left:20px;\" align=\"left\" >{%refund_invoice_number%}</td>\r\n                            </tr>\r\n<!-- InvoiceDate -->\r\n<tr>\r\n<td  align=\"right\" ><strong class=\"editable-area\" id=\"label_date\">{%label_date%}</strong></td>\r\n<td style=\"padding-left:20px;\" align=\"left\" >{%invoice_date%}\r\n</td>\r\n</tr>\r\n<!-- /InvoiceDate -->\r\n\r\n</table>\r\n<custom_field id=\"custom_fields\" style=\"clear:both\" class='editable-area'   border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\">\r\n{%custom_fields%}\r\n</custom_field>\r\n\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\t \r\n\r\n\t\t\t\t<div id=\"items-list\">\r\n\t\t\t\t\t\t{%items_list%}\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class=\"notes-block\">\r\n\t\t\t\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td>\r\n                                                          <div style=\"font-style:italic\" class=\"editable-area\" id=\"footer\">{%footer%}</div>\r\n                                                        </td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\r\n\t\t\t\t</div>\r\n\t\t\t\t<br />\r\n\r\n\t\t\t</div>\r\n{%html_sticky_footer%}\r\n\t\t</div>\r\n\t</body>\r\n</html>",
        "invoice_title": "Invoice",
        "estimate_title": "Estimate",
        "creditnote_title": "Credit Note",
        "business_info": "<bold_title>{%business_name%}</bold_title>\r\n{%address1%}\r\n{%city%}، {%state%} {%postal_code%}\r\n{%phone1%}\r\n",
        "logo": "{%logo_site%}",
        "client_info": "{%client_organization%}\r\n{%client_first_name%} {%client_last_name%}\r\n{%client_address%}\r\n{%client_city%} {%client_state%} {%client_postcode%}\r\n{%client_business_registration_info1%} {%client_business_registration_info2%}",
        "label_invoice_no": "Invoice No",
        "label_date": "Invoice Date",
        "label_po_no": "Po No",
        "label_total": "Total",
        "label_status": "Status",
        "label_due_days": "Due After",
        "label_due_date": "Due Date",
        "label_deposit": "Next Payment",
        "label_paid_amount": "Paid",
        "label_unpaid_amount": "Balance Due",
        "label_subtotal": "Subtotal",
        "label_description": "Description",
        "label_item": "Item",
        "label_tax1": null,
        "label_tax2": null,
        "label_quantity": "Quantity",
        "label_unit_price": "Unit Price",
        "label_item_total": "Item Total",
        "label_from_date": "From Date",
        "label_to_date": "To Date",
        "label_discount": "Discount",
        "items_list": "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" id=\"listing_table\" class=\"listing-table total-table\" style=\" \">\r\n<tr>\r\n<th width=\"\" bgcolor=\"#e5e5e5\" class=\"editable-area\" id=\"label_item\">{%label_item%}</th>\r\n<!-- Description --><th width=\"250\" bgcolor=\"#e5e5e5\" class=\"editable-area\" id=\"label_description\">{%label_description%}</th><!-- /Description -->\r\n<th width=\"60\" bgcolor=\"#e5e5e5\" class=\"editable-area\" id=\"label_unit_price\">{%label_unit_price%}</th>\r\n<th width=\"30\" bgcolor=\"#e5e5e5\" class=\"editable-area\" id=\"label_quantity\">{%label_quantity%}</th>\r\n<th width=\"80\" bgcolor=\"#e5e5e5\" class=\"editable-area\" id=\"label_subtotal\">{%label_subtotal%}</th>\r\n</tr>\r\n<list_items>\r\n{%items%}\r\n</list_items>\r\n<!-- Subtotal --><tr>\r\n\t\t\t\t\t\t\t\t<td style=\"border:none;\" bgcolor=\"#FFF\" colspan=\"{%cols%}\"></td><td style=\"border-left:none;border-right:none;\"  colspan=\"2\" ><strong class=\"editable-area\" id=\"label_item_total\">{%label_item_total%}</strong></td>\r\n\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" align=\"left\">{%value_item_total%}</td>\r\n\t\t\t\t\t\t\t</tr><!-- /Subtotal -->\r\n{%invoice-taxes%}\r\n<tr class=\"total-row\">\r\n<td style=\"border:none;\" bgcolor=\"#FFF\" colspan=\"{%cols%}\"></td>\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\"  colspan=\"2\" ><h4><strong class=\"editable-area\" id=\"label_total\">{%label_total%}</strong></h4></td>\r\n\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" align=\"left\">{%value_total%}</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<!-- PaidAmount -->\r\n<tr>\r\n<td style=\"border:none;\" bgcolor=\"#FFF\" colspan=\"{%cols%}\"></td>\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\"  colspan=\"2\" ><strong class=\"editable-area\" id=\"label_paid_amount\">{%label_paid_amount%}</strong></td>\r\n\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" align=\"left\">{%value_paid_amount%}</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n<td style=\"border:none;\" bgcolor=\"#FFF\" colspan=\"{%cols%}\"></td>\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\"  colspan=\"2\" ><strong class=\"editable-area\" id=\"label_unpaid_amount\">{%label_unpaid_amount%}</strong></td>\r\n\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" align=\"left\">{%value_unpaid_amount%}</td>\r\n\t\t\t\t\t\t\t</tr>\r\n<!-- /PaidAmount -->\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t<div style=\"clear:both; height:1px;\">&nbsp;</div>",
        "custom_fields": "<tr>\r\n\t<td  align=\"right\"><strong class='custom-field-label'>{%label%}</strong></td>\r\n\t<td style=\"padding-left:20px;\" align=\"left\" class='custom-field-value'>{%value%}</td>\r\n</tr>",
        "template_id": 1,
        "footer": "{%invoice_notes%}",
        "created": "2025-07-22 17:29:53",
        "default": 0,
        "default_estimate": 0,
        "default_creditnote": 0,
        "default_refundreceipt": 0,
        "simple_item_currency": 1,
        "show_balance_due": 1,
        "show_ship": 0,
        "label_ship": "Ship To:",
        "ship_info": "{%client_secondary_name%}\r\n{%client_secondary_address%}\r\n{%client_secondary_city%}, {%client_secondary_state%} {%client_secondary_postcode%}",
        "language_id": 41,
        "label_shipping": "Shipping",
        "item_columns": "",
        "footer_html": null,
        "css_style": null,
        "view_style": "{\"font_size\":\"\",\"font_file\":\"\",\"font_variant\":\"\",\"font_name\":\"\",\"font_family\":\"\",\"paper_size\":\"a4\",\"paper_width\":\"\",\"paper_height\":\"\",\"border_color\":\"\",\"header_text_color\":\"\",\"header_bg_color\":\"\",\"odd_bg_color\":\"\",\"even_bg_color\":\"\",\"extra_css\":\"\",\"margin_top\":\"\",\"margin_bottom\":\"\",\"margin_left\":\"\",\"margin_right\":\"\"}",
        "label_creditnote_no": "Credit Note No",
        "label_creditnote_to": null,
        "label_creditnote_date": "Credit Note Date",
        "label_estimate_no": "Estimate No",
        "label_estimate_date": "Estimate Date",
        "refundreceipt_title": "Refund Receipt",
        "quantity_price": "",
        "label_refundreceipt_no": "Refund Receipt No",
        "label_refundreceipt_date": "Refund Date",
        "label_to": "To",
        "label_refunded": "Refunded",
        "alt_template": 0,
        "layout_type": 0,
        "sticky_footer": "",
        "sticky_header": "",
        "default_purchase_refund": 0,
        "default_purchase_order": 0,
        "branch_id": 1,
        "purchase_order_title": null,
        "default_width": 200,
        "default_height": 0,
        "min_width": 0,
        "min_height": 0,
        "max_width": 458,
        "max_height": 200,
        "name": "Template1 English"
    },
    "invoice_installment_agreements": [],
    "invoice_requisitions": [],
    "journal_account_route": [],
    "invoice_appointments": [],
    "staff": null,
    "work_orders": null,
    "pos_shifts": null,
    "invoice_source_order": null,
    "custom_data": null
}
Previous
GET All Advance payment
Next
Add Advance Payment