Skip to content

Recharge Wallet

GET https://api.echovalue.dev/recharge

Returns a payment link to add credits to your wallet.

Headers:

HeaderDescription
x-tokenYour API token

Query parameters:

ParameterTypeDescriptionDefault
amountstringRecharge tier. Accepted values: 1 or 3.1

200 OK — payment URL as plain text.

https://buy.stripe.com/<productID>?client_reference_id=<hash>

Response headers:

HeaderDescription
x-balanceWallet balance after this call
x-costCredits consumed (always 0)
StatusMeaning
200Recharge link returned
401Invalid token
405Method not allowed
Terminal window
curl 'https://api.echovalue.dev/recharge?amount=1' \
-H 'x-token: mytoken'

Follow the returned URL to complete the payment.

The returned payment URL includes the wallet hash in client_reference_id.