!-- External CSS Link -->

Submit Invoice API Documentation

Overview

The Submit Invoice API allows developers to send invoice data for processing.

Endpoint

POST https://tryibs.com/ibs/api/submit-invoice

POST https://tryibs.com/ibs/api/transaction

Headers

Payload

{
    "Invtype": "FV",
    "InvoiceRef": "12345",
    "InvoiceDate": "YYYY-MM-DD",
    "CurrencyName": "USD",
    "Rate": "1.0",
    "VatRate": "11",
    "invoicetotal": "200.00",
    "invoicevat": "22.00",
    "invoicegrandtotal": "222.00",
    "OperatorDetails": {
        "OperatorCode": "1",
        "OperatorUsername": "admin",
        "NIF": "301609"
    },
    "CustomerInfo": {
        "CustomerName": "John Doe",
        "CustomerNIF": "26850124-601"
    },
    "LineItems": [
        {
            "ProductBarcode": "123456789",
            "ProductLabel": "Item 1",
            "UnitPrice": 100,
            "Quantity": 2,
            "TotalPrice": 200
        }
    ]
}

Extended Payload


    {
        "Invtype":"FV",
        "InvoiceRef":"595",
        "InvoiceDate":"2025-02-06T00:00:00",
        "OriginalInvoice":"",
        "InvoiceSource":"A",
        "CurrencyName":"2",
        "Rate":"90000",
        "VatRate":"90000",
        "XRate":"90000",
        "invoicetotal":"6.30",
        "invoicevat":"1.20",
        "invoicevatlcl":"108000",
        "invoicegrandtotal":"7.50",
        "invoicegrandtotalwords":"",
        "OperatorDetails":
            {
            "OperatorCode":"1",
            "OperatorUsername":"pygmadata",
            "NIF":"301609",
            "CompanyName":"INTELLIGENTMEDIA",
            "CompanyAddress":"Beirut - Lebanon",
            "CompanyTel":"01-787728 / 03009661"
            },
        "CustomerInfo":
            {
            "CustomerName":"TONI B",
            "CustomerNIF":"26850124-601",
            "CustomerAddress":"telet al khayat",
            "CustomerPhone":"01787728",
            "CustomerEmail":"[email protected]"
            },
        "LineItems":[
            {
                "ProductBarcode":"525868640",
                "ProductLabel":"ppepsi cola",
                "TaxCode":null,
                "UnitPrice":15.0,
                "UnitPriceht":12.6050415039062,
                "Quantity":0.5,
                "TotalPrice":7.5,
                "TotalPriceht":6.30252075195312,
                "OriginalUnitPrice":15.0,
                "DiscountPercent":0.0,
                "expiry":"01/01/1900"
            }
                ]
        }
LineItems Part in addition to these any extra data can be sent within these lines