Skip to content

ตั้งหนี้อื่นๆ(ลูกหนี้)

เพิ่มเอกสารตั้งหนี้อื่นๆ(ลูกหนี้)

เพิ่มเอกสารตั้งหนี้อื่นๆ(ลูกหนี้)

EndPoint

POST /SMLJavaRESTService/v3/api/debtsother

Request Header

Required SMLRequestHeader

Data Payload

JSON Body : Transaction Attribute

Response

Response Success

HTTP Status : 200

Response JSON :

json
{
"status" :  "true",
"message" : "create success"
}

Response Error

HTTP Status : 400

Response Success JSON Message

json
{
    "status" :  "error",
    "message" : "Message Error"
}

รายการตั้งหนี้อื่นๆ(ลูกหนี้) (Payload)

json
{
  "doc_no":"AOB21090002",
  "doc_format_code":"AOB",
  "cust_code":"AR00001",
  "sale_type":"1",
  "doc_date":"2021-10-02",
  "vat_type":1,
  "doc_time":"15:34",
  "vat_rate":"7",
  "credit_date":"2021-10-02",
  "credit_day":0,
  "tax_doc_date":"2021-10-02",
  "tax_doc_no":"AOB21090002",
  "total_value":"10.00",
  "total_discount":"0",
  "total_after_vat":"10.00",
  "total_amount":"10.00",
  "total_except_vat":"0.00",
  "total_before_vat":"9.35",
  "total_vat_value":"0.65",
  "remark":"test",
  "ref_doc_type":"test",
  "items":[
    {
      "item_code":"4-0001",
      "sum_amount":10.00,
      "line_number":0,
      "remark":"test"
    }
  ]
}