Skip to navigation

Archive a meter

Draft scaffold — not implemented or available in the API.

Archives the meter. It stops measuring and stays readable, because invoices reference it. Fails while an activating, active or paused order uses the meter through a price or rate card. {meter} takes the meter’s mtr_ ID or its key.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

meterstringRequired1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.

Headers

Paid-BetaenumRequired

This endpoint is in the meters=v1 beta. Send this header to use it.

Allowed values:

Response

200
idstring
The Meter ID.
objectenum

The type of object. Always meter.

Allowed values:
createdAtdatetime
When the object was created.
archivedAtdatetime or null
When this resource was archived, or null.
descriptionstring or null
What the resource represents.
eventNamePatternstring or null

Event-name regular expression.

eventNameslist of strings or null
Exact matching event names.
filterslist of objects
Conditions every event must match.
healthobject
MeterHealth.
keystring1-255 characters
Your stable identifier, 1 to 255 characters.
livemodeboolean

true for an object on a live account, false on a test account.

measureobject
The immutable billing definition.
metadatamap from strings to strings

String key-value pairs of your own, up to 500 characters per value. Always updatable.

namestring1-255 characters
The resource name.
updatedAtdatetime
When the object was last changed.
validationModeenumOptionalDefaults to lenient
Acceptance behavior for invalid values.
Allowed values:

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error