Skip to Content
Docs
API referenceManagement API

Billing pricing units

GET
/billing/pricing-units

billing.catalog.v1.PricingUnitService/ListPricingUnits (34-billing-catalog.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 PricingUnit 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/pricing-units'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/billing/pricing-units

billing.catalog.v1.PricingUnitService/CreatePricingUnit (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A PricingUnit 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/pricing-units'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/pricing-units/{pricing_unit}

billing.catalog.v1.PricingUnitService/GetPricingUnit (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

pricing_unit*string

The pricing unit's pu_ id or its key (api-route-review D55)

Response Body

A PricingUnit 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/pricing-units/string'
Example Response
{  "id": "string",  "object": "string"}
PATCH
/billing/pricing-units/{pricing_unit}

billing.catalog.v1.PricingUnitService/UpdatePricingUnit (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

pricing_unit*string

The pricing unit's pu_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A PricingUnit 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/pricing-units/string'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/pricing-units/{pricing_unit}/archive

billing.catalog.v1.PricingUnitService/ArchivePricingUnit (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

pricing_unit*string

The pricing unit's pu_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A PricingUnit 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/pricing-units/string/archive'
Example Response
{  "id": "string",  "object": "string"}