Skip to content

Elevate Pricing API (2.21)

Usage and Rental Pricing Management

Provides read & write access to usage and rental rate cards and inclusive usage plans

Definitions

  • 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
Languages
Servers
https://rest.elevatebilling.com/v2

usage-rate-cards

Usage rate cards represent the pricing structure for usage products that can be sold to Customers

Operations

Get a list of available usage rate cards

Request

Security
bearerAuth
Query
pageinteger(int32)(PageParam)>= 1required

Page of results to show

Example: page=1
pageSizeinteger(int32)(ResultsPerPageParam)[ 1 .. 1000 ]required

Results to return per page

Example: pageSize=100
sortstring(SortParam)

Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change

Example: sort=id,name | name:desc
fieldsstring(FieldsParam)

Comma-delimited list of the field(s) to return if only a subset is required

Example: fields=id,name
contractOwnerIdstring(IdFilterParam)

Filter by contract owner

Example: contractOwnerId=0
namestring(StringFilterParam)

Filter by name

Example: name=xyz | in:x,y | like:xyz
availableFromstring(DateFilterParam)

Filter by available from date

Example: availableFrom=yyyy-MM-dd | lt:yyyy-MM-dd | gt:yyyy-MM-dd | gtn:yyyy-MM-dd
availableTostring(DateFilterParam)

Filter by available to date

Example: availableTo=yyyy-MM-dd | lt:yyyy-MM-dd | gt:yyyy-MM-dd | gtn:yyyy-MM-dd
rateCardTypestring(StringFilterParam)

Filter by rate card type

Example: rateCardType=xyz | in:x,y | like:xyz
usageProductIdstring(IdFilterParam)

Filter by usage product

Example: usageProductId=0
supplierIdstring(IdFilterParam)

Filter by supplier

Example: supplierId=0
Headers
summarystring(BooleanFilterParam)

If true, returns a lightweight summary of each usage rate card instead of the full object. Use this to reduce payload size and improve performance when only basic information is needed.

Example: true | false
curl -i -X GET \
  'https://rest.elevatebilling.com/v2/usage-rate-cards?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&rateCardType=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&usageProductId=0&supplierId=0' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'summary: true | false'

Responses

OK

