Get All RMAs By Saved View - Sellercloud API Docs

Get All RMAs By Saved View

Table of Contents

Overview

This endpoint is used for getting RMAs in bulk, using a saved view. A saved view for RMAs must be created on the Manage RMAs page in the new Sellercloud UI.

The advantages of using this endpoint for getting RMAs are as follows:

In order to get information for RMAs by saved view, you can consume the endpoint presented in this article. However, in order to do that, you must:

  1. Be an authenticated user. For information on how you can authenticate, see: Authentication. As soon as you authenticate and receive a valid token, it needs to be passed on this call for getting RMAs.
  2. Have a valid ID of a currently existing saved view. For information on how you can get existing saved views, see Get RMA Saved Views

Endpoint

The endpoint for the TT server would be:

https://tt.api.sellercloud.com/rest/api/Rma/getallbyview?request.ViewID=100&request.pageNumber=1&request.pageSize=50

For your server, the endpoint will be:

https://{your_server_id}.api.sellercloud.com/rest/api/Rma/GetAllByView?request.ViewID=100&request.pageNumber=1&request.pageSize=50

Request

Information about expected request parameters can be found on swagger UI https://tt.api.sellercloud.com/rest/swagger.

Parameters Data Type Description Is Required
pageNumber integer Page number Yes
pageSize integer Number of RMAs per page
NOTE:
Maximum number of RMAs that can be pulled with a single call is 50.
Yes
viewID integer ID of existing saved view Yes

Response

  {
  "Items": [
    {
      "Items": [
        {
          "CustomerID": 0,
          "FirstName": "string",
          "LastName": "string",
          "CustomerFirstName": "string",
          "CustomerLastName": "string",
          "UserID": 0,
          "CreatedOn": "2022-07-13T11:06:15.058Z",
          "ClosedOn": "2022-07-13T11:06:15.058Z",
          "ReceivedOn": "2022-07-13T11:06:15.058Z",
          "CreatedBy": "string",
          "ApprovalStatus": 0,
          "RMAStatusCode": 0,
          "OrderSource": 0,
          "OrderSourceRMAID": "string",
          "Reason": 0,
          "ReceivedStatus": 0,
          "TotalRefunded": 0,
          "Company": "string",
          "CompanyID": 0,
          "Exported": 0,
          "CustomerUserName": "string",
          "TrackingNumber": "string",
          "RefundStatus": 10,
          "ReturnLabelCharges": 0,
          "Items": [
            {
              "ID": 0,
              "RMAID": 0,
              "OrderID": 0,
              "SKU": "string",
              "RMANoteContains": "string",
              "SerialNumber": "string",
              "Reason": 0,
              "ReasonName": "string",
              "Resolution": 0,
              "ReceivedStatus": "string",
              "RefundStatus": 0,
              "RefundStatusName": "string",
              "OrderSubType": 0,
              "OrderSubtypeName": "string",
              "OrderSourceOrderID": "string",
              "OrderSource": 0,
              "EnabledOnChannels": [
                0
              ],
              "Company": "string",
              "CompanyID": 0,
              "ReturnedOn": "2022-07-13T11:06:15.058Z",
              "QtyReturned": 0,
              "QtyReceived": 0,
              "ReturnedToWarehouseID": 0,
              "WarehouseBinID": 0,
              "ProblemDescription": "string"
            }
          ],
          "ReturnNotes": [
            {
              "EntityID": 0,
              "Category": 0,
              "NoteID": 0,
              "Note": "string",
              "AuditDate": "2022-07-13T11:06:15.058Z",
              "CreatedBy": 0,
              "CreatedByName": "string",
              "CreatedByEmail": "string"
            }
          ],
          "ReplacementOrderId": 0,
          "ID": 0
        }
      ],
      "TotalResults": 0
    }
  ],
  "TotalResults": 0
}

Enumeration values can be found in this section here: https://developer.sellercloud.com/dev-category/resources//a>