지급 대행 서비스 셀러 등록 시 FORBIDDEN_REQUEST 문의

.

HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.tosspayments.com/v2/sellers"))
.header("Authorization", "Basic VzdF9za182YkpYbWdvMjhlRHBhNWxMNXl6JMQW5HS1d4Og==")
.header("Content-Type", "text/plain")
.header("TossPayments-api-security-mode", "ENCRYPTION")
.method("POST", HttpRequest.BodyPublishers.ofString(encrypt))
.build();

= {"refSellerId":"my-seller-1","businessType":"INDIVIDUAL_BUSINESS","company":{"name":"","representativeName":"","businessRegistrationNumber":"1234567890","email":"toss@sample.com","phone":"01012345678"},"account":{"bankCode":"020","accountNumber":"12001123866091","holderName":""}}

decrypt = {"version":"2022-11-16","traceId":"6899322234caf7c999d2739e461ae2eb","entityBody":null,"entityType":null,"error":{"code":"FORBIDDEN_REQUEST","message":"Not allowed request"}}

FORBIDDEN_REQUEST .
Was this page helpful?