Skip to main content
POST
/
payment
/
funds
Add Funds
curl --request POST \
  --url https://api.deepinfra.com/payment/funds \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 123
}'
{
  "checkout_url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

use_checkout
boolean
default:false

Cookies

session
String

Body

application/json
amount
integer
required

Amount to add in cents

Response

Successful Response

checkout_url
string | null

Stripe-hosted invoice URL to complete payment. Non-null when no saved payment method is on file.