Usage rate cards represent the pricing structure for usage products that can be sold to Customers
- Create a new rental discount plan rule
Elevate Pricing API (2.22)
Provides read & write access to usage and rental rate cards and inclusive usage plans
- Usage Rate Card - a representation of the pricing structure for usage that can be sold to Customers, for example 5 pence per minute for UK National calls
- Rental Rate Card - a representation of the pricing structure for rental product that can be sold to Customers, for example £10 per month for line rental
- Inclusive Usage Plan - a representation of an inclusive bundle that can be sold to a Customer, for example you can allocate 500 free minutes to UK National or Local calls
Results to return per page
Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change
Comma-delimited list of the field(s) to return if only a subset is required
Filter by rental discount plan
- https://rest.elevatebilling.com/v2/rental-discount-plan-rules
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://rest.elevatebilling.com/v2/rental-discount-plan-rules?page=1&pageSize=100&sort=id%2Cname+%7C+name%3Adesc&fields=id%2Cname&rentalDiscountPlanId=0&productCategoryId=0&rentalProductId=0' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
Product category identifier. The rule applies to all rental products in this category (unless rentalProductId is specified)
Rental product identifier. Optional - if specified, the rule applies only to this specific rental product within the category
Discount percentage to apply (0-100)
[ { "id": 1, "rentalDiscountPlanId": 1, "productCategoryId": 1, "rentalProductId": 1, "discountPercentage": 15 } ]
New rental discount plan rule
Product category identifier. The rule applies to all rental products in this category (unless rentalProductId is specified)
Rental product identifier. Optional - if specified, the rule applies only to this specific rental product within the category
- https://rest.elevatebilling.com/v2/rental-discount-plan-rules
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://rest.elevatebilling.com/v2/rental-discount-plan-rules \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"rentalDiscountPlanId": 1,
"productCategoryId": 1,
"rentalProductId": 1,
"discountPercentage": 15
}'{ "id": 1, "rentalDiscountPlanId": 1, "productCategoryId": 1, "rentalProductId": 1, "discountPercentage": 15 }
- https://rest.elevatebilling.com/v2/rental-discount-plan-rules/{rental_discount_plan_rule_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://rest.elevatebilling.com/v2/rental-discount-plan-rules/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "id": 1, "rentalDiscountPlanId": 1, "productCategoryId": 1, "rentalProductId": 1, "discountPercentage": 15 }
A set of JSONPatch operations to be performed
The JSON Patch operation to be performed
- https://rest.elevatebilling.com/v2/rental-discount-plan-rules/{rental_discount_plan_rule_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://rest.elevatebilling.com/v2/rental-discount-plan-rules/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '[
{
"op": "replace",
"path": "/discountPercentage",
"value": 25
}
]'{ "id": 1, "rentalDiscountPlanId": 1, "productCategoryId": 1, "rentalProductId": 1, "discountPercentage": 15 }
- https://rest.elevatebilling.com/v2/rental-discount-plan-rules/{rental_discount_plan_rule_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://rest.elevatebilling.com/v2/rental-discount-plan-rules/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'