Billing

Get account details

Get account details (plan, contact and payment settings) for given tenant.

Note: this API is not applicable for system tenants.

get/_api/billing/account

Request

Headers

tenantstring string

Tenant name. If not set it uses the tenant invoking the request.

Response

Successfully fetched account details.

codenumber
errorboolean

Example response

{
  "data": {
    "created_at": "Timestamp when account was created.",
    "plan": {
      "attribution": "Macrometa",
      "name": "PlanName",
      "target": "Macrometa"
    },
    "subscription_id": "sub_<subscription_id>",
    "customer_id": "cus_<customer_id>",
    "contact": {
      "firstname": "First name of the user.",
      "lastname": "Last name of the user.",
      "email": "Email address of the user.",
      "phone": "Phone number of the user.",
      "line1": "Address line 1.",
      "line2": "Address line 2.",
      "city": "Address city.",
      "state": "Address state.",
      "country": "Address country.",
      "zipcode": "Address zip code."
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.