/
Sample json data of GRN Index Model
Sample json data of GRN Index Model
INDEX
Index contains basic information of GRN. To create a GRN it must have only one GRN Index data.
Structure of GRN Index
name | Data Type | Example | Description |
userName | String | chin | For authentication |
password | String | 123456 | For authentication |
token | String | 3487384 | For authentication |
po_id | Integer | 1001 | Purchase Order PKID |
branch_code | String | JETMY | Branch Code of GRN |
supplier_id | Integer | 1010 | Supplier ID of GRN |
supplier_code | String | XYZ | Supplier Code of GRN |
reference_no | String | anything | Any reference related to this GRN |
remarks | String | anything | Any Remarks |
grn_date | String | Aug 6, 2012 9:58:28 PM | Transaction date of this GRN |
itemList | String | List of GRN Item objects. Structure of this GRN Item object has described below
|
ITEM
Item contains detail of GRN items. To create a GRN it must have at lease 1 item data.
Structure of GRN Item
name | Data Type | Example | Description |
gl_dimension_pkids | String | 1001,1002 | GL Dimenstion PKID |
gl_dimension_code | String | XYZ,ABC | GL Dimension Code |
gl_code_reference | String | anything | GL code Reference of this GRN Item |
gl_code | String | XYZ | GL code of this GRN Item |
item_code | String | X1000 | Item code of this GRN Item |
item_type | String | INV | Item type of this GRN Item |
qty | BigDecimal | 10 | Quantity only for this Item |
unit_price | BigDecimal | 20 | Unit price of this item |
amount | BigDecimal | 200 | Total amount for this item after multiply qty and unit_price |
remarks | String | anything | Any remarks |
tax_code | String | A100 | Tax code if available |
po_item_pkid | String | 1001 | pkid |
{ "userName": "chin", "password": "123456", "token": "anything", "po_id": 1001, "branch_code": "JETMY", "supplier_id": "INV", "supplier_code": 1001, "reference_no": "20", "remarks": "200", "grn_date": "Aug 6, 2012 9:58:28 PM", "itemList": [ { "gl_dimension_pkids": "1001,1002", "gl_dimension_code": "XYZ,ABC", "gl_code_reference": "anything", "gl_code": "XYZ", "item_code": "X1000", "item_type": "INV", "qty": 10, "unit_price": 20, "amount": 200, "remarks": "anything", "tax_code": "A100", "po_item_pkid": "1001" }, { "gl_dimension_pkids": "1001,1002", "gl_dimension_code": "XYZ,ABC", "gl_code_reference": "anything", "gl_code": "XYZ", "item_code": "X1001", "item_type": "INV", "qty": 10, "unit_price": 30, "amount": 300, "remarks": "anything", "tax_code": "A100", "po_item_pkid": "1002" } ] }
Private & Confidential