Storeden Developers

Rmas API

Current version: v1.1 beta

List RMAs

List all "returns" of shop

GET
/rmas/list.json[?status=0&orderID=xxx_xxxxx&rma=rma_xxxxx]
PARAMETERS LIST
status (int) Specify a valid rma status to get all rma into this status
orderID (string) Specify a valid orderID to filter rma by orderID
rma (string) Specify a single rma id to get rma details
						
[
    {
        "rma": "rma_5bab94b898349",
        "order": {
            "order_id": "132_5baa2fbf9f124",
            "href": "https://connect.storeden.com/v1.1/orders/order.json=orderID=132_5baa2fbf9f124"
        },
        "cart": [
            {
                "return": "1",
                "quantity": "1",
                "note": "",
                "sku": "8034022157635",
                "options": "",
                "price": "6147.54",
                "itemUID": 406635
            }
        ],
        "date": "2018-09-26T16:16:24+02:00",
        "details": "Device does not turn on",
        "status": 0
    },
	....
]
						
					

Get RMAs product status

GET
/rmas/statuses.json
						
{
    "0": "Product return",
    "1": "Defective product replacement",
    "2": "Change size/color",
    "3": "Change product"
}
						
					

Add attachment to RMA

You need to upload documents before update RMA status

POST
/rmas/attachment.json
PARAMETERS LIST
base64 required (string) Base64 encoded PDF content
filename required (string) Your attachment filename
rma required (string) Your rma id
						
{
    "rma": "rma_5efa5635e3a53",
    "orderID": "132_5eb19b412ef37",
    "file_id": "5efa57cde39ee1833aba59af",
    "size": 11475
}
						
					

Update RMA status

PUT
/rmas/rma.json
PARAMETERS LIST
status required (int)
  • -1 => Return refused
  • 0 => Pending merchant approval
  • 1 => Return approved
  • 2 => Package returned
  • 3 => Return workload completed
rma required (string) Your rma id
details (text) More details you want to send to customer
						
{
    "status": 1,
    "accepted": true,
    "status_details": "Text content",
    "rma_auth_id": "5efa5635be7ea0c8f03dccab"
}