Delete by the BIN

This endpoint removes a mesarument from the queue based on BIN

URL : /queue/remove/bin/{bin}

Method : DELETE

X-HMAC required : YES

Request URL Parameters : {bin}

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/bin/521739b1-5f51-4245-b80b-e45465925347 HTTP/1.1
Host: localhost:3000
X-HMAC: 5d41402abc4b2a76b9719d911017c592

Example Response

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