Detail of Purchase Order Structure
Purchase Order(PO) Object contains 2 different information:
INDEX
Index contains basic information of PO. To update a PO it must have only one PO Index data.
Structure of PO 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 PO |
supplier_id | Integer | 1010 | Supplier ID of PO |
supplier_code | String | XYZ | Supplier Code of PO |
reference_no | String | anything | Any reference related to this PO |
remarks | String | anything | Any Remarks |
po_date | String | Aug 6, 2012 9:58:28 PM | Transaction date of this PO |
order_type | String | Aug 6, 2012 9:58:28 PM | PO type |
itemList | String | List of PO Item objects. Structure of this PO Item object has described below |
ITEM
Item contains detail of PO items. To create a PO it must have at lease one item data.
Structure of PO 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 PO Item |
gl_code | String | XYZ | GL code of this PO Item |
item_code | String | X1000 | Item code of this PO Item |
item_type | String | INV | Item type of this PO Item |
qty | BigDecimal | 10 | Quantity only for this Item |
unit_price | BigDecimal | 20 | Unit price of this item |
{
"userName": "chin",
"password": "123456",
"token": "anything",
"po_id": 1001,
"branch_code": "JETMY",
"supplier_id": "INV",
"supplier_code": 1001,
"reference_no": "20",
"remarks": "200",
"po_date": "Aug 6, 2012 9:58:28 PM",
"order_type": "PENDING",
"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
},
{
"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
}
]
}