빌링키 받는 404 NOT_FOUND 가 발생 합니다.

override suspend fun tossByBilling(tossApiClientBillingRequest: TossApiClientBillingRequest): TossClientBillingResponse {
val encodedKey = PfTossUtil.encodeSecretKey(tossSecretKey)

val billingKey = tossApiClientBillingRequest.billingKey

return tossApiWebClient
.post()
.uri("/v1/billing/$billingKey")
.header("Authorization", "Basic $encodedKey")
.contentType(MediaType.APPLICATION_JSON)
.bodyValue(tossApiClientBillingRequest)
.retrieve()
.awaitBody<TossClientBillingResponse>()
}

2025-09-17 14:46:52 - [37be22a5] HTTP POST https://api.tosspayments.com/v1/billing/authorizations/issue
2025-09-17 14:46:52 - [37be22a5] Encoding [TossApiClientBillingAuthRequest(authKey=bln_JG2xZO2R9Yw, customerKey=0199561f-a448-7680-b5ee-868b76b (truncated)...]
2025-09-17 14:46:52 - [37be22a5] [c69b53bb-1] Response 404 NOT_FOUND
데 404.

Was this page helpful?