---
description: Product로 진입 요청 시 waiting Queue에 추가 혹은 대기자 없을 시 바로 Product로 진입
---

# Handle Queue Request

Handle Queue Request

<mark style="color:green;">`POST`</mark> `/api/waitingQueue/{productId}`



**Access Permissions**

<table><thead><tr><th width="361">Role<select><option value="2rSBGCjaXeFt" label="SELLER" color="blue"></option><option value="ozSCTBKJPNgy" label="CUSTOMER" color="blue"></option><option value="Mfl8c1CRYAaD" label="ADMIN" color="blue"></option><option value="bviBPLZFY8t3" label="MANAGER" color="blue"></option></select></th><th>Description</th></tr></thead><tbody><tr><td><span data-option="Mfl8c1CRYAaD">ADMIN</span></td><td>관리자</td></tr><tr><td><span data-option="ozSCTBKJPNgy">CUSTOMER</span></td><td>구매자</td></tr></tbody></table>



**Request Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |



**Path Variable**

<table><thead><tr><th width="248">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>productId</code></td><td>Long</td><td>Product ID</td></tr></tbody></table>



**Response**

{% tabs %}
{% tab title="200 (대기열 등록)" %}
```json
{ 
    "status": 200,
    "data": {
        "userId": 1,
        "rank": 1
    },
    "error": null,
    "timeStamp": "2024-09-27 12:00:00"
}
```
{% endtab %}

{% tab title="200 (빈 대기열일 경우)" %}
```json
{ 
    "status": 200,
    "data": {
        "productId": 1,
        "companyId": 1,
        "companyName": "업체1",
        "productName": "상품1",
        "productImageUrl": "https://s3~~~~~",
        "description": "상품1입니다.",
        "descriptionImageUrl": "https://s3~~~~~",
        "originalPrice": 30000,
        "discountedPrice": 10000,
        "stock": 100,
        "productOptions": [
            {
                
            },
            {
            
            }
        ],
        "categoryCode": 001,
        "categoryName": "categoryName"
        "saleStartTime": "2024-09-27 12:00:00",
        "saleEndTime": "2024-09-27 13:00:00"
    },
    "error": null,
    "timeStamp": "2024-09-27 12:00:00"
}
```
{% endtab %}
{% endtabs %}
