Skip to main content

Delete API

The following document highlights the details of the Delete API.

API Description

Objective

The Delete API permanently deletes a specified transaction and all associated API call records from the system, including database entries and linked files.

InputOutput
The unique identifier of the transaction to be deletedThe deletion confirmation, a status message, and the list of deleted API call request IDs. The complete list of output fields is available in the Success Response Details section.
Irreversible Operation
Deleted data is permanently removed from all systems. This cannot be undone.
Data Retention Policy
HyperVerge offers a configurable retention policy (for example, a seven day window) after which transaction data is automatically purged. The Delete API lets you delete data on demand, before the configured retention period elapses or independent of any retention policy.

API URL

https://review-api.idv.hyperverge.co/api/v2/transaction/id

API Endpoint

v2/transaction/id

Overview

The Delete API is RESTful and uses standard HTTP verbs and status codes. Responses are in JSON format; send all request data as a JSON body in a DELETE request.

Method - DELETE

Authentication

You need a valid appid and appkey from HyperVerge to authenticate requests to the Delete API.

IP Whitelisting Required
Your request must originate from a whitelisted IP address. Non-whitelisted IPs return a 403 Forbidden error. Contact HyperVerge to whitelist your IP before using this endpoint.

Headers

ParameterMandatory / OptionalDescriptionInput Format
content-typeMandatoryThis parameter defines the media type for the request payloadapplication/json
appidMandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.Unique value
appkeyMandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.Unique value

Inputs

The following table provides the details of the parameter required for the API:

The request body takes a single parameter:

ParameterMandatory / OptionalTypeDescriptionInput FormatDefault Value
transactionIdMandatorystringThe unique identifier of the transaction to be permanently deletedNot ApplicableNot Applicable

Request

The following sample code shows the standard curl request for the API:

curl --location --request DELETE 'https://review-api.idv.hyperverge.co/api/v2/transaction/id' \
--header 'appid: <Enter_the_App_ID>' \
--header 'appkey: <Enter_the_App_Key>' \
--header 'Content-Type: application/json' \
--data '{
"transactionId": "<Enter_the_Transaction_ID>"
}'

Success Response

The following is a sample response for a successful deletion:

{
"status": "success",
"statusCode": "200",
"message": "Data successfully deleted for <App_ID>'s transaction: <Transaction_ID>",
"deletedAudits": [
"<Request_ID_1_Transaction_ID_X>",
"<Request_ID_2_Transaction_ID_X>",
"<Request_ID_3_Transaction_ID_X>"
]
}

Success Response Details

ParameterTypeDescription
statusstringThe status of the request
statusCodestringThe HTTP status code returned by the Delete API
messagestringA confirmation message describing the deleted transaction and the associated application
deletedAuditsarrayAPI call request IDs associated with the deleted transaction

Error Responses

The following are sample error responses and their respective error codes:

{
"status": "failure",
"statusCode": "401",
"error": "Missing/Invalid credentials"
}

Error Response Details

Status CodeError MessageError DescriptionError Resolution
401Missing/Invalid credentialsThe request is missing the mandatory appid and appkey combination or has invalid valuesVerify and provide valid credentials from the dashboard's credentials tab
403Forbidden - IP not whitelistedThe request originates from an IP address that has not been whitelisted with HyperVergeContact the HyperVerge team to whitelist the IP address associated with your credentials before using this endpoint
422Bad Request - Invalid inputThe request body is missing the mandatory transactionId field or contains an invalid valueEnsure the transactionId field is present and contains a valid transaction identifier in the request body
500Internal Server ErrorAn unexpected error occurred on the serverCheck the request headers or contact the HyperVerge team for resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: