Request a top-up
POST
/api/billing/topup-requests
const url = 'https://met.cards/api/billing/topup-requests';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://met.cards/api/billing/topup-requests \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \Files a request to add money to the workspace wallet. An operator issues the invoice; paying it adds the money. At most 3 requests can be open at once.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
amountMicros
required
Micro-dollars as a string, from 1 USD (1000000) to 100 000 USD (100000000000).
string
Example
25000000invoiceEmail
Where to send the invoice. Defaults to the workspace’s billing email, then to yours.
string format: email
note
A note for the person who issues the invoice.
string
Responses
Section titled “Responses”Media typeapplication/json
object
Examplegenerated
{}