Skip to content

Stripe: Billing schemas

27 Stripe schemas with complete fields and constraints.

← Billing operations · All schemas

Create a billing alert — response body

FieldTypePresenceDescription and constraints
$objectRootA billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests.
alert_typestringRequired within parentDefines the type of the alert.
Known values: usage_threshold
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: billing.alert
statusJSONOptional
status (anyOf 1)stringAlternativeStatus of the alert. This can be active, inactive or archived.
Known values: active, archived, inactive
status (anyOf 2)nullAlternative
titlestringRequired within parentTitle of the alert.
Maximum length: 5000
usage_thresholdJSONOptional
usage_threshold (anyOf 1)JSONAlternativeEncapsulates configuration of the alert to monitor usage on a specific [Billing Meter](https://docs.stripe.com/api/billing/meter).
usage_threshold (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a billing alert — response body — usage_threshold / value / recurrence: one time
usage_threshold (anyOf 2)nullAlternative

Referenced models: Create a billing alert — response body — usage_threshold / value / recurrence: one time

Create a billing alert — response body — usage_threshold / value / recurrence: one time

FieldTypePresenceDescription and constraints
$objectRootThe usage threshold alert configuration enables setting up alerts for when a certain usage threshold on a specific meter is crossed.
filtersJSONOptional
filters (anyOf 1)arrayAlternativeThe filters allow limiting the scope of this usage alert. You can only specify up to one filter at this time.
filters (anyOf 1)[]ModelEach itemExpand Create a billing alert — response body — usage_threshold / value / recurrence: one time filters array item
filters (anyOf 2)nullAlternative
gteJSONRequired within parent
gte (anyOf 1)integerAlternativeThe value at which this alert will trigger.
gte (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
meterJSONRequired within parentThe [Billing Meter](/api/billing/meter) ID whose usage is monitored.
meter (anyOf 1)stringAlternativeMaximum length: 5000
meter (anyOf 2)ModelAlternativeExpand Create a billing meter — response body
recurrencestringRequired within parentDefines how the alert will behave.
Known values: one_time

Referenced models: Create a billing meter — response body, Create a billing alert — response body — usage_threshold / value / recurrence: one time filters array item

Create a billing alert — response body — usage_threshold / value / recurrence: one time filters array item

FieldTypePresenceDescription and constraints
$objectRoot
customerJSONOptional
customer (anyOf 1)JSONAlternativeLimit the scope of the alert to this customer ID
customer (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
customer (anyOf 1) (anyOf 2)ModelAlternativeExpand Create a customer — response body
customer (anyOf 2)nullAlternative
typestringRequired within parentKnown values: customer

Referenced models: Create a customer — response body

Create a billing meter event adjustment — response body

FieldTypePresenceDescription and constraints
$objectRootA billing meter event adjustment is a resource that allows you to cancel a meter event. For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer.
cancelJSONOptional
cancel (anyOf 1)JSONAlternativeSpecifies which event to cancel.
cancel (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a billing meter event adjustment — response body — cancel Specifies which event to cancel identifier
cancel (anyOf 2)nullAlternative
event_namestringRequired within parentThe name of the meter event. Corresponds with the `event_name` field on a meter.
Maximum length: 100
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: billing.meter_event_adjustment
statusstringRequired within parentThe meter event adjustment's status.
Known values: complete, pending
typestringRequired within parentSpecifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
Known values: cancel

Referenced models: Create a billing meter event adjustment — response body — cancel Specifies which event to cancel identifier

Create a billing meter event adjustment — response body — cancel Specifies which event to cancel identifier

FieldTypePresenceDescription and constraints
$objectRoot
identifierJSONOptional
identifier (anyOf 1)stringAlternativeUnique identifier for the event.
Maximum length: 100
identifier (anyOf 2)nullAlternative

Create a billing meter event — response body

FieldTypePresenceDescription and constraints
$objectRootMeter events represent actions that customers take in your system. You can use meter events to bill a customer based on their usage. Meter events are associated with billing meters, which define both the contents of the event’s payload and how to aggregate those events.
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
event_namestringRequired within parentThe name of the meter event. Corresponds with the `event_name` field on a meter.
Maximum length: 100
identifierstringRequired within parentA unique identifier for the event.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: billing.meter_event
payloadobjectRequired within parentThe payload of the event. This contains the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/meters/configure#meter-configuration-attributes).
Additional keys: see wildcard field
payload.*stringAdditional keysMaximum length: 100
timestampJSONRequired within parent
timestamp (anyOf 1)integerAlternativeThe timestamp passed in when creating the event. Measured in seconds since the Unix epoch.
Format: unix-time
timestamp (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Create a billing meter — response body

FieldTypePresenceDescription and constraints
$objectRootMeters specify how to aggregate meter events over a billing period. Meter events represent the actions that customers take in your system. Meters attach to prices and form the basis of the bill.

Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based)
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
customer_mappingModelRequired within parentExpand Create a billing meter — response body — customer mapping
default_aggregationModelRequired within parentExpand Create a billing meter — response body — default aggregation
display_namestringRequired within parentThe meter's name.
Maximum length: 5000
event_namestringRequired within parentThe name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
Maximum length: 5000
event_time_windowJSONOptional
event_time_window (anyOf 1)stringAlternativeThe time window which meter events have been pre-aggregated for, if any.
Known values: day, hour
event_time_window (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: billing.meter
statusstringRequired within parentThe meter's status.
Known values: active, inactive
status_transitionsModelRequired within parentExpand Create a billing meter — response body — status transitions
updatedJSONRequired within parent
updated (anyOf 1)integerAlternativeTime at which the object was last updated. Measured in seconds since the Unix epoch.
Format: unix-time
updated (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
value_settingsModelRequired within parentExpand Create a billing meter — response body — value settings

Referenced models: Create a billing meter — response body — default aggregation, Create a billing meter — response body — status transitions, Create a billing meter — response body — value settings, Create a billing meter — response body — customer mapping

Create a billing meter — response body — customer mapping

FieldTypePresenceDescription and constraints
$objectRoot
event_payload_keystringRequired within parentThe key in the meter event payload to use for mapping the event to a customer.
Maximum length: 5000
typestringRequired within parentThe method for mapping a meter event to a customer.
Known values: by_id

Create a billing meter — response body — default aggregation

FieldTypePresenceDescription and constraints
$objectRoot
formulastringRequired within parentSpecifies how events are aggregated.
Known values: count, last, sum

Create a billing meter — response body — status transitions

FieldTypePresenceDescription and constraints
$objectRoot
deactivated_atJSONOptional
deactivated_at (anyOf 1)JSONAlternative
deactivated_at (anyOf 1) (anyOf 1)integerAlternativeThe time the meter was deactivated, if any. Measured in seconds since Unix epoch.
Format: unix-time
deactivated_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
deactivated_at (anyOf 2)nullAlternative

Create a billing meter — response body — value settings

FieldTypePresenceDescription and constraints
$objectRoot
event_payload_keystringRequired within parentThe key in the meter event payload to use as the value for this meter.
Maximum length: 5000

Create a feedback option — response body

FieldTypePresenceDescription and constraints
$objectRootA feedback option is a reason you can present to customers when they cancel a
subscription through the customer portal. Configure the set of options a customer
can choose from on a [portal configuration](/api/customer_portal/configuration).

Related guide: [Customer management](/customer-management)
descriptionstringRequired within parentAn arbitrary string attached to the object. Often useful for displaying to users.
Maximum length: 5000
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: billing.feedback_option
statusstringRequired within parentThe feedback option's status.
Known values: active, inactive
status_transitionsModelRequired within parentExpand Create a feedback option — response body — status transitions

Referenced models: Create a feedback option — response body — status transitions

Create a feedback option — response body — status transitions

FieldTypePresenceDescription and constraints
$objectRoot
deactivated_atJSONOptional
deactivated_at (anyOf 1)JSONAlternative
deactivated_at (anyOf 1) (anyOf 1)integerAlternativeThe time the feedback option was deactivated, if any. Measured in seconds since Unix epoch.
Format: unix-time
deactivated_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
deactivated_at (anyOf 2)nullAlternative

List billing meter event summaries — response body — data item

FieldTypePresenceDescription and constraints
$objectRootA billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much
usage was accrued by a customer for that period.

Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage.
aggregated_valueJSONRequired within parent
aggregated_value (anyOf 1)numberAlternativeAggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`.
aggregated_value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
end_timeJSONRequired within parent
end_time (anyOf 1)integerAlternativeEnd timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
Format: unix-time
end_time (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
meterstringRequired within parentThe meter associated with this event summary.
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: billing.meter_event_summary
start_timeJSONRequired within parent
start_time (anyOf 1)integerAlternativeStart timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
Format: unix-time
start_time (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Retrieve a credit balance transaction — response body

FieldTypePresenceDescription and constraints
$objectRootA credit balance transaction is a resource representing a transaction (either a credit or a debit) against an existing credit grant.
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
creditJSONOptional
credit (anyOf 1)JSONAlternativeCredit details for this credit balance transaction. Only present if type is `credit`.
credit (anyOf 1) (anyOf 1)ModelAlternativeExpand Retrieve a credit balance transaction — response body — credit / value / type: credits application invoice voided, credits granted
credit (anyOf 2)nullAlternative
credit_grantJSONRequired within parentThe credit grant associated with this credit balance transaction.
credit_grant (anyOf 1)stringAlternativeMaximum length: 5000
credit_grant (anyOf 2)ModelAlternativeExpand Void a credit grant — response body
debitJSONOptional
debit (anyOf 1)JSONAlternativeDebit details for this credit balance transaction. Only present if type is `debit`.
debit (anyOf 1) (anyOf 1)ModelAlternativeExpand Retrieve a credit balance transaction — response body — debit / value / type: credits applied, credits expired, credits voided
debit (anyOf 2)nullAlternative
effective_atJSONRequired within parent
effective_at (anyOf 1)integerAlternativeThe effective time of this credit balance transaction.
Format: unix-time
effective_at (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: billing.credit_balance_transaction
test_clockJSONOptional
test_clock (anyOf 1)JSONAlternativeID of the test clock this credit balance transaction belongs to.
test_clock (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
test_clock (anyOf 1) (anyOf 2)ModelAlternativeExpand Create a test clock — response body
test_clock (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe type of credit balance transaction (credit or debit).
Known values: credit, debit
type (anyOf 2)nullAlternative

Referenced models: Void a credit grant — response body, Retrieve a credit balance transaction — response body — credit / value / type: credits application invoice voided, credits granted, Retrieve a credit balance transaction — response body — debit / value / type: credits applied, credits expired, credits voided, Create a test clock — response body

Retrieve a credit balance transaction — response body — credit / value / type: credits application invoice voided, credits granted

FieldTypePresenceDescription and constraints
$objectRoot
amountModelRequired within parentExpand Void a credit grant — response body — amount
credits_application_invoice_voidedJSONOptional
credits_application_invoice_voided (anyOf 1)JSONAlternativeDetails of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`.
credits_application_invoice_voided (anyOf 1) (anyOf 1)ModelAlternativeExpand Retrieve a credit balance transaction — response body — credit / value / type: credits application invoice voided, credits granted credits application invoice voided value invoice, invoice line item
credits_application_invoice_voided (anyOf 2)nullAlternative
typestringRequired within parentThe type of credit transaction.
Known values: credits_application_invoice_voided, credits_granted

Referenced models: Void a credit grant — response body — amount, Retrieve a credit balance transaction — response body — credit / value / type: credits application invoice voided, credits granted credits application invoice voided value invoice, invoice line item

Retrieve a credit balance transaction — response body — credit / value / type: credits application invoice voided, credits granted credits application invoice voided value invoice, invoice line item

FieldTypePresenceDescription and constraints
$objectRoot
invoiceJSONRequired within parentThe invoice to which the reinstated billing credits were originally applied.
invoice (anyOf 1)stringAlternativeMaximum length: 5000
invoice (anyOf 2)ModelAlternativeExpand Pay an invoice — response body
invoice_line_itemstringRequired within parentThe invoice line item to which the reinstated billing credits were originally applied.
Maximum length: 5000

Referenced models: Pay an invoice — response body

Retrieve a credit balance transaction — response body — debit / value / type: credits applied, credits expired, credits voided

FieldTypePresenceDescription and constraints
$objectRoot
amountModelRequired within parentExpand Void a credit grant — response body — amount
credits_appliedJSONOptional
credits_applied (anyOf 1)JSONAlternativeDetails of how the billing credits were applied to an invoice. Only present if `type` is `credits_applied`.
credits_applied (anyOf 1) (anyOf 1)ModelAlternativeExpand Retrieve a credit balance transaction — response body — debit / value / type: credits applied, credits expired, credits voided credits applied value invoice, invoice line item
credits_applied (anyOf 2)nullAlternative
typestringRequired within parentThe type of debit transaction.
Known values: credits_applied, credits_expired, credits_voided

Referenced models: Void a credit grant — response body — amount, Retrieve a credit balance transaction — response body — debit / value / type: credits applied, credits expired, credits voided credits applied value invoice, invoice line item

Retrieve a credit balance transaction — response body — debit / value / type: credits applied, credits expired, credits voided credits applied value invoice, invoice line item

FieldTypePresenceDescription and constraints
$objectRoot
invoiceJSONRequired within parentThe invoice to which the billing credits were applied.
invoice (anyOf 1)stringAlternativeMaximum length: 5000
invoice (anyOf 2)ModelAlternativeExpand Pay an invoice — response body
invoice_line_itemstringRequired within parentThe invoice line item to which the billing credits were applied.
Maximum length: 5000

Referenced models: Pay an invoice — response body

Retrieve the credit balance summary for a customer — response body

FieldTypePresenceDescription and constraints
$objectRootIndicates the billing credit balance for billing credits granted to a customer.
balancesarrayRequired within parentThe billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry.
balances[]ModelEach itemExpand Retrieve the credit balance summary for a customer — response body — balances item
customerJSONRequired within parentThe customer the balance is for.
customer (anyOf 1)stringAlternativeMaximum length: 5000
customer (anyOf 2)ModelAlternativeExpand Create a customer — response body
customer (anyOf 3)ModelAlternativeExpand Delete a customer — response body
customer_accountJSONOptional
customer_account (anyOf 1)stringAlternativeThe account the balance is for.
Maximum length: 5000
customer_account (anyOf 2)nullAlternative
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: billing.credit_balance_summary

Referenced models: Retrieve the credit balance summary for a customer — response body — balances item, Create a customer — response body, Delete a customer — response body

Retrieve the credit balance summary for a customer — response body — balances item

FieldTypePresenceDescription and constraints
$objectRoot
available_balanceModelRequired within parentExpand Void a credit grant — response body — amount
ledger_balanceModelRequired within parentExpand Void a credit grant — response body — amount

Referenced models: Void a credit grant — response body — amount

Void a credit grant — response body

FieldTypePresenceDescription and constraints
$objectRootA credit grant is an API resource that documents the allocation of some billing credits to a customer.

Related guide: [Billing credits](https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits)
amountModelRequired within parentExpand Void a credit grant — response body — amount
applicability_configModelRequired within parentExpand Void a credit grant — response body — applicability config
categorystringRequired within parentThe category of this credit grant. This is for tracking purposes and isn't displayed to the customer.
Known values: paid, promotional
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
customerJSONRequired within parentID of the customer receiving the billing credits.
customer (anyOf 1)stringAlternativeMaximum length: 5000
customer (anyOf 2)ModelAlternativeExpand Create a customer — response body
customer (anyOf 3)ModelAlternativeExpand Delete a customer — response body
customer_accountJSONOptional
customer_account (anyOf 1)stringAlternativeID of the account representing the customer receiving the billing credits
Maximum length: 5000
customer_account (anyOf 2)nullAlternative
effective_atJSONOptional
effective_at (anyOf 1)JSONAlternative
effective_at (anyOf 1) (anyOf 1)integerAlternativeThe time when the billing credits become effective-when they're eligible for use.
Format: unix-time
effective_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
effective_at (anyOf 2)nullAlternative
expires_atJSONOptional
expires_at (anyOf 1)JSONAlternative
expires_at (anyOf 1) (anyOf 1)integerAlternativeThe time when the billing credits expire. If not present, the billing credits don't expire.
Format: unix-time
expires_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
expires_at (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
metadataobjectRequired within parentSet of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Additional keys: see wildcard field
metadata.*stringAdditional keysMaximum length: 500
nameJSONOptional
name (anyOf 1)stringAlternativeA descriptive name shown in dashboard.
Maximum length: 5000
name (anyOf 2)nullAlternative
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: billing.credit_grant
priorityJSONOptional
priority (anyOf 1)JSONAlternative
priority (anyOf 1) (anyOf 1)integerAlternativeThe priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
priority (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
priority (anyOf 2)nullAlternative
test_clockJSONOptional
test_clock (anyOf 1)JSONAlternativeID of the test clock this credit grant belongs to.
test_clock (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
test_clock (anyOf 1) (anyOf 2)ModelAlternativeExpand Create a test clock — response body
test_clock (anyOf 2)nullAlternative
updatedJSONRequired within parent
updated (anyOf 1)integerAlternativeTime at which the object was last updated. Measured in seconds since the Unix epoch.
Format: unix-time
updated (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
voided_atJSONOptional
voided_at (anyOf 1)JSONAlternative
voided_at (anyOf 1) (anyOf 1)integerAlternativeThe time when this credit grant was voided. If not present, the credit grant hasn't been voided.
Format: unix-time
voided_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
voided_at (anyOf 2)nullAlternative

Referenced models: Void a credit grant — response body — amount, Void a credit grant — response body — applicability config, Create a customer — response body, Delete a customer — response body, Create a test clock — response body

Void a credit grant — response body — amount

FieldTypePresenceDescription and constraints
$objectRoot
monetaryJSONOptional
monetary (anyOf 1)JSONAlternativeThe monetary amount.
monetary (anyOf 1) (anyOf 1)ModelAlternativeExpand Void a credit grant — response body — amount monetary The monetary amount currency, value
monetary (anyOf 2)nullAlternative
typestringRequired within parentThe type of this amount. We currently only support `monetary` billing credits.
Known values: monetary

Referenced models: Void a credit grant — response body — amount monetary The monetary amount currency, value

Void a credit grant — response body — amount monetary The monetary amount currency, value

FieldTypePresenceDescription and constraints
$objectRoot
currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Maximum length: 5000
valueJSONRequired within parent
value (anyOf 1)integerAlternativeA positive integer representing the amount.
value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Void a credit grant — response body — applicability config

FieldTypePresenceDescription and constraints
$objectRoot
scopeModelRequired within parentExpand Void a credit grant — response body — applicability config scope

Referenced models: Void a credit grant — response body — applicability config scope

Void a credit grant — response body — applicability config scope

FieldTypePresenceDescription and constraints
$objectRoot
price_typestringOptionalThe price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.
Known values: metered
pricesarrayOptionalThe prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.
prices[]ModelEach itemExpand Void a credit grant — response body — applicability config scope prices item

Referenced models: Void a credit grant — response body — applicability config scope prices item

Void a credit grant — response body — applicability config scope prices item

FieldTypePresenceDescription and constraints
$objectRoot
idJSONOptional
id (anyOf 1)stringAlternativeUnique identifier for the object.
Maximum length: 5000
id (anyOf 2)nullAlternative

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.