Skip to main content
POST
/
billing
/
ratecard
cURL
curl --request POST \
  --url https://api.valyx.com/billing/ratecard \
  --header 'Content-Type: application/json' \
  --header 'X-Valyx-Signature: <x-valyx-signature>' \
  --data '
{
  "name": "<string>",
  "feeComponentId": "<string>",
  "description": "<unknown>",
  "currency": "INR",
  "currencyId": "<string>",
  "tags": {},
  "ratecardDescription": "<string>",
  "contractId": "<string>",
  "isDefault": false,
  "isTierSplitEnabled": false,
  "startDate": "2023-12-25",
  "endDate": "2023-12-25",
  "fallBackRatecardId": "<string>"
}
'
{
  "error": "<string>",
  "message": "<string>",
  "data": {
    "id": "<string>"
  }
}

Rate Card Description

  • Billing Scheme (Required)- defines type of the rate card being used. Should be passed as FIXED_RATE for flat fee rate card.
  • Fixed Price(Required) - Fixed price that is to be charged irrespective of usage
{
	"billingScheme": "FIXED_RATE",
	"fixedPrice": 100
}

Headers

X-Valyx-Signature
string
required

Auth key to authenticate the request

Body

application/json
name
string
required

The name of the rate card.

feeComponentId
string
required

Identifier of the fee component associated with this rate card.

description
any

Pricing strategy details for the rate card, including billing scheme, tiers, and prorated settings.

currency
string

Currency used for this rate card. Must be a valid ISO 4217 currency code. See: https://www.iso.org/iso-4217-currency-codes.html

Example:

"INR"

currencyId
string

Optional currency identifier if multiple currencies are supported.

tags
object

Custom key-value tags for categorizing or labeling the rate card. Multiple key-value pairs can be added dynamically.

ratecardDescription
string

Detailed description of the rate card, visible to users. See: https://docs.valyx.com/api-reference/endpoint/ratecard#rate-card-description

contractId
string

Optional associated contract ID for this rate card.

isDefault
boolean
default:false

Indicates whether this rate card is the default for the company.

isTierSplitEnabled
boolean
default:false

Indicates if tier-wise split pricing is enabled. Only valid for graduated billing schemes.

startDate
string<date>

Optional start date of the rate card.

endDate
string<date>

Optional end date of the rate card.

fallBackRatecardId
string

Required if the rate card has start or end dates; used as fallback for timed rate cards.

Response

200 - application/json

Success

error
string

Error message if the operation failed. Null if the operation was successful.

message
string

Informational message about the result of the operation.

data
object

Data object containing the result of the operation.