Package Item Data Option

  1. Request Instruction
    HTTPS Method POST
    URL http://subdomain.supersuite.my/api/tool/option
    Content Type  application/json
    Response Type JSON
    Parameter Description

    token : string, is required.

    type : string, is required.

    item_code: string, is required.

    Request Headers

    {

        "Content-Type":"application/json"

    }

    Request Body

    {

       "token" : "B7ABD5DEEC6588997DE41B0FE0665",

       "type" : "package_item_data",

       "item_code" : "P0001"

    }

  2. Response JSON Format
    Successful Example

    {

        "status" : true,

        "data" : {"net_total":500,"purchase_net_total":198.4,"total_tax":0,"total_purchase_tax":8.4,"data":[{"package_id":"15","stock_item_id":"1","chart_account_arr":{"sales_account_code":"E7A62066E65FF0B5E15D8234DF124937","cash_sale_account_code":"E7A62066E65FF0B5E15D8234DF124937","sales_return_account_code":"E7A62066E65FF0B5E15D8234DF124937","sales_discount_account_code":"E7A62066E65FF0B5E15D8234DF124937","purchase_account_code":"E7A62066E65FF0B5E15D8234DF124937","purchase_return_account_code":"E7A62066E65FF0B5E15D8234DF124937","purchase_discount_account_code":"E7A62066E65FF0B5E15D8234DF124937","balance_stock_account_code":"E7A62066E65FF0B5E15D8234DF124937"},"item_code":"AP001","description":"ACADEMY PROGRAMMES","description_2":"testv 2","uom":"","qty":"1","unit_price":"100.00","subtotal":"100.00","purchase_price":"50.00","purchase_subtotal":"50.00","tax_rate":"0.00","purchase_tax_rate":"0.00","tax_amount":"0.00","purchase_tax_amount":"0.00","tax_type":"SR-O ( 0.00 )","purchase_tax_type":"","supply_config_tax_code_id":"3","purchase_config_tax_code_id":null},{"package_id":"15","stock_item_id":"4","chart_account_arr":{"sales_account_code":"9D2561F56C94894E922653461C81FC0D","cash_sale_account_code":"9D2561F56C94894E922653461C81FC0D","sales_return_account_code":"9D2561F56C94894E922653461C81FC0D","sales_discount_account_code":"9D2561F56C94894E922653461C81FC0D","purchase_account_code":"692A4F8DC6BE6396A8CC893C4BCE31A7","purchase_return_account_code":"692A4F8DC6BE6396A8CC893C4BCE31A7","purchase_discount_account_code":"692A4F8DC6BE6396A8CC893C4BCE31A7","balance_stock_account_code":"692A4F8DC6BE6396A8CC893C4BCE31A7"},"item_code":"MI001","description":"MISC","description_2":"s23213sd","uom":"","qty":"2","unit_price":"200.00","subtotal":"400.00","purchase_price":"70.00","purchase_subtotal":"148.40","tax_rate":"0.00","purchase_tax_rate":"6.00","tax_amount":"0.00","purchase_tax_amount":"8.40","tax_type":"","purchase_tax_type":"TX-O ( 6.00 )","supply_config_tax_code_id":null,"purchase_config_tax_code_id":"1"}]}

    }

    Fail Example

    {

        "status" : false,

        "error" : "Token invalid. / No found data."

    }

  3. Remark Property
    Data

    This data is a json ecode data, please do not edit the data. It will using in saving package item. If you edit it, it will follow u edited to save and the calculation will follow to edit to calculate.