Authentication - Generate access token
몇 가지 파트너 API 리소스에 액세스하는 데 필요한 액세스 토큰을 생성합니다.
POST https://api.partnercenter.microsoft.com/generatetoken
요청 헤더
Media Types: "application/json", "application/xml", "text/xml", "application/x-www-form-urlencoded", "text/json"
Name | 필수 | 형식 | Description |
---|---|---|---|
Authorization | True |
string |
권한 부여 전달자 토큰 |
Accept | True |
string |
허용되는 콘텐츠 형식; 널리 수용된 형식 application/json |
ms-correlationid |
string |
내부적으로 요청을 추적하는 데 사용됩니다. ms-correlationid가 제공되지 않으면 서버는 각 요청에 대해 새 를 생성합니다. |
|
ms-requestid |
string |
요청의 멱등성에 사용됩니다. 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" |