Operator

Credit the customer balance (applied to the next invoices). Fresh operator session, reason required, idempotent per requestId

post/operator/billing/accounts/{organizationId}/credit

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/operator/billing/accounts/{organizationId}/credit
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

organizationIdstring uuid required

Request body

amountinteger required

minor units of the team's billing currency (its subscription's, else USD) credited to the customer balance (applied to the next invoices in that currency)

reasonstring required

required: shown in the audit log verbatim

requestIdstring uuid required

generated once per confirmation dialog: repeating the request (double click, retry) never repeats the money movement

Response

Credited

status'ok' required
referencestring nullable required

the Stripe object created (credit note, balance transaction) when any

replayboolean

Changes

No recorded changes to this operation across all 1 revision of this API.