credits

Create a checkout link

Creates a checkout page where a person buys credits for the key's project. The credit arrives once the payment does: poll GET /v1/account until balance_usd shows it. Needs phones:control. At most 10 an hour per project.

post/v1/credits/checkout

Request

  • Base URL: https://phonebox.dev
  • URL: https://phonebox.dev/v1/credits/checkout
  • Auth: HTTP bearer

Request body

amount_usdinteger

The credit to buy, in whole US dollars.

Response

The checkout page's link, and the credit it buys.

urlstring uri required

The checkout page. Give it to a person: it takes the payment and adds the credit to the key's project.

amount_usdinteger required

The credit this checkout buys, in whole US dollars, before tax and any discount.

Changes

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