Sign in

Welcome.
How can we help?

Developer API: /pricing_models

Topic: , Updated:

This resource is used to handle pricing models used by campaigns.

GET

Mandatory parameters

None.

Optional parameters

NameTypeDescription
pricing_model_id int Unique ID for price model.

Output

NameTypeDescription
pricing_model_id int Unique ID for price model.
name string Price model name.
unique_caller_time int Time in hours when caller is interpret as unique, 0, 12 or 24.
type int Pricing model type, 0=conditional (CPL), 1=percent (CPS), 2=fixed (CPS).
used_by array Array of campaigns using price model.
*conditions json When type=0, JSON representation of array(array(“cost_per_lead”⇒, “min_duration”⇒, “from_time”⇒, “to_time”⇒, “weekdays”⇒))
*unique_caller_time int When type=0, time in hours when caller is interpret as unique, 0, 12 or 24.
*commission_percent int When type=1, commission in percentage of actual order value.
*fixed_commission int When type=2, Fixed commission value.

POST

Mandatory parameters

NameTypeDescription
name string Price model name.
type int Pricing model type, 0=conditional (CPL), 1=percent (CPS), 2=fixed (CPS).
*conditions json When type=0, JSON representation of array(array(“cost_per_lead”⇒, “min_duration”⇒, “from_time”⇒, “to_time”⇒, “weekdays”⇒))
*unique_caller_time int When type=0, time in hours when caller is interpret as unique, 0, 12 or 24.
*commission_percent int When type=1, commission in percentage of actual order value.
*fixed_commission int When type=2, Fixed commission value.

Optional parameters

None.

Output

Same as GET.

PUT

Mandatory parameters

NameTypeDescription
pricing_model_id int Unique ID for price model.

Optional parameters

NameTypeDescription
name string Price model name.
unique_caller_time int Time in hours when caller is interpret as unique, 0, 12 or 24.
*conditions json When type=0, JSON representation of array(array(“cost_per_lead”⇒, “min_duration”⇒, “from_time”⇒, “to_time”⇒, “weekdays”⇒))
*unique_caller_time int When type=0, time in hours when caller is interpret as unique, 0, 12 or 24.
*commission_percent int When type=1, commission in percentage of actual order value.
*fixed_commission int When type=2, Fixed commission value.

Output

Same as GET.

DELETE

Mandatory parameters

NameTypeDescription
pricing_model_id int Unique ID for price model.

Optional parameters

None.

Output

N/A.

Was this article helpful?
0 out of 0 found this helpful

Comments


Not the answer to your question?

Powered by Zendesk