Cancel Bills

Cancel Bills

Cancel the bills that are Unsuccessful (1) and Awaiting pickup (2).

Cấu hình API

HTTP Request

POST v1/bill/destroy

No.ParameterTypeRequireDescription
1bill_codeString ArrayAlt textList of Bills

JSON body respone

NameTypeDescription
successbooleanReturn true if cancel bill success, all other false means error. See message for further description.
messagestringReturn Message of API Respond.
dataobjectData of API response.

Mẫu Request

"Json body request
{
   "bill_code": ["CP12777690"]
}

Mẫu Response

 
Response
{
success: true,
messsage: "",
data: [
{
      "doCode": "E9999999",
      "message": "Bill E9999999 has canceled successful"
    },
    {
      "doCode": "E8888888",
      "message": "Bill E8888888 has canceled successful"
    }]
}