Skip to main content
PATCH
Update a charge

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-admin-api-key
string
required

The API key to access the admin API

Path Parameters

id
string
required

Body

application/json
name
string

The name of the charge

Example:

"Extra Storage"

code
string

Unique code identifier for the charge

Example:

"extra_storage"

description
string

Description of the charge

Example:

"Additional storage space for your account"

amount
number

The price of the charge

Required range: x >= 0
Example:

1000

currency
string

The currency for the charge

Example:

"USD"

entitlementCode
string

The entitlement code this charge is associated with

Example:

"EXTRA_STORAGE_ENTITLEMENT"

billableMetricOverrides
object

Optional overrides for billable metric configuration

Example:

Response

Charge updated successfully