DELETE  api/bill/ID/{billID}/attachment/{attachmentID} Back to API Home

Deletes attachment for given billID and attachmentID. And returns a JSON with deleted attachment meta data along with property "pendingDocTypes" which indicates required attachments (if any) for this bill to be submitted.

Resource URL{billID}/attachment/{attachmentID}


required A valid billID value should present in URL as path variable.
required A valid attachmentID value should present in URL as path variable.

Example Request


Example Response

    "fileName": "1111-mod.pdf",
    "pendingDocTypes": "00,02",
    "attachmentID": "2014000064"

Error Response

For invalid requests (Eg:- a request with invalid request format will be refused by server), a string error message will be sent in response and with response code 4xx or 5xx. For data validation failures (Eg:- a valid request format but with insufficient data), a JSON string will be sent in response with key "errors". Multiple error messages are separated with comma. Each error message contains a description of failure.

    "errors": [
        "Attachment id is required to delete"