Browse the API reference

Get Organization Customer Info

get/v1/billing/customer/{org_id}

Part of Billing.

Payment method details are only visible to org owners.

Authentication

Authenticate in any one of these ways — not all of them:

  • API key in the X-API-Key header.
  • Bearer token in the Authorization header.

Path parameters

NameTypeDescription
org_idrequiredstringOrg Id

Example request

curl
curl -X GET "https://api.robosystems.ai/v1/billing/customer/{org_id}" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY"

Responses

200 Successful Response

FieldTypeDescription
org_idrequiredstring

Organization ID

has_payment_methodrequiredboolean

Whether organization has a payment method on file

invoice_billing_enabledrequiredboolean

Whether invoice billing is enabled (enterprise customers)

payment_methodsrequiredPaymentMethod[]

List of payment methods on file

PaymentMethod fields
FieldTypeDescription
idrequiredstring

Payment method ID

typerequiredstring

Payment method type (card, bank_account, etc.)

brandoptionalstring

Card brand (visa, mastercard, etc.)

last4optionalstring

Last 4 digits of the card or account number

exp_monthoptionalinteger

Expiration month of the card

exp_yearoptionalinteger

Expiration year of the card

is_defaultrequiredboolean

Whether this is the default payment method

stripe_customer_idoptionalstring

Stripe customer ID if applicable

created_atrequiredstring

Customer creation timestamp (ISO format)

StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
422Validation Error
429Rate limit exceeded
500Internal server error