Add weight - celdotro/marketplace GitHub Wiki

About

  • Add weight to order

Class

celmarket\Orders\OrdersUpdate

Method

addWeightToOrder

API

  • method: orders
  • action: addWeightToOrder

Parameters

  • orders_id = order's ID
  • weight = weight

Response

An object with the following attributes

  • success = 1 -> operation was successfully executed

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Orders/31.addWeightToOrder.php

Example - JSON

{
  "request": {
    "orders_id": 1,
    "weight": -1
  },
  
  "response": {
    "success": 1
  }
}
⚠️ **GitHub.com Fallback** ⚠️