Sazabi
APIBilling

Get the payment method

GET
/billing/payment-method

Get a summary of the organization's saved payment method (brand and last 4 digits).

Query Parameters

organizationId?string

Organization to operate on. Auto-filled from CLI and SDK context when omitted. User tokens must supply it unless the credential's fixed scope resolves it; secret keys may omit it (the key's organization applies).

Length1 <= length

Response Body

application/json

curl -X GET "https://example.com/billing/payment-method"
{  "hasPaymentMethod": true,  "brand": "string",  "last4": "string",  "type": "string",  "expiryMonth": 1,  "expiryYear": -9007199254740991,  "isDefault": true,  "display": "string"}