가상계좌 취소 오류: { code: 'INVALID_BANK', message: '유효하지 않은 은행입니다.' } 질문드립니다.

.

toss_pay_cancel error [Error: Request failed with status code 400
0|tdb-api | at createError (/home/ubuntu/workspace/TDB-BACKEND/node_modules/axios/lib/core/createError.js:16:15)
0|tdb-api | at settle (/home/ubuntu/workspace/TDB-BACKEND/node_modules/axios/lib/core/settle.js:17:12)
0|tdb-api | at IncomingMessage.handleStreamEnd (/home/ubuntu/workspace/TDB-BACKEND/node_modules/axios/lib/adapters/http.js:269:11)
0|tdb-api | at IncomingMessage.emit (node:events:531:35)
0|tdb-api | at IncomingMessage.emit (node:domain:488:12)
0|tdb-api | at endReadableNT (node:internal/streams/readable:1696:12)
0|tdb-api | at processTicksAndRejections (node:internal/process/task_queues:82:21)
0|tdb-api | ] {
0|tdb-api | config: {
0|tdb-api | url: 'https://api.tosspayments.com/v1/payments/*******/cancel',
0|tdb-api | method: 'post',
0|tdb-api | data: '{"cancelReason":"","cancelAmount":1000,"refundReceiveAccount":{"bankCode":"23","accountNumber":"52720015182","holderName":""}}',
0|tdb-api | headers: {
0|tdb-api | Accept: 'application/json, text/plain, /',
0|tdb-api | 'Content-Type': 'application/json',
0|tdb-api | Authorization: 'Basic *=',
0|tdb-api | 'User-Agent': 'axios/0.21.4',
0|tdb-api | 'Content-Length': 135
0|tdb-api | },


츠 api
{
"currency": null,
"cancelAmount": 1000,
"cancelReason": "",
"taxFreeAmount": null,
"taxExemptionAmount": 0,
"cancelRequestId": null,
"taxAmount": null,
"refundableAmount": null,
"refundReceiveAccount": {
"bank": "",
"accountNumber": "527**5182",
"holderName": ""
},
"isDividedPayment": false,
"refundMid": null
}
"bank": "" . ?
Was this page helpful?