## Overview

In order to receive RMA items, you can consume the endpoint presented in this article. In order to consume it, you must:

- Be authenticated user

For information on how you can authenticate, see: [Authentication](https://developer.sellercloud.com/dev-article/authentication/)

As soon as you do authentication and receive a valid token, it needs to be passed to the service call.

- Have valid ID of an existing RMA

### Endpoint

Example for such endpoint for **XX** server is:

`https://xx.api.sellercloud.com/rest/api/Rma/{id}/Receive`

For your server endpoint will be:

`https://{your_server_id}.api.sellercloud.com/rest/api/Rma/{id}/Receive`

### Request

- **Method Type:** HttpPost
- **Authorization:** Use **Bearer Token** (where ‘Token’ is the token received from token authentication)
- **Header info:** **Content-Type: application/json**
- **Parameters:** ID of the existing RMA
- **Request Body:**

```json
    {
      "Items": [
        {
          "RmaItemID": 0,
          "QtyToReceive": 0,
          "WarehouseID": 0,
          "WarehouseBinID": 0
        }
      ]
    }
    ```

| Parameter       | Data Type | Description                                   | Is Required |
|------------------|-----------|-----------------------------------------------|-------------|
| RmaItemID       | integer   | ID of RMA item to receive                    | true        |
| QtyToReceive     | integer   | Qty to receive                                | true        |
| WarehouseID     | integer   | ID of the receiving warehouse                 | true        |
| WarehouseBinID  | integer   | ID of the receiving warehouse bin.            | false       |

### Response

- If user is authenticated and receiving is successful, then response will be **Status Code 200 => OK**
- If user is not authenticated, then response will be **Status Code 401 => Not Valid Token**
- In case of error, response will be **Status Code 500 => Internal Server Error**
