YoTaro Watanabe
YoTaro Watanabeโ€ข2w ago

๐ŸšจUrgent Support

We are experiencing "responseBody":{"code":"FORBIDDEN_CONSECUTIVE_REQUEST","message":"๋ฐ˜๋ณต์ ์ธ ์š”์ฒญ์€ ํ—ˆ์šฉ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์ž ์‹œ ํ›„ ๋‹ค์‹œ ์‹œ๋„ํ•ด์ฃผ์„ธ์š”."},"responseCode":403 The two requests are not consecutive as we sent after a few hours. Does anyone know why this is happening? We need to send this within an hour by the end of today KR time.
16 Replies
ํ† ์ŠคํŽ˜์ด๋จผ์ธ  BOT
โณ ์ž ์‹œ๋งŒ ๊ธฐ๋‹ค๋ ค์ฃผ์„ธ์š”! ๊ณง ๋‹ต๋ณ€๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค
์˜ค๋ฅ˜ ๋ฌธ์˜์ผ ๊ฒฝ์šฐ ์•„๋ž˜ ์ •๋ณด๋ฅผ ๋ฏธ๋ฆฌ ์ „๋‹ฌํ•ด์ฃผ์‹œ๋ฉด, ๋น ๋ฅธ ๋‹ต๋ณ€์— ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค.
- ์ฃผ๋ฌธ๋ฒˆํ˜ธ(orderId) : - ๋ฌธ์˜ ๋‚ด์šฉ :
(img๋ฅผ ํ•จ๊ป˜ ์ฒจ๋ถ€ํ•ด์ฃผ์‹œ๋ฉด ๋„์›€์ด๋ฉ๋‹ˆ๋‹ค)
* ๊ณ„์•ฝ๊ด€๋ จ ๋‚ด์šฉ์€ 1544-7772๋กœ ๋ฌธ์˜์ฃผ์„ธ์š”. * ์ฃผ๋ง/๊ณตํœด์ผ์—๋Š” ๋‹ต๋ณ€์ด ๋Šฆ์„ ์ˆ˜ ์žˆ์–ด์š”.
YoTaro Watanabe
YoTaro WatanabeOPโ€ข2w ago
TP01020241212110849jgzb5
๊น€์ฐจ์žฅ
You are sending two consecutive requests when sending a cancellation. It may take some time to process, so try sending them one by one Actually, if you check the cancellation request that came to us, it looks like this Dec 12, 2024 @ 16:25:33.279859000 {"cancelReason":"Refund for payment TP01020241212110849jgzb5","cancelAmount":19624,"currency":"KRW","taxFreeAmount":19624} Dec 12, 2024 @ 16:25:33.281296049 {"cancelReason":"Refund for payment TP01020241212110849jgzb5","cancelAmount":19624,"currency":"KRW","taxFreeAmount":19624} If sending them one by one doesn't work, adjust the partial cancellation amount. For example, to KRW 1,000. Then our team will check again.
YoTaro Watanabe
YoTaro WatanabeOPโ€ข2w ago
Thank you! We have also sent on a few hours later and seems it has 403 error. Would you mind having a look?
๊น€์ฐจ์žฅ
The next request was also requested in two. Dec 12, 2024 @ 21:36:52.085570000 {"cancelReason":"Refund for payment TP01020241212110849jgzb5","cancelAmount":19624,"currency":"KRW","taxFreeAmount":19624} Dec 12, 2024 @ 21:36:52.087078967 {"cancelReason":"Refund for payment TP01020241212110849jgzb5","cancelAmount":19624,"currency":"KRW","taxFreeAmount":19624} Send just one and let me know again Try this {"cancelReason":"Refund for payment TP01020241212110849jgzb5","cancelAmount":1000,"currency":"KRW","taxFreeAmount":1000}
YoTaro Watanabe
YoTaro WatanabeOPโ€ข2w ago
Thank you, let me try one more time.
๊น€์ฐจ์žฅ
Sorry, I have to get off work now I'll continue tomorrow, so leave the test log or results here.
YoTaro Watanabe
YoTaro WatanabeOPโ€ข2w ago
Thank you so much! Will do.
๊น€์ฐจ์žฅ
Thank you!
Ayaan
Ayaanโ€ข2w ago
Also, when you request the API, send Accept-Language header as en-US it makes the response body is translated to english so you can understand the exception more easily
ํ† ์ŠคํŽ˜์ด๋จผ์ธ  BOT
โค๏ธ ๊ธฐ์ˆ ๋ฌธ์˜ ๊ฒฝํ—˜์ด ์–ด๋– ์…จ๋‚˜์š”?!
๊ฐ„๋‹จํžˆ ์ฝ”๋ฉ˜ํŠธ ๋‚จ๊ฒจ์ฃผ์„ธ์š”! ์ œํ’ˆ ๋ฐœ์ „์— ํฐ ํž˜์ด ๋ฉ๋‹ˆ๋‹ค.
YoTaro Watanabe
YoTaro WatanabeOPโ€ข2w ago
Thanks all. We retried again last night but still got 403 error. I will check if we are sending it twice or not. However, this wonders me. Can we not just process the first request? I understand second request may have 403 but the first one should be process.
Ayaan
Ayaanโ€ข2w ago
The API request is a heavy transaction because it calls the card company API using VAN, processes the payment(pay it or cancel it), and changes the DB.... So if 2 consecutive requests come in, both transactions might be rejected to avoid potential problems.
YoTaro Watanabe
YoTaro WatanabeOPโ€ข2w ago
Understood, thanks
Ayaan
Ayaanโ€ข2w ago
Thanks. Just think about it - If the confirm API or cancel API is called twice, without rejecting both, and database is not locked yet(still requesting the card companys' API). It will pay twice or cancel twice - causes the huge problem as it directly links the cash flow.
YoTaro Watanabe
YoTaro WatanabeOPโ€ข2w ago
I see, understood. I am normally not in the payment world so good to know.