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
Example response
{
"payment_method": {
"type": "card",
"card_last4": "4242",
"card_brand": "visa"
}
}Changes
Changed in 1 of the 34 revisions of this API.1
- ○
the endpoint scheme security
BearerAuthwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○