Usage rate cards represent the pricing structure for usage products that can be sold to Customers
/
Create a new rental disco...
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
Download OpenAPI description
Languages
Servers
https://rest.elevatebilling.com/v2
Query
Results to return per page
Example: pageSize=100
Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change
Example: sort=id,name | name:desc
Comma-delimited list of the field(s) to return if only a subset is required
Example: fields=id,name
Filter by available from date
Example: availableFrom=yyyy-MM-dd | lt:yyyy-MM-dd | gt:yyyy-MM-dd | gtn:yyyy-MM-dd
- https://rest.elevatebilling.com/v2/rental-discount-plans
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://rest.elevatebilling.com/v2/rental-discount-plans?page=1&pageSize=100&sort=id%2Cname+%7C+name%3Adesc&fields=id%2Cname&contractOwnerId=0&name=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&availableFrom=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&availableTo=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
[ { "id": 1, "contractOwnerId": 1, "name": "12 month 50% off", "durationInMonths": 12, "availableFrom": "2019-08-24", "availableTo": "2019-08-24" } ]
- https://rest.elevatebilling.com/v2/rental-discount-plans
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X HEAD \
'https://rest.elevatebilling.com/v2/rental-discount-plans?id=0&contractOwnerId=0&name=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&availableFrom=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&availableTo=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Bodyapplication/jsonrequired
New rental discount plan
The billing entity that will have access to this item
Example: 1
Rental discount plan name. Must be unique for a given contract owner
Example: "12 month 50% off"
Duration of the discount plan in months
Example: 12
- https://rest.elevatebilling.com/v2/rental-discount-plans
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://rest.elevatebilling.com/v2/rental-discount-plans \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"contractOwnerId": 1,
"name": "12 month 50% off",
"durationInMonths": 12,
"availableFrom": "2019-08-24",
"availableTo": "2019-08-24"
}'Response
application/json
{ "id": 1, "contractOwnerId": 1, "name": "12 month 50% off", "durationInMonths": 12, "availableFrom": "2019-08-24", "availableTo": "2019-08-24" }
- https://rest.elevatebilling.com/v2/rental-discount-plans/{rental_discount_plan_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://rest.elevatebilling.com/v2/rental-discount-plans/1?fields=id%2Cname' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "id": 1, "contractOwnerId": 1, "name": "12 month 50% off", "durationInMonths": 12, "availableFrom": "2019-08-24", "availableTo": "2019-08-24" }
Bodyapplication/json-patch+jsonrequired Array [ ]
A set of JSONPatch operations to be performed
The JSON Patch operation to be performed
Enum"add""remove""replace""move""copy""test"
- https://rest.elevatebilling.com/v2/rental-discount-plans/{rental_discount_plan_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://rest.elevatebilling.com/v2/rental-discount-plans/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '[
{
"op": "replace",
"path": "/name",
"value": "My Discount Plan"
}
]'Response
application/json
{ "id": 1, "contractOwnerId": 1, "name": "12 month 50% off", "durationInMonths": 12, "availableFrom": "2019-08-24", "availableTo": "2019-08-24" }