Delete bonus - celdotro/marketplace GitHub Wiki

About

  • Deletes products' bonuses

Class

celmarket\Products\ProductsBonus

Method

deleteBonus

API

  • method: products
  • action: deleteBonus

Parameters

  • model = product's model
  • bonus = bonus' models -> array
    • (array element) = the model of the bonus product

Response

An object with the following attributes

  • success = 1 -> successfully deleted

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Products/6.deleteBonus.php

Example - JSON

{
  "request": {
   "model": "X",
   "bonus": [
    "X"
   ] 
  },
  
  "response": {
    "success": 1
  }
}
⚠️ **GitHub.com Fallback** ⚠️