Get the payment details
Returns the card on file and who is billed, as Stripe has them. Luna keeps neither. They are read from Stripe each time and changed in the billing portal.
GET
/_luna/orgs/{org}/billing/detailsAuthorization
AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
Scopes:
billing:readPath parameters
orgstringrequiredThe organisation, by its slug.
Responses
200
The payment details.
billingstringrequiredstripe when the cluster bills through Stripe, off when it does not bill.
cardCardItem | nullShow propertiesHide properties
One of:
CardItem
brandstring | nullThe card's brand, such as visa.
last4string | nullThe last four digits of the card's number.
expMonthinteger<int32> | nullmin 0
expYearinteger<int32> | nullmin 0
null
nulldetailsBilledTo | nullShow propertiesHide properties
One of:
BilledTo
namestring | nullemailstring | nullphonestring | nulladdressBillingAddress | nullShow propertiesHide properties
One of:
BillingAddress
line1string | nullline2string | nullcitystring | nullstatestring | nullpostalCodestring | nullcountrystring | nullThe country, as a two-letter code.
null
nullnull
nulldefault
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.