Billing payment methods
billing.payment.v1.PaymentMethodService/CreatePaymentMethodSession (32-billing-overview.md, API Surface, Customers; 38-payments-and-tax.md, API Surface, Payment methods).
BearerAuthAuthorization<token>Access token as "Bearer "
customer_id*stringid
X-Idempotency-Key?stringIdempotency key
A PaymentMethodSession 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/customers/string/payment-method-session'{ "id": "string", "object": "string"}billing.payment.v1.PaymentMethodService/ListPaymentMethods (38-payments-and-tax.md, API Surface, Payment methods).
BearerAuthAuthorization<token>Access token as "Bearer "
customer_id*stringid
page?integerPage number, from 1
limit?integerItems per page, 1 to 100, default 25
A list of PaymentMethod 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/customers/string/payment-methods'{ "data": [ { "id": "string", "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}billing.payment.v1.PaymentMethodService/DetachPaymentMethod (38-payments-and-tax.md, API Surface, Payment methods). A warning payment_method_required comes back when it was the last reusable method (38-payments-and-tax.md, Payment methods, Removal).
BearerAuthAuthorization<token>Access token as "Bearer "
customer_id*stringid
payment_method_id*stringpayment_method_id, the spec's {pm}
X-Idempotency-Key?stringIdempotency key
The detached PaymentMethod object, with warnings
application/json- response
curl -X DELETE 'https://api.us.pontive.com/v1/billing/customers/string/payment-methods/string'{}