Get Purchase Invoice
Request
GET:/{accountBookId}/purchaseInvoice
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
docNo | Document number of record. | string | required |
Example Request URL:
Parameters:accountBookId
= 1 docNo
= PI-000001 URL:
GET: https://accounting-api.autocountcloud.com/1/purchaseinvoice?docNo=PI-000001
Response
Success Response
Status Code: 200
Response Body
object: Purchase Invoice View Model
Example Success Response Body
{
"master": {
"docKey": 84,
"docNo": "PI-000001",
"docDate": "2023-03-06T00:00:00",
"orgDocDate": null,
"taxDate": null,
"dueDate": "2023-03-06T00:00:00",
"creditorCode": "400-0001",
"creditorName": "Apparel Supplier",
"currencyCode": "MYR",
"currencyRate": 1.000000000000,
"email": "apparelSupplier@gmail.com",
"emailCC": null,
"emailBCC": null,
"address": "Jalan Wawasan 4/12, Pusat Bandar Puchong, Puchong, Selangor",
"attention": "",
"phone1": "03-5192 9527",
"fax1": "",
"ref": null,
"description": null,
"note": null,
"remark1": null,
"remark2": null,
"remark3": null,
"remark4": null,
"creditTerm": "C.O.D.",
"purchaseLocation": "HQ",
"inclusiveTax": false,
"isRoundAdj": false,
"cancelled": false,
"totalExTax": 450.00,
"tax": 22.50,
"localTax": 22.50,
"exTax": 22.50,
"localExTax": 22.50,
"taxableAmt": 450.00,
"localTaxableAmt": 450.00,
"netTotal": 472.50,
"localNetTotal": 472.50,
"roundAdj": 0.00,
"total": 450.00,
"finalTotal": 472.50,
"createdTimeStamp": "2023-03-06T14:52:34.0507973",
"createdUserID": "ADMIN",
"lastModified": "2023-03-08T17:32:50.9458053",
"lastModifiedUserID": "ADMIN",
"supplierInvoiceNo": "I-000001",
"status": "Overdue 109 days",
"approverID": "ADMIN",
"approvedTimeStamp": "2023-03-06T16:42:26.9875477",
"rejectReason": null
},
"details": [
{
"dtlKey": 157,
"docKey": 84,
"seq": 0,
"productId": 11,
"productCode": "P-00002",
"productVariantId": null,
"productVariant1Option": null,
"productVariant2Option": null,
"accNo": "700-1010",
"description": "Pants",
"furtherDescription": "",
"qty": 1.00000000,
"unit": "pairs",
"unitPrice": 450.00000000,
"discount": null,
"discountAmt": 0.00,
"taxCode": "P-5",
"taxRate": 5.000000,
"taxAdjustment": 0.00,
"localTaxAdjustment": 0.00,
"tariffCode": "40159000",
"taxPermitNo": null,
"subTotalExTax": 450.00,
"localSubTotalExTax": 450.00,
"tax": 22.50,
"localTax": 22.50,
"subTotal": 450.00,
"localSubTotal": 450.00,
"cnAmt": 0.00,
"ourPONo": null,
"ourPODate": null,
"deptNo": "D-0004"
}
]
}
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}