Add funds with a machine payment
Adds funds to the organization’s balance by card, with no person and no checkout page, through the Machine Payments Protocol (MPP) and a Stripe Shared Payment Token. Send amountUsd with your API key. The first answer is 402 with a WWW-Authenticate: Payment challenge. Have your payment client pay it, then send the same request again with the payment credential in the Payment-Authorization header: your API key stays in Authorization. The answer is then 201 with the top-up and a Payment-Receipt header, and X-Balance-Usd shows the new balance.
A retry with the same credential answers the same top-up and charges nothing more. A credential that is refused, such as one whose card was declined or whose challenge expired, answers 402 with the reason and a new challenge. The amount is 5,000 in whole cents, and a new organization can add at most $5,000 in its first 7 days. Any live key may call it, a read-only one too. It has its own limit: 10 a minute and 200 a day.