Unlock card
curl --request POST \
--url https://api.qash.ai/api/v1/cards/unlock \
--header 'Authorization: Bearer <token>' \
--header 'x-idempotency-key: <x-idempotency-key>'const options = {
method: 'POST',
headers: {'x-idempotency-key': '<x-idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.qash.ai/api/v1/cards/unlock', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.qash.ai/api/v1/cards/unlock"
headers = {
"x-idempotency-key": "<x-idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "active"
}Cards
Unlock card
Reactivate a previously locked primary card.
POST
/
api
/
v1
/
cards
/
unlock
Unlock card
curl --request POST \
--url https://api.qash.ai/api/v1/cards/unlock \
--header 'Authorization: Bearer <token>' \
--header 'x-idempotency-key: <x-idempotency-key>'const options = {
method: 'POST',
headers: {'x-idempotency-key': '<x-idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.qash.ai/api/v1/cards/unlock', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.qash.ai/api/v1/cards/unlock"
headers = {
"x-idempotency-key": "<x-idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "active"
}Requires
Authorization: Bearer <user-access-token> — the token from Verify login code.Pass
x-idempotency-key with a unique UUID per request. Without it, duplicate-request detection is skipped and a retried call may submit the unlock twice.canceled cannot be reactivated.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Unique idempotency key for the operation. Use a UUID to prevent duplicate processing.