Skip to main content

Edit a Sell Request

Update an existing sell request data.

PATCH   /v1/sell-requests/:id
curl -X PATCH "https://api.ezewholesale.com/api/v1/sell-requests/785d59c9-244d-4f7e-aeaa-a7c0f92e0d36?take=2&page=1" \
-H "x-api-key:your-api-key" \
-H 'Content-Type: application/json' \
-d '{"quantity":12}'


RESPONSE
{
  "description": "Sell Request updated successfully",
  "data": {
    "id": "785d59c9-244d-4f7e-aeaa-a7c0f92e0d36",
    "name": "Galaxy A32 5G",
    "category": "Cell Phones",
    "brand": "Samsung",
    "price": 6,
    "sku": "SA32-BLK-64GB",
    "status": "open",
    "updatedAt": "2023-09-04T17:29:34.976Z",
    "quantity": 12,
    "properties": {
      "color": "mixed colors",
      "grade": "New",
      "carrier": "Unlocked",
      "storage": "64GB"
    },
    "seller": "6a2b01da-a5f8-4768-9985-8abc5a2e16f8",
    "imgUrl": "https://storage.googleapis.com/ezetradein-gs-cld/ezetradein-website/products/samsung/Galaxy_A32_5G.png",
    "minQuantity": 1,
    "createdAt": "2023-09-04T17:29:34.976Z"
  }
}

Request Body

quantity  

The updated product/device quantity.


price  

The updated product/device price.