Delete Data from Locker
Deletes card data stored in the locker.
POST /data/delete
cURL example
curl --request POST \
--url https://api.example.com/data/delete \
--header 'Content-Type: application/json' \
--data '
{
"merchant_id": "m0100",
"merchant_customer_id": "HsCustomer1",
"card_reference": "3ffdf1e5-7f38-4f26-936f-c66a6f4296fa"
}
'Request
Headers
x-tenant-id: string
Body
Content-Type: application/json
The request body might be JWE + JWS encrypted when using middleware.
One of the following request shapes is expected:
DeleteDataReq
JWEReq
Example body:
Fields:
merchant_id (string) Example:
"m0100"merchant_customer_id (string) Example:
"HsCustomer1"card_reference (string) Example:
"3ffdf1e5-7f38-4f26-936f-c66a6f4296fa"
Response
200 — application/json
Response shape(s):
DeleteDataRes
JWERes
Example:
Was this page helpful?
Yes
No
Suggest edits: https://github.com/juspay/hyperswitch/edit/main/api-reference/locker-api-reference/cards/delete-data-from-locker.mdx Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/locker-api-reference/cards/delete-data-from-locker
Related:
Add Data in Locker: https://api-reference.hyperswitch.io/locker-api-reference/cards/add-data-in-locker
Retrieve Data from Locker: https://api-reference.hyperswitch.io/locker-api-reference/cards/retrieve-data-from-locker