Skip to Content
Docs
API referenceManagement API

Billing grants

GET
/billing/contracts/{contract_id}/allowance-schedules

billing.ledger.v1.GrantService/ListAllowanceSchedules (36-credits-ledger.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Query Parameters

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

Response Body

A list of AllowanceSchedule 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/contracts/string/allowance-schedules'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

GET /v1/billing/grants

GET
/billing/grants

billing.ledger.v1.GrantService/ListGrants (36-credits-ledger.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

customer_id?string

A cust_ id

contract_id?string

A ctr_ id

status?string

status

kind?string

kind

unit?string

unit

Response Body

A list of Grant 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/grants'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

POST /v1/billing/grants

POST
/billing/grants

billing.ledger.v1.GrantService/CreateGrant (36-credits-ledger.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Grant 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/grants'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/grants/{grant_id}

billing.ledger.v1.GrantService/GetGrant (36-credits-ledger.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

grant_id*string

id

Response Body

A Grant 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/grants/string'
Example Response
{  "id": "string",  "object": "string"}
PATCH
/billing/grants/{grant_id}

billing.ledger.v1.GrantService/UpdateGrant (36-credits-ledger.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

grant_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Grant 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 PATCH 'https://api.us.pontive.com/v1/billing/grants/string'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/grants/{grant_id}/void

billing.ledger.v1.GrantService/VoidGrant (36-credits-ledger.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

grant_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

The VoidGrantResponse fields

application/json
  1. response
Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/grants/string/void'
Example Response
{}