본문으로 건너뛰기
For the complete documentation index, see llms.txt. This page is also available as Markdown.

인증

OAuth2 Access Token 발급

post

Client Credentials grant type으로 access token을 발급받습니다.

Body
grant_typestringRequired

OAuth2 grant type, client_credentials 고정

Example: client_credentials
client_idstringRequired

어드민을 통해 발급받은 oauth_client_id, 어드민의 accessKey

client_secretstringRequired

어드민을 통해 발급받은 secret key

scopestringRequired

요청 scope, toss-shopping-fep:write 고정

Example: toss-shopping-fep:write
Responses
200

토큰 발급 성공

application/json
access_tokenstringRequired

생성된 accessToken

scopestringRequired

요청된 scope (toss-shopping-fep:write 고정)

Example: toss-shopping-fep:write
token_typestringRequired

토큰 타입

Example: Bearer
expires_inintegerRequired

만료시간 (초단위)

Example: 31535999
post/token
POST /token HTTP/1.1
Host: oauth2.cert.toss.im
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 111

"grant_type='client_credentials'&client_id='text'&client_secret='text'&scope='toss-shopping-fep:write'"
200

토큰 발급 성공

{
  "access_token": "text",
  "scope": "toss-shopping-fep:write",
  "token_type": "Bearer",
  "expires_in": 31535999
}

API 연동 중 문의사항이나 개선 제안이 있으신가요?

토스쇼핑 API 연동에 대한 질문이나, 건의사항이 있다면 연동/개발 문의에 남겨주세요. 다른 유저의 문의를 참고하거나, 토스쇼핑 담당자와 질의를 주고 받을 수 있어요.

마지막 업데이트

도움이 되었나요?