bill_products


Products are typically referred to as upgrades. FTP access, a custom theme, or some sort of partner provided service. Like bill_plans, products are based upon bill_base_product template which pagely controls.


Available HTTP and Response Types
DELETE GET POST PUT | JSON

5 Methods


  • DELETE
    https://api.pagely.com/ v1 / bill_products /single

    Available To Partner

    Description
    No Description

    Sample Response


      Required Params

      id int
  • GET
    https://api.pagely.com/ v1 / bill_products /single

    Available To Partner Account

    Description

    curl -H “X-API-KEY:<key>” https://api.pagely.com/v1/bill_products/single?id=4

    Sample Response

    {"id":"4","reseller_id":"1","universal":"0","visible":"0","active":"1","recurring":"1","base_product_id":"2","name":"NewRelic Application Monitoring","desc":"NewRelic Application Monitoring","price":"75.00","type":"default","image":"","date_added":"1340905427","date_updated":"1340905427"}

      Required Params

      id int
  • GET
    https://api.pagely.com/ v1 / bill_products /all

    Available To Partner Account

    Description

    curl -H “X-API-KEY:<key>” https://api.pagely.com/v1/bill_products/all?active=1&visible=1

    Sample Response

    {"result":2,"count":3,"limit":25,"offset":0,"objects":[{"id":"411","reseller_id":"1","universal":"0","visible":"1","active":"1","recurring":"1","base_product_id":"2","name":"NewRelic Application Monitoring","desc":"NewRelic Application Monitoring","price":"75.00","type":"default","image":"","date_added":"1340905427","date_updated":"1340905427","base_product":{"id":"321","internal_code":"","tier_id":"1","universal":"0","active":"1","recurring":"1","name":"Misc recurring Item","desc":"Misc recurring Item","cost":"0.00","image":"","type":"monthly","date_added":"1331941643","date_updated":"1331941643"}},{"id":"3","reseller_id":"1","universal":"0","visible":"0","active":"1","recurring":"1","base_product_id":"2","name":"2GB Additional Ram","desc":"Ram Upgarde","price":"120.00","type":"default","image":"","date_added":"1340905388","date_updated":"1340905388","base_product":{"id":"2","internal_code":"","tier_id":"1","universal":"0","active":"1","recurring":"1","name":"Misc recurring Item","desc":"Misc recurring Item","cost":"0.00","image":"","type":"monthly","date_added":"1331941643","date_updated":"1331941643"}},{"id":"1231","reseller_id":"1","universal":"1","visible":"1","active":"1","recurring":"0","base_product_id":"3","name":"FTP Access","desc":"FTP Access","price":"5.00","type":"default","image":"","date_added":"1339367315","date_updated":"1339367315","base_product":{"id":"1234","internal_code":"ftp","tier_id":"1","universal":"1","active":"1","recurring":"0","name":"FTP Access","desc":"FTP Access","cost":"5.00","image":"","type":"onetime","date_added":"1331941643","date_updated":"1331941643"}}]}

      Optional Params

      active bool
      inc_base_product int
      limit int
      offset int
      order_by string id
      order_dir string DESC
      reseller_id int
      visible bool
  • POST
    https://api.pagely.com/ v1 / bill_products /single

    Available To Partner

    Description

    Update a product

    Sample Response


      Required Params

      id int

      Optional Params

      active bool
      base_product_id int
      desc string
      image string
      name string
      price string
      type string default
      visible bool
  • PUT
    https://api.pagely.com/ v1 / bill_products /single

    Available To Partner

    Description

    Add new product. Adding product require you submit the base_product_id the product is derived from.

    Sample Response


      Required Params

      base_product_id int
      desc string
      name string
      price string

      Optional Params

      active bool 1
      image string
      reseller_id int
      type string default
      visible bool 1