Post blocklist
Add an entry to the blocklist.
Request
Authorization
Header: api-key (string, required)
Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.
Content-Type
application/json
Body (application/json)
type (string, enum, required) Available option:
card_bin
data (string, required)
curl --request POST \
--url https://sandbox.hyperswitch.io/blocklist \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"type": "card_bin",
"data": "<string>"
}
'Response
Status: 200 Content-Type: application/json Description: Fingerprint Blocked
Response fields
fingerprint_id(string, required)data_kind(enum, required) Available options:payment_methodcard_binextended_card_bin
created_at(string, required)
Related endpoints
GET /blocklist — Get blocklist: https://api-reference.hyperswitch.io/v1/blocklist/get-blocklist
DELETE /blocklist — Delete blocklist: https://api-reference.hyperswitch.io/v1/blocklist/delete-blocklist