Description

This function gives you our product price list with your commission rates.

URL

/cdrdefinitions/getList

Parameters

None

Return

This function returns a JSON string in the form of
{"return":{"code":XXX,"message":"...","data":[product1,product2,...]}}
code is an HTTP status code, and the message is a descriptive text about the returned code.
If the code is 200, there’ll be a key called data in return, which is a JSON encoded array of records which themselves are arrays with these keys:

KeyDescription
idProduct’s unique ID.
nameProduct’s name.
typeProduct type. Available types:
CALLIN, CALLOUT, SMS, PAY, DOCUMENTATION, FAXIN, FAXOUT, SERVICE, SETUP, HARDWARE, TRAVEL, DELIVERY, MCALL, MDATA, MSMS
recurringWhether or not the product is sold as recurring.
amountbuyYour per unit price in € if sold as a one-shot. If you get commissions on this product, they are automatically calculated in this field.
0€ = no price defined.
amountA recommended one-shot price in € to bill your customer. 0€ = no price defined.
amountmonthlybuyYour per unit price in € if sold as recurring. If you get commissions on this product, they are automatically calculated in this field.
0€ = no price defined.
amountmonthlyA recommended recurring price in € to bill your customer. 0€ = no price defined.
commissioncatThe commission category to which the product is linked.
commissionYour commission rate in % for this product.