curl --location --request DELETE 'https://kf.pikabao.cc/agent/v1/cards/destroy?appid=user123&cardId=111222333×tamp=1640995200000&sign=ABC123...'
const params = {
appid: "user123",
cardId: "111222333",
timestamp: Date.now().toString(),
};
const sign = generateSign(params, secretKey);
const response = await fetch(
`https://kf.pikabao.cc/agent/v1/cards/destroy?${new URLSearchParams({...params, sign})}`,
{ method: "DELETE" }
);
const result = await response.json();
{
"code": 0,
"msg": "成功"
}
卡片管理
信用卡销卡
注销虚拟信用卡,卡内余额将退回账户
DELETE
/
agent
/
v1
/
cards
/
destroy
curl --location --request DELETE 'https://kf.pikabao.cc/agent/v1/cards/destroy?appid=user123&cardId=111222333×tamp=1640995200000&sign=ABC123...'
const params = {
appid: "user123",
cardId: "111222333",
timestamp: Date.now().toString(),
};
const sign = generateSign(params, secretKey);
const response = await fetch(
`https://kf.pikabao.cc/agent/v1/cards/destroy?${new URLSearchParams({...params, sign})}`,
{ method: "DELETE" }
);
const result = await response.json();
{
"code": 0,
"msg": "成功"
}
请求参数
string
required
用户标识
string
信用卡 ID,与 cardNum 二选一
string
信用卡卡号,与 cardId 二选一
string
required
当前时间戳(毫秒)
string
required
签名值
curl --location --request DELETE 'https://kf.pikabao.cc/agent/v1/cards/destroy?appid=user123&cardId=111222333×tamp=1640995200000&sign=ABC123...'
const params = {
appid: "user123",
cardId: "111222333",
timestamp: Date.now().toString(),
};
const sign = generateSign(params, secretKey);
const response = await fetch(
`https://kf.pikabao.cc/agent/v1/cards/destroy?${new URLSearchParams({...params, sign})}`,
{ method: "DELETE" }
);
const result = await response.json();
{
"code": 0,
"msg": "成功"
}
销卡操作不可逆,请谨慎操作。销卡后,卡内余额将自动退回账户余额
只有激活状态的卡片才能销卡,冻结状态的卡需先解冻
⌘I
