Update Purchase Return
Request
PUT:/{accountBookId}/purchaseReturn
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
docNo | Document number of record. | string | required |
Request Body
object: Purchase Return Input Model
Example Request Body
Example: Add another product detail under details
field for record created in Create Purchase Return.
{
"master": {
"docNo": "PR-000001",
"docNoFormatName": null,
"docDate": "2023-03-06",
"orgDocDate": null,
"taxDate": null,
"creditorCode": "400-0001",
"creditorName": "Apparel Supplier",
"email": "apparelSupplier@gmail.com",
"emailCC": "",
"emailBCC": "",
"address": "Jalan Wawasan 4/12, Pusat Bandar Puchong, Puchong, Selangor",
"attention": "",
"phone1": "03-5192 9527",
"fax1": "",
"ref": "",
"description": "",
"note": "",
"remark1": "",
"remark2": "",
"remark3": "",
"remark4": "",
"creditTerm": "C.O.D.",
"purchaseLocation": "HQ",
"currencyRate": 1,
"inclusiveTax": false,
"isRoundAdj": false,
"reason": "Incorrect size",
"supplierInvoiceNo": "",
"supplierCNNo": "CN-000001"
},
"details": [
{
"productCode": "P-00002",
"productVariant": null,
"accNo": "710-0000",
"description": "Pants",
"furtherDescription": "",
"qty": 1,
"unit": "pairs",
"unitPrice": 450,
"discount": "",
"taxCode": "P-5",
"taxAdjustment": 0,
"localTaxAdjustment": 0,
"tariffCode": "40159000",
"taxPermitNo": "",
"goodsReturn": true,
"ourPONo": "",
"ourPODate": null,
"deptNo": "D-0004"
},
{
"productCode": "P-00003",
"productVariant": null,
"accNo": "710-0000",
"description": "Coat",
"furtherDescription": "",
"qty": 1,
"unit": "coats",
"unitPrice": 100,
"discount": "",
"taxCode": "P-5",
"taxAdjustment": 0,
"localTaxAdjustment": 0,
"tariffCode": "40159000",
"taxPermitNo": "",
"goodsReturn": true,
"ourPONo": "",
"ourPODate": null,
"deptNo": null
}
],
"autoFillOption": {
"accNo": false,
"taxCode": false,
"tariffCode": false
}
}
Example Request URL:
Parameters:accountBookId
= 1 docNo
= PR-000001 URL:
PUT: https://accounting-api.autocountcloud.com/1/purchasereturn?docNo=PR-000001
Response
Success Response
Code: 204
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}