Rate Cards

Update a rate card.

patch/v2/rate-cards/{rate_card_id}

Path parameters

rate_card_idstring required

Request body

namestring
descriptionstring nullable
currency_codestring
{"stackTrail":"components:schemas:Properties","oasType":"schema","type":"unknown","description":"Arbitrary JSON object or value. If omitted on write endpoints, the service stores an empty object."}

Response

Success.

idstring required

LedgerUp resource identifier.

namestring required
descriptionstring nullable required
currency_codestring required
{"stackTrail":"components:schemas:Properties","oasType":"schema","type":"unknown","description":"Arbitrary JSON object or value. If omitted on write endpoints, the service stores an empty object."}
created_atinteger required

Unix timestamp in seconds.

updated_atinteger required

Unix timestamp in seconds.

archived_atinteger required

Unix timestamp in seconds.

Example response

{
  "currency_code": "USD",
  "created_at": 1767225600,
  "updated_at": 1767225600,
  "archived_at": 1767225600,
  "rates": [
    {
      "source": "metric_units",
      "billing_mode": "last_metric_reported",
      "aggregation": "sum",
      "source_unit": "characters",
      "billing_unit": "million_characters",
      "conversion_mode": "scale",
      "invoice_group_key": "usage_credits",
      "tiers": [
        {
          "up_to": "1000000",
          "unit_amount_minor_units": 1000
        }
      ],
      "created_at": 1767225600,
      "updated_at": 1767225600,
      "archived_at": 1767225600
    }
  ]
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.