Skip to main content
POST
/
billing
/
contract
/
feeComponent
/
ratecard
/
{contract_id}
cURL
curl --request POST \
  --url https://api.valyx.com/billing/contract/feeComponent/ratecard/{contract_id} \
  --header 'Content-Type: application/json' \
  --header 'X-Valyx-Signature: <x-valyx-signature>' \
  --data '
{
  "feeComponentId": "<string>",
  "ratecardRelations": [
    {
      "ratecardId": "<string>"
    }
  ]
}
'
{
  "error": "<string>",
  "message": "<string>",
  "data": {
    "totalDocs": 123,
    "docs": [
      {
        "id": {},
        "customerId": {},
        "contractNumber": {},
        "contractTitle": {},
        "contractPeriod": {},
        "renewalPeriod": {},
        "noteContract": {},
        "billingFrequency": {},
        "usageBillingCycle": {},
        "estimateCycle": {},
        "billingTime": {},
        "startDate": {},
        "virtualStartDate": {},
        "endDate": {},
        "nextBillingDate": {},
        "billingDiscounts": {},
        "isPreusage": {},
        "billingReportLimit": {},
        "contractLimit": {},
        "creditTermId": {},
        "poNumber": {},
        "placeOfSupply": {},
        "billingAddress": {},
        "shippingAddress": {},
        "totalInvoicedAmount": {},
        "noteInvoice": {},
        "terms": {},
        "advanceConfig": {},
        "invoiceSplitConfig": {},
        "gstin": {},
        "companyGstin": {},
        "currency": {},
        "currencyId": {},
        "companyId": {},
        "createdBy": {},
        "updatedBy": {},
        "status": {},
        "autoRenew": {}
      }
    ],
    "hasNext": true,
    "hasPrev": true,
    "pageNumber": 123,
    "pageSize": 123,
    "totalPages": 123,
    "prevPageNumber": 123,
    "nextPageNumber": 123
  }
}

Headers

X-Fields
string<mask>

An optional fields mask

X-Valyx-Signature
string
required

Auth key to authenticate the request

Path Parameters

contract_id
string
required

Body

application/json
feeComponentId
string
required

Fee component this bulk upsertion applies to

ratecardRelations
object[]
required

List of ratecards to associate with the fee component

Response

200 - application/json

Success

error
string
message
string
data
object