Hyperscale docs Sign in Start building

Settle product earnings

product.earnings.settle

Moves accumulated earnings from the product revenue account to the tenant settlement account. The ledger rejects settling more than the revenue account holds.

POST /v1/products/{productId}/earnings/settlements

Scopes: transfer:write

Input

FieldTypeDescription
productId requiredstringHyperscale product ID
transferIdstringHyperscale transfer ID
amount requiredstringPositive minor-unit integer amount serialized as a string (at most 18 digits)
currency requiredstring
idempotencyKey requiredstringNew per change; reuse only to retry it.
confirmation requiredproduct_earnings_settle | product.earnings.settleThis tool's name, once the founder agrees.

Request sample

curl --request POST 'https://console.hyperscale0.ai/v1/products/{productId}/earnings/settlements' \
  --header "Authorization: Bearer $HYPERSCALE_API_KEY" \
  --header 'X-Hyperscale-Environment: sandbox' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "amount": "<string>",
  "currency": "<string>",
  "idempotencyKey": "<string>",
  "confirmation": "<product_earnings_settle | product.earnings.settle>"
}'

All operations