Skip to Content
Docs
API referenceManagement API

Billing time machines

GET
/billing/time-machines

billing.timemachine.v1.TimeMachineService/ListTimeMachines (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

Response Body

A list of TimeMachine objects with pagination

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/time-machines'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/billing/time-machines

billing.timemachine.v1.TimeMachineService/CreateTimeMachine (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A TimeMachine object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/time-machines'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/time-machines/{time_machine_id}

billing.timemachine.v1.TimeMachineService/GetTimeMachine (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

time_machine_id*string

id

Response Body

A TimeMachine object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/time-machines/string'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/time-machines/{time_machine_id}/advance

billing.timemachine.v1.TimeMachineService/AdvanceTimeMachine (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

time_machine_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A TimeMachine object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/time-machines/string/advance'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/time-machines/{time_machine_id}/customers

billing.timemachine.v1.TimeMachineService/AddTimeMachineCustomer (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

time_machine_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A TimeMachine object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/time-machines/string/customers'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/time-machines/{time_machine_id}/end

billing.timemachine.v1.TimeMachineService/EndTimeMachine (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

time_machine_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A TimeMachine object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/time-machines/string/end'
Example Response
{  "id": "string",  "object": "string"}