ShipStation · API Governance Rules

ShipStation API Rules

Spectral linting rules defining API design standards and conventions for ShipStation.

13 Rules error 5 warn 5 info 3
View Rules File View on GitHub

Rule Categories

shipstation

Rules

warn
shipstation-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][get,post,put,patch,delete].operationId
warn
shipstation-path-lowercase
Path segments must be lowercase (ShipStation uses lowercase paths)
$.paths
error
shipstation-must-have-summary
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
shipstation-must-have-tags
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
error
shipstation-must-have-operation-id
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
error
shipstation-get-must-return-200
GET operations must return 200 response
$.paths[*].get
warn
shipstation-post-must-return-200
POST operations should return 200 response (ShipStation uses 200 for creates)
$.paths[*].post
info
shipstation-basic-auth
ShipStation uses HTTP Basic authentication
$.components.securitySchemes[*]
info
shipstation-paginated-list-fields
Paginated list responses should include items array, total, page, and pages
$.components.schemas[*PaginatedList]
error
shipstation-no-trailing-slash
Paths must not have trailing slashes
$.paths
error
shipstation-parameters-have-schema
All parameters must have a schema defined
$.paths[*][get,post,put,patch,delete].parameters[*]
info
shipstation-rate-limit-header
ShipStation enforces 40 req/min rate limit - document in description
$.info
warn
shipstation-ssapi-base-url
ShipStation V1 API base URL must be ssapi.shipstation.com
$.servers[*].url

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  # ShipStation API Naming Conventions
  shipstation-operation-id-camel-case:
    description: Operation IDs must use camelCase
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]+$"

  shipstation-path-lowercase:
    description: Path segments must be lowercase (ShipStation uses lowercase paths)
    severity: warn
    given: "$.paths"
    then:
      function: pattern
      functionOptions:
        match: "^(/[a-z0-9{}_/-]+)+$"

  shipstation-must-have-summary:
    description: All operations must have a summary
    severity: error
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: summary
      function: defined

  shipstation-must-have-tags:
    description: All operations must have at least one tag
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: tags
      function: defined

  shipstation-must-have-operation-id:
    description: All operations must have an operationId
    severity: error
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: operationId
      function: defined

  shipstation-get-must-return-200:
    description: GET operations must return 200 response
    severity: error
    given: "$.paths[*].get"
    then:
      field: responses.200
      function: defined

  shipstation-post-must-return-200:
    description: POST operations should return 200 response (ShipStation uses 200 for creates)
    severity: warn
    given: "$.paths[*].post"
    then:
      field: responses.200
      function: defined

  shipstation-basic-auth:
    description: ShipStation uses HTTP Basic authentication
    severity: info
    given: "$.components.securitySchemes[*]"
    then:
      function: schema
      functionOptions:
        schema:
          type: object

  shipstation-paginated-list-fields:
    description: Paginated list responses should include items array, total, page, and pages
    severity: info
    given: "$.components.schemas[*PaginatedList]"
    then:
      field: properties
      function: defined

  shipstation-no-trailing-slash:
    description: Paths must not have trailing slashes
    severity: error
    given: "$.paths"
    then:
      function: pattern
      functionOptions:
        notMatch: ".*/$"

  shipstation-parameters-have-schema:
    description: All parameters must have a schema defined
    severity: error
    given: "$.paths[*][get,post,put,patch,delete].parameters[*]"
    then:
      field: schema
      function: defined

  shipstation-rate-limit-header:
    description: ShipStation enforces 40 req/min rate limit - document in description
    severity: info
    given: "$.info"
    then:
      field: description
      function: defined

  shipstation-ssapi-base-url:
    description: ShipStation V1 API base URL must be ssapi.shipstation.com
    severity: warn
    given: "$.servers[*].url"
    then:
      function: pattern
      functionOptions:
        match: "https://ssapi.shipstation.com"

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/shipstation-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.