Delete by Customer

This endpoint removes a mesarument from the queue based on customerId

URL : /queue/remove/customer/{customerId}

Method : DELETE

X-HMAC required : YES

Request URL Parameters : {customerId}

see: Add Item/s to the Queue

Response

The response will be a JSON object containing the message and count of affected records.

{
  message: string,
  data: {
    count: number
  }
}

Status Codes

The endpoint will return the following status codes based on the operation outcome:

  • 200OK: The request was successful, and the HashId was removed .
  • 400Bad Request: The request was invalid. This usually occurs if the request input is invalid.
  • 500Internal Server Error: An error occurred on the server while processing the request.

Example Request

DELETE /queue/remove/customer/1 HTTP/1.1
Host: localhost:3000
X-HMAC: 5d41402abc4b2a76b9719d911017c592

Example Response

{
  "message": "Data removed from queue",
  "data": {
    "count": 2
  }
}