Skip to Content
Docs
API referenceManagement API

Billing payment connections

GET
/billing/payment-connections

billing.payment.v1.PaymentConnectionService/ListPaymentConnections (32-billing-overview.md, API Surface, Payment connections).

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 PaymentConnection 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/payment-connections'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/billing/payment-connections

billing.payment.v1.PaymentConnectionService/CreatePaymentConnection (32-billing-overview.md, API Surface, Payment connections).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A PaymentConnection object, with authorize_url

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/payment-connections'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/payment-connections/{payment_connection_id}

billing.payment.v1.PaymentConnectionService/GetPaymentConnection (32-billing-overview.md, API Surface, Payment connections). tax is the connected account's Stripe Tax read, read-only and null until read: { status, head_office, registrations: [{ country, state, type }], warnings: [{ code, message, country, tax_id_type }] } (38-payments-and-tax.md, The seller's tax identity; billing-svc docs/questions.md, P104).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

payment_connection_id*string

id

Response Body

A PaymentConnection 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/payment-connections/string'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/payment-connections/{payment_connection_id}/refresh

billing.payment.v1.PaymentConnectionService/RefreshPaymentConnection (32-billing-overview.md, API Surface, Payment connections). tax is the connected account's Stripe Tax read, read-only and null until read: { status, head_office, registrations: [{ country, state, type }], warnings: [{ code, message, country, tax_id_type }] } (38-payments-and-tax.md, The seller's tax identity; billing-svc docs/questions.md, P104).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

payment_connection_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A PaymentConnection 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/payment-connections/string/refresh'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/payment-connections/{payment_connection_id}/revoke

billing.payment.v1.PaymentConnectionService/RevokePaymentConnection (32-billing-overview.md, API Surface, Payment connections). Revokes Pontive's access on the provider; the connection stays, revoked, with revoked_at (api-route-review D8, D58).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

payment_connection_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

The revoked PaymentConnection 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/payment-connections/string/revoke'
Example Response
{  "id": "string",  "object": "string"}