Billing contracts
billing.contract.v1.ContractService/ListContracts (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
page?integerPage number, from 1
limit?integerItems per page, 1 to 100, default 25
customer_id?stringA cust_ id
status?stringstatus
package?stringA package's pkg_ id or its key (api-route-review D29, D55)
package_version?integerpackage_version
A list of Contract objects with pagination
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/billing/contracts'{ "data": [ { "id": "string", "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}billing.contract.v1.ContractService/CreateContract (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
A Contract object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/contracts'{ "id": "string", "object": "string"}billing.contract.v1.ContractService/PreviewContract (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
The PreviewContractResponse fields
application/json- response
curl -X POST 'https://api.us.pontive.com/v1/billing/contracts/preview'{}billing.contract.v1.ContractService/GetContract (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
contract_id*stringid
at?stringRFC 3339 time
A Contract object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X GET 'https://api.us.pontive.com/v1/billing/contracts/string'{ "id": "string", "object": "string"}billing.contract.v1.ContractService/CancelContract (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
contract_id*stringid
X-Idempotency-Key?stringIdempotency key
A Contract object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/contracts/string/cancel'{ "id": "string", "object": "string"}billing.contract.v1.ContractService/ChangeContractPackage (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
contract_id*stringid
X-Idempotency-Key?stringIdempotency key
A Contract object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/contracts/string/change-package'{ "id": "string", "object": "string"}billing.contract.v1.ContractService/ListContractEdits (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
contract_id*stringid
page?integerPage number, from 1
limit?integerItems per page, 1 to 100, default 25
A list of Edit objects with pagination
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/billing/contracts/string/edits'{ "data": [ { "id": "string", "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}billing.contract.v1.ContractService/CreateContractEdit (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
contract_id*stringid
X-Idempotency-Key?stringIdempotency key
A Edit object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/contracts/string/edits'{ "id": "string", "object": "string"}billing.contract.v1.ContractService/PreviewContractEdit (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
contract_id*stringid
X-Idempotency-Key?stringIdempotency key
The PreviewContractEditResponse fields
application/json- response
curl -X POST 'https://api.us.pontive.com/v1/billing/contracts/string/edits/preview'{}billing.contract.v1.ContractService/DeleteContractEdit (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
contract_id*stringid
edit_id*stringedit_id
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/billing/contracts/string/edits/string'billing.contract.v1.ContractService/GetContractHistory (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
contract_id*stringid
A ContractHistory object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X GET 'https://api.us.pontive.com/v1/billing/contracts/string/history'{ "id": "string", "object": "string"}billing.contract.v1.ContractService/RevokeContractCancellation (35-contracts.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
contract_id*stringid
X-Idempotency-Key?stringIdempotency key
The RevokeContractCancellationResponse fields
application/json- response
curl -X POST 'https://api.us.pontive.com/v1/billing/contracts/string/revoke-cancellation'{}