Product return - celdotro/marketplace GitHub Wiki

About

  • Marks a product for return

Class

celmarket\Orders\OrdersUpdate

Method

returProduct

API

  • method: orders
  • action: returProduct

Parameters

  • orderId = orders' ID
  • reason = reason
  • model = products' model

Response

An object with the following attributes

  • status = 1, operation was successfully executed

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Orders/28.returProduct.php

Example - JSON

{
  "request": {
   "orderId": 1,
   "reason": "X",
   "model": "X" 
  },
  
  "response": {
    "status": 1
  }
}
⚠️ **GitHub.com Fallback** ⚠️