# /organizations/{organizationId}/subaccounts/{subaccountId}

Get subaccount details

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Partner API",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://admin.formstack.com/api/v1",
      "description": "Partner API"
    }
  ],
  "paths": {
    "/organizations/{organizationId}/subaccounts/{subaccountId}": {
      "get": {
        "tags": [
          "PartnerApi"
        ],
        "description": "Get subaccount details",
        "operationId": "getSubaccount",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "ID of the organization",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "b443d63c-3e37-11f1-8898-0242ac000003"
            }
          },
          {
            "name": "subaccountId",
            "in": "path",
            "description": "ID of the subaccount",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "8ecb0a3c-3e38-11f1-96c0-0242ac000003"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Subaccount",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerApiSubaccount"
                }
              }
            }
          },
          "404": {
            "description": "Organization could not be found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "OrganizationBillingOverviewUsage": {
        "properties": {
          "label": {
            "description": "Text for the feature",
            "type": "string",
            "example": "Users"
          },
          "current": {
            "description": "current usage value for the feature",
            "type": "integer",
            "example": 2
          },
          "currentFormatted": {
            "description": "current usage formatted (optional)",
            "type": [
              "string",
              "null"
            ],
            "example": "512M"
          },
          "limit": {
            "description": "maximum usage value for the feature",
            "type": "integer",
            "example": 10
          },
          "limitFormatted": {
            "description": "limit formatted (optional)",
            "type": [
              "string",
              "null"
            ],
            "example": "3G"
          },
          "warningMessage": {
            "description": "Warning message",
            "type": "string",
            "example": "Nearing monthly limit"
          },
          "validUntil": {
            "description": "Usage valid until",
            "type": [
              "string",
              "null"
            ],
            "example": "6 days 20 hours"
          }
        },
        "type": "object"
      },
      "PartnerApiSubaccount": {
        "description": "Full subaccount: same as PartnerApiSubaccountBasic plus products and entitlements (GET one subaccount, create response).",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/PartnerApiSubaccountBasic"
          },
          {
            "properties": {
              "products": {
                "description": "Not returned on GET /subaccounts (list); included on GET /subaccounts/{id} and subaccount create response.",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PartnerApiSubaccountProduct"
                }
              },
              "oldestAdminMembershipId": {
                "description": "Organization admin membership id for the subaccount.",
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "readOnly": true,
                "example": "2b609bb4-3e57-11f1-8a46-0242ac000003"
              }
            },
            "type": "object"
          }
        ]
      },
      "PartnerApiSubaccountBasic": {
        "description": "Subaccount fields returned by GET /subaccounts (list). For products and entitlements, GET a single subaccount. `appIds` and `appAdmins` keys depend on enabled products (e.g. forms, docs, sign, copilot, or the application id).",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "readOnly": true,
            "example": "8ecb0a3c-3e38-11f1-96c0-0242ac000003"
          },
          "name": {
            "type": "string",
            "example": "Acme Subaccount"
          },
          "appIds": {
            "properties": {
              "forms": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "123456"
              },
              "docs": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "78910"
              },
              "sign": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "111213"
              }
            },
            "type": "object",
            "example": {
              "forms": "123456",
              "docs": null,
              "sign": "111213"
            },
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "appUsage": {
            "properties": {
              "forms": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/OrganizationBillingOverviewUsage"
                }
              },
              "docs": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/OrganizationBillingOverviewUsage"
                }
              },
              "sign": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/OrganizationBillingOverviewUsage"
                }
              }
            },
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationBillingOverviewUsage"
              }
            }
          },
          "appAdmins": {
            "properties": {
              "forms": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "john@doe.org"
              },
              "docs": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "jane@doe.org"
              },
              "sign": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "john@doe.org"
              }
            },
            "type": "object",
            "example": {
              "forms": "john@doe.org",
              "docs": null,
              "sign": "john@doe.org"
            },
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "type": "object"
      },
      "PartnerApiSubaccountProduct": {
        "properties": {
          "handle": {
            "type": "string",
            "readOnly": true,
            "example": "p:forms-teams"
          },
          "name": {
            "type": "string",
            "readOnly": true,
            "example": "Forms Teams plan"
          },
          "quantity": {
            "type": "integer",
            "readOnly": true,
            "example": 1
          },
          "type": {
            "description": "Billing catalog product kind: plan, component, discount, legacy, or unknown",
            "type": "string",
            "readOnly": true,
            "example": "plan"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Bearer authentication"
      }
    }
  },
  "tags": [
    {
      "name": "PartnerApi",
      "description": "PartnerApi"
    }
  ]
}
```