Skip to Content
Docs
API referenceManagement API

Billing payments

GET /v1/billing/payments

GET
/billing/payments

billing.payment.v1.PaymentService/ListPayments (38-payments-and-tax.md, API Surface, Payments).

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

invoice_id?string

A binv_ id

status?string

status

from?string

from, RFC 3339

to?string

to, RFC 3339

Response Body

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

billing.payment.v1.PaymentService/RecordExternalPayment (38-payments-and-tax.md, API Surface, Payments; External payments). Records money received outside the provider as a succeeded payment with external set. Partial amounts are allowed; more than is owed is external_payment_exceeds_due unless allow_overpayment, which sends the excess to account credit. paid_at may not be in the future.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Payment object, with external

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

billing.payment.v1.PaymentService/GetPayment (38-payments-and-tax.md, API Surface, Payments).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

payment_id*string

id

Response Body

A Payment 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/payments/string'
Example Response
{  "id": "string",  "object": "string"}