KausateKausate Docs
Shareholder graph
Viewing API version 2025-04-01. View the latest version.

Quote shareholder graph extension

Quote what extending a completed shareholder graph would cost — before ordering. Takes the same body as POST /v2/companies/shareholder-graph/{orderId}/extend and resolves exactly which nodes that extension would extend, pricing each at your organization's effective credit price for an extension in the node's jurisdiction. Nodes the extension would skip (and never charge) are listed under `excludedNodes` with the reason. Nothing is ordered or charged. If every requested node is excluded, `orderWouldFail` is `true`: an identical extend order would be accepted but then fail asynchronously instead of completing as a free no-op.

POST/v2/companies/shareholder-graph/{orderId}/extend/quote
X-API-Key<token>

Sign up at Kausate.com to get an API key

In: header

Path Parameters

orderId*string

Completed shareholder-graph order ID to quote an extension for

Header Parameters

Kausate-Version?string
Default"2025-04-01"
Formatdate

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.kausate.com/v2/companies/shareholder-graph/co_zz_4O3wnpE5u1K5AXnkARuhp-shareholder-graph-depth3-org_01ABC-20261126130000/extend/quote" \
  -H "X-API-Key: $KAUSATE_API_KEY" \
  -H "Kausate-Version: 2025-04-01" \
  -H "Content-Type: application/json" \
  -d '{}'

Extension quote computed (nothing ordered or charged)

{
  "orderId": "string",
  "nodes": [
    {
      "nodeId": "string",
      "jurisdictionCode": "aa",
      "sku": "string",
      "credits": 0
    }
  ],
  "excludedNodes": [
    {
      "nodeId": "string",
      "jurisdictionCode": "string",
      "reason": "string"
    }
  ],
  "totalCredits": 0,
  "orderWouldFail": true,
  "currency": "credits",
  "estimated": true,
  "additionalDepth": 0
}

Bad Request - Invalid input parameters

{
  "detail": "Invalid company ID format",
  "code": "request.invalid",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Unauthorized - No API key was supplied

{
  "detail": "API key is required",
  "code": "auth.unauthorized",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Forbidden - The API key is invalid, or valid but not entitled

{
  "detail": "Invalid API key",
  "code": "auth.forbidden",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Not Found - Company or resource not found

{
  "detail": "Company not found",
  "code": "company.not_found",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Prior order is still running or did not complete successfully

{
  "detail": "Order '...' is still running; wait for it to complete before requesting an extension.",
  "code": "resource.conflict",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Gone - the order can no longer be extended

{
  "detail": "The continuation state for this order has expired or was never persisted. Order a fresh shareholder graph instead.",
  "code": "order.continuation_state_not_found",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Unprocessable Entity - The request failed schema validation, or names a valid entity whose data cannot be served

{
  "detail": [
    {
      "loc": [
        "body",
        "kausateId"
      ],
      "msg": "Field required",
      "type": "missing"
    }
  ],
  "code": "request.invalid",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Too Many Requests - the registry is rate-limiting requests. Retry after the Retry-After interval.

{
  "detail": "The data source is rate-limiting requests right now, please try again later",
  "code": "source.rate_limited",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Internal Server Error

{
  "detail": "An unexpected error occurred. If this persists, please contact support@kausate.com",
  "code": "internal.unexpected",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Not Implemented - the jurisdiction offers this capability but it is not usable right now

{
  "detail": "This capability is offered for the requested jurisdiction but is not usable right now because of a fault on our side. Please contact support@kausate.com",
  "code": "capability.not_available",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Bad Gateway - a transient upstream-registry failure; retrying shortly usually works

{
  "detail": "Network error while reaching the data source",
  "code": "source.network_error",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Service Unavailable - the upstream registry is degraded or unreachable

{
  "detail": "Data source temporarily unavailable",
  "code": "source.unavailable",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Last updated on