Bodyapplication/jsonArray [
idinteger(int64)read-only

Usage rate card identifier

Example: 1
contractOwnerIdsArray of integers(int32)required

The billing entity or entities that will have access to this item. This is a multi-select field. If there is only one existing contractOwnerId, you can replace it with another regardless of currency. However, if there are multiple contractOwnerIds, any new or replacement contractOwnerIds must use the same currency as the existing contractOwnerId(s). Different currencies cannot be mixed

Example: [1]
namestring[ 1 .. 50 ] characters[\w\p{L}\s%£@&#=':;`’,|!_—–\(\)\\/\-\+\.\?\*\...required

Usage rate card name

rateCardTypestring(UsageRateCardType)required

Usage rate card type. Buy = used to price usage purchased from the supplier, Sell = used to price usage sold to customers, Template = is a rate card to which other rate cards can be linked

Default "SELL"
Enum"TEMPLATE""SELL""BUY"
availableFromstring(date)required

Available from date

availableTostring(date)

Available to date

usageProductIdinteger(int64)required

Usage product identifier

Example: 1
supplierIdinteger(int64)

Supplier identifier

Example: 1
decimalPlacesinteger(int32)required

Number of decimal places. In the context of pence this defines the precision to which usage prices will be calculated. For example, a value of 4 would result in prices being calculated to 4 decimal places (1.0045 pence)

Example: 4
priceRoundingStylestring(PriceRoundingStyle)required

Price rounding style. When pricing usage, each call will be rounded to the specified number of decimal places using the method selected here

Default "MATHEMATICAL"
Enum"UP""DOWN""MATHEMATICAL"
defaultMinChargenumberrequired

Default minimum charge. The minimum charge that will be applied. For example, a call calculated to be 4.3 pence would be charged at 5 pence if this value was set to 5 pence. This default value can be overridden at Charge Group level

roundAccessChargeFirstMinuteboolean

Round access charge for first minute. When pricing using access charges round the first minute of the call

Default false
boltOnboolean

Bolt on enabled. A bolt on is a usage rate card that incurs a recurring charge (typically a monthly charge provides access to discounted call rates)

Default false
boltOnTaxBandIdinteger(int64)

Tax band identifier for bolt on charges (required when bolt on enabled)

Example: 1
nominalCodestring[ 1 .. 100 ] characters^[\w\p{L}\s%£@&#=':;,`’|!_—–()/\-+.?*$\[\]€^{...

Nominal code

Example: "SALES-01QTR2"
applyCrossTimeBandChargingboolean

Apply cross time band charging. Where a call crosses multiple time bands this option allows the different portions of the call to be charged at either peak or off-peak rates as required. If this option is not selected then the entire call will be charged using the rate applicable at the start of the call

Default false
defaultQuantityRoundingIncrementinteger(int32)

Default quantity rounding increment. The chargeable quantity (seconds or megabytes) will be rounded up to the nearest multiple of this value. For example, a 61 second call would be rounded up to 120 seconds if this value is set to an increment of 60. This default value can be overridden at Charge Group level

Example: 1
defaultVariableChargeUnitSizeinteger(int32)

Default variable charge unit size. The unit size in which charges will be calculated. For example, if this value is 60 seconds then the charge is pence per minute; if this value is 1024 MB then the charge is pence per gigabyte. This default value can be overridden at Charge Group level

Example: 1
usageRatesArray of objects(UsageRate)
timeBandPlansArray of objects(UsageRateTimeBandPlan)
accessChargesArray of objects(UsageRateAccessCharge)
boltOnChargesArray of objects(UsageRateCardBoltOnCharge)
]
Response
application/json
[ { "id": 1, "contractOwnerIds": [], "name": "string", "rateCardType": "TEMPLATE", "availableFrom": "2019-08-24", "availableTo": "2019-08-24", "usageProductId": 1, "supplierId": 1, "decimalPlaces": 4, "priceRoundingStyle": "UP", "defaultMinCharge": 0, "roundAccessChargeFirstMinute": false, "boltOn": false, "boltOnTaxBandId": 1, "nominalCode": "SALES-01QTR2", "applyCrossTimeBandCharging": false, "defaultQuantityRoundingIncrement": 1, "defaultVariableChargeUnitSize": 1, "usageRates": [], "timeBandPlans": [], "accessCharges": [], "boltOnCharges": [] } ]

Check if a usage rate card exists

Request

Security
bearerAuth
Query
idstring(IdFilterParam)

Filter by id

Example: id=0
contractOwnerIdstring(IdFilterParam)

Filter by contract Owner

Example: contractOwnerId=0
namestring(StringFilterParam)

Filter by name

Example: name=xyz | in:x,y | like:xyz
availableFromstring(DateFilterParam)

Filter by available from date

Example: availableFrom=yyyy-MM-dd | lt:yyyy-MM-dd | gt:yyyy-MM-dd | gtn:yyyy-MM-dd
availableTostring(DateFilterParam)

Filter by available to date

Example: availableTo=yyyy-MM-dd | lt:yyyy-MM-dd | gt:yyyy-MM-dd | gtn:yyyy-MM-dd
rateCardTypestring(StringFilterParam)

Filter by rate card type

Example: rateCardType=xyz | in:x,y | like:xyz
usageProductIdstring(IdFilterParam)

Filter by usage product

Example: usageProductId=0
supplierIdstring(IdFilterParam)

Filter by supplier

Example: supplierId=0
curl -i -X HEAD \
  'https://rest.elevatebilling.com/v2/usage-rate-cards?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&rateCardType=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&usageProductId=0&supplierId=0' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Body

Create a new usage rate card

Request

Security
bearerAuth
Bodyapplication/jsonrequired

New usage rate card

contractOwnerIdsArray of integers(int32)required

The billing entity or entities that will have access to this item. This is a multi-select field. If there is only one existing contractOwnerId, you can replace it with another regardless of currency. However, if there are multiple contractOwnerIds, any new or replacement contractOwnerIds must use the same currency as the existing contractOwnerId(s). Different currencies cannot be mixed

Example: [1]
namestring[ 1 .. 50 ] characters[\w\p{L}\s%£@&#=':;`’,|!_—–\(\)\\/\-\+\.\?\*\...required

Usage rate card name

rateCardTypestring(UsageRateCardType)required

Usage rate card type. Buy = used to price usage purchased from the supplier, Sell = used to price usage sold to customers, Template = is a rate card to which other rate cards can be linked

Default "SELL"
Enum"TEMPLATE""SELL""BUY"
availableFromstring(date)required

Available from date

availableTostring(date)

Available to date

usageProductIdinteger(int64)required

Usage product identifier

Example: 1
supplierIdinteger(int64)

Supplier identifier

Example: 1
decimalPlacesinteger(int32)required

Number of decimal places. In the context of pence this defines the precision to which usage prices will be calculated. For example, a value of 4 would result in prices being calculated to 4 decimal places (1.0045 pence)

Example: 4
priceRoundingStylestring(PriceRoundingStyle)required

Price rounding style. When pricing usage, each call will be rounded to the specified number of decimal places using the method selected here

Default "MATHEMATICAL"
Enum"UP""DOWN""MATHEMATICAL"
defaultMinChargenumberrequired

Default minimum charge. The minimum charge that will be applied. For example, a call calculated to be 4.3 pence would be charged at 5 pence if this value was set to 5 pence. This default value can be overridden at Charge Group level

roundAccessChargeFirstMinuteboolean

Round access charge for first minute. When pricing using access charges round the first minute of the call

Default false
boltOnboolean

Bolt on enabled. A bolt on is a usage rate card that incurs a recurring charge (typically a monthly charge provides access to discounted call rates)

Default false
boltOnTaxBandIdinteger(int64)

Tax band identifier for bolt on charges (required when bolt on enabled)

Example: 1
nominalCodestring[ 1 .. 100 ] characters^[\w\p{L}\s%£@&#=':;,`’|!_—–()/\-+.?*$\[\]€^{...

Nominal code

Example: "SALES-01QTR2"
applyCrossTimeBandChargingboolean

Apply cross time band charging. Where a call crosses multiple time bands this option allows the different portions of the call to be charged at either peak or off-peak rates as required. If this option is not selected then the entire call will be charged using the rate applicable at the start of the call

Default false
defaultQuantityRoundingIncrementinteger(int32)

Default quantity rounding increment. The chargeable quantity (seconds or megabytes) will be rounded up to the nearest multiple of this value. For example, a 61 second call would be rounded up to 120 seconds if this value is set to an increment of 60. This default value can be overridden at Charge Group level

Example: 1
defaultVariableChargeUnitSizeinteger(int32)

Default variable charge unit size. The unit size in which charges will be calculated. For example, if this value is 60 seconds then the charge is pence per minute; if this value is 1024 MB then the charge is pence per gigabyte. This default value can be overridden at Charge Group level

Example: 1
usageRatesArray of objects(UsageRate)
timeBandPlansArray of objects(UsageRateTimeBandPlan)
accessChargesArray of objects(UsageRateAccessCharge)
boltOnChargesArray of objects(UsageRateCardBoltOnCharge)
curl -i -X POST \
  https://rest.elevatebilling.com/v2/usage-rate-cards \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "contractOwnerIds": [
      1
    ],
    "name": "string",
    "rateCardType": "TEMPLATE",
    "availableFrom": "2019-08-24",
    "availableTo": "2019-08-24",
    "usageProductId": 1,
    "supplierId": 1,
    "decimalPlaces": 4,
    "priceRoundingStyle": "UP",
    "defaultMinCharge": 0,
    "roundAccessChargeFirstMinute": false,
    "boltOn": false,
    "boltOnTaxBandId": 1,
    "nominalCode": "SALES-01QTR2",
    "applyCrossTimeBandCharging": false,
    "defaultQuantityRoundingIncrement": 1,
    "defaultVariableChargeUnitSize": 1,
    "usageRates": [
      {
        "chargeGroupId": 1,
        "usageRateType": "MARKUP",
        "peakInitialCharge": 0,
        "peakInitialPeriod": 0,
        "peakValue": 0,
        "peakMinimum": 0,
        "offPeakInitialCharge": 0,
        "offPeakInitialPeriod": 0,
        "offPeakValue": 0,
        "offPeakMinimum": 0,
        "weekendInitialCharge": 0,
        "weekendInitialPeriod": 0,
        "weekendValue": 0,
        "weekendMinimum": 0,
        "quantityRoundingIncrement": 1,
        "variableChargeUnitSize": 1,
        "surchargeInitialCharge": 0,
        "surchargeInitialPeriod": 0,
        "surchargeValue": 0,
        "surchargeMinimum": 0,
        "startDate": "2019-08-24",
        "endDate": "2019-08-24"
      }
    ],
    "timeBandPlans": [
      {
        "timeBandPlanId": 1,
        "name": "string",
        "startDate": "2019-08-24",
        "endDate": "2019-08-24"
      }
    ],
    "accessCharges": [
      {
        "charge": 0,
        "startDate": "2019-08-24",
        "endDate": "2019-08-24"
      }
    ],
    "boltOnCharges": [
      {
        "price": 0,
        "rentalRateType": "ADVANCE",
        "periodsInAdvance": "STANDARD",
        "rentalRateFrequency": "DAILY",
        "showOnInvoice": true,
        "startDate": "2019-08-24",
        "endDate": "2019-08-24"
      }
    ]
  }'

Responses

OK

Bodyapplication/json
idinteger(int64)read-only

Usage rate card identifier

Example: 1
contractOwnerIdsArray of integers(int32)required

The billing entity or entities that will have access to this item. This is a multi-select field. If there is only one existing contractOwnerId, you can replace it with another regardless of currency. However, if there are multiple contractOwnerIds, any new or replacement contractOwnerIds must use the same currency as the existing contractOwnerId(s). Different currencies cannot be mixed

Example: [1]
namestring[ 1 .. 50 ] characters[\w\p{L}\s%£@&#=':;`’,|!_—–\(\)\\/\-\+\.\?\*\...required

Usage rate card name

rateCardTypestring(UsageRateCardType)required

Usage rate card type. Buy = used to price usage purchased from the supplier, Sell = used to price usage sold to customers, Template = is a rate card to which other rate cards can be linked

Default "SELL"
Enum"TEMPLATE""SELL""BUY"
availableFromstring(date)required

Available from date

availableTostring(date)

Available to date

usageProductIdinteger(int64)required

Usage product identifier

Example: 1
supplierIdinteger(int64)

Supplier identifier

Example: 1
decimalPlacesinteger(int32)required

Number of decimal places. In the context of pence this defines the precision to which usage prices will be calculated. For example, a value of 4 would result in prices being calculated to 4 decimal places (1.0045 pence)

Example: 4
priceRoundingStylestring(PriceRoundingStyle)required

Price rounding style. When pricing usage, each call will be rounded to the specified number of decimal places using the method selected here

Default "MATHEMATICAL"
Enum"UP""DOWN""MATHEMATICAL"
defaultMinChargenumberrequired

Default minimum charge. The minimum charge that will be applied. For example, a call calculated to be 4.3 pence would be charged at 5 pence if this value was set to 5 pence. This default value can be overridden at Charge Group level

roundAccessChargeFirstMinuteboolean

Round access charge for first minute. When pricing using access charges round the first minute of the call

Default false
boltOnboolean

Bolt on enabled. A bolt on is a usage rate card that incurs a recurring charge (typically a monthly charge provides access to discounted call rates)

Default false
boltOnTaxBandIdinteger(int64)

Tax band identifier for bolt on charges (required when bolt on enabled)

Example: 1
nominalCodestring[ 1 .. 100 ] characters^[\w\p{L}\s%£@&#=':;,`’|!_—–()/\-+.?*$\[\]€^{...

Nominal code

Example: "SALES-01QTR2"
applyCrossTimeBandChargingboolean

Apply cross time band charging. Where a call crosses multiple time bands this option allows the different portions of the call to be charged at either peak or off-peak rates as required. If this option is not selected then the entire call will be charged using the rate applicable at the start of the call

Default false
defaultQuantityRoundingIncrementinteger(int32)

Default quantity rounding increment. The chargeable quantity (seconds or megabytes) will be rounded up to the nearest multiple of this value. For example, a 61 second call would be rounded up to 120 seconds if this value is set to an increment of 60. This default value can be overridden at Charge Group level

Example: 1
defaultVariableChargeUnitSizeinteger(int32)

Default variable charge unit size. The unit size in which charges will be calculated. For example, if this value is 60 seconds then the charge is pence per minute; if this value is 1024 MB then the charge is pence per gigabyte. This default value can be overridden at Charge Group level

Example: 1
usageRatesArray of objects(UsageRate)
timeBandPlansArray of objects(UsageRateTimeBandPlan)
accessChargesArray of objects(UsageRateAccessCharge)
boltOnChargesArray of objects(UsageRateCardBoltOnCharge)
Response
application/json
{ "id": 1, "contractOwnerIds": [ 1 ], "name": "string", "rateCardType": "TEMPLATE", "availableFrom": "2019-08-24", "availableTo": "2019-08-24", "usageProductId": 1, "supplierId": 1, "decimalPlaces": 4, "priceRoundingStyle": "UP", "defaultMinCharge": 0, "roundAccessChargeFirstMinute": false, "boltOn": false, "boltOnTaxBandId": 1, "nominalCode": "SALES-01QTR2", "applyCrossTimeBandCharging": false, "defaultQuantityRoundingIncrement": 1, "defaultVariableChargeUnitSize": 1, "usageRates": [ {} ], "timeBandPlans": [ {} ], "accessCharges": [ {} ], "boltOnCharges": [ {} ] }

Get a specific usage rate card

Request

Security
bearerAuth
Path
usage_rate_card_idinteger(int64)(IdParam)>= 1required

Usage rate card identifier

Example: 1
Query
fieldsstring(FieldsParam)

Comma-delimited list of the field(s) to return if only a subset is required (other fields will be returned as null for now)

Example: fields=id,name
Headers
summarystring(BooleanFilterParam)

If true, returns a lightweight summary of usage rate card instead of the full object. Use this to reduce payload size and improve performance when only basic information is needed.

Example: true | false
curl -i -X GET \
  'https://rest.elevatebilling.com/v2/usage-rate-cards/1?fields=id%2Cname' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'summary: true | false'

Responses

Usage rate card found

Bodyapplication/json
idinteger(int64)read-only

Usage rate card identifier

Example: 1
contractOwnerIdsArray of integers(int32)required

The billing entity or entities that will have access to this item. This is a multi-select field. If there is only one existing contractOwnerId, you can replace it with another regardless of currency. However, if there are multiple contractOwnerIds, any new or replacement contractOwnerIds must use the same currency as the existing contractOwnerId(s). Different currencies cannot be mixed

Example: [1]
namestring[ 1 .. 50 ] characters[\w\p{L}\s%£@&#=':;`’,|!_—–\(\)\\/\-\+\.\?\*\...required

Usage rate card name

rateCardTypestring(UsageRateCardType)required

Usage rate card type. Buy = used to price usage purchased from the supplier, Sell = used to price usage sold to customers, Template = is a rate card to which other rate cards can be linked

Default "SELL"
Enum"TEMPLATE""SELL""BUY"
availableFromstring(date)required

Available from date

availableTostring(date)

Available to date

usageProductIdinteger(int64)required

Usage product identifier

Example: 1
supplierIdinteger(int64)

Supplier identifier

Example: 1
decimalPlacesinteger(int32)required

Number of decimal places. In the context of pence this defines the precision to which usage prices will be calculated. For example, a value of 4 would result in prices being calculated to 4 decimal places (1.0045 pence)

Example: 4
priceRoundingStylestring(PriceRoundingStyle)required

Price rounding style. When pricing usage, each call will be rounded to the specified number of decimal places using the method selected here

Default "MATHEMATICAL"
Enum"UP""DOWN""MATHEMATICAL"
defaultMinChargenumberrequired

Default minimum charge. The minimum charge that will be applied. For example, a call calculated to be 4.3 pence would be charged at 5 pence if this value was set to 5 pence. This default value can be overridden at Charge Group level

roundAccessChargeFirstMinuteboolean

Round access charge for first minute. When pricing using access charges round the first minute of the call

Default false
boltOnboolean

Bolt on enabled. A bolt on is a usage rate card that incurs a recurring charge (typically a monthly charge provides access to discounted call rates)

Default false
boltOnTaxBandIdinteger(int64)

Tax band identifier for bolt on charges (required when bolt on enabled)

Example: 1
nominalCodestring[ 1 .. 100 ] characters^[\w\p{L}\s%£@&#=':;,`’|!_—–()/\-+.?*$\[\]€^{...

Nominal code

Example: "SALES-01QTR2"
applyCrossTimeBandChargingboolean

Apply cross time band charging. Where a call crosses multiple time bands this option allows the different portions of the call to be charged at either peak or off-peak rates as required. If this option is not selected then the entire call will be charged using the rate applicable at the start of the call

Default false
defaultQuantityRoundingIncrementinteger(int32)

Default quantity rounding increment. The chargeable quantity (seconds or megabytes) will be rounded up to the nearest multiple of this value. For example, a 61 second call would be rounded up to 120 seconds if this value is set to an increment of 60. This default value can be overridden at Charge Group level

Example: 1
defaultVariableChargeUnitSizeinteger(int32)

Default variable charge unit size. The unit size in which charges will be calculated. For example, if this value is 60 seconds then the charge is pence per minute; if this value is 1024 MB then the charge is pence per gigabyte. This default value can be overridden at Charge Group level

Example: 1
usageRatesArray of objects(UsageRate)
timeBandPlansArray of objects(UsageRateTimeBandPlan)
accessChargesArray of objects(UsageRateAccessCharge)
boltOnChargesArray of objects(UsageRateCardBoltOnCharge)
Response
application/json
{ "id": 1, "contractOwnerIds": [ 1 ], "name": "string", "rateCardType": "TEMPLATE", "availableFrom": "2019-08-24", "availableTo": "2019-08-24", "usageProductId": 1, "supplierId": 1, "decimalPlaces": 4, "priceRoundingStyle": "UP", "defaultMinCharge": 0, "roundAccessChargeFirstMinute": false, "boltOn": false, "boltOnTaxBandId": 1, "nominalCode": "SALES-01QTR2", "applyCrossTimeBandCharging": false, "defaultQuantityRoundingIncrement": 1, "defaultVariableChargeUnitSize": 1, "usageRates": [ {} ], "timeBandPlans": [ {} ], "accessCharges": [ {} ], "boltOnCharges": [ {} ] }

Delete a specific usage rate card

Request

Security
bearerAuth
Path
usage_rate_card_idinteger(int64)(IdParam)>= 1required

Usage rate card identifier

Example: 1
curl -i -X DELETE \
  https://rest.elevatebilling.com/v2/usage-rate-cards/1 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Body

Update a usage rate card

Request

Security
bearerAuth
Path
usage_rate_card_idinteger(int64)(IdParam)>= 1required

Usage rate card identifier

Example: 1
Headers
summarystring(BooleanFilterParam)

If true, returns a lightweight summary of usage rate card instead of the full object. Use this to reduce payload size and improve performance when only basic information is needed.

Example: true | false
Bodyapplication/json-patch+jsonrequired

A set of JSONPatch operations to be performed. Note that usage rates can only be added here. To update or delete a rate, use /usage-rates/ PATCH or DELETE method

Array [
opstringrequired

The JSON Patch operation to be performed

Enum"add""remove""replace""move""copy""test"
pathstringrequired

A JSON-Pointer

valueobject

The value to be used within the operations

fromstring

A string containing a JSON Pointer value

]
curl -i -X PATCH \
  https://rest.elevatebilling.com/v2/usage-rate-cards/1 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json-patch+json' \
  -H 'summary: true | false' \
  -d '[
    {
      "op": "replace",
      "path": "/name",
      "value": "My Rate Card"
    }
  ]'

Responses

OK

Bodyapplication/json
idinteger(int64)read-only

Usage rate card identifier

Example: 1
contractOwnerIdsArray of integers(int32)required

The billing entity or entities that will have access to this item. This is a multi-select field. If there is only one existing contractOwnerId, you can replace it with another regardless of currency. However, if there are multiple contractOwnerIds, any new or replacement contractOwnerIds must use the same currency as the existing contractOwnerId(s). Different currencies cannot be mixed

Example: [1]
namestring[ 1 .. 50 ] characters[\w\p{L}\s%£@&#=':;`’,|!_—–\(\)\\/\-\+\.\?\*\...required

Usage rate card name

rateCardTypestring(UsageRateCardType)required

Usage rate card type. Buy = used to price usage purchased from the supplier, Sell = used to price usage sold to customers, Template = is a rate card to which other rate cards can be linked

Default "SELL"
Enum"TEMPLATE""SELL""BUY"
availableFromstring(date)required

Available from date

availableTostring(date)

Available to date

usageProductIdinteger(int64)required

Usage product identifier

Example: 1
supplierIdinteger(int64)

Supplier identifier

Example: 1
decimalPlacesinteger(int32)required

Number of decimal places. In the context of pence this defines the precision to which usage prices will be calculated. For example, a value of 4 would result in prices being calculated to 4 decimal places (1.0045 pence)

Example: 4
priceRoundingStylestring(PriceRoundingStyle)required

Price rounding style. When pricing usage, each call will be rounded to the specified number of decimal places using the method selected here

Default "MATHEMATICAL"
Enum"UP""DOWN""MATHEMATICAL"
defaultMinChargenumberrequired

Default minimum charge. The minimum charge that will be applied. For example, a call calculated to be 4.3 pence would be charged at 5 pence if this value was set to 5 pence. This default value can be overridden at Charge Group level

roundAccessChargeFirstMinuteboolean

Round access charge for first minute. When pricing using access charges round the first minute of the call

Default false
boltOnboolean

Bolt on enabled. A bolt on is a usage rate card that incurs a recurring charge (typically a monthly charge provides access to discounted call rates)

Default false
boltOnTaxBandIdinteger(int64)

Tax band identifier for bolt on charges (required when bolt on enabled)

Example: 1
nominalCodestring[ 1 .. 100 ] characters^[\w\p{L}\s%£@&#=':;,`’|!_—–()/\-+.?*$\[\]€^{...

Nominal code

Example: "SALES-01QTR2"
applyCrossTimeBandChargingboolean

Apply cross time band charging. Where a call crosses multiple time bands this option allows the different portions of the call to be charged at either peak or off-peak rates as required. If this option is not selected then the entire call will be charged using the rate applicable at the start of the call

Default false
defaultQuantityRoundingIncrementinteger(int32)

Default quantity rounding increment. The chargeable quantity (seconds or megabytes) will be rounded up to the nearest multiple of this value. For example, a 61 second call would be rounded up to 120 seconds if this value is set to an increment of 60. This default value can be overridden at Charge Group level

Example: 1
defaultVariableChargeUnitSizeinteger(int32)

Default variable charge unit size. The unit size in which charges will be calculated. For example, if this value is 60 seconds then the charge is pence per minute; if this value is 1024 MB then the charge is pence per gigabyte. This default value can be overridden at Charge Group level

Example: 1
usageRatesArray of objects(UsageRate)
timeBandPlansArray of objects(UsageRateTimeBandPlan)
accessChargesArray of objects(UsageRateAccessCharge)
boltOnChargesArray of objects(UsageRateCardBoltOnCharge)
Response
application/json
{ "id": 1, "contractOwnerIds": [ 1 ], "name": "string", "rateCardType": "TEMPLATE", "availableFrom": "2019-08-24", "availableTo": "2019-08-24", "usageProductId": 1, "supplierId": 1, "decimalPlaces": 4, "priceRoundingStyle": "UP", "defaultMinCharge": 0, "roundAccessChargeFirstMinute": false, "boltOn": false, "boltOnTaxBandId": 1, "nominalCode": "SALES-01QTR2", "applyCrossTimeBandCharging": false, "defaultQuantityRoundingIncrement": 1, "defaultVariableChargeUnitSize": 1, "usageRates": [ {} ], "timeBandPlans": [ {} ], "accessCharges": [ {} ], "boltOnCharges": [ {} ] }

usage-rates

Usage rates represent the pricing rates for a usage product

Operations

rental-rate-cards

Rental rates card represent the pricing structure for rental products that can be sold to Customers

Operations

rental-rates

Rental rates represent the pricing rates for a rental product

Operations

inclusive-usage-plans

Inclusive usage plans represent an inclusive bundle that can be sold to Customers

Operations

inclusive-usage-balances

Inclusive usage balances represent the current balance of an inclusive usage plan for a Customer, Site or Inventory

Operations