Money

Buy prepaid credits from a metered-product seller

Refused unless the payee sells an active metered product -- "Only a customer can top up credits with a seller." Nothing is credited here: a deposit lands only once the resulting invoice completes on-chain. The invoice is in the currency of the metered product the credit is for (product_id, else the seller's newest), since usage draws only from credit in its own currency.

post/api/v1/billing_accounts/top_up

Request

  • Base URL: https://saltapp.ai
  • URL: https://saltapp.ai/api/v1/billing_accounts/top_up
  • Auth: API key in header api-key

Request body

chat_idstring required
payee_idstring required
amountstring required
product_idstring

The metered product the credit is for.

Response

OK.

okboolean
transfer_request_idstring

Changes

No recorded changes to this operation across all 2 revisions of this API.