Xsolla-logoXsolla Developers
또는
관리자 페이지로

지정된 사용자의 프로모션 제한 설정하기Server-sideAdmin

put/v2/project/{project_id}/admin/user/limit/promotion/id/{promotion_id}

Sets the number of times the specified user can use a promotion within the limit applied after it was increased or decreased.

User limit API allows you to limit the number of times users can use a promotion. For configuring the user limit itself, go to the Admin section of the desired promotion type:

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

프로젝트 ID입니다. 이 매개 변수는 관리자 페이지의 프로젝트 이름 옆에서 확인할 수 있습니다.

Example: 44056
promotion_id
required
integer

프로모션 ID입니다. 프로젝트 내부의 고유 프로모션 식별자입니다.

Example: 111425
Request Body schema: application/json
required
object
user_external_id
required
string non-empty ^\S+$

사용자 외부 ID입니다.

available
required
integer >= 0

적용된 제한 설정 내에서 사용자가 사용할 수 있는 남은 아이템 또는 프로모션 사용 수량입니다.

Responses
200

사용자 한 명에 대한 프로모션 제한 설정을 성공적으로 수신했습니다.

401

기본 인증이 전달되지 않았거나 잘못되었습니다. 기본 인증 또는 올바른 자격 증명을 사용했는지 확인해야 합니다.

404

아이템을 찾을 수 없습니다.

422

잘못된 요청입니다.

Request samples
application/json
{
  • "available": 0,
  • "user": {
    }
}
Response samples
application/json
{
  • "per_user": {
    }
}