Skip to Content
Docs
API referenceManagement API

Billing packages

GET /v1/billing/packages

GET
/billing/packages

billing.catalog.v1.PackageService/ListPackages (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

status?string

status

public?boolean

public

Response Body

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

billing.catalog.v1.PackageService/CreatePackage (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 Package 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/packages'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/packages/{package}

billing.catalog.v1.PackageService/GetPackage (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

package*string

The package's pkg_ id or its key (api-route-review D55)

Query Parameters

version?integer

version

Response Body

A Package 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/packages/string'
Example Response
{  "id": "string",  "object": "string"}
PATCH
/billing/packages/{package}

billing.catalog.v1.PackageService/UpdatePackage (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

package*string

The package's pkg_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Package 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/packages/string'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/packages/{package}/archive

billing.catalog.v1.PackageService/ArchivePackage (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

package*string

The package's pkg_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Package 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/packages/string/archive'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/packages/{package}/discard-draft

billing.catalog.v1.PackageService/DiscardPackageDraft (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

package*string

The package's pkg_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Package 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/packages/string/discard-draft'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/packages/{package}/publish

billing.catalog.v1.PackageService/PublishPackage (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

package*string

The package's pkg_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Package 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/packages/string/publish'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/packages/{package}/unarchive

billing.catalog.v1.PackageService/UnarchivePackage (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

package*string

The package's pkg_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Package 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/packages/string/unarchive'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/packages/{package}/versions

billing.catalog.v1.PackageService/ListPackageVersions (34-billing-catalog.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

package*string

The package's pkg_ id or its key (api-route-review D55)

Query Parameters

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

Response Body

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