This resource is used to handle pricing models used by campaigns.
GET
Mandatory parameters
None.
Optional parameters
Name | Type | Description |
---|---|---|
pricing_model_id | int | Unique ID for price model. |
Output
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
pricing_model_id | int | Unique ID for price model. |
Optional parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
pricing_model_id | int | Unique ID for price model. |
Optional parameters
None.
Output
N/A.
Comments
0 comments
Please sign in to leave a comment.