v5

latestOpenAPI 3.1.02026-08-025631,1012.8 MB
Organization Billing

Get Payment Method

Get current payment method.

Returns the saved payment method details (last 4 digits, brand) and auto-billing status.

Requirements:

  • Read permission

Example:

response = await client.get("/v1/organizations/billing/payment-method")
if response["has_payment_method"]:
    print(f"Card: {response['payment_method']['card_brand']} ****{response['payment_method']['card_last4']}")
get/v1/organizations/billing/payment-method

Response

Successful Response

has_payment_methodboolean required

Whether organization has a payment method saved

auto_billing_enabledboolean required

Whether automatic billing is enabled

Example response

{
  "payment_method": {
    "type": "card",
    "card_last4": "4242",
    "card_brand": "visa"
  }
}