Saltar al contenido principal
GET
/
meters
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const meter of client.meters.list()) {
  console.log(meter.id);
}
{
  "items": [
    {
      "aggregation": {
        "type": "count",
        "key": "<string>"
      },
      "business_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "event_name": "<string>",
      "id": "<string>",
      "measurement_unit": "<string>",
      "name": "<string>",
      "updated_at": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "filter": "<unknown>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

page_size
integer<int32>

Page size default is 10 max is 100

Rango requerido: x >= 0
page_number
integer<int32>

Page number default is 0

Rango requerido: x >= 0
archived
boolean

List archived meters

Response

Meters List

items
object[]
required