---
updatedAt: 2026-04-28T02:11:24.000Z
agentTools:
  projectIndex: https://docs.shipscience.com/llms.txt
---

# List sub-accounts

**Partner-only.** List the caller's child accounts with pagination.
`id` and `external_id` filters are exact-match and return at most one
record.


# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Shipscience API",
    "version": "v1",
    "description": "ShipScience's REST API for partners and customers.\n\n## Authentication\n\nMost endpoints require a bearer JWT in the `Authorization` header. Tokens\nare issued by the ShipScience login flow and are valid for 4 hours.\nClients are responsible for refreshing tokens before expiry. The\n`/api/v1/tokens` endpoint is an exception — it authenticates with the\n`api-key` header rather than a bearer JWT, since its purpose is to\nissue the JWT itself.\n\n## Partner endpoints\n\nThe **Sub Accounts** section is only available to accounts explicitly\nenabled as partners. If you receive `403 Forbidden`, contact\n**support@shipscience.com** to request access.\n"
  },
  "tags": [
    {
      "name": "Sub Accounts",
      "description": "**Partner-only.** These endpoints allow an authorized partner account to\nprovision and manage child (\"sub\") accounts on ShipScience. Access is\ndisabled by default.\n\nIf you receive `403 Forbidden`, your ShipScience account has not yet been\nenabled for the Partner API. Contact **support@shipscience.com** to\nrequest access.\n"
    }
  ],
  "paths": {
    "/api/v1/sub_accounts": {
      "get": {
        "summary": "List sub-accounts",
        "tags": [
          "Sub Accounts"
        ],
        "security": [
          {
            "bearer_auth": []
          }
        ],
        "description": "**Partner-only.** List the caller's child accounts with pagination.\n`id` and `external_id` filters are exact-match and return at most one\nrecord.\n",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "required": false
          },
          {
            "name": "per_page",
            "in": "query",
            "schema": {
              "type": "integer",
              "maximum": 100
            },
            "required": false,
            "description": "Defaults to 30. Maximum 100."
          },
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Exact match on the sub-account's public id (e.g. acc_...)."
          },
          {
            "name": "external_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Exact match on the caller-supplied external_id."
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated list of sub-accounts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sub_account_list_response"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/api_error"
                }
              }
            }
          },
          "403": {
            "description": "Account not enabled for the Partner API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/api_error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "sub_account": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "acc_kD9aQ2pR7vN1xY3zB6cF8e",
            "description": "Public identifier for this sub-account."
          },
          "external_id": {
            "type": "string",
            "nullable": true,
            "example": "merchant_42"
          },
          "name": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "created_at"
        ]
      },
      "sub_account_list_response": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sub_account"
            }
          },
          "current_page": {
            "type": "integer"
          },
          "per_page": {
            "type": "integer"
          },
          "total_pages": {
            "type": "integer"
          },
          "total_elements": {
            "type": "integer"
          }
        }
      },
      "api_error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "details": {
                "type": "object",
                "additionalProperties": true
              }
            },
            "required": [
              "message"
            ]
          }
        },
        "required": [
          "error"
        ]
      }
    },
    "securitySchemes": {
      "bearer_auth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "servers": [
    {
      "url": "https://app.shipscience.com",
      "variables": {
        "defaultHost": {
          "default": "app.shipscience.com"
        }
      }
    }
  ]
}
```