Skip to Content
Docs
API referenceManagement API

Billing contracts

GET
/billing/contracts

billing.contract.v1.ContractService/ListContracts (35-contracts.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

status?string

status

package?string

A package's pkg_ id or its key (api-route-review D29, D55)

package_version?integer

package_version

Response Body

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

billing.contract.v1.ContractService/CreateContract (35-contracts.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Contract 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/contracts'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/contracts/preview

billing.contract.v1.ContractService/PreviewContract (35-contracts.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

The PreviewContractResponse fields

application/json
  1. response
Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/contracts/preview'
Example Response
{}
GET
/billing/contracts/{contract_id}

billing.contract.v1.ContractService/GetContract (35-contracts.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Query Parameters

at?string

RFC 3339 time

Response Body

A Contract 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/contracts/string'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/contracts/{contract_id}/cancel

billing.contract.v1.ContractService/CancelContract (35-contracts.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Contract 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/contracts/string/cancel'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/contracts/{contract_id}/change-package

billing.contract.v1.ContractService/ChangeContractPackage (35-contracts.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Contract 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/contracts/string/change-package'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/contracts/{contract_id}/edits

billing.contract.v1.ContractService/ListContractEdits (35-contracts.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 Edit 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/edits'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/billing/contracts/{contract_id}/edits

billing.contract.v1.ContractService/CreateContractEdit (35-contracts.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Edit 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/contracts/string/edits'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/contracts/{contract_id}/edits/preview

billing.contract.v1.ContractService/PreviewContractEdit (35-contracts.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

The PreviewContractEditResponse fields

application/json
  1. response
Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/contracts/string/edits/preview'
Example Response
{}
DELETE
/billing/contracts/{contract_id}/edits/{edit_id}

billing.contract.v1.ContractService/DeleteContractEdit (35-contracts.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

edit_id*string

edit_id

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/billing/contracts/string/edits/string'
Example Response
Empty
GET
/billing/contracts/{contract_id}/history

billing.contract.v1.ContractService/GetContractHistory (35-contracts.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Response Body

A ContractHistory 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/contracts/string/history'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/contracts/{contract_id}/revoke-cancellation

billing.contract.v1.ContractService/RevokeContractCancellation (35-contracts.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

The RevokeContractCancellationResponse fields

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