Fund the corporate card programme
curl --request POST \
--url https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/fund \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 10000
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 10000})
};
fetch('https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/fund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/fund"
payload = { "amount": 10000 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/fund"
payload := strings.NewReader("{\n \"amount\": 10000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "6a4dfe8163ece0f330a0b33e",
"status": "processing"
}Wallet
Fund the corporate card programme
Move USDC from your business treasury into the company Rain pooled contract so cards can spend. Amount is in cents. Ensure sufficient treasury balance before calling. Returns the fund request id while processing continues asynchronously. Poll GET /wallet/funds/ or subscribe to card.fund.completed for confirmation.
POST
/
api
/
v1
/
wallet
/
fund
Fund the corporate card programme
curl --request POST \
--url https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/fund \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 10000
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 10000})
};
fetch('https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/fund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/fund"
payload = { "amount": 10000 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/fund"
payload := strings.NewReader("{\n \"amount\": 10000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "6a4dfe8163ece0f330a0b33e",
"status": "processing"
}Authorizations
Bearer JWT issued to your business account during onboarding
Body
application/json
USDC amount in cents
Example:
10000
Response
200 - application/json