다음을 통해 공유


Authentication - Generate access token

몇 가지 파트너 API 리소스에 액세스하는 데 필요한 액세스 토큰을 생성합니다. 현재 버전의 API입니다. 더 이상 사용되지 않는 이전 버전 사용을 중단하세요. 액세스 토큰 생성(사용되지 않음)

POST https://api.partnercenter.microsoft.com/v3/generatetoken

요청 헤더

Media Types: "application/json", "application/xml", "text/xml", "application/x-www-form-urlencoded", "text/json"

Name 필수 형식 Description
Authorization True

string

권한 부여 전달자 토큰입니다. 앱 전용 시나리오에 대한 대상 그룹 api.partnercenter.microsoft.com 토큰만 사용합니다. 자세한 내용은 Active Directory 그래프 토큰 사용 중단을 참조하세요.

Accept True

string

허용 가능한 콘텐츠 형식; 널리 적응된 형식 애플리케이션/json

ms-correlationid

string

내부적으로 요청을 추적하는 데 사용됩니다. ms-correlationid가 제공되지 않으면 서버는 각 요청에 대해 새 상관 관계를 생성합니다.

ms-requestid

string

요청의 idempotency에 사용됩니다. ms-requestid가 제공되지 않으면 서버는 각 요청에 대해 새 요청을 생성합니다.

요청 본문

Media Types: "application/json", "application/xml", "text/xml", "application/x-www-form-urlencoded", "text/json"

Name 형식 Description
grant_type

string

grant_type=jwt_token만 지원합니다.

응답

Name 형식 Description
200 OK

요청이 성공했습니다.

Media Types: "application/json", "application/xml", "text/xml", "text/json"

400 Bad Request

입력이 없거나 잘못되었습니다. 응답 본문에는 오류 세부 정보가 포함됩니다.

Media Types: "application/json", "application/xml", "text/xml", "text/json"

401 Unauthorized

요청이 인증되지 않았습니다. 클라이언트는 먼저 파트너 API 서비스를 사용하여 인증해야 합니다.

Media Types: "application/json", "application/xml", "text/xml", "text/json"

403 Forbidden

요청이 인증되었지만 호출자에게 호출할 권한이 없기 때문에 거부되었습니다.

Media Types: "application/json", "application/xml", "text/xml", "text/json"

404 Not Found

리소스를 찾을 수 없거나 지정된 입력 매개 변수와 함께 사용할 수 없습니다.

Media Types: "application/json", "application/xml", "text/xml", "text/json"

500 Internal Server Error

파트너 API 서비스 또는 해당 종속성 중 하나가 요청을 충족하지 못했습니다. 호출자는 요청을 다시 시도할 수 있습니다.

Media Types: "application/json", "application/xml", "text/xml", "text/json"