Credits

Prepare a top-up and return the hosted payment link

Emits the top-up invoice and returns the hosted payment page: nothing is charged by the call itself. Hand payment_url to the person; they approve the amount there, and once they pay, the balance updates on its own and the trackers that ran out of credit resume. The amount goes in one of two units, one per speaker: send exactly one of them, and a key set to null counts as absent. Amounts are always in the wallet currency of the account, which GET /credits gives. The response echoes the amount in both units. Owner only.

post/credits/topup

Request

  • Base URL: https://api.epovest.com/v1
  • URL: https://api.epovest.com/v1/credits/topup
  • Auth: HTTP bearer

Request body

amount_minorinteger nullable

Minor units: 5000 means 50.00. Use it when the person leaves the amount to you: take one of the suggested_topups[] of GET /credits and pass its amount_minor.

Response

The hosted payment page, and the amount in both units.

payment_urlstring uri required
amountstring required

The amount in major units.

amount_minorinteger required
currencystring required

The wallet currency, upper case.

Changes

